Bug 2173671
Summary: | [Pulp-3] Repair API cannot fix\re-download the docker repo content completely | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sayan Das <saydas> |
Component: | Pulp | Assignee: | satellite6-bugs <satellite6-bugs> |
Status: | CLOSED ERRATA | QA Contact: | visawant |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 6.13.0 | CC: | ahumbe, dalley, dkliban, ggainey, osousa, rchan, shwsingh |
Target Milestone: | 6.14.0 | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | pulp-container-2.14.6-1, pulp-container-2.15.1-1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-11-08 14:18:33 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Sayan Das
2023-02-27 15:35:29 UTC
Is this a regression from 6.12? Thanks! Not a regression for sure. My answer remains same as https://bugzilla.redhat.com/show_bug.cgi?id=2173692#c3 Verified Satellite & package version: ---------------------------- satellite-installer-6.14.0.5-1.el8sat.noarch satellite-maintain-0.0.2-1.el8sat.noarch satellite-6.14.0-2.el8sat.noarch satellite-cli-6.14.0-2.el8sat.noarch python39-pulp-container-2.14.6-1.el8pc.noarch python39-pulp-container-2.14.6-1.el8pc.noarch Steps performed: ---------------- 1. Create product (name- Containers) and repository (type- docker)- # hammer product create --name Containers --organization "Default Organization" # hammer repository create --name "rhel8/toolbox" --docker-upstream-name "rhel8/toolbox" --content-type docker --url https://registry.redhat.io --upstream-username <kerberos username> --upstream-password <kerberos password> --docker-tags-whitelist "8.7-5" --download-policy immediate --product Containers --organization "Default Organization" 2. Sync status from Sat UI- Added Docker tags: 1 Total steps: 32/32 -------------------------------- Associating Content: 18/18 Downloading Artifacts: 12/12 Downloading tag list: 1/1 Processing Tags: 1/1 Un-Associating Content: 0/0 3. Delete the artifacts- # du -sh /var/lib/pulp/media/artifact/ 556M /var/lib/pulp/media/artifact/ # rm -rf /var/lib/pulp/media/artifact/* 4. Go to Satellite UI Content --> Products --> Containers --> Repositories --> rhel8/toolbox --> Select Action dropdown --> Sync the repo Sync failed but was able to get some data in pulp # file /var/lib/pulp/media/artifact/*/* /var/lib/pulp/media/artifact/48/fd57131d1a3ccda35d72ca802a44ced559941d9fe5ee160dbe3df0414e7cb3: ASCII text 5. Go to Satellite UI Content --> Products --> Containers --> Repositories --> rhel8/toolbox --> Select Action dropdown --> Verify Content Checksum Verify Content Checksum from Satellite web-UI or Invoke the Repair API # curl --cert /etc/foreman/client_cert.pem --key /etc/foreman/client_key.pem -H "Content-Type: application/json" -X POST https://`hostname -f`/pulp/api/v3/repair/ | json_reformat % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 67 100 67 0 0 1488 0 --:--:-- --:--:-- --:--:-- 1488 { "task": "/pulp/api/v3/tasks/60247332-91bd-4ad6-8225-dccf328c2678/" } # curl --cert /etc/foreman/client_cert.pem --key /etc/foreman/client_key.pem -H "Content-Type: application/json" -X GET https://`hostname -f`/pulp/api/v3/tasks/60247332-91bd-4ad6-8225-dccf328c2678/ | json_reformat % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 870 100 870 0 0 21219 0 --:--:-- --:--:-- --:--:-- 21219 { "pulp_href": "/pulp/api/v3/tasks/60247332-91bd-4ad6-8225-dccf328c2678/", "pulp_created": "2023-07-06T10:16:46.862202Z", "state": "running", "name": "pulpcore.app.tasks.repository.repair_all_artifacts", "logging_cid": "d79f26f447774f7eb33eef48f3552ddc", "started_at": "2023-07-06T10:16:46.888009Z", "finished_at": null, "error": null, "worker": "/pulp/api/v3/workers/cdf1d423-79a1-42f0-84a3-321e41801e93/", "parent_task": null, "child_tasks": [ ], "task_group": null, "progress_reports": [ { "message": "Identify missing units", "code": "repair.missing", "state": "running", "total": null, "done": 16, "suffix": null }, { "message": "Identify corrupted units", "code": "repair.corrupted", "state": "running", "total": null, "done": 0, "suffix": null }, { "message": "Repair corrupted units", "code": "repair.repaired", "state": "running", "total": null, "done": 11, "suffix": null } ], "created_resources": [ ], "reserved_resources_record": [ ] } Observation: ------------ Repair API is able to download files from Upstream # file /var/lib/pulp/media/artifact/*/* /var/lib/pulp/media/artifact/01/65232f07e945f1c1831eebb8c42e5695f80d47d7c3d787af20752c89333276: ASCII text, with very long lines, with no line terminators /var/lib/pulp/media/artifact/48/fd57131d1a3ccda35d72ca802a44ced559941d9fe5ee160dbe3df0414e7cb3: ASCII text /var/lib/pulp/media/artifact/5d/88a016637781e6d3eeb22c15c788ce1cc572e2dbb7bad4935d37a775c252d9: gzip compressed data, original size 169271808 /var/lib/pulp/media/artifact/62/9545c824752b6d75f7f22a73b6c7fcba9413b6017f2f67f58494a958bcd4ce: ASCII text, with very long lines, with no line terminators /var/lib/pulp/media/artifact/64/554374912209545e580ebabc0c025363b6982d1fbffb00c50edfeea18e79b9: gzip compressed data, original size 212109824 /var/lib/pulp/media/artifact/6d/2cf55f7908bf17bd221297c8cff9750fad3187c3eb102d1c3f72a208efbf0b: gzip compressed data, original size 235748864 /var/lib/pulp/media/artifact/70/2f3a622329ec2d54c1bf3c13fa094c422d48abaad700a2e055c3b77bea15c0: UTF-8 Unicode text, with very long lines, with no line terminators /var/lib/pulp/media/artifact/7f/060f344d579611663e84ea94d89d9372d7431e3e56e11a19e704207d5576e9: ASCII text, with very long lines, with no line terminators /var/lib/pulp/media/artifact/9a/394c72313c9bcac63dc8980018582d90ece7ae65d03940e6d7e9b8d4cb884d: gzip compressed data, original size 264029696 /var/lib/pulp/media/artifact/a5/d805d6872a1693a518e623b95182f115915c37671f70c1b13eb136e930bfe4: gzip compressed data, original size 204123648 /var/lib/pulp/media/artifact/ac/88d64d7b415280e8c1221725a8455917b99711b754a5981d3460fa9fdf40f9: UTF-8 Unicode text, with very long lines, with no line terminators /var/lib/pulp/media/artifact/b1/45dc70f6c036069d549762f39055162cac12b414e9e502fd0d4b3331a0f5eb: gzip compressed data, original size 171049472 /var/lib/pulp/media/artifact/b9/2727ef7443d73bb77323e5a969bf02187286fccf53930e83dc82be60a36529: gzip compressed data, original size 214139392 /var/lib/pulp/media/artifact/c6/25ce0354e96c43d4bfca9cb0a3ed8373b0707980f152582f731e61808df9bd: ASCII text, with very long lines, with no line terminators /var/lib/pulp/media/artifact/d0/898311a8acc605593edbc1f37171f42aab926fffd820a0f0460e062a4f6717: UTF-8 Unicode text, with very long lines, with no line terminators /var/lib/pulp/media/artifact/d4/d59e4eb38ff5eda9a9f6255575abc64501adb78153f5788bf580b1034d4f8d: gzip compressed data, original size 186984960 /var/lib/pulp/media/artifact/d5/2583c79ff512b040d97ca0ce70b61b9c496e674b789f8857efbcf93727e4b0: UTF-8 Unicode text, with very long lines, with no line terminators Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Satellite 6.14 security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:6818 |