OpenStack Minor update fails while removing old container images.

Solution Verified - Updated -

Issue

During the Overcloud update, the following failure is observed:

TASK [Get a list of container using Mariadb image] *****************************
Tuesday 15 October 2019  00:24:09 +1100 (0:00:00.626)       0:03:54.846 ********
changed: [controller-0] => {"changed": true, "cmd": "docker ps -a -q -f 'ancestor=ab31788f18db\n6f481454f0e5'", "delta": "0:00:0
0.057514", "end": "2019-10-15 00:24:10.243508", "rc": 0, "start": "2019-10-15 00:24:10.185994", "stderr": "", "stderr_line
s": [], "stdout": "", "stdout_lines": []}

TASK [Remove any container using the same Mariadb image] ***********************
Tuesday 15 October 2019  00:24:10 +1100 (0:00:00.578)       0:03:55.424 ********

TASK [Remove previous Mariadb images] ******************************************
Tuesday 15 October 2019  00:24:10 +1100 (0:00:00.082)       0:03:55.507 ********
fatal: [controller-0]: FAILED! => {"changed": true, "cmd": "docker rmi -f ab31788f18db\n6f481454f0e5", "delta": "0:00:00.057039"
, "end": "2019-10-15 00:24:10.902", "msg": "non-zero return code", "rc": 127, "start": "2019-10-15 00:24:10.845", "s
tderr": "Error response from daemon: conflict: unable to delete ab31788f18db (cannot be forced) - image is being used by r
unning container ab31788f18db\n/bin/sh: line 1:6f481454f0e5: command not found", "stderr_lines": ["Error response from da
emon: conflict: unable to delete ab31788f18db (cannot be forced) - image is being used by running container ab31788f18db",
 "/bin/sh: line 1: 6f481454f0e5: command not found"], "stdout": "", "stdout_lines": []}


PLAY RECAP *********************************************************************
controller-0                     : ok=49   changed=19   unreachable=0    failed=1
controller-1                     : ok=2    changed=0    unreachable=0    failed=0
controller-2                     : ok=2    changed=0    unreachable=0    failed=0

Environment

Red Hat OpenStack Platform 13
Red Hat OpenStack Platform 14
Red Hat OpenStack Platform 15

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content