RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1664340 - dnf repolist or dnf update from RHEL8 client registered to Satellite 5.8 fails with "Failed to synchronize cache for repo"
Summary: dnf repolist or dnf update from RHEL8 client registered to Satellite 5.8 fail...
Keywords:
Status: CLOSED DUPLICATE of bug 1637980
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: dnf-plugin-spacewalk
Version: 8.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Tomáš Kašpárek
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat5-rhel8
TreeView+ depends on / blocked
 
Reported: 2019-01-08 14:11 UTC by Kenny Tordeurs
Modified: 2019-01-10 11:01 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-10 09:12:42 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Kenny Tordeurs 2019-01-08 14:11:18 UTC
Description of problem:
When using `dnf repolist` or `dnf update` from RHEL8 client registered to Satellite 5.8 it fails with
~~~
Failed to synchronize cache for repo 'rhel-x86_64-baseos-8-htb'
~~~

Version-Release number of selected component (if applicable):
# rpm -qa | grep satellite
~~~
satellite-branding-5.8.0.9-1.el6sat.noarch
satellite-repo-5.8.0.2-2.el6sat.noarch
satellite-schema-5.8.0.48-1.el6sat.noarch
satellite-doc-indexes-5.8.0-1.el6sat.noarch
~~~

# rhn-schema-version 
~~~
5.8.0.48-1.el6sat
~~~

How reproducible:
100%

Steps to Reproduce:
1. Sync rhel8 HTB channel 
2. Register RHEL8 HTB system to Satellite 5.8
3. `dnf repolist` or `dnf update`


Actual results:
~~~
# dnf repolist --debuglevel=10

timer: config: 5 ms
Loaded plugins: builddep, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, product-id, repoclosure, repodiff, repograph, repomanage, reposync, spacewalk
initialized Spacewalk plugin
This system is receiving updates from Spacewalk server.
{'rhel-x86_64-baseos-8-htb': {'type': 'up2date', 'url': ['https://ktordeur-sat58.usersys.redhat.com/XMLRPC'], 'gpg_key_url': 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release', 'description': 'Red Hat Enterprise Linux - BaseOS High Touch Beta (v. 8 for AMD64 / Intel64)', 'org_id': '', 'label': 'rhel-x86_64-baseos-8-htb', 'version': '20190108130028', 'local_channel': '0', 'parent_channel': '', 'summary': 'Red Hat Enterprise Linux BaseOS High Touch Beta (v. 8 for AMD64 / Intel64)', 'arch': 'channel-x86_64', 'id': '150', 'name': 'RHEL BaseOS HTB (v. 8 for x86_64)'}, 'rhel-x86_64-appstream-8-htb': {'type': 'up2date', 'url': ['https://ktordeur-sat58.usersys.redhat.com/XMLRPC'], 'gpg_key_url': 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release', 'description': 'Red Hat Enterprise Linux - AppStream High Touch Beta (v. 8 AMD64 / Intel64', 'org_id': '', 'label': 'rhel-x86_64-appstream-8-htb', 'version': '20190108131157', 'local_channel': '0', 'parent_channel': '150', 'summary': 'Red Hat Enterprise Linux AppStream High Touch Beta (v. 8 AMD64 / Intel64)', 'arch': 'channel-x86_64', 'id': '151', 'name': 'RHEL AppStream HTB (v. 8 for x86_64)'}}
DNF version: 4.0.9
Command: dnf repolist --debuglevel=10 
Installroot: /
Releasever: 8
cachedir: /var/cache/dnf
Base command: repolist
Extra commands: ['repolist', '--debuglevel=10']
RHEL BaseOS HTB (v. 8 for x86_64)                                                                                                                                                  0.0  B/s |   0  B     00:01    
RHEL AppStream HTB (v. 8 for x86_64)                                                                                                                                               0.0  B/s |   0  B     00:01    
Failed to synchronize cache for repo 'rhel-x86_64-baseos-8-htb', ignoring this repo.
Failed to synchronize cache for repo 'rhel-x86_64-appstream-8-htb', ignoring this repo.
~~~


Expected results:

`dnf repolist` and `dnf update` to work

Additional info:

Repodata generation finished:
~~~
# grep rhel-x86_64-baseos-8-htb /var/log/rhn/rhn_taskomatic_daemon.log

INFO   | jvm 1    | 2018/12/07 16:46:00 | 2018-12-07 16:46:00,093 [Thread-10484] INFO  com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - Generating new repository metadata for channel 'rhel-x86_64-baseos-8-htb'(sha256) 2240 packages, 0 errata
INFO   | jvm 1    | 2018/12/07 16:46:52 | 2018-12-07 16:46:52,745 [Thread-10484] INFO  com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - Repository metadata generation for 'rhel-x86_64-baseos-8-htb' finished in 52 seconds
~~~

Comment 1 Kenny Tordeurs 2019-01-08 14:15:10 UTC
Some bz was filed for this against subscription-manager with proxy settings but this should not happen with Satellite 5 as the subscription-manager plugin is disabled.
https://bugzilla.redhat.com/show_bug.cgi?id=1654531

Comment 4 Michael Mráka 2019-01-09 10:24:10 UTC
When you run `dnf repolist` are there any records in satellite's apache access log (/var/log/httpd/{ssl_,}access_log for the client?
Are there any files in client's cache (/var/cache/dnf/rhel-x86_64-*-8-htb-*)?
Do they have same size reported in satelilte's access log?
Aren't they corrupted?
Are they current (i.e. same as files in /var/cache/rhn/repodata/rhel-x86_64-*-8-htb-* on the satellite)?

Comment 5 Kenny Tordeurs 2019-01-09 10:51:19 UTC
I see nothing in those logs aside from the following:

/var/log/httpd/ssl_access_log
~~~
192.168.1.1 - - [09/Jan/2019:11:41:03 +0100] "POST /XMLRPC HTTP/1.1" 200 2518
~~~

/var/log/httpd/ssl_request_log
~~~
[09/Jan/2019:11:42:29 +0100] 192.168.1.1 TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "POST /XMLRPC HTTP/1.1" 2518
~~~

Satellite:
# md5sum /var/cache/rhn/repodata/rhel-x86_64-baseos-8-htb/*
~~~
0cf256b6a02aad6658fc3105b679c6fb  /var/cache/rhn/repodata/rhel-x86_64-baseos-8-htb/filelists.xml.gz
b5a5e1d1bf84dd6e1b4b13c9ae079939  /var/cache/rhn/repodata/rhel-x86_64-baseos-8-htb/other.xml.gz
8fc6acdb1fa59488b683350873376322  /var/cache/rhn/repodata/rhel-x86_64-baseos-8-htb/primary.xml.gz
d1e611822f15fcaeb54c410bb3233f20  /var/cache/rhn/repodata/rhel-x86_64-baseos-8-htb/repomd.xml
~~~

Client:
# ls -l /var/cache/dnf/
~~~
total 796
-rw-r--r--. 1 root root      2 Jan  9 10:42 expired_repos.json
-rw-r--r--. 1 root root      0 Jan  9 08:40 last_makecache
-rw-r--r--. 1 root root 806912 Dec  7 15:14 packages.db
drwxr-xr-x. 4 root root     38 Dec  7 15:09 rhel-8-for-x86_64-appstream-htb-rpms-07866ab69b3e1de3     => This was from cdn and subscription-manager (plugin is disabled)
drwxr-xr-x. 4 root root     38 Dec  7 15:09 rhel-8-for-x86_64-baseos-htb-rpms-1e5d99e3c960c754        => This was from cdn and subscription-manager (plugin is disabled)
drwxr-xr-x. 2 root root      6 Jan  9 10:42 rhel-x86_64-appstream-8-htb-c48916bfe1e1b6da
drwxr-xr-x. 2 root root      6 Jan  9 10:42 rhel-x86_64-baseos-8-htb-dba21e3cebb70801
-rw-r--r--. 1 root root      2 Dec  7 15:09 tempfiles.json
~~~

# ls -ltr /var/cache/dnf/rhel-*
~~~
/var/cache/dnf/rhel-8-for-x86_64-appstream-htb-rpms-07866ab69b3e1de3:                                  
total 0
drwxr-xr-x. 2 root root  6 Dec  7 15:09 packages
drwxr-xr-x. 2 root root 78 Jan  5 09:38 repodata

/var/cache/dnf/rhel-8-for-x86_64-baseos-htb-rpms-1e5d99e3c960c754:
total 0
drwxr-xr-x. 2 root root 6 Dec  7 15:09 packages
drwxr-xr-x. 2 root root 6 Jan  5 09:38 repodata


/var/cache/dnf/rhel-x86_64-baseos-8-htb-dba21e3cebb70801:
total 0

/var/cache/dnf/rhel-x86_64-appstream-8-htb-c48916bfe1e1b6da:
total 0
~~~

Comment 7 Michael Mráka 2019-01-10 09:12:42 UTC

*** This bug has been marked as a duplicate of bug 1637980 ***


Note You need to log in before you can comment on or make changes to this bug.