DescriptionYurii Prokulevych
2017-08-17 14:58:47 UTC
Description of problem:
=======================
Attempt to run minor update playbook for oc controllers fail:
ansible-playbook --module /usr/share/ansible-modules/ -b -i oc-hosts tmpconfig/tripleo-EqbcnY-config/update_steps_playbook.yaml --limit co
ntroller -vv
...omitted...
TASK [Delete old container image so latest is pulled] *************************************************************************************************************************************************************
task path: /home/stack/tmpconfig/tripleo-EqbcnY-config/Controller/update_tasks.yaml:4
fatal: [192.168.24.9]: FAILED! => {"changed": true, "cmd": ["docker", "rmi", "192.168.24.1:8787/rhosp12/openstack-haproxy-docker:2017-08-16.1"], "delta": "0:00:00.024980", "end": "2017-08-17 14:37:50.730261", "failed": true, "rc": 1, "start": "2017-08-17 14:37:50.705281", "stderr": "Error response from daemon: No such image: 192.168.24.1:8787/rhosp12/openstack-haproxy-docker:2017-08-16.1", "stderr_lines": ["Error response from daemon: No such image: 192.168.24.1:8787/rhosp12/openstack-haproxy-docker:2017-08-16.1"], "stdout": "", "stdout_lines": []}
to retry, use: --limit @/home/stack/tmpconfig/tripleo-EqbcnY-config/update_steps_playbook.retry
Indeed there are no such image, rather:
192.168.24.1:8787/rhosp12/openstack-haproxy-docker 2017-08-16.1 b07b35397bc8 24 hours ago 479.4 MB
192.168.24.1:8787/rhosp12/openstack-haproxy-docker 2017-08-08.4 bc00f7e9bb6b 8 days ago 478.3 MB
Version-Release number of selected component (if applicable):
=============================================================
openstack-tripleo-heat-templates-7.0.0-0.20170805163048.el7ost.noarch
Steps to Reproduce:
===================
1. Update uc
2. Setup latest repos on oc
3. Uploaded latest images to registry
4. Apply patches
5. Re-run initial deploy command with update_noop.yaml
6. Generate update playbook
7. Try to run minor update and limit run to oc controllers.
Actual results:
===============
Playbook run fails
Expected results:
=================
Minor updates succeeds
Comment 1Yurii Prokulevych
2017-08-18 06:43:01 UTC
Additional notes.
Tag '2017-08-16.1' is the latest image that has to replace existing one '2017-08-08.4'
Image with tag '2017-08-16.1' is not pulled to the oc nodes yet hence docker complains:
docker rmi 192.168.24.1:8787/rhosp12/openstack-nova-api-docker:2017-08-16.1
Error response from daemon: No such image: 192.168.24.1:8787/rhosp12/openstack-nova-api-docker:2017-08-16.1
Attempt to delete existing image '2017-08-08.4' fails cause there are containers using it:
docker rmi 192.168.24.1:8787/rhosp12/openstack-nova-api-docker:2017-08-08.4
Error response from daemon: conflict: unable to remove repository reference "192.168.24.1:8787/rhosp12/openstack-nova-api-docker:2017-08-08.4" (must force) - container 1c928c188a32 is using its referenced image ce4df25c4ff3
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHEA-2017:3462
Description of problem: ======================= Attempt to run minor update playbook for oc controllers fail: ansible-playbook --module /usr/share/ansible-modules/ -b -i oc-hosts tmpconfig/tripleo-EqbcnY-config/update_steps_playbook.yaml --limit co ntroller -vv ...omitted... TASK [Delete old container image so latest is pulled] ************************************************************************************************************************************************************* task path: /home/stack/tmpconfig/tripleo-EqbcnY-config/Controller/update_tasks.yaml:4 fatal: [192.168.24.9]: FAILED! => {"changed": true, "cmd": ["docker", "rmi", "192.168.24.1:8787/rhosp12/openstack-haproxy-docker:2017-08-16.1"], "delta": "0:00:00.024980", "end": "2017-08-17 14:37:50.730261", "failed": true, "rc": 1, "start": "2017-08-17 14:37:50.705281", "stderr": "Error response from daemon: No such image: 192.168.24.1:8787/rhosp12/openstack-haproxy-docker:2017-08-16.1", "stderr_lines": ["Error response from daemon: No such image: 192.168.24.1:8787/rhosp12/openstack-haproxy-docker:2017-08-16.1"], "stdout": "", "stdout_lines": []} to retry, use: --limit @/home/stack/tmpconfig/tripleo-EqbcnY-config/update_steps_playbook.retry Indeed there are no such image, rather: 192.168.24.1:8787/rhosp12/openstack-haproxy-docker 2017-08-16.1 b07b35397bc8 24 hours ago 479.4 MB 192.168.24.1:8787/rhosp12/openstack-haproxy-docker 2017-08-08.4 bc00f7e9bb6b 8 days ago 478.3 MB Version-Release number of selected component (if applicable): ============================================================= openstack-tripleo-heat-templates-7.0.0-0.20170805163048.el7ost.noarch Steps to Reproduce: =================== 1. Update uc 2. Setup latest repos on oc 3. Uploaded latest images to registry 4. Apply patches 5. Re-run initial deploy command with update_noop.yaml 6. Generate update playbook 7. Try to run minor update and limit run to oc controllers. Actual results: =============== Playbook run fails Expected results: ================= Minor updates succeeds