Skip to content

Failure in api/5_package/container_registry_spec.rb | Package Container Registry pushes, pulls image to the registry and deletes image blob, manifest and tag

Full description

Package Container Registry pushes, pulls image to the registry and deletes image blob, manifest and tag

File path

./qa/specs/features/api/5_package/container_registry_spec.rb

Stack trace

Failure/Error: expect(job_log).to have_content '404 Not Found'
  expected to find text "404 Not Found" in "[0KRunning with gitlab-runner 14.10.0~beta.50.g1f2fe53e (1f2fe53e)[0;m [0K on green-2.private.runners-manager.gitlab.com/staging.gitlab.com QSS66EBB[0;m section_start:1650929117:resolve_secrets [0K[0K[36;1mResolving secrets[0;m[0;m section_end:1650929117:resolve_secrets [0Ksection_start:1650929117:prepare_executor [0K[0K[36;1mPreparing the \"docker+machine\" executor[0;m[0;m [0KUsing Docker executor with image dwdraju/alpine-curl-jq:latest ...[0;m [0KPulling docker image dwdraju/alpine-curl-jq:latest ...[0;m [0KUsing docker image sha256:7c023ba4e607efb3b524fa45f32fdef6bd2e0eac5d56e4d320dda6b2307be448 for dwdraju/alpine-curl-jq:latest with digest dwdraju/alpine-curl-jq@sha256:770e91cabcaa0cb66fa0f3627b1593b3b9f8f416fba893f473040e0071219272 ...[0;m section_end:1650929165:prepare_executor [0Ksection_start:1650929165:prepare_script [0K[0K[36;1mPreparing environment[0;m[0;m Running on runner-qss66ebb-project-7346745-concurrent-0 via runner-qss66ebb-private-1650929117-c4a8cc2e... section_end:1650929166:prepare_script [0Ksection_start:1650929166:get_sources [0K[0K[36;1mGetting source from Git repository[0;m[0;m [32;1m$ eval \"$CI_PRE_CLONE_SCRIPT\"[0;m [32;1mFetching changes with git depth set to 20...[0;m Initialized empty Git repository in /builds/gitlab-qa-sandbox-group/qa-test-2022-04-25-23-10-26-8d53c10f781d3b13/project-with-registry-api-f35d64dcd4db85f3/.git/ [32;1mCreated fresh repository.[0;m [32;1mChecking out 5dc17416 as master...[0;m [32;1mSkipping Git submodules setup[0;m [32;1m$ git remote set-url origin \"${CI_REPOSITORY_URL}\"[0;m section_end:1650929168:get_sources [0Ksection_start:1650929168:step_script [0K[0K[36;1mExecuting \"step_script\" stage of the job script[0;m[0;m [0KUsing docker image sha256:7c023ba4e607efb3b524fa45f32fdef6bd2e0eac5d56e4d320dda6b2307be448 for dwdraju/alpine-curl-jq:latest with digest dwdraju/alpine-curl-jq@sha256:770e91cabcaa0cb66fa0f3627b1593b3b9f8f416fba893f473040e0071219272 ...[0;m [32;1m$ token=$(curl -u \"$CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD\" \"https://$CI_SERVER_HOST/jwt/auth?service=container_registry&scope=repository:$CI_PROJECT_PATH:pull,push,delete\" | jq -r '.token')[0;m % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1306 100 1306 0 0 5532 0 --:--:-- --:--:-- --:--:-- 5557 [32;1m$ echo $token[0;m eyJhbGciOiJSUzI1NiIsImtpZCI6IjdTUzQ6QUI0STpSRE5IOlJIWkg6STJKVDpVU0hMOkxNQUg6Wk5ZRTpJT1UyOkZQVlE6SVczNDpKQ1ZOIiwidHlwIjoiSldUIn0.eyJhY2Nlc3MiOlt7InR5cGUiOiJyZXBvc2l0b3J5IiwibmFtZSI6ImdpdGxhYi1xYS1zYW5kYm94LWdyb3VwL3FhLXRlc3QtMjAyMi0wNC0yNS0yMy0xMC0yNi04ZDUzYzEwZjc4MWQzYjEzL3Byb2plY3Qtd2l0aC1yZWdpc3RyeS1hcGktZjM1ZDY0ZGNkNGRiODVmMyIsImFjdGlvbnMiOlsicHVsbCIsInB1c2giLCJkZWxldGUiXX1dLCJqdGkiOiI2ZDQ5ZjRlMS1mOTU0LTQzZTgtYTI2NC1iNTNiOTFjZmFmNzIiLCJhdWQiOiJjb250YWluZXJfcmVnaXN0cnkiLCJzdWIiOiJnaXRsYWItcWEiLCJpc3MiOiJvbW5pYnVzLWdpdGxhYi1pc3N1ZXIiLCJpYXQiOjE2NTA5MjkxNjgsIm5iZiI6MTY1MDkyOTE2MywiZXhwIjoxNjUwOTMwMDY4fQ.L9uiYu53bbidX9E2N6dLoD9Uya5XHNGo9VE9wuvWjT0ZJq8x0Fqen05l93zSYXvKj_dacz02u_96LQ4pYqC5STtwtuf8MG8DuK2RCra612t2YmUbkJSfgfEJvy91orowfW6NUmxKK692CQth2Buiw40y9rOq7HgmvSZWdEEyqq057XhoWMlM01DeY_S4Ru8l62rKYlhTYHU0cDzDCH7_EGb9MaVfo2AmtDjMKBUCLXbQfv9bf-Z_372Avw-8DHSojX1hMVJ3YtuKTG4fATJ-Ta0Uf4qi-TFPsh0onJUa6AyXHA0bk1EE2K3kcKqzoGnb7i4xLBPVRDkO95BM6dAgx2vaqvXcuLPplmjhHs-yqDDsjKLErNF3LJ1JAgCwuU6PBhPTNtnTiNbihlmPCSbekAulfm9tf047XdWmifbBzGM-RJTR9qBXQymqJ5FVuGsj8UnTOcKBveb97YLrLUpl5fJYDt0BmeDqicp_DwQ1D64WjaIkT7OnBXo2uUJSpTWN4FKV7q0lxoTcm892y7nGJQV7W7mKS0rAg2GiCyHbGbtzynU7K9qRN4wTJsGRYzU6CyajTKFXlIBFqKulv7WmtLh3qNcLugnyzmqKKL4IB-BpvMoFqO-FsZQvVOrcGYjDW5ZjE6MRvo37R8aonA-ZL7ZUn2bShRVW9rteG7aenlU [32;1m$ digest=$(curl -L -H \"Authorization: Bearer $token\" -H \"Accept: $MEDIA_TYPE\" \"https://$CI_REGISTRY/v2/$CI_PROJECT_PATH/manifests/master\" | jq -r \".layers[0].digest\")[0;m % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1787 100 1787 0 0 13806 0 --:--:-- --:--:-- --:--:-- 13852 [32;1m$ curl -L -X DELETE -H \"Authorization: Bearer $token\" -H \"Accept: $MEDIA_TYPE\" \"https://$CI_REGISTRY/v2/$CI_PROJECT_PATH/blobs/$digest\"[0;m % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 [32;1m$ curl -L --head -H \"Authorization: Bearer $token\" -H \"Accept: $MEDIA_TYPE\" \"https://$CI_REGISTRY/v2/$CI_PROJECT_PATH/blobs/$digest\"[0;m % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0HTTP/2 404 0 157 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 date: Mon, 25 Apr 2022 23:26:09 GMT content-type: application/json content-length: 157 docker-distribution-api-version: registry/2.0 gitlab-migration-path: new x-content-type-options: nosniff cf-cache-status: DYNAMIC expect-ct: max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\" report-to: {\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=PeZlPkZkSjwYD8owIW044B4GT%2Fvc%2BPZPEbrF1trHGSpUoCdQlueCcR6ptmtpBjL0FctdTTiLI68CMEgX4pueYCoOVSetq9jUbu6m1lP3%2Bglt9gvRZoHQ5YyDs9JHJ0NOeoadNbhQDbAAPn3s3A%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800} nel: {\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800} strict-transport-security: max-age=0; preload server: cloudflare cf-ray: 701ad78c2d63f1be-ATL [32;1m$ digest=$(curl -L -H \"Authorization: Bearer $token\" -H \"Accept: $MEDIA_TYPE\" \"https://$CI_REGISTRY/v2/$CI_PROJECT_PATH/manifests/master\" | jq -r \".config.digest\")[0;m % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1787 100 1787 0 0 12368 0 --:--:-- --:--:-- --:--:-- 12496 [32;1m$ curl -L -X DELETE -H \"Authorization: Bearer $token\" -H \"Accept: $MEDIA_TYPE\" \"https://$CI_REGISTRY/v2/$CI_PROJECT_PATH/manifests/$digest\"[0;m % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0{\"errors\":[{\"code\":\"MANIFEST_UNKNOWN\",\"message\":\"manifest unknown\"}]} 100 70 100 70 0 0 693 0 --:--:-- --:--:-- --:--:-- 700 [32;1m$ curl -L --head -H \"Authorization: Bearer $token\" -H \"Accept: $MEDIA_TYPE\" \"https://$CI_REGISTRY/v2/$CI_PROJECT_PATH/manifests/$digest\"[0;m % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0HTTP/2 404 0 287 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 date: Mon, 25 Apr 2022 23:26:09 GMT content-type: application/json content-length: 287 docker-distribution-api-version: registry/2.0 gitlab-migration-path: new x-content-type-options: nosniff cf-cache-status: DYNAMIC expect-ct: max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\" report-to: {\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=x3Pb1RAhG9YVGwy%2FHDJt1syg8RblaGuUvaqp0xLsejtLl%2FsySdVce4kbhWZHuOo0xZOAWcHdLL5s%2F%2B9VCOtOupmbr6F7%2FUnXrXbCyemeS6vr41%2BSa92aWkuWqXcfZ5e%2FgzYgmAy5UHHaB0vucg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800} nel: {\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800} strict-transport-security: max-age=0; preload server: cloudflare cf-ray: 701ad78edee363f2-ATL section_end:1650929169:step_script [0Ksection_start:1650929169:cleanup_file_variables [0K[0K[36;1mCleaning up project directory and file based variables[0;m[0;m section_end:1650929170:cleanup_file_variables [0K[32;1mJob succeeded[0;m"

First happened in https://ops.gitlab.net/gitlab-org/quality/staging/-/jobs/6918231.

Related test case: https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/348001.