-
Bug
-
Resolution: Done
-
Blocker
-
omr-v2.0.0
-
False
-
None
-
False
-
-
-
Critical
Description
OMR 2.0 installation fails to task 'Create necessary directory for sqlite data'
Build
registry-proxy.engineering.redhat.com/rh-osbs/openshift-mirror-registry-rhel8:v2.0.0-9
ENV
$ podman version
Client: Podman Engine
Version: 4.9.4-dev
API Version: 4.9.4-dev
Go Version: go1.21.7 (Red Hat 1.21.7-1.module+el8.10.0+21318+5ea197f8)
Built: Wed Feb 21 12:47:22 2024
OS/Arch: linux/amd64
$ uname -a
Linux quay-omr-rhel-50 4.18.0-553.el8_10.x86_64 #1 SMP Fri May 10 15:19:13 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/redhat-release
Red Hat Enterprise Linux release 8.10 (Ootpa)
Reproduced steps
1. Using OMR 2.0 setup quay
./mirror-registry install --initUser quay --initPassword password --quayRoot /home/cloud-user/omrtest/config --sqliteStorage /home/cloud-user/omrtest/database --quayStorage /home/cloud-user/omrtest/storage --quayHostname 10.0.0.0 --sslCert ssl.cert --sslKey ssl.key -v
The dir /home/cloud-user/omrtest/database is not existed before installation
Actual results
Above issues logs:
TASK [mirror_appliance : Create necessary directory for sqlite data] *********** 08-16 10:13:06.016 [0;31mfatal: [cloud-user@quay-omr-rhel-50]: FAILED! => {"msg": "Invalid become method specified, could not find matching plugin: 'containers.podman.podman_unshare'. Use `ansible-doc -t become -l` to list available plugins."}[0m 08-16 10:13:06.016 08-16 10:13:06.016 PLAY RECAP ********************************************************************* 08-16 10:13:06.016 [0;31mcloud-user@quay-omr-rhel-50[0m : [0;32mok=26 [0m [0;33mchanged=14 [0m unreachable=0 [0;31mfailed=1 [0m [0;36mskipped=8 [0m rescued=0 ignored=0 08-16 10:13:06.016 08-16 10:13:06.575 time="2024-08-15 22:13:06" level=error msg="An error occurred: exit status 2"
journalctl logs
$ journalctl -f -- Logs begin at Tue 2024-08-13 16:46:20 EDT. -- Aug 15 22:48:57 quay-omr-rhel-47 podman[3933418]: 1:M 16 Aug 2024 02:48:57.976 * Running mode=standalone, port=6379. Aug 15 22:48:57 quay-omr-rhel-47 podman[3933418]: 1:M 16 Aug 2024 02:48:57.976 # Server initialized Aug 15 22:48:57 quay-omr-rhel-47 podman[3933418]: 1:M 16 Aug 2024 02:48:57.976 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. Aug 15 22:48:57 quay-omr-rhel-47 podman[3933418]: 1:M 16 Aug 2024 02:48:57.976 * Ready to accept connections Aug 15 22:48:58 quay-omr-rhel-47 platform-python[3933620]: ansible-ansible.builtin.file Invoked with path=/home/cloud-user/omrtest/storage state=directory recurse=True force=False follow=True modification_time_format=%Y%m%d%H%M.%S access_time_format=%Y%m%d%H%M.%S unsafe_writes=False _original_basename=None _diff_peek=None src=None modification_time=None access_time=None mode=None owner=None group=None seuser=None serole=None selevel=None setype=None attributes=None Aug 15 22:48:58 quay-omr-rhel-47 platform-python[3933756]: ansible-ansible.posix.acl Invoked with path=/home/cloud-user/omrtest/storage entity=1001 etype=user permissions=wx state=present follow=True default=False recursive=False recalculate_mask=default use_nfsv4_acls=False entry=None Aug 15 22:48:59 quay-omr-rhel-47 sshd[3931374]: pam_unix(sshd:session): session closed for user cloud-user Aug 15 22:48:59 quay-omr-rhel-47 systemd[1]: session-70.scope: Succeeded. Aug 15 22:48:59 quay-omr-rhel-47 systemd-logind[683]: Session 70 logged out. Waiting for processes to exit. Aug 15 22:48:59 quay-omr-rhel-47 systemd-logind[683]: Removed session 70.