IBM Support

[CP4AIOps MustGather] How to specify CP4AIOps namespace manually?

How To


Summary

Method to specify CP4AIOps namespace manually.

Objective

If you do not have cluster-admin privileges (needed to auto scan the cluster for CP4AIOps namespace), you need to provide CP4AIOps MustGather with the namespace, especially when executing in view-only mode (-V).
NOTE: The user must have at least access to AIManager custom resource in the product namespace.
Eg.
# oc whoami
aiops
# oc get po -n cp4aiops | head
NAME                                                              READY   STATUS       RESTARTS        AGE
aimanager-aio-ai-platform-api-server-75b95f7df7-vfxb2             1/1     Running      0               19d
aimanager-aio-change-risk-6bb5798bd5-4n7rz                        1/1     Running      0               19d
aimanager-aio-change-risk-6bb5798bd5-jt6lk                        1/1     Running      0               19d
aimanager-aio-chatops-orchestrator-fd6656bc5-2gkxr                1/1     Running      0               19d
aimanager-aio-chatops-orchestrator-fd6656bc5-z6sbz                1/1     Running      0               19d
aimanager-aio-chatops-slack-integrator-789d49ffcd-phfn6           1/1     Running      0               19d
aimanager-aio-chatops-slack-integrator-789d49ffcd-ttsqw           1/1     Running      0               19d
aimanager-aio-chatops-teams-integrator-67684ccf58-54dx5           1/1     Running      0               19d
aimanager-aio-chatops-teams-integrator-67684ccf58-gkln6           1/1     Running      0               19d
# oc get nodes
Error from server (Forbidden): nodes is forbidden: User "aiops" cannot list resource "nodes" in API group "" at the cluster scope
# oc get csv -A
Error from server (Forbidden): clusterserviceversions.operators.coreos.com is forbidden: User "aiops" cannot list resource "clusterserviceversions" in API group "operators.coreos.com" at the cluster scope

 

Environment

OCP Server = 4.16.47
OC Client = 4.16.47
CP4AIOps MustGather = 1.29.3
CP4AIOps = 4.11.0

Steps

(1) Download the latest CP4AIOps MustGather (link).
 
OR
 
Upgrade the current CP4AIOps MustGather to the latest version:
./waiops-mustgather.sh -UD
(2) To provide the CP4AIOps namespace, you use the -W 'AIMGR_NS=xxx' flag:
Eg.
./waiops-mustgather.sh -V postgres-tables -W 'AIMGR_NS=cp4aiops'
OR
./waiops-mustgather.sh -O general -W 'AIMGR_NS=cp4aiops'

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSE9G0Q","label":"IBM Cloud Pak for AIOps"},"ARM Category":[{"code":"a8m3p000000LRdhAAG","label":"Cloud Pak for AIOps-\u003EAI Manager-\u003EScripts-\u003EMustgather"}],"ARM Case Number":"","Platform":[{"code":"PF016","label":"Linux"}],"Version":"4.10.0;4.10.1;4.11.0;4.11.1;4.2.0;4.2.1;4.3.0;4.4.0;4.4.1;4.5.0;4.5.1;4.6.0;4.6.1;4.7.0;4.7.1;4.8.0;4.8.1;4.9.0;4.9.1"}]

Document Information

Modified date:
21 October 2025

UID

ibm17248585