Bug 2211963

Summary: inconsistent metadata expiration times cause patch jobs to return no updates available
Product: Red Hat Satellite Reporter: Odilon Sousa <osousa>
Component: CandlepinAssignee: ojanus
Status: CLOSED ERRATA QA Contact: Gaurav Talreja <gtalreja>
Severity: high Docs Contact:
Priority: high    
Version: 6.12.1CC: ahumbe, bbuckingham, cdonnell, chrobert, jlenz, jpasqual, nmoumoul, ojanus, onerleka, rlavi, shwsingh, wpinheir
Target Milestone: 6.13.2Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: candlepin-4.2.15 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2165906 Environment:
Last Closed: 2023-07-12 15:37:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 1 Gaurav Talreja 2023-06-28 15:12:43 UTC
Verified.

Tested on Satellite 6.13.2 Snap 2.0
Version: candlepin-4.2.15-1.el8sat.noarch

Steps:
1. Imported manifest, enabled few repositories, created and publish CV, Create AK with this CV
2. Register a client with AK create above and check /etc/yum.repos.d/redhat.repo for metadata_expire 
# cat /etc/yum.repos.d/redhat.repo | grep metadata_expire
metadata_expire = 1
metadata_expire = 1
metadata_expire = 1

3. Also tried checking the candlepin DB for cp2_content table and there's also metadata_expire set 1
# sudo -u postgres psql -d candlepin -c "select distinct(metadataexpire) from cp2_content;"
could not change directory to "/root": Permission denied
 metadataexpire
----------------
              1
(1 row)

Comment 10 errata-xmlrpc 2023-07-12 15:37:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Satellite 6.13.2 Async Update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:4043