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

Validator errors out on Swift storage setup

    XMLWordPrintable

Details

    • Bug
    • Status: New
    • Major
    • Resolution: Unresolved
    • quay-v3.6.4
    • None
    • config-tool
    • False
    • None
    • False
    • Quay Enterprise
    • 0

    Description

      For the following setup both the config tool and the validator return a 404:

      DISTRIBUTED_STORAGE_CONFIG: 
          swift: 
              - SwiftStorage
              - auth_url: http://172.24.50.50/identity
                auth_version: "3"
                os_options: 
                  project_domain_name: default
                  project_id: b529462399bd42dd9ed98cc1b0a2b380
                  project_name: alt_demo
                  tenant_id: bbc05f4820ed4826a6642d2e82f6cdfc
                  user_domain_id: default
                  user_domain_name: Default
                storage_path: /datastorage/registry
                swift_container: quay
                swift_password: PASSWORD_HERE
                swift_user: admin
      

      However, when I ignore validation, Quay starts normally and the images are successfully pushed to the backend storage:

      storagereplication stdout | 2022-03-05 10:22:07,210 [161] [DEBUG] [swiftclient] Versionless auth_url - using http://172.24.50.50/identity/v3 as endpoint
      storagereplication stdout | 2022-03-05 10:22:07,210 [161] [DEBUG] [keystoneclient.auth.identity.v3.base] Making authentication request to http://172.24.50.50/identity/v3/auth/tokens
      storagereplication stdout | 2022-03-05 10:22:07,211 [161] [DEBUG] [urllib3.connectionpool] Starting new HTTP connection (1): 172.24.50.50:80
      storagereplication stdout | 2022-03-05 10:22:07,223 [161] [DEBUG] [urllib3.connectionpool] http://172.24.50.50:80 "POST /identity/v3/auth/tokens HTTP/1.1" 201 3396
      storagereplication stdout | 2022-03-05 10:22:07,224 [161] [DEBUG] [keystoneclient.auth.identity.v3.base] {"token": {"methods": ["password"], "user": {"domain": {"id": "default", "name": "Default"}, "id": "bbc05f4820ed4826a6642d2e82f6cdfc", "name": "admin", "password_expires_at": null}, "audit_ids": ["QJC3kOmCSSu98kgeHQ0rSg"], "expires_at": "2022-03-05T11:22:07.000000Z", "issued_at": "2022-03-05T10:22:07.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "b529462399bd42dd9ed98cc1b0a2b380", "name": "alt_demo"}, "is_domain": false, "roles": [{"id": "397a2be4d85a4a5eb76541c2174f6dfe", "name": "admin"}, {"id": "006f2eb09d62466abe02ac66bc0fa52f", "name": "reader"}, {"id": "035525085c8343fea9db091d3c7e51bf", "name": "member"}], "catalog": [{"endpoints": [{"id": "78218bb4cb41417e8c3cca166488dcdc", "interface": "admin", "region_id": "RegionOne", "url": "http://172.24.50.50/identity", "region": "RegionOne"}, {"id": "a9e4654668e44faba5b9eec638558b45", "interface": "public", "region_id": "RegionOne", "url": "http://172.24.50.50/identity", "region": "RegionOne"}], "id": "2cc1b655076c470b97cbe30bcc061aff", "type": "identity", "name": "keystone"}, {"endpoints": [{"id": "521db1934bf845d498d1cdcdb3f9caf1", "interface": "public", "region_id": "RegionOne", "url": "http://172.24.50.50/placement", "region": "RegionOne"}], "id": "2f059575776e4fbe9a2b18010ecb8501", "type": "placement", "name": "placement"}, {"endpoints": [{"id": "30be1a5e5d184014babf279b6da6bd54", "interface": "admin", "region_id": "RegionOne", "url": "http://172.24.50.50:8080", "region": "RegionOne"}, {"id": "944a3fc75fd24ca395a444d38ba76323", "interface": "public", "region_id": "RegionOne", "url": "http://172.24.50.50:8080/v1/AUTH_b529462399bd42dd9ed98cc1b0a2b380", "region": "RegionOne"}], "id": "472dd0e22a1548cca2b5e909eea8f30a", "type": "object-store", "name": "swift"}, {"endpoints": [{"id": "e5af306949fc4840b88760b9b6676910", "interface": "public", "region_id": "RegionOne", "url": "http://172.24.50.50/volume/v3/b529462399bd42dd9ed98cc1b0a2b380", "region": "RegionOne"}], "id": "87d9035b3f67472282c8f66e94015dab", "type": "volumev3", "name": "cinderv3"}, {"endpoints": [{"id": "5b1c64218e144eeaae28883056149095", "interface": "public", "region_id": "RegionOne", "url": "http://172.24.50.50/image", "region": "RegionOne"}], "id": "ac38597d88e142e6b5f8ff5b25060efc", "type": "image", "name": "glance"}, {"endpoints": [{"id": "da2a81b0f72c498cbce7559aba279e79", "interface": "public", "region_id": "RegionOne", "url": "http://172.24.50.50/compute/v2.1", "region": "RegionOne"}], "id": "d05c5ba0e250499ca0aad2dc734149f8", "type": "compute", "name": "nova"}, {"endpoints": [{"id": "43ff4d61fb5a493da4f22c871aa2edc6", "interface": "public", "region_id": "RegionOne", "url": "http://172.24.50.50/volume/v3/b529462399bd42dd9ed98cc1b0a2b380", "region": "RegionOne"}], "id": "e0128f6ae38c4dd791524024fba5b012", "type": "block-storage", "name": "cinder"}, {"endpoints": [{"id": "5d56acfce76746d69959484898194773", "interface": "public", "region_id": "RegionOne", "url": "http://172.24.50.50:9696/", "region": "RegionOne"}], "id": "ee905b1b930a403697a43eca564323e5", "type": "network", "name": "neutron"}, {"endpoints": [{"id": "5a8479effc4b47b6a5ef2d05a528c8be", "interface": "public", "region_id": "RegionOne", "url": "http://172.24.50.50/compute/v2/b529462399bd42dd9ed98cc1b0a2b380", "region": "RegionOne"}], "id": "f92e9bb3af22412791a102925b729de7", "type": "compute_legacy", "name": "nova_legacy"}]}}
      storagereplication stdout | 2022-03-05 10:22:07,226 [161] [DEBUG] [urllib3.connectionpool] Starting new HTTP connection (1): 172.24.50.50:8080
      storagereplication stdout | 2022-03-05 10:22:07,274 [161] [DEBUG] [swiftclient] REQ: curl -i http://172.24.50.50:8080/v1/AUTH_b529462399bd42dd9ed98cc1b0a2b380/quay/datastorage/registry/sha256/c3/c3e9013d5bef0e91465c18b5e086292930e0dc991fb2635f9ccbcbb4d631b35d -X PUT -H "X-Auth-Token: gAAAAABiIznP7ktX..."
      storagereplication stdout | 2022-03-05 10:22:07,274 [161] [DEBUG] [swiftclient] RESP STATUS: 201 Created
      storagereplication stdout | 2022-03-05 10:22:07,274 [161] [DEBUG] [swiftclient] RESP HEADERS: {'Content-Type': 'text/html; charset=UTF-8', 'Content-Length': '0', 'Etag': '2a33a760b89296691c782a791bc20aaf', 'Last-Modified': 'Sat, 05 Mar 2022 10:22:08 GMT', 'X-Trans-Id': 'txc026ffc4f78543998340f-00622339cf', 'X-Openstack-Request-Id': 'txc026ffc4f78543998340f-00622339cf', 'Date': 'Sat, 05 Mar 2022 10:22:07 GMT'}
      

      The debug logs from the validation tool do not actually show what went wrong and what request is the config tool doing, so I cannot debug exactly why a 404 is returned.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-ibazulic Ivan Bazulic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: