paunch: podman exec shouldn't be run if the container isn't active
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Emilien Macchi |
Bug Description
Originally reported here: https:/
Description of problem:
Running stack update(noop or for scaling out) fails while running podman exec --user=root keystone /usr/bin/
"Running container: keystone_
"$ podman ps -a --filter label=container
"$ podman exec --user=root keystone /usr/bin/
"b'cannot exec into container that is not running: container state improper\\n'",
"Error running ['podman', 'exec', '--user=root', 'keystone', '/usr/bin/
"stderr: cannot exec into container that is not running: container state improper",
"Running container: nova_db_sync",
"Skipping existing container: nova_db_sync",
"Running container: keystone_cron",
"Skipping existing container: keystone_cron"
Version-Release number of selected component (if applicable):
openstack-
How reproducible:
100%
Steps to Reproduce:
1. Deploy overcloud
2. Re-run overcloud deploy
Actual results:
Fails while running podman exec --user=root keystone /usr/bin/
Expected results:
No failure.
As you can see, we only use "podman ps -a" to find the container name and then run the "podman exec". We should make sure the container is actually running first.
Changed in tripleo: | |
milestone: | none → train-3 |
assignee: | nobody → Emilien Macchi (emilienm) |
importance: | Undecided → High |
status: | New → Triaged |
Changed in tripleo: | |
assignee: | Emilien Macchi (emilienm) → Luke Short (ekultails) |
Changed in tripleo: | |
assignee: | Luke Short (ekultails) → Bogdan Dobrelya (bogdando) |
Changed in tripleo: | |
assignee: | Bogdan Dobrelya (bogdando) → Luke Short (ekultails) |
Changed in tripleo: | |
assignee: | Emilien Macchi (emilienm) → Cédric Jeanneret (cjeanner) |
Changed in tripleo: | |
assignee: | Cédric Jeanneret (cjeanner) → Emilien Macchi (emilienm) |
Changed in tripleo: | |
assignee: | Emilien Macchi (emilienm) → Cédric Jeanneret (cjeanner) |
Changed in tripleo: | |
assignee: | Cédric Jeanneret (cjeanner) → Emilien Macchi (emilienm) |
Fix proposed to branch: master /review. opendev. org/675494
Review: https:/