]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
container: force rm --storage on ExecStartPre
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 12 Nov 2020 10:34:41 +0000 (11:34 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 16 Nov 2020 15:38:40 +0000 (10:38 -0500)
commit5ba7824c55e4a5d6732208859293ac3f47bb54a2
tree75090c1f2c739ebb724131baa897952f76ca1910
parentc5f7343a2f696ab3bfef77e735eafdeae4e4883b
container: force rm --storage on ExecStartPre

This is a workaround to avoid error like following:
```
Error: error creating container storage: the container name "ceph-mgr-magna022" is already in use by "4a5f674e113f837a0cc561dea5d2cd55d16ca159a647b7794ab06c4c276ef701"
```

that doesn't seem to be 100% reproducible but it shows up after a
reboot. The only workaround we came up with at the moment is to run
`podman rm --storage <container>` before starting it.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1887716
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
15 files changed:
roles/ceph-crash/templates/ceph-crash.service.j2
roles/ceph-grafana/templates/grafana-server.service.j2
roles/ceph-iscsi-gw/templates/rbd-target-api.service.j2
roles/ceph-iscsi-gw/templates/rbd-target-gw.service.j2
roles/ceph-iscsi-gw/templates/tcmu-runner.service.j2
roles/ceph-mds/templates/ceph-mds.service.j2
roles/ceph-mgr/templates/ceph-mgr.service.j2
roles/ceph-mon/templates/ceph-mon.service.j2
roles/ceph-nfs/templates/ceph-nfs.service.j2
roles/ceph-node-exporter/templates/node_exporter.service.j2
roles/ceph-osd/templates/ceph-osd.service.j2
roles/ceph-prometheus/templates/alertmanager.service.j2
roles/ceph-prometheus/templates/prometheus.service.j2
roles/ceph-rbd-mirror/templates/ceph-rbd-mirror.service.j2
roles/ceph-rgw/templates/ceph-radosgw.service.j2