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

Update container image pull script to use new image naming scheme #126

Open
priteau opened this issue Jul 4, 2022 · 1 comment
Open
Assignees

Comments

@priteau
Copy link
Member

priteau commented Jul 4, 2022

See https://review.opendev.org/c/openstack/kolla-ansible/+/842709 for details.

TASK [bifrost : Starting bifrost deploy container] *********************************************************************************************************************************************************
fatal: [seed]: FAILED! => {"changed": true, "msg": "'Traceback (most recent call last):\\n  File \"/opt/kayobe/venvs/kolla-ansible/lib/python3.6/site-packages/docker/api/client.py\", line 268, in _raise_for_status\\n    response.raise_for_status()\\n  File \"/opt/kayobe/venvs/kolla-ansible/lib/python3.6/site-packages/requests/models.py\", line 960, in raise_for_status\\n    raise HTTPError(http_error_msg, response=self)\\nrequests.exceptions.HTTPError: 404 Client Error: Not Found for url: http+docker://localhost/v1.41/images/create?tag=master-centos-stream8&fromImage=192.168.33.5%3A4000%2Fopenstack.kolla%2Fbifrost-deploy\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n  File \"/tmp/ansible_kolla_docker_payload_jyq5mhl8/ansible_kolla_docker_payload.zip/ansible/modules/kolla_docker.py\", line 381, in main\\n  File \"/tmp/ansible_kolla_docker_payload_jyq5mhl8/ansible_kolla_docker_payload.zip/ansible/module_utils/kolla_docker_worker.py\", line 669, in start_container\\n    self.pull_image()\\n  File \"/tmp/ansible_kolla_docker_payload_jyq5mhl8/ansible_kolla_docker_payload.zip/ansible/module_utils/kolla_docker_worker.py\", line 451, in pull_image\\n    repository=image, tag=tag, stream=True\\n  File \"/opt/kayobe/venvs/kolla-ansible/lib/python3.6/site-packages/docker/api/image.py\", line 430, in pull\\n    self._raise_for_status(response)\\n  File \"/opt/kayobe/venvs/kolla-ansible/lib/python3.6/site-packages/docker/api/client.py\", line 270, in _raise_for_status\\n    raise create_api_error_from_http_exception(e)\\n  File \"/opt/kayobe/venvs/kolla-ansible/lib/python3.6/site-packages/docker/errors.py\", line 31, in create_api_error_from_http_exception\\n    raise cls(e, response=response, explanation=explanation)\\ndocker.errors.NotFound: 404 Client Error for http+docker://localhost/v1.41/images/create?tag=master-centos-stream8&fromImage=192.168.33.5%3A4000%2Fopenstack.kolla%2Fbifrost-deploy: Not Found (\"manifest for 192.168.33.5:4000/openstack.kolla/bifrost-deploy:master-centos-stream8 not found: manifest unknown: manifest unknown\")\\n'"}
@priteau priteau self-assigned this Jul 4, 2022
g0rgamesh added a commit that referenced this issue Sep 9, 2022
g0rgamesh added a commit that referenced this issue Sep 9, 2022
@priteau
Copy link
Member Author

priteau commented Dec 15, 2022

The updated pull script works for ubuntu-jammy (and probably for debian-bullseye), but doesn't work for Rocky since the distribution name is "Blue Onyx" for RL9.1.

For Rocky we should be using ansible_facts.distribution_major_version

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