Bug 1482559

Summary: [UPDATES] Error response from daemon: No such image: openstack-haproxy-docker:2017-08-16.1
Product: Red Hat OpenStack Reporter: Yurii Prokulevych <yprokule>
Component: openstack-tripleo-heat-templatesAssignee: Sofer Athlan-Guyot <sathlang>
Status: CLOSED ERRATA QA Contact: Yurii Prokulevych <yprokule>
Severity: high Docs Contact:
Priority: high    
Version: 12.0 (Pike)CC: aschultz, bperkins, mandreou, mbracho, mbultel, mburns, morazi, rhel-osp-director-maint, sathlang, sclewis, tvignaud
Target Milestone: betaKeywords: Triaged
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-7.0.3-0.20171023134947.8da5e1f.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-13 21:53:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yurii 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 1 Yurii 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

Comment 2 mathieu bultel 2017-10-06 15:39:52 UTC
Needs A+ and cherry pick, so moving on on_dev

Comment 4 Yurii Prokulevych 2017-11-07 09:51:37 UTC
Update tasks present in THT package 
openstack-tripleo-heat-templates-7.0.3-0.20171024200823.el7ost.noarch

Comment 8 errata-xmlrpc 2017-12-13 21:53:35 UTC
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