nova_virtlogd_wrapper: trap "created" containers
When an host shutdown isn't graceful, virtlogd container is orphaned but in state "Created" (shown as "configured" in podman inspect). This prevents the recreation of new virtlogd container by the wrapper. Change-Id: If8356998818a8e0adc3c81f1fa10cb2f18a9a59f
This commit is contained in:
parent
a14513292f
commit
4c3b1ef276
|
@ -18,7 +18,7 @@ case ${CONTAINER_STATUS_SHORT} in
|
|||
Up | up | UP)
|
||||
echo "Container ${NAME} with id ${CONTAINER_ID} is already running!"
|
||||
;;
|
||||
Exited| exited| EXITED)
|
||||
Exited| exited| EXITED| Created| created| CREATED)
|
||||
echo "Removing orphaned ${NAME} container ${CONTAINER_ID}"
|
||||
$CLI stop ${CONTAINER_ID} || true
|
||||
$CLI rm -f ${CONTAINER_ID} || true
|
||||
|
|
Loading…
Reference in New Issue