Hi team,
I downloaded SE version from https://github.com/IBM/cpd-cli/releases/tag/v13.1.2 for Mac and tried to login to OCP.
Here is the command used :
cpd-cli manage login-to-ocp --server=https://apisample:6443 --token=sha256~mytoken
Below is the error I am getting :
INFO[2024-02-28T12:03:24.196343Z]/a/workspace/cpd-cli-plugins-13.x.x/go/src/cpd-cli/common/logging/log_utils.go:89 cpd-cli/common/logging.LogInfo() manage(olm-utils) event=Information info="Checking architecture: amd64" trace=91f5a694-25bc-43d7-8aea-ebba1a5a1828
[INFO] 2024-02-28T12:03:24.197292Z Checking architecture: amd64
INFO[2024-02-28T12:03:24.197398Z]/a/workspace/cpd-cli-plugins-13.x.x/go/src/cpd-cli/common/logging/log_utils.go:89 cpd-cli/common/logging.LogInfo() manage(olm-utils) event=Information info="Checking podman or docker" trace=91f5a694-25bc-43d7-8aea-ebba1a5a1828
[INFO] 2024-02-28T12:03:24.197414Z Checking podman or docker
INFO[2024-02-28T12:03:24.488907Z]/a/workspace/cpd-cli-plugins-13.x.x/go/src/cpd-cli/common/logging/log_utils.go:89 cpd-cli/common/logging.LogInfo() manage(olm-utils) event=Information info="Dockerexe: podman" trace=91f5a694-25bc-43d7-8aea-ebba1a5a1828
[INFO] 2024-02-28T12:03:24.488954Z Dockerexe: podman
INFO[2024-02-28T12:03:24.908897Z]/a/workspace/cpd-cli-plugins-13.x.x/go/src/cpd-cli/common/logging/log_utils.go:89 cpd-cli/common/logging.LogInfo() manage(olm-utils) event=Information info="Container olm-utils-play-v2 is running already. Image: icr.io/cpopen/cpd/olm-utils-v2:latest" trace=91f5a694-25bc-43d7-8aea-ebba1a5a1828
[INFO] 2024-02-28T12:03:24.909006Z Container olm-utils-play-v2 is running already. Image: icr.io/cpopen/cpd/olm-utils-v2:latest
INFO[2024-02-28T12:03:25.022805Z]/a/workspace/cpd-cli-plugins-13.x.x/go/src/cpd-cli/common/logging/log_utils.go:89 cpd-cli/common/logging.LogInfo() manage(olm-utils) event=Information info="Processing subcommand login-to-ocp" trace=91f5a694-25bc-43d7-8aea-ebba1a5a1828
[INFO] 2024-02-28T12:03:25.022862Z Processing subcommand login-to-ocp
KUBECONFIG is /opt/ansible/.kubeconfig
W0228 17:03:25.945663 523 loader.go:222] Config not found: /opt/ansible/.kubeconfig
WARNING: Using insecure TLS client config. Setting this option is not supported!
Logged into "https://apisample:6443" as "admin" using the token provided.
You have access to 71 projects, the list has been suppressed. You can list all projects with 'oc projects'
Using project "default".
W0228 17:03:27.493126 523 loader.go:222] Config not found: /opt/ansible/.kubeconfig
W0228 17:03:27.494994 523 loader.go:222] Config not found: /opt/ansible/.kubeconfig
error: open /opt/ansible/.kubeconfig: no such file or directory
ERRO[2024-02-28T12:03:27.484304Z]/a/workspace/cpd-cli-plugins-13.x.x/go/src/cpd-cli/common/logging/log_utils.go:115 cpd-cli/common/logging.LogException() manage(olm-utils) error="cmd.Run() failed with exit status 1" event=Exception trace=91f5a694-25bc-43d7-8aea-ebba1a5a1828
[ERROR] 2024-02-28T12:03:27.484443Z cmd.Run() failed with exit status 1
ERRO[2024-02-28T12:03:27.484585Z]/a/workspace/cpd-cli-plugins-13.x.x/go/src/cpd-cli/common/logging/log_utils.go:115 cpd-cli/common/logging.LogException() manage(olm-utils) error="Command exception: The login-to-ocp command failed (exit status 1). You may find output and logs in the /Users/svalluru/3scale-toolbox-java/cpd-cli-workspace/olm-utils-workspace/work directory." event=Exception trace=91f5a694-25bc-43d7-8aea-ebba1a5a1828
[ERROR] 2024-02-28T12:03:27.484621Z Command exception: The login-to-ocp command failed (exit status 1). You may find output and logs in the /Users/svalluru/3scale-toolbox-java/cpd-cli-workspace/olm-utils-workspace/work directory.
ERRO[2024-02-28T12:03:27.487402Z]/a/workspace/cpd-cli-main-13.x.x/go/src/cpd-cli/common/logging/log_utils.go:115 cpd-cli/common/logging.LogException() cpd-cli error="RunPluginCommand:Execution error: exit status 1" event=Exception trace=91f5a694-25bc-43d7-8aea-ebba1a5a1828
[ERROR] 2024-02-28T12:03:27.487756Z RunPluginCommand:Execution error: exit status 1
------------------------------
Srikanth Valluru
------------------------------