redhat-cop / casl-ansible

Ansible automation for Managing OpenShift Container Platform clusters
Apache License 2.0
121 stars 82 forks source link

openshift-applier eating errors #184

Closed sherl0cks closed 6 years ago

sherl0cks commented 6 years ago

the following is being reported as changed, not error in the playbook execution

TASK [casl-ansible/roles/openshift-applier : Create OpenShift objects based on template with params for 'ci-cd-builds : jenkins-slave-ansible'] ***
changed: [localhost] => {"changed": true, 
"cmd": "oc process  --local   -f  /home/jholmes/Code/Labs/labs-ci-cd/inventory/../openshift-templates/jenkins-slave-pod/template.json -n labs-ci-cdpr-127 --param-file=/home/jholmes/Code/Labs/labs-ci-cd/inventory/../params/jenkins-slave-ansible/build | oc apply -n labs-ci-cdpr-127 -f -", 
"delta": "0:00:00.827367", 
"end": "2018-02-14 21:09:39.740216",
 "failed_when_result": false, "msg": "non-zero return code",
"rc": 1, "start": "2018-02-14 21:09:38.912849", 
"stderr": "Error from server (NotFound): namespaces \"labs-ci-cdpr-127\" not found\nError from server (NotFound): namespaces \"labs-ci-cdpr-127\" not found\nError from server (NotFound): namespaces\"labs-ci-cdpr-127\" not found",
 "stderr_lines": ["Error from server (NotFound): namespaces \"labs-ci-cdpr-127\" not found", "Error from server (NotFound): namespaces \"labs-ci-cdpr-127\" not found", "Error from server (NotFound): namespaces \"labs-ci-cdpr-127\" not found"], "stdout": "", "stdout_lines": []
}
oybed commented 6 years ago

@etsauer can you please take a look? I believe this is due to the newly introduced "NotFound" condition - i.e.: as commented here: https://github.com/redhat-cop/casl-ansible/pull/152#discussion_r163594798

etsauer commented 6 years ago

@sherl0cks @oybed opened PR #185. please test.