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

Failed resources - creation retry #50

Open
asinkavets opened this issue Jul 18, 2019 · 0 comments
Open

Failed resources - creation retry #50

asinkavets opened this issue Jul 18, 2019 · 0 comments

Comments

@asinkavets
Copy link

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": []}

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