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

Quay 3.13 Operator deploy Quay was failed at app-upgrade-job with managed Storage Component

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • quay-v3.13.0
    • quay
    • False
    • Hide

      None

      Show
      None
    • False

      Description:

      This is an issue found in Quay 3.13, when deploy Quay with Quay Operator with managed Storage Component, Quay App_upgrade job was failed with error message, pls review this issue.

      TypeError: {}init{}() missing 4 required positional arguments: 'hostname', 'access_key', 'secret_key', and 'bucket_name'

      Note: This issue is not existed with Quay 3.12.2 with the same OCP/ODF Cluster

      Quay: quay-operator-bundle-container-v3.13.0-14

      oc get pod
      NAME                                      READY   STATUS                  RESTARTS        AGE
      quay-operator.v3.13.0-57966567c4-cbrc6    1/1     Running                 0               5h53m
      quay313-clair-app-b54f74c99-9zmkj         1/1     Running                 3 (2m17s ago)   2m39s
      quay313-clair-app-b54f74c99-jpfxz         1/1     Running                 2 (2m26s ago)   2m27s
      quay313-clair-postgres-66fb5467b8-z4sqq   1/1     Running                 1 (2m16s ago)   2m40s
      quay313-quay-app-upgrade-s9q74            0/1     CrashLoopBackOff        4 (61s ago)     2m40s
      quay313-quay-database-79575d6f-dfdv2      1/1     Running                 0               2m40s
      quay313-quay-mirror-7bbd7c5776-cq6mn      0/1     Init:CrashLoopBackOff   4 (71s ago)     2m40s
      quay313-quay-mirror-7bbd7c5776-g7wmb      0/1     Init:CrashLoopBackOff   4 (48s ago)     2m25s
      quay313-quay-redis-85546cdfc8-ngwwk       1/1     Running                 0               2m40s 
      oc logs quay313-quay-app-upgrade-s9q74
         __   __
        /  \ /  \     ______   _    _     __   __   __
       / /\ / /\ \   /  __  \ | |  | |   /  \  \ \ / /
      / /  / /  \ \  | |  | | | |  | |  / /\ \  \   /
      \ \  \ \  / /  | |__| | | |__| | / ____ \  | |
       \ \/ \ \/ /   \_  ___/  \____/ /_/    \_\ |_|
        \__/ \__/      \ \__
                        \___\ by Red Hat
       Build, Store, and Distribute your Containers
      
      
      Startup timestamp: 
      Thu Sep 26 08:55:49 UTC 2024
      
      
      Entering migration mode to version: head
      Traceback (most recent call last):
        File "/app/bin/alembic", line 8, in <module>
          sys.exit(main())
        File "/app/lib/python3.9/site-packages/alembic/config.py", line 641, in main
          CommandLine(prog=prog).main(argv=argv)
        File "/app/lib/python3.9/site-packages/alembic/config.py", line 631, in main
          self.run_cmd(cfg, options)
        File "/app/lib/python3.9/site-packages/alembic/config.py", line 608, in run_cmd
          fn(
        File "/app/lib/python3.9/site-packages/alembic/command.py", line 403, in upgrade
          script.run_env()
        File "/app/lib/python3.9/site-packages/alembic/script/base.py", line 583, in run_env
          util.load_python_file(self.dir, "env.py")
        File "/app/lib/python3.9/site-packages/alembic/util/pyfiles.py", line 95, in load_python_file
          module = load_module_py(module_id, path)
        File "/app/lib/python3.9/site-packages/alembic/util/pyfiles.py", line 113, in load_module_py
          spec.loader.exec_module(module)  # type: ignore
        File "<frozen importlib._bootstrap_external>", line 850, in exec_module
        File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
        File "data/migrations/env.py", line 13, in <module>
          from app import app
        File "/quay-registry/app.py", line 247, in <module>
          storage = Storage(app, chunk_cleanup_queue, instance_keys, config_provider, ip_resolver)
        File "/quay-registry/storage/__init__.py", line 62, in __init__
          self.state = self.init_app(
        File "/quay-registry/storage/__init__.py", line 71, in init_app
          storages[location] = get_storage_driver(
        File "/quay-registry/storage/__init__.py", line 48, in get_storage_driver
          return driver_class(context, **parameters)
      TypeError: __init__() missing 4 required positional arguments: 'hostname', 'access_key', 'secret_key', and 'bucket_name' 

              jonathankingfc Jonathan King (Inactive)
              lzha1981 luffy zhang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: