Closed sherl0cks closed 5 years ago
I'm not experience this I ran the above commands with modified project names and did not see this (fails because I wasn't logged in but succeed without messaging after login)
TASK [openshift-applier/roles/openshift-applier : Create OpenShift objects based on template with params for 'projectrequest : k-ci-cd'] ****
failed: [projects-and-policies] (item={'oc_path': u''}) => {"changed": true, "cmd": "oc process --local -f https://raw.githubusercontent.com/redhat-cop/cluster-lifecycle/v3.9.0/files/projectrequest/template.yml --param='NAMESPACE=k-ci-cd' --param='SECRET_NAME=ci-cd-secret' --param='NAMESPACE_DISPLAY_NAME=k-ci-cd' --ignore-unknown-parameters | oc create -f - ", "delta": "0:00:02.172337", "end": "2019-01-29 09:04:55.936402", "failed_when_result": true, "msg": "non-zero return code", "oc_param_file_item": {"oc_path": ""}, "rc": 1, "start": "2019-01-29 09:04:53.764065", "stderr": "error: You must be logged in to the server (Unauthorized)", "stderr_lines": ["error: You must be logged in to the server (Unauthorized)"], "stdout": "", "stdout_lines": []}
Using
ansible 2.5.4
oc v3.10.14
master branch
Mac OSX
Looks like we are hitting https://github.com/redhat-cop/openshift-applier/issues/91, which seems tied to ansible 2.7.5. Downgrading ansible does not solve this.
You can downgrade if required to run "locally", or you can use the openshift-applier container.
For context, https://github.com/redhat-cop/openshift-applier/pull/106 resolved the issue in the applier
When I run:
I get the following failure:
Root cause appears to be that the
oc process
command is missing-f
. Unclear if that is labs-ci-cd or a bug in the applier.