Bug 2243256
Summary: | Unable to sync repository of type docker after running reclaim-space | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Eric Nothen <enothen> |
Component: | Pulp | Assignee: | satellite6-bugs <satellite6-bugs> |
Status: | CLOSED ERRATA | QA Contact: | Shweta Singh <shwsingh> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.13.3 | CC: | dalley, dkliban, ggainey, ipanova, jrichards2, lmjachky, osousa, rchan, rlavi, sajha, shwsingh |
Target Milestone: | 6.15.0 | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | pulp-container-2.14.8-1, pulp-container-2.17.0-1,pulp-container-2.16.4 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2024-04-23 17:15:04 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
Eric Nothen
2023-10-11 12:32:32 UTC
The "Unauthorized" error in the 3rd line above suggests user/password could be wrong (which wouldn't explain how it sync'd the first time) so just in case, I'm creating a new repository with the same credentials:
[root@satellite ~]# hammer repository create --product "RHOSP16 Containers" --content-type docker \
> --download-policy on_demand \
> --upstream-username $username \
> --upstream-password $password \
> --url "https://registry.redhat.io" \
> --docker-upstream-name rhosp-rhel8/openstack-aodh-evaluator \
> --name aodh-evaluator
Repository created.
[root@satellite ~]#
And sync completes successfully:
[root@satellite ~]# hammer repository sync --product "RHOSP16 Containers" --name aodh-evaluator
[.............................................................................................................................................................................................................................................] [100%]
Added Docker tags: 89
Total steps: 1539/1539
--------------------------------
Associating Content: 1287/1287
Downloading Artifacts: 162/162
Downloading tag list: 1/1
Processing Tags: 89/89
Un-Associating Content: 0/0
[root@satellite ~]#
[root@satellite ~]# hammer --output json repository info --product "RHOSP16 Containers" --name aodh-evaluator | jq .Sync
{
"Status": "Success",
"Last Sync Date": "1 minute"
}
[root@satellite ~]#
And finally, deleting and recreating the repository without any other pulp hack in the middle does not fix the issue:
[root@satellite ~]# hammer repository delete --product "RHOSP16 Containers" --name aodh-base
Repository deleted.
[root@satellite ~]#
[root@satellite ~]# hammer repository create --product "RHOSP16 Containers" \
> --content-type docker \
> --download-policy on_demand \
> --upstream-username $username \
> --upstream-password $password \
> --url "https://registry.redhat.io" \
> --docker-upstream-name rhosp-rhel8/openstack-aodh-base \
> --name aodh-base
Repository created.
[root@satellite ~]#
[root@satellite ~]# hammer repository sync --product "RHOSP16 Containers" --name aodh-base
[............................................................................................................................................................................................................] [100%]
No content added.
Total steps: 1/90
--------------------------------
Associating Content: 0/0
Downloading Artifacts: 0/0
Downloading tag list: 1/1
Processing Tags: 0/89
Error: 'NoneType' object has no attribute 'file'
[root@satellite ~]#
The bugfix for pulp-container 2.14 has just been released: https://docs.pulpproject.org/pulp_container/en/2.14/changes.html https://pypi.org/project/pulp-container/2.14.8/ The Pulp upstream bug status is at closed. Updating the external tracker on this bug. All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST. Verified. Version Tested: Satellite 6.15.0 Snap 8 Verification Steps: 1. Create a custom product: 2. Create a docker repository inside the product. 3. Sync the repository and verify sync completes successfully. 4. Reclaim space on the repository. 6. Attempting to sync the repository again. Result: Repository gets synced successfully after reclaiming space. 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.15.0 release), 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-2024:2010 |