Actions
Bug #25603
openhammer repository synchronize --source-url ignores source url
Status:
New
Priority:
Normal
Assignee:
-
Category:
Hammer
Target version:
-
Description
Per subject.
I am regularly running `hammer -d repository synchronize --id 5 --source-url http://epel.mirror.digitalpacific.com.au/7/x86_64/` in order to address #22637
It started to 404 since the upgrade to Foreman 1.20, Katello 3.9.0
No new packages.
Error: RPM1004: Error retrieving metadata: Not Found
==> hammer --version
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_import-0.11.3/lib/hammer_cli_import/persistentmap.rb:27: warning: constant ::Fixnum is deprecated
hammer (0.15.1)
* hammer_cli_foreman (0.15.1)
* hammer_cli_foreman_bootdisk (0.1.3)
* hammer_cli_foreman_docker (unknown version)
* hammer_cli_foreman_tasks (unknown version)
* hammer_cli_import (0.11.3)
* hammer_cli_katello (0.15.0)
When I look in /var/log/messages, the errors for the same time all point towards hammer hitting up the wrong url - it's reverted to hitting the url in --id 5, http://fedora.uberglobalmirror.com/pub/epel/7/x86_64/ which is now dead (well, URL has been reconstructed, but can't change due to #22637)
Dec 3 09:38:24 vmpr-res-utils nfsidmap[3880]: nss_getpwnam: name 'apache@company.com' does not map into domain 'unix.company.com'
Dec 3 09:38:24 vmpr-res-utils nfsidmap[3881]: nss_name_to_gid: name 'apache@company.com' does not map into domain 'unix.company.com'
Dec 3 09:38:51 vmpr-res-utils pulp: kombu.transport.qpid:INFO: Connected to qpid with SASL mechanism ANONYMOUS
Dec 3 09:38:52 vmpr-res-utils pulp: celery.worker.strategy:INFO: Received task: pulp.server.async.tasks._queue_reserved_task[a84d0239-6b1e-40c8-b5a4-5bd6929
42202]
Dec 3 09:38:52 vmpr-res-utils pulp: celery.worker.strategy:INFO: Received task: pulp.server.managers.repo.sync.sync[bda90289-f25a-4078-9f6e-4db2184a3c9a]
Dec 3 09:38:52 vmpr-res-utils pulp: celery.worker.strategy:INFO: Received task: pulp.server.async.tasks._release_resource[ba5897a6-d10e-41f6-bd64-b0c4d6b057
09]
Dec 3 09:38:52 vmpr-res-utils pulp: celery.app.trace:INFO: [a84d0239] Task pulp.server.async.tasks._queue_reserved_task[a84d0239-6b1e-40c8-b5a4-5bd692942202
] succeeded in 0.0441478949997s: None
Dec 3 09:38:52 vmpr-res-utils pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [bda90289] Downloading metadata from http://fedora.uberglobalmirror.com/pub/ep
el/7/x86_64/.
Dec 3 09:38:52 vmpr-res-utils pulp: requests.packages.urllib3.connectionpool:INFO: Starting new HTTP connection (1): fedora.uberglobalmirror.com
Dec 3 09:38:52 vmpr-res-utils pulp: nectar.downloaders.threaded:INFO: Download failed: Download of http://fedora.uberglobalmirror.com/pub/epel/7/x86_64/repo
data/repomd.xml failed with code 404: Not Found
Dec 3 09:38:53 vmpr-res-utils pulp: requests.packages.urllib3.connectionpool:INFO: [bda90289] Starting new HTTP connection (1): fedora.uberglobalmirror.com
Dec 3 09:38:53 vmpr-res-utils pulp: nectar.downloaders.threaded:INFO: [bda90289] Download failed: Download of http://fedora.uberglobalmirror.com/pub/epel/7/x86_64/ failed with code 404: Not Found
Dec 3 09:38:53 vmpr-res-utils pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [bda90289] Downloading metadata from http://fedora.uberglobalmirror.com/pub/ep
el/7/x86_64/.
Dec 3 09:38:53 vmpr-res-utils pulp: requests.packages.urllib3.connectionpool:INFO: Starting new HTTP connection (1): fedora.uberglobalmirror.com
Dec 3 09:38: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
Dec 3 09:38:54 vmpr-res-utils pulp: requests.packages.urllib3.connectionpool:INFO: [bda90289] Starting new HTTP connection (1): fedora.uberglobalmirror.com
Dec 3 09:38:54 vmpr-res-utils pulp: nectar.downloaders.threaded:INFO: [bda90289] Download failed: Download of http://fedora.uberglobalmirror.com/pub/epel/7/x86_64/ failed with code 404: Not Found
Dec 3 09:38:54 vmpr-res-utils pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [bda90289] Downloading metadata from http://fedora.uberglobalmirror.com/pub/ep
el/7/x86_64/.
Dec 3 09:38:54 vmpr-res-utils pulp: requests.packages.urllib3.connectionpool:INFO: Starting new HTTP connection (1): fedora.uberglobalmirror.com
Dec 3 09:38: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
Dec 3 09:38:55 vmpr-res-utils pulp: requests.packages.urllib3.connectionpool:INFO: [bda90289] Starting new HTTP connection (1): fedora.uberglobalmirror.com
Dec 3 09:38:55 vmpr-res-utils pulp: nectar.downloaders.threaded:INFO: [bda90289] Download failed: Download of http://fedora.uberglobalmirror.com/pub/epel/7/x86_64/ failed with code 404: Not Found
Dec 3 09:38:55 vmpr-res-utils pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [bda90289] Downloading metadata from http://fedora.uberglobalmirror.com/pub/ep
el/7/x86_64/.
Dec 3 09:38:55 vmpr-res-utils pulp: requests.packages.urllib3.connectionpool:INFO: Starting new HTTP connection (1): fedora.uberglobalmirror.com
Dec 3 09:38:55 vmpr-res-utils pulp: nectar.downloaders.threaded:INFO: Download failed: Download of http://fedora.uberglobalmirror.com/pub/epel/7/x86_64/repo
data/repomd.xml failed with code 404: Not Found
Dec 3 09:38:56 vmpr-res-utils pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [bda90289] Downloading additional units.
Dec 3 09:38:56 vmpr-res-utils pulp: requests.packages.urllib3.connectionpool:INFO: Starting new HTTP connection (1): fedora.uberglobalmirror.com
Dec 3 09:38: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
Dec 3 09:38:57 vmpr-res-utils pulp: requests.packages.urllib3.connectionpool:INFO: Starting new HTTP connection (1): fedora.uberglobalmirror.com
Dec 3 09:38:57 vmpr-res-utils pulp: nectar.downloaders.threaded:INFO: Download failed: Download of http://fedora.uberglobalmirror.com/pub/epel/7/x86_64/tree
info failed with code 404: Not Found
Dec 3 09:38:58 vmpr-res-utils pulp: pulp.server.async.tasks:INFO: [bda90289] Task failed : [bda90289-f25a-4078-9f6e-4db2184a3c9a] : Error retrieving metadat
a: Not Found
Dec 3 09:38:58 vmpr-res-utils pulp: celery.app.trace:INFO: [bda90289] Task pulp.server.managers.repo.sync.sync[bda90289-f25a-4078-9f6e-4db2184a3c9a] raised expected: PulpCodedException()
But when I run the same command with -d, it says it's hitting
--source-url?
See the attached output from the hammer run, with appropriate timestamps for the above /var/log/messages
Files
Actions