When running the the upgrade_tasks and post_upgrade_tasks for ceph during FFU upgrade from queens to train will if ceph-mon-${HOSTNAME} does not match the containers name during system_upgrade on the bootstrap node.
In a setup integrated with IdM this can be a FQDN, while the default and supported container name for ceph uses shortnames.
Here the output:
2020-10-23 04:31:40,455 p=5846 u=mistral n=ansible | failed: [controller-0 -> 192.168.24.33] (item=nobackfill) => {"ansible_loop_var": "item", "changed": true, "cmd": "docker exec -u root ceph-mon-${HOSTNAME} ceph osd set nobackfill", "delta": "0:00:00.025770", "end": "2020-10-23 04:31:40.395243", "item": "nobackfill", "msg": "non-zero return code", "rc": 1, "start": "2020-10-23 04:31:40.369473", "stderr": "Error response from daemon: No such container: ceph-mon-controller-0.redhat.local", "stderr_lines": ["Error response from daemon: No such container: ceph-mon-controller-0.redhat.local"], "stdout": "", "stdout_lines": []}
2020-10-23 04:31:40,658 p=5846 u=mistral n=ansible | failed: [controller-0 -> 192.168.24.33] (item=norebalance) => {"ansible_loop_var": "item", "changed": true, "cmd": "docker exec -u root ceph-mon-${HOSTNAME} ceph osd set norebalance", "delta": "0:00:00.028196", "end": "2020-10-23 04:31:40.612835", "item": "norebalance", "msg": "non-zero return code", "rc": 1, "start": "2020-10-23 04:31:40.584639", "stderr": "Error response from daemon: No such container: ceph-mon-controller-0.redhat.local", "stderr_lines": ["Error response from daemon: No such container: ceph-mon-controller-0.redhat.local"], "stdout": "", "stdout_lines": []}
2020-10-23 04:31:40,860 p=5846 u=mistral n=ansible | failed: [controller-0 -> 192.168.24.33] (item=nodeep-scrub) => {"ansible_loop_var": "item", "changed": true, "cmd": "docker exec -u root ceph-mon-${HOSTNAME} ceph osd set nodeep-scrub", "delta": "0:00:00.025621", "end": "2020-10-23 04:31:40.821615", "item": "nodeep-scrub", "msg": "non-zero return code", "rc": 1, "start": "2020-10-23 04:31:40.795994", "stderr": "Error response from daemon: No such container: ceph-mon-controller-0.redhat.local", "stderr_lines": ["Error response from daemon: No such container: ceph-mon-controller-0.redhat.local"], "stdout": "", "stdout_lines": []}
Fix proposed to branch: master /review. opendev. org/761930
Review: https:/