Bug 1962127

Summary: Host group loses the values of the 'Content View', 'Lifecycle Environment' and 'Content Source' parameters after upgrade to Satellite 6.9.1
Product: Red Hat Satellite Reporter: momran
Component: Host GroupAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Tasos Papaioannou <tpapaioa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: inecas, kgaikwad, ktordeur
Target Milestone: UnspecifiedKeywords: Regression, Triaged, Upgrades
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-21 13:34:12 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 momran 2021-05-19 11:04:54 UTC
Description of problem:

Host group loses the values of the 'Content View', 'Lifecycle Environment' and 'Content Source' parameters after upgrade to RH Satellite 6.9.1

If the host group is used for provisioning, the 'hammer host create' command fails if neither '--kickstart-repository REPOSITORY_NAME' nor '--kickstart-repository-id KICKSTART_REPOSITORY_ID' is included in the command. In this case, the 'hammer host create' command aborts with the error "Could not create the host: Medium can't be blank".


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

RH Satellite 6.9.1


How reproducible:

Always


Steps to Reproduce:

1. On Satellite sevrer, set the following parameters for a hostgroup X used for provisioning:
    - Content View
    - Lifecycle Environment
    - Content Source

2. Upgrade RH Satellite server to the 6.9.1 release, following the procedure in the official documentation, or the Red Hat Satellite Upgrade Helper tool.

3. Run the following command against the hostgroup X:
     ~~~
     # hammer hostgroup info --id <hostgroup_id>
     ~~~
   and observe that the following parameters are blank after the upgrade of the Satellite server:
     ~~~
     Content View:
         ID:
         Name:
     Lifecycle Environment:
         ID:
         Name:
     Content Source:
         ID:
         Name:
     ~~~

4. Try to provision a host using the 'hammer host create' command, without using the '--kickstart-repository REPOSITORY_NAME' nor '--kickstart-repository-id KICKSTART_REPOSITORY_ID' options, and observe that the command aborts with the error "Could not create the host: Medium can't be blank".


Actual results:

- The 'Content View', 'Lifecycle Environment' and 'Content Source' parameters of the host group lose their values after upgrading Satellite server to RH Satellite 6.9.1

- The 'hammer host create' command aborts with the error "Could not create the host: Medium can't be blank".


Expected results:

- The 'Content View', 'Lifecycle Environment' and 'Content Source' parameters of the host group retain their values after upgrading Satellite server to RH Satellite 6.9.1

- The 'hammer host create' command completes successfully, and the new host is provisioned.


Additional info:

Provisioning via Satellite's web UI still works after the upgrade.

Comment 1 Kenny Tordeurs 2021-05-21 13:34:12 UTC

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