Skip to content

Commit

Permalink
Bug 2093040: Unable to start toolbox on RHCOS using podman 4.0
Browse files Browse the repository at this point in the history
The `toolbox` command reports that the container is in an unknown
state `created`. Addressed the issue by adding the state 'created'
in the conditional statements of the toolbox state.

Resolves JIRA: https://issues.redhat.com/browse/OCPBUGSM-45019
Bugzilla : https://bugzilla.redhat.com/show_bug.cgi?id=2093040
  • Loading branch information
aaradhak committed Jun 13, 2022
1 parent 4af6180 commit 3d91d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rhcos-toolbox
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ run() {
fi

local state=$(container_state)
if [[ "${state}" == configured ]] || [[ "${state}" == exited ]] || [[ "${state}" == stopped ]]; then
if [[ "${state}" == configured ]] || [[ "${state}" == created ]] || [[ "${state}" == exited ]] || [[ "${state}" == stopped ]]; then
container_start
elif [[ "${state}" != running ]]; then
echo "Container '${TOOLBOX_NAME}' in unknown state: '$state'"
Expand Down

0 comments on commit 3d91d1b

Please sign in to comment.