Description
Description of problem:
Install OMR with podman volumes, then uninstall OMR, these podman volumes aren't removed totally.
Version-Release number of selected component (if applicable):
brew.registry.redhat.io/rh-osbs/openshift-mirror-registry-rhel8:v1.3.5-1
How reproducible:
1. Before install OMR with podman volumes, the status of test environment.
# podman volume ls # # tree OMR_TEST/ OMR_TEST/ 0 directories, 0 files
2 install OMR 1.3.5
$ /home/ec2-user/mirror-registry install --initPassword=12345678 --quayHostname=ec2-44-215-107-133.compute-1.amazonaws.com:8443 -v --quayRoot=/home/ec2-user/OMR_TEST/quay_root ......... TASK [mirror_appliance : Enable lingering for systemd user processes] ****************************************************************** skipping: [root@ip-10-0-9-203.ec2.internal]PLAY RECAP ***************************************************************************************************************************** root@ip-10-0-9-203.ec2.internal : ok=50 changed=30 unreachable=0 failed=0 skipped=17 rescued=0 ignored=0 INFO[2023-05-18 09:54:07] Quay installed successfully, config data is stored in /home/ec2-user/OMR_TEST/quay_root INFO[2023-05-18 09:54:07] Quay is available at https://ec2-44-215-107-133.compute-1.amazonaws.com:8443 with credentials (init, 12345678)
3. check some resources
$ tree /home/ec2-user/OMR_TEST /home/ec2-user/OMR_TEST ├── quay_root │ ├── quay-config │ │ ├── config.yaml │ │ ├── openssl.cnf │ │ ├── ssl.cert │ │ ├── ssl.csr │ │ └── ssl.key │ └── quay-rootCA │ ├── rootCA.key │ └── rootCA.pem $ podman ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 35a7cf99b71f brew.registry.redhat.io/rh-osbs/openshift-mirror-registry-rhel8:v1.3.4 /bin/bash 8 hours ago Created silly_driscoll 79933af62042 brew.registry.redhat.io/rh-osbs/openshift-mirror-registry-rhel8:v1.3.5 /bin/bash 7 hours ago Created amazing_bouman 5367ee822516 registry.access.redhat.com/ubi8/pause:8.7-6 infinity About a minute ago Up About a minute 0.0.0.0:8443->8443/tcp 0d4943dd5766-infra 8f7afcda27a3 registry.redhat.io/rhel8/postgresql-10:1-203.1669834630 run-postgresql About a minute ago Up About a minute 0.0.0.0:8443->8443/tcp quay-postgres 07088042841f registry.redhat.io/rhel8/redis-6:1-92.1669834635 run-redis About a minute ago Up About a minute 0.0.0.0:8443->8443/tcp quay-redis f66c9df8eff7 registry.redhat.io/quay/quay-rhel8:v3.8.7 registry About a minute ago Up About a minute 0.0.0.0:8443->8443/tcp quay-app $ podman volume ls DRIVER VOLUME NAME local 2ad11f340b9554616a6873928e416373914a02771ea7409f291ef77ef3483d07 local 711da18c2408ad4f4257aba1bd2ebd4d9997ec835e33624546bc3bec503fbc36 local c15f4497ce14af92487ef12001d3789a79296bea9ef3afa451538de9ee3b2d26 local d2cc605674cac3f25ef0df71ea76f85066832c5061633d8cbd38e03c55318530 local pg-storage local quay-storage
4. uninstall OMR 1.3.5
$ /home/ec2-user/mirror-registry uninstall -v --autoApprove --quayRoot=/home/ec2-user/OMR_TEST/quay_root ................. TASK [mirror_appliance : Just force systemd to reread configs (2.4 and above)] ********************************************************* ok: [root@ip-10-0-9-203.ec2.internal]PLAY RECAP ***************************************************************************************************************************** root@ip-10-0-9-203.ec2.internal : ok=10 changed=7 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 INFO[2023-05-18 09:55:42] Quay uninstalled successfully
5 check some resources
$ podman ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 35a7cf99b71f brew.registry.redhat.io/rh-osbs/openshift-mirror-registry-rhel8:v1.3.4 /bin/bash 8 hours ago Created silly_driscoll 79933af62042 brew.registry.redhat.io/rh-osbs/openshift-mirror-registry-rhel8:v1.3.5 /bin/bash 7 hours ago Created amazing_bouman- $ podman volume ls DRIVER VOLUME NAME local 2ad11f340b9554616a6873928e416373914a02771ea7409f291ef77ef3483d07 local 711da18c2408ad4f4257aba1bd2ebd4d9997ec835e33624546bc3bec503fbc36 local c15f4497ce14af92487ef12001d3789a79296bea9ef3afa451538de9ee3b2d26 local d2cc605674cac3f25ef0df71ea76f85066832c5061633d8cbd38e03c55318530 local quay-storage $ tree /home/ec2-user/OMR_TEST /home/ec2-user/OMR_TEST 0 directories, 0 files
Expected results:
podman volume "quay-storage" should be removed after uninstalling.