Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running the CPD deployer multiple times fails due to retrying to create the registry-ca when already existing #904

Open
MoritzScheeleIBM opened this issue Feb 12, 2025 · 0 comments

Comments

@MoritzScheeleIBM
Copy link
Contributor

MoritzScheeleIBM commented Feb 12, 2025

Describe the bug
Running the CPD deployer multiple times fails due to retrying to create the registry-ca Config Map when already existing.

The issue happens here: "oc create cm -n openshift-config {registry-name}". If an cm with this name already exists it will fails and output the below error code.

To Reproduce
(Values from documentation)

  1. export CPD_OC_LOGIN="oc login api.pluto-01.coc.ibm.com:6443 -u kubeadmin -p BmxQ5-KjBFx-FgztG-gpTF3 --insecure-skip-tls-verify"

  2. ./cp-deploy.sh env apply --accept-all-licenses --skip-infra --skip-mirror-images

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
TASK [run-command : Run command: oc create cm -n openshift-config registry-ca] ***
Wednesday 12 February 2025 09:59:50 +0000 (0:00:00.032) 0:01:05.830 ****
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "oc create cm -n openshift-config registry-ca\n", "delta": "0:00:00.100528", "end": "2025-02-12 09:59:51.025259", "msg": "non-zero return code", "rc": 1, "start": "2025-02-12 09:59:50.924731", "stderr": "error: failed to create configmap: configmaps "registry-ca" already exists", "stderr_lines": ["error: failed to create configmap: configmaps "registry-ca" already exists"], "stdout": "", "stdout_lines": []}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant