You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, have an issue with project resource creation queue. Typically, after operator creation (Prometheus in my case) I need to create Custom Resources and couldn't because of operator's readiness itself. Looks like oc create is too fast. I have to run Ansible job at least twice. So I've tried to reorder resources in project definition but it will not help in all the cases cause order is not the same as dependencies. So nice to have here (suppose project-resources.yml) some loop to retry of resource creation. Not sure if it should be immediate retry with some timeout or registering new 'failed' array and run it again after main loop.
OCP: 3.11.117
ansible 2.6.17
python version = 2.7.5
Ansible exception: [short-server-name] fatal: [localhost]: FAILED! => {"changed": false, "cmd": "/home/jenkins/workspace/../local/bin311/oc --server= [https://ocp-master.short-server-name.mycompany.com|https://ocp-master.short-server-name.mycompany.com/] --token=**** apply -f - -n xyz-monitoring", "msg": "error: unable to recognize \"STDIN\": no matches for kind \"Prometheus\" in version \"monitoring.coreos.com/v1\"", "rc": 1, "stderr": "error: unable to recognize \"STDIN\": no matches for kind \"Prometheus\" in version \"monitoring.coreos.com/v1\"\n", "stderr_lines": ["error: unable to recognize \"STDIN\": no matches for kind \"Prometheus\" in version \"monitoring.coreos.com/v1\""], "stdout": "", "stdout_lines": []}
The text was updated successfully, but these errors were encountered:
Hi there, have an issue with project resource creation queue. Typically, after operator creation (Prometheus in my case) I need to create Custom Resources and couldn't because of operator's readiness itself. Looks like
oc create
is too fast. I have to run Ansible job at least twice. So I've tried to reorder resources in project definition but it will not help in all the cases cause order is not the same as dependencies. So nice to have here (suppose project-resources.yml) some loop to retry of resource creation. Not sure if it should be immediate retry with some timeout or registering new 'failed' array and run it again after main loop.OCP: 3.11.117
ansible 2.6.17
python version = 2.7.5
Ansible exception:
[short-server-name] fatal: [localhost]: FAILED! => {"changed": false, "cmd": "/home/jenkins/workspace/../local/bin311/oc --server= [https://ocp-master.short-server-name.mycompany.com|https://ocp-master.short-server-name.mycompany.com/] --token=**** apply -f - -n xyz-monitoring", "msg": "error: unable to recognize \"STDIN\": no matches for kind \"Prometheus\" in version \"monitoring.coreos.com/v1\"", "rc": 1, "stderr": "error: unable to recognize \"STDIN\": no matches for kind \"Prometheus\" in version \"monitoring.coreos.com/v1\"\n", "stderr_lines": ["error: unable to recognize \"STDIN\": no matches for kind \"Prometheus\" in version \"monitoring.coreos.com/v1\""], "stdout": "", "stdout_lines": []}
The text was updated successfully, but these errors were encountered: