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:
David Vallee Delisle 2021-07-20 17:35:45 -04:00
parent a14513292f
commit 4c3b1ef276
1 changed files with 1 additions and 1 deletions

View File

@ -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