Bug 1962119

Summary: Satellite 6.9 changed the way RH operating systems are named after sync
Product: Red Hat Satellite Reporter: Evgeni Golov <egolov>
Component: RepositoriesAssignee: Ian Ballou <iballou>
Status: CLOSED ERRATA QA Contact: Cole Higgins <chiggins>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: iballou, ktordeur
Target Milestone: 6.10.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-4.1.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 14:10:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Evgeni Golov 2021-05-19 10:41:29 UTC
Description of problem:
In Satellite up to 6.8, when you synced the RHEL product, it would create the according OS with the title "RedHat 8.1" (or whatever the version is)
Since Satellite 6.9, syncing the same repository results in an OS with the title "RedHat-8.1.0" which breaks essentially any automated deployment workflow that still expects "RedHat 8.1".

This was introduced in https://projects.theforeman.org/issues/30571 / https://github.com/Katello/katello/pull/8936 to fix some validation bug

In my environment, it was sufficient to unset the "description" attribute of the OS, to get the "old" behavior back.

Version-Release number of selected component (if applicable):
Satellite 6.9.1

How reproducible:
100%

Steps to Reproduce:
1. sync RH products with kickstarts

Actual results:
See OS with the title "RedHat-8.1.0"

Expected results:
See OS with the title "RedHat 8.1"

Additional info:

Comment 1 Evgeni Golov 2021-05-27 13:28:06 UTC
One thing that I didn't point out in the original comment: I think calling that OS 8.1.0 is wrong, as it really is 8.1 and we don't really version .z releases in RHEL.

(the 8.1.0 was imported from an exported CV, so it might have different metadata than what's on CDN)

Comment 2 Ian Ballou 2021-06-02 15:34:11 UTC
Created redmine issue https://projects.theforeman.org/issues/32699 from this bug

Comment 3 Bryan Kearney 2021-06-03 20:04:23 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/32699 has been resolved.

Comment 9 errata-xmlrpc 2021-11-16 14:10:56 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 (Moderate: Satellite 6.10 Release), 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/RHSA-2021:4702