Project

General

Profile

Actions

Bug #22637

closed

Updating repo link on Products page of WebUI doesn't upgrade backend

Added by Lachlan Simpson almost 7 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
Normal
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Found in Releases:

Description

Katello 3.5.1, Foreman 1.16.0, Centos 7.4

My epel repo didn't sync. I went to the repo and discovered it no longer existed:

http://fedora.uberglobalmirror.com/pub/epel/7/x86_64/

(I've just discovered they removed the /pub, but that's a disgression).

Through the web, I've changed that product's single repository URL in the URL field:

[root@vmpr-res-utils log]# hammer repository info --id 5
ID:                 5
Name:               epel
Label:              epel
Organization:       Peter MacCallum Cancer Centre
Red Hat Repository: no
Content Type:       yum
Checksum Type:      sha256
Mirror on Sync:     yes
URL:                http://fedora.melbourneitmirror.net/epel/7/x86_64/
Publish Via HTTP:   yes
Published At:       http://vmpr-res-utils.unix.petermac.org.au/pulp/repos/Peter_MacCallum_Cancer_Centre/Library/custom/Extra_Packages_for_Enterprise_Linux_7_-_x86_64/epel/
Relative Path:      Peter_MacCallum_Cancer_Centre/Library/custom/Extra_Packages_for_Enterprise_Linux_7_-_x86_64/epel
Download Policy:    immediate
Product:            
    ID:   2
    Name: Extra Packages for Enterprise Linux 7
GPG Key:            

Sync:               
    Status:
Created:            2016/06/02 12:14:58
Updated:            2018/02/20 23:28:33
Content Counts:     
    Packages:       12295
    Package Groups: 210
    Errata:         4089

But when I sync - or when the over night cron job sync happens - it's still trying to hit the old URL. See here in /var/log/messages for an example:

Feb 21 10:36:53 vmpr-res-utils pulp: nectar.downloaders.threaded:INFO: Download failed: Download of http://fedora.uberglobalmirror.com/pub/epel/7/x86_64/repodata/repomd.xml failed with code 404: Not Found
Feb 21 10:36:54 vmpr-res-utils pulp: requests.packages.urllib3.connectionpool:INFO: [d922b13f] Starting new HTTP connection (1): fedora.uberglobalmirror.com
Feb 21 10:36:54 vmpr-res-utils pulp: nectar.downloaders.threaded:INFO: [d922b13f] Download failed: Download of http://fedora.uberglobalmirror.com/pub/epel/7/x86_64/ failed with code 404: Not Found
Feb 21 10:36:54 vmpr-res-utils pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [d922b13f] Downloading metadata from http://fedora.uberglobalmirror.com/pub/epel/7/x86_64/.
Feb 21 10:36:54 vmpr-res-utils pulp: requests.packages.urllib3.connectionpool:INFO: Starting new HTTP connection (1): fedora.uberglobalmirror.com
Feb 21 10:36:54 vmpr-res-utils pulp: nectar.downloaders.threaded:INFO: Download failed: Download of http://fedora.uberglobalmirror.com/pub/epel/7/x86_64/repodata/repomd.xml failed with code 404: Not Found
Feb 21 10:36:55 vmpr-res-utils pulp: requests.packages.urllib3.connectionpool:INFO: Starting new HTTP connection (1): fedora.uberglobalmirror.com
Feb 21 10:36:55 vmpr-res-utils pulp: nectar.downloaders.threaded:INFO: Download failed: Download of http://fedora.uberglobalmirror.com/pub/epel/7/x86_64/.treeinfo failed with code 404: Not Found
Feb 21 10:36:56 vmpr-res-utils pulp: requests.packages.urllib3.connectionpool:INFO: Starting new HTTP connection (1): fedora.uberglobalmirror.com
Feb 21 10:36:56 vmpr-res-utils pulp: nectar.downloaders.threaded:INFO: Download failed: Download of http://fedora.uberglobalmirror.com/pub/epel/7/x86_64/treeinfo failed with code 404: Not Found

I guess there are a number of solutions, more than one could be implemented?

- check URL in db is same as URL reported by Hammer/WebUI
- create a small script to update one from the other when they are out of sync with each other
- document where a person might update said URL within the system? Which db is pulp working from that it's trying to sync against the old URL?


Files

Screenshot_2018-04-05_14-06-49.png View Screenshot_2018-04-05_14-06-49.png 46.4 KB Lachlan Simpson, 04/05/2018 04:07 AM
Actions

Also available in: Atom PDF