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

OMR 1.2.8 installation was failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • omr-v1.2.8
    • omr-v1.2.8
    • OMR
    • None
    • False
    • None
    • False
    • 0

      Description:

      This is an issue of OMR 1.2.8, when deploy OMR 1.2.8, the installation was failed with error message "ERROR! the playbook: install_mirror_appliance.yml could not be found"

      OMR Image: registry-proxy.engineering.redhat.com/rh-osbs/openshift-mirror-registry-rhel8:v1.2.8-1

      [ec2-user@ip-10-0-1-158 omr128]$ sudo ./mirror-registry --version   __   __
        /  \ /  \     ______   _    _     __   __   __
       / /\ / /\ \   /  __  \ | |  | |   /  \  \ \ / /
      / /  / /  \ \  | |  | | | |  | |  / /\ \  \   /
      \ \  \ \  / /  | |__| | | |__| | / ____ \  | |
       \ \/ \ \/ /   \_  ___/  \____/ /_/    \_\ |_|
        \__/ \__/      \ \__
                        \___\ by Red Hat
       Build, Store, and Distribute your Containersmirror-registry version v1.2.8
      
      
      [ec2-user@ip-10-0-1-158 omr128]$ sudo ./mirror-registry install --quayHostname quayomr.qe.devcluster.openshift.com --initPassword password --initUser quay -v --quayRoot /quayomr -v   __   __
        /  \ /  \     ______   _    _     __   __   __
       / /\ / /\ \   /  __  \ | |  | |   /  \  \ \ / /
      / /  / /  \ \  | |  | | | |  | |  / /\ \  \   /
      \ \  \ \  / /  | |__| | | |__| | / ____ \  | |
       \ \/ \ \/ /   \_  ___/  \____/ /_/    \_\ |_|
        \__/ \__/      \ \__
                        \___\ by Red Hat
       Build, Store, and Distribute your ContainersINFO[2022-10-20 06:49:46] Install has begun                            
      DEBU[2022-10-20 06:49:46] Ansible Execution Environment Image: quay.io/quay/mirror-registry-ee:latest 
      DEBU[2022-10-20 06:49:46] Pause Image: registry.access.redhat.com/ubi8/pause:8.6-21 
      DEBU[2022-10-20 06:49:46] Quay Image: registry.redhat.io/quay/quay-rhel8:v3.7.9 
      DEBU[2022-10-20 06:49:46] Redis Image: registry.redhat.io/rhel8/redis-6:1-78.1665590931 
      DEBU[2022-10-20 06:49:46] Postgres Image: registry.redhat.io/rhel8/postgresql-10:1-195.1665590956 
      INFO[2022-10-20 06:49:46] Found execution environment at /home/ec2-user/omr128/execution-environment.tar 
      INFO[2022-10-20 06:49:46] Loading execution environment from execution-environment.tar 
      DEBU[2022-10-20 06:49:46] Importing execution enviornment with command: /bin/bash -c sudo /usr/bin/podman image import \
                                              --change 'ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' \
                                              --change 'ENV HOME=/home/runner' \
                                              --change 'ENV container=oci' \
                                              --change 'ENTRYPOINT=["entrypoint"]' \
                                              --change 'WORKDIR=/runner' \
                                              --change 'EXPOSE=6379' \
                                              --change 'VOLUME=/runner' \
                                              --change 'CMD ["ansible-runner", "run", "/runner"]' \
                                              - quay.io/quay/mirror-registry-ee:latest < /home/ec2-user/omr128/execution-environment.tar 
      Getting image source signatures
      Copying blob 43df8a15ebb6 done  
      Copying config 921239c042 done  
      Writing manifest to image destination
      Storing signatures
      sha256:921239c0426dcd51616f25145758d9e023b612974aa6a7fdb8fa52eb64944c78
      INFO[2022-10-20 06:49:58] Detected an installation to localhost        
      INFO[2022-10-20 06:49:58] Did not find SSH key in default location. Attempting to set up SSH keys. 
      INFO[2022-10-20 06:49:58] Generating SSH Key                           
      Generating public/private rsa key pair.
      Your identification has been saved in /root/.ssh/quay_installer.
      Your public key has been saved in /root/.ssh/quay_installer.pub.
      The key fingerprint is:
      SHA256:oXaokMH3ZFLihTQgrBJJWlKPBlJCqa0h8gQ89r3HFeg root@ip-10-0-1-158.us-east-2.compute.internal
      The key's randomart image is:
      +---[RSA 2048]----+
      |@**o+.o .        |
      |*& +.= . .       |
      |=+B * + . .      |
      |B.o= * E o       |
      |+=o   B S        |
      |. .. + +         |
      |    . .          |
      |                 |
      |                 |
      +----[SHA256]-----+
      INFO[2022-10-20 06:49:59] Generated SSH Key at /root/.ssh/quay_installer 
      INFO[2022-10-20 06:49:59] Adding key to ~/.ssh/authorized_keys         
      INFO[2022-10-20 06:49:59] Successfully set up SSH keys                 
      INFO[2022-10-20 06:49:59] Attempting to set SELinux rules on /root/.ssh/quay_installer 
      INFO[2022-10-20 06:49:59] Found image archive at /home/ec2-user/omr128/image-archive.tar 
      INFO[2022-10-20 06:49:59] Detected an installation to localhost        
      INFO[2022-10-20 06:49:59] Unpacking image archive from /home/ec2-user/omr128/image-archive.tar 
      quay.tar
      redis.tar
      postgres.tar
      pause.tar
      INFO[2022-10-20 06:50:00] Loading pause image archive from pause.tar   
      DEBU[2022-10-20 06:50:00] Importing Pause with command: /bin/bash -c sudo /usr/bin/podman image import \
                                              --change 'ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' \
                                              --change 'ENV container=oci' \
                                              --change 'ENTRYPOINT=["sleep"]' \
                                              --change 'CMD=["infinity"]' \
                                              - registry.access.redhat.com/ubi8/pause:8.6-21 < pause.tar 
      Getting image source signatures
      Copying blob bd87c5e38685 done  
      Copying config 33b9a9339d done  
      Writing manifest to image destination
      Storing signatures
      sha256:33b9a9339d510a909dcfb71aef53ebfe6b23c701dc2a39b8a2b184c498edffa8
      INFO[2022-10-20 06:50:06] Loading redis image archive from redis.tar   
      DEBU[2022-10-20 06:50:06] Importing Redis with command: /bin/bash -c sudo /usr/bin/podman image import \
                                              --change 'ENV PATH=/opt/app-root/src/bin:/opt/app-root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' \
                                              --change 'ENV container=oci' \
                                              --change 'ENV STI_SCRIPTS_URL=image:///usr/libexec/s2i' \
                                              --change 'ENV STI_SCRIPTS_PATH=/usr/libexec/s2i' \
                                              --change 'ENV APP_ROOT=/opt/app-root' \
                                              --change 'ENV HOME=/var/lib/redis' \
                                              --change 'ENV PLATFORM=el8' \
                                              --change 'ENV REDIS_VERSION=6' \
                                              --change 'ENV CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/redis' \
                                              --change 'ENV REDIS_PREFIX=/usr' \
                                              --change 'ENV REDIS_CONF=/etc/redis.conf' \
                                              --change 'ENTRYPOINT=["container-entrypoint"]' \
                                              --change 'USER=1001' \
                                              --change 'WORKDIR=/opt/app-root/src' \
                                              --change 'EXPOSE=6379' \
                                              --change 'VOLUME=/var/lib/redis/data' \
                                              --change 'CMD ["run-redis"]' \
                                              - registry.redhat.io/rhel8/redis-6:1-78.1665590931 < redis.tar 
      Getting image source signatures
      Copying blob 582044a00901 done  
      Copying config 51945abf13 done  
      Writing manifest to image destination
      Storing signatures
      sha256:51945abf130bc982045778818aaa18f7860919ea0ea42c2397b9865f35fc153d
      INFO[2022-10-20 06:50:18] Loading postgres image archive from postgres.tar 
      DEBU[2022-10-20 06:50:18] Importing Postgres with command: /bin/bash -c sudo /usr/bin/podman image import \
                                              --change 'ENV PATH=/opt/app-root/src/bin:/opt/app-root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' \
                                              --change 'ENV STI_SCRIPTS_URL=image:///usr/libexec/s2i' \
                                              --change 'ENV STI_SCRIPTS_PATH=/usr/libexec/s2i' \
                                              --change 'ENV APP_ROOT=/opt/app-root' \
                                              --change 'ENV APP_DATA=/opt/app-root' \
                                              --change 'ENV HOME=/var/lib/pgsql' \
                                              --change 'ENV PLATFORM=el8' \
                                              --change 'ENV POSTGRESQL_VERSION=10' \
                                              --change 'ENV POSTGRESQL_PREV_VERSION=9.6' \
                                              --change 'ENV PGUSER=postgres' \
                                              --change 'ENV CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/postgresql' \
                                              --change 'ENTRYPOINT=["container-entrypoint"]' \
                                              --change 'WORKDIR=/opt/app-root/src' \
                                              --change 'EXPOSE=5432' \
                                              --change 'USER=26' \
                                              --change 'CMD ["run-postgresql"]' \
                                              - registry.redhat.io/rhel8/postgresql-10:1-195.1665590956 < postgres.tar 
      Getting image source signatures
      Copying blob affef8946959 done  
      Copying config 637c81ead3 done  
      Writing manifest to image destination
      Storing signatures
      sha256:637c81ead3932944269e2254748a4386c9dceafb193fcd8d5b427ff2ec7fa772
      INFO[2022-10-20 06:50:33] Loading Quay image archive from quay.tar     
      DEBU[2022-10-20 06:50:33] Importing Quay with command: /bin/bash -c sudo /usr/bin/podman image import \
                                              --change 'ENV PATH=/.local/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' \
                                              --change 'ENV RED_HAT_QUAY=true' \
                                              --change 'ENV PYTHON_VERSION=3.8' \
                                              --change 'ENV PYTHON_ROOT=/usr/local/lib/python3.8' \
                                              --change 'ENV PYTHONUNBUFFERED=1' \
                                              --change 'ENV PYTHONIOENCODING=UTF-8' \
                                              --change 'ENV LANG=en_US.utf8' \
                                              --change 'ENV QUAYDIR=/quay-registry' \
                                              --change 'ENV QUAYCONF=/quay-registry/conf' \
                                              --change 'ENV QUAYRUN=/quay-registry/conf' \
                                              --change 'ENV QUAYPATH=.' \
                                              --change 'ENV QUAY_VERSION=v3.7.9' \
                                              --change 'ENV container=oci' \
                                              --change 'ENTRYPOINT=["dumb-init","--","/quay-registry/quay-entrypoint.sh"]' \
                                              --change 'WORKDIR=/quay-registry' \
                                              --change 'EXPOSE=7443' \
                                              --change 'EXPOSE=8080' \
                                              --change 'EXPOSE=8443' \
                                              --change 'VOLUME=/conf/stack' \
                                              --change 'VOLUME=/datastorage' \
                                              --change 'VOLUME=/tmp' \
                                              --change 'VOLUME=/var/log' \
                                              --change 'USER=1001' \
                                              --change 'CMD ["registry"]' \
                                              - registry.redhat.io/quay/quay-rhel8:v3.7.9 < quay.tar 
      Getting image source signatures
      Copying blob 1f272a7f3b71 done  
      Copying config 197dea380e done  
      Writing manifest to image destination
      Storing signatures
      sha256:197dea380e0157260cd94c39a38c79593336ca8b3e6ae921e5351bedeb105221
      INFO[2022-10-20 06:50:58] Attempting to set SELinux rules on image archive 
      INFO[2022-10-20 06:50:58] Running install playbook. This may take some time. To see playbook output run the installer with -v (verbose) flag. 
      INFO[2022-10-20 06:50:58] Detected an installation to localhost        
      DEBU[2022-10-20 06:50:58] Running command: sudo podman run --rm --interactive --tty --workdir /runner/project --net host -v /home/ec2-user/omr128/image-archive.tar:/runner/image-archive.tar -v /root/.ssh/quay_installer:/runner/env/ssh_key -e RUNNER_OMIT_EVENTS=False -e RUNNER_ONLY_FAILED_EVENTS=False -e ANSIBLE_HOST_KEY_CHECKING=False -e ANSIBLE_CONFIG=/runner/project/ansible.cfg -e ANSIBLE_NOCOLOR=false --quiet --name ansible_runner_instance quay.io/quay/mirror-registry-ee:latest ansible-playbook -i root@ip-10-0-1-158.us-east-2.compute.internal, --private-key /runner/env/ssh_key -e "init_user=quay init_password=password quay_image=registry.redhat.io/quay/quay-rhel8:v3.7.9 quay_version=v3.7.9 redis_image=registry.redhat.io/rhel8/redis-6:1-78.1665590931 postgres_image=registry.redhat.io/rhel8/postgresql-10:1-195.1665590956 pause_image=registry.access.redhat.com/ubi8/pause:8.6-21 quay_hostname=quayomr.qe.devcluster.openshift.com:8443 local_install=true quay_root=/quayomr" install_mirror_appliance.yml   
      ERROR! the playbook: install_mirror_appliance.yml could not be found
      ERRO[2022-10-20 06:51:04] An error occurred: exit status 1   

       

       

            Unassigned Unassigned
            lzha1981 luffy zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: