-
Bug
-
Resolution: Done-Errata
-
Blocker
-
omr-v2.0.0
-
False
-
None
-
False
-
-
-
Critical
Description
OMR Upgrade fails due to cannot create dir for --sqliteStorage flags
Reproduced steps
1. using OMR 1.3 setup quay
2. upgrade quay by OMR 2.0
./mirror-registry upgrade --quayRoot /home/cloud-user/omrtest/config --pgStorage /home/cloud-user/omrtest/database --sqliteStorage /home/cloud-user/omrtest/newdatabase --quayStorage /home/cloud-user/omrtest/storage --quayHostname 10.0.0.0 -v
The dir /home/cloud-user/omrtest/newdatabase is not existed before upgrade
Actual results
Above issues logs:
TASK [mirror_appliance : Run db-to-sqlite command via podman container] ********************************************************************************************************************************************************************** fatal: [cloud-user@quay-omr-rhel-47]: FAILED! => {"changed": true, "cmd": ["podman", "run", "--name", "quay-db-migration", "--pod", "quay-pod", "-v", "/home/cloud-user/omrtest/newdatabase:/data:Z", "--umask=013", "quay.io/quay/db-to-sqlite:latest", "postgresql://user:imZ7XVvf4wy9cfSMhhi8PEhP@localhost/quay", "quay_sqlite.db", "--all", "-p"], "delta": "0:00:00.078795", "end": "2024-06-18 03:02:01.159777", "msg": "non-zero return code", "rc": 125, "start": "2024-06-18 03:02:01.080982", "stderr": "Error: statfs /home/cloud-user/omrtest/newdatabase: no such file or directory", "stderr_lines": ["Error: statfs /home/cloud-user/omrtest/newdatabase: no such file or directory"], "stdout": "", "stdout_lines": []} ...ignoring
Quay container fails to start, journalctl show:
– The start-up result is done. Jun 18 03:09:11 quay-omr-rhel-47 podman[300571]: Error: statfs /home/cloud-user/omrtest/newdatabase: no such file or directory Jun 18 03:09:11 quay-omr-rhel-47 systemd[4859]: quay-app.service: Main process exited, code=exited, status=125/n/a Jun 18 03:09:11 quay-omr-rhel-47 systemd[4859]: quay-app.service: Failed with result 'exit-code'. – Subject: Unit failed |
- links to
-
RHBA-2024:5277 mirror registry for Red Hat OpenShift 2.0.0 container
- mentioned on