Bug #26694
Support one to one content url changes
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Description
RCM wants the ability to change content urls.
We would want to support this as long as the number of substitutions remain the same.
One of the proposed transforms is to go from something like:
/foo/$arch/$release/bar
to
/foo/$arch/$release/baz
This is a one to one change. We can support this but do not currently.
After every manifest import, we would need to detect that there was a change (by comparing the existing relative path to the new computed one), change the relative url on each repo, change the path in pulp, and finally trigger a distributor publish in pulp.
Associated revisions
History
#1
Updated by Partha Aji about 3 years ago
- Bugzilla link set to 1188316
#2
Updated by The Foreman Bot about 3 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/8094 added
#3
Updated by Andrew Kofink about 3 years ago
- Triaged changed from No to Yes
- Target version set to Katello 3.13.0
#4
Updated by Partha Aji about 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|fafb8f6bcf26cab8f6f66b4ae833a13b3aebe24f.
#5
Updated by Chris Roberts almost 3 years ago
- Target version changed from Katello 3.13.0 to Katello 3.12.0
#6
Updated by Chris Roberts almost 3 years ago
- Fixed in Releases Katello 3.12.0 added
Fixes #26694 - content-url updates on import (#8094)
RCM wants the ability to change content urls. We would want to
support this as long as the number of substitutions remain the same.
One of the proposed transforms is to go from something like:
/foo/$arch/$release/bar
to
/foo/$arch/$release/baz
This commit tries to achieve this. When an updated manifest with different
content urls gets uploaded these changes do the following
1) Track the changed content urls
2) Update the relative paths in repositories connected to this content
3) Refresh all the enabled repositories affected by this
4) Regenerate metadata for all the repos
5) Sync all the capsules associated to those repos