Issue #1247
closed
Updating the feed still publishes the repo to the old feed
Description
Created a repo with an invalid feed and tried to sync the repo. The sync failed. Now updated the repo to the correct feed and synced repo again. The relative path it published the repo to is still the old one.
[root@mgmt4 ~]#
[root@mgmt4 ~]# rpm -qa pulp-server
pulp-server-2.7.0-0.4.beta.el7.noarch
[root@mgmt4 ~]#
Steps
1. create a repo with
pulp-admin rpm repo create --repo-id rhel6 --feed n.redhat.com/content/dist/rhel/server/6/6.6/x86_64/ --feed-ca-cert CDN/cdn.redhat.com-chain.crt --feed-cert CDN/b655c0445cf57cef7e75ba574e48f26a.crt --feed-key CDN/b655c0445cf57cef7e75ba574e48f26a.key
2. Run repo sync
Repo sync fails
3. pulp-admin rpm repo update --repo-id rhel6 --feed https://cdn.redhat.com/content/dist/rhel/server/6/6.6/x86_64/os
Run repo sync
4. [root@mgmt4 ~]# ls l /var/lib/pulp/published/yum/https/repos/
total 4
-rw-r--r-. 1 apache apache 18 Sep 11 08:47 listing
drwxr-x---. 3 apache apache 34 Sep 11 08:47 n.redhat.com
drwxr-x---. 3 apache apache 31 Sep 10 12:10 repos
[root@mgmt4 ~]#
- Version set to 2.7.0 Beta
- Triaged changed from No to Yes
- Severity changed from 2. Medium to 1. Low
- Status changed from NEW to CLOSED - NOTABUG
This is the behavior that I would expect. The repo is published to its relative url, which is not related to the feed except that if a relative url is not specified at creation time, it defaults to the feed. Changing the relative url when we change the feed would be unexpected.
- Status changed from CLOSED - NOTABUG to NEW
After discussing this one further, we determined that there is still a mishandling of a typo in the feed. Updating a feed should not update the relative url if it exists, but the relative url should not default to the feed until the feed has been verified.
The behavior should be that a relative url does not default to the feed at create time. Instead, relative url is allowed to remain empty until publish time. At publish time, if there is not a relative url and the sync was successful, then the relative url defaults to the feed.
- 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