Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-5529

[OMR] podman volumes are still created when enable --pgStorage and --quayStorage in local installation mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • omr-v1.3.5
    • OMR
    • False
    • None
    • False
    • 0

      Description of problem:

      When install OMR 1.3.5 locally, enable --pgStorage and --quayStorage attribtues, podman volumes are still created. It doesn't make sense.

      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. check test environment before installing

      # tree OMR_TEST/
      OMR_TEST/
      ├── postgresql
      ├── quay_root
      └── quay_storage
      3 directories, 0 files
      
      # podman volume ls
      #  

      2. Install OMR 1.3.5 locally with  --pgStorage and --quayStorage attribtues

      $ /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 --pgStorage=/home/ec2-user/OMR_TEST/postgresql --quayStorage=/home/ec2-user/OMR_TEST/quay_storage
      ...........
      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=54   changed=32   unreachable=0    failed=0    skipped=13   rescued=0    ignored=0   INFO[2023-05-18 13:42:49] Quay installed successfully, config data is stored in /home/ec2-user/OMR_TEST/quay_root 
      INFO[2023-05-18 13:42:49] Quay is available at https://ec2-44-215-107-133.compute-1.amazonaws.com:8443 with credentials (init, 12345678)  

      3. check podman volume and direcotries set by --pgStorage and --quayStorage attribtues

      $ tree /home/ec2-user/OMR_TEST
      /home/ec2-user/OMR_TEST
      ├── postgresql
      │   └── userdata
      │       ├── base
      │       │   ├── 1
      │       │   │   ├── 112
      │       │   │   ├── 113
      │       │   │   ├── 12182
      │       │   │   ├── 12182_fsm
      .........
      │       ├── postmaster.opts
      │       └── postmaster.pid
      ├── quay_root
      │   ├── quay-config
      │   │   ├── config.yaml
      │   │   ├── openssl.cnf
      │   │   ├── ssl.cert
      │   │   ├── ssl.csr
      │   │   └── ssl.key
      │   └── quay-rootCA
      │       ├── rootCA.key
      │       └── rootCA.pem
      └── quay_storage33 directories, 2242 files
      
      
      
      $ 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       11 hours ago        Created                                    silly_driscoll
      79933af62042  brew.registry.redhat.io/rh-osbs/openshift-mirror-registry-rhel8:v1.3.5  /bin/bash       11 hours ago        Created                                    amazing_bouman
      2b70a04dea8b  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  b1bdc4e4050c-infra
      b626471f18fa  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
      3d41058cc0ff  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
      bf2bf96f3115  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       74843cc1a51e63637e82372ac2795f6e0bcd5ecad9f1deae941cef7e0524e0a0
      local       801d7235af7b9c2c792837e52a680020c63575466e1c1d53e1e6da74111715e8
      local       948cd03fbd2a19ad6c2f1cada81917362f8bce6771554d90574b4d92270f0f80
      local       fe6612d51d2d1a3adbd85d1b6d322b0b2cb62e4caa2726db5cc27e1f8babc75e
      local       pg-storage
      local       quay-storage

      Expected results:

      When install with --pgStorage and --quayStorage attribtues, the podman volumes should not be created. 

            Unassigned Unassigned
            rhwhu Weihua Hu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: