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

Quay 3.8.0 config editor guide need to update to add env "QUAY_DISTRIBUTED_STORAGE_PREFERENCE" when enabling storage replication

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Critical
    • None
    • quay-v3.8.0
    • documentation
    • None
    • 0

    Description

      Description:

      Now in Quay 3.8.0 when enabled "Enable Storage Replication" with quay config editor, and after clicking the button "reconfigure quay", the new quay and mirror pods are failed to start, the reason is Quay and Mirror POD expect to see env variable "QUAY_DISTRIBUTED_STORAGE_PREFERENCE" is set, but quay config editor doesn't support this point now, here need to update quay docs to guide quay customers to update the QuayRegistry manually to have this env variable, see the example below.

      Docs: https://access.redhat.com/documentation/en-us/red_hat_quay/3/html-single/manage_red_hat_quay/index#using-the-config-tool 

      Quay Image: quay-operator-bundle-container-v3.8.0-122

      Config Editor to enable "Enable Storage Replication"

      Error Message after new Quay and Mirror POD are crashed.

      Running init script '/quay-registry/conf/init/nginx_conf_create.sh'
      Running init script '/quay-registry/conf/init/supervisord_conf_create.sh'
      Running init script '/quay-registry/conf/init/zz_boot.sh'
      Traceback (most recent call last):
        File "/quay-registry/./boot.py", line 15, in <module>
          from app import app
        File "/quay-registry/app.py", line 325, in <module>
          raise Exception(
      Exception: Missing storage preference, did you perhaps forget to define QUAY_DISTRIBUTED_STORAGE_PREFERENCE variable? 

      Example to add the env variable "QUAY_DISTRIBUTED_STORAGE_PREFERENCE":

       spec:
        components:
          - kind: clair
            managed: true
          - kind: postgres
            managed: true
          - kind: objectstorage
            managed: false
          - kind: redis
            managed: true
          - kind: horizontalpodautoscaler
            managed: true
          - kind: route
            managed: true
          - kind: mirror
            managed: true
            overrides:
              env:
                - name: QUAY_DISTRIBUTED_STORAGE_PREFERENCE
                  value: local_us
          - kind: monitoring
            managed: false
          - kind: tls
            managed: true
          - kind: quay
            managed: true
            overrides:
              env:
                - name: QUAY_DISTRIBUTED_STORAGE_PREFERENCE
                  value: local_us
          - kind: clairpostgres
            managed: true

      Attachments

        Issue Links

          Activity

            People

              rhn-support-stevsmit Steven Smith
              lzha1981 luffy zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: