Issue #522
closed
Changing relative URL doesn't remove old URL.
Description
Description of problem:
If a repo is published over http/https and the relative URL is later changed and the repo republished, the old relative URL still exists (although not everything published it still there, seems like only the listing files and the folders are left).
Version-Release number of selected component (if applicable):
2.4.0
How reproducible:
Easily
Steps to Reproduce:
1. Create repo with relative URL RHEL
2. pulp-admin rpm repo publish run --repo-id RHEL
3. pulp-admin rpm repo update --relative-url RedHat --repo-id RHEL
4. pulp-admin rpm repo publish run --repo-id RHEL
5. Check the available folders at <server>/pulp/repos
Actual results:
Both folders RHEL and RedHat exist.
Expected results:
Only the RedHat folder should remain.
Additional info:
+ This bug was cloned from Bugzilla Bug #1141252 +
- Related to Issue #671: On sync and delete, relative urls conflict with relative urls of deleted repos added
- Status changed from NEW to MODIFIED
- Assignee set to amacdona@redhat.com
- Severity changed from Medium to 2. Medium
- Status changed from MODIFIED to 5
- Platform Release set to 2.6.1
- Status changed from 5 to 6
verified
[root@qe-blade-13 ~]# rpm -qa pulp-server
pulp-server-2.6.1-1.el6.noarch
[root@qe-blade-13 ~]#
- Status changed from 6 to NEW
I am seeing this issue using 2.6.3-1.
If I update a relative-url then republish the repo, the old directory is still there, but empty.
- Triaged changed from Yes to No
Sending this back to triage to match its NEW state.
- Triaged changed from No to Yes
- Assignee deleted (
amacdona@redhat.com)
- Platform Release changed from 2.6.1 to 2.6.5
This one was not fixed by https://github.com/pulp/pulp_rpm/pull/648 as I originally thought it would be, but it can be fixed using the same machinery. It just needs to be called on update as well as delete.
- Platform Release changed from 2.6.5 to 2.6.6
- Platform Release deleted (
2.6.6)
This is still an issue in 2.8.2 as well.
- Has duplicate Issue #1946: pulp-admin rpm repo update --relative-url doesn't clean up after itself added
+1 - still a problem in 2.8.3. I'd love to see this get sorted because I'm not really sure how to clean it up manually in the mean time.
- Status changed from NEW to CLOSED - WONTFIX
Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.
Also available in: Atom
PDF