Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 1955046 - When editing a host group, changing the life cycle environment automatically unsets the Media and Partition Table fields under the Operating System tab
Summary: When editing a host group, changing the life cycle environment automatically ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Host Group
Version: 6.9.0
Hardware: All
OS: All
high
high
Target Milestone: 6.14.0
Assignee: Adam Ruzicka
QA Contact: Pavel Novotny
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-29 10:55 UTC by Sam Wachira
Modified: 2023-11-08 14:17 UTC (History)
14 users (show)

Fixed In Version: foreman-3.7.0.3-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2211961 (view as bug list)
Environment:
Last Closed: 2023-11-08 14:17:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36278 0 Normal Closed Hostgroup edit form does not refresh operating system on LCE change if there is only 1 hostgroup 2023-05-04 14:20:24 UTC
Foreman Issue Tracker 36280 0 Normal Closed Changing OS in hostgroup edit form reset partition table and media even when it is not necessary 2023-05-28 17:06:09 UTC
Github theforeman foreman pull 9767 0 None Merged Fixes #36560 - Persist pxe_loader on os_select 2023-07-19 19:31:09 UTC
Red Hat Issue Tracker SAT-16262 0 None None None 2023-03-02 15:43:59 UTC
Red Hat Knowledge Base (Solution) 6041141 0 None None None 2021-05-13 09:47:00 UTC
Red Hat Product Errata RHSA-2023:6818 0 None None None 2023-11-08 14:17:48 UTC

Description Sam Wachira 2021-04-29 10:55:37 UTC
Description of problem:
When editing a host group, changing the life cycle environment automatically unsets the Media and Partition Table fields under the Operating System tab.
The 'PXE loader' field also changes to a different value from the one set originally.

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

How reproducible:
100%

Steps to Reproduce:
1. Create host group

[Host Group] tab
Host group: <hgtest>
Life cycle environment: <lcetest>
Content View: <ccvrhel8>
Content Source: <satellite.example.org>

[Network]
Domain: <example.org>
IPv4 Subnet: <mysubnet> 

[Operating System]
Architecture: x86_64
Operating System: RedHat 8.3
Media selection: All Media
Media: <RHEL83UEFI>
Partition Table: Kickstart default
PXE loader: PXELinux UEFI

[Locations] and [Organisations]
mylocation
myorg


2. Edit 'hgtest' and change the Lifecycle Environment field to a different value. Note: the Content View field becomes unset so remember to set it back.

[Host Group] tab
Life cycle environment: <lceprod>
Content View: <ccvrhel8>

3. Before submitting the above change, check the [Operating System] tab.


Actual results:
[Operating System] tab
Media: (blank)
Partition Table: (blank)
PXE loader: PXELinux BIOS


Expected results:
Changing the Lifecycle Environment field should not unset the Media and Partition Table fields.
The PXE loader field should not change to a different type without warning.

Additional info:
- Already checked that Operating system 'RedHat 8.3' is associated with partition table 'kickstart default' and Installation Media 'RHEL8.3'.
- If PXE loader is set to (None), it changes to 'PXELinux BIOS'.
- Synced media is intentionally not used.

Comment 20 Bryan Kearney 2023-05-09 12:01:50 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36278 has been resolved.

Comment 21 Pavel Novotny 2023-06-29 11:02:35 UTC
Tested in 6.14. snap 5 (foreman-3.7.0-2.el8sat.noarch).

Following the reproducer from comment 0, the Media and Partition Table values don't change after changing the Lifecycle Environment of the host group. Which is good news.

However, after changing the Lifecycle Environment, the "PXE loader" value is always set to "PXELinux BIOS", regardless what value you have set there before.
The same behavior is reproduced in the 6.13 clone bug 2211961.


@Adam, I have the 6.14 & 6.13 environments, if you want to check it and then we can agree upon the next steps,
i.e., if to verify this and file a follow-up bug just for the PXE loader issue or if to move this bug to ASSIGNED.

Comment 22 Pavel Novotny 2023-06-30 12:43:22 UTC
After talking to @aruzicka , failing the BZ due to the residual problem mentioned in my previous comment 21 - ..."PXE loader" value is always set to "PXELinux BIOS", regardless what value you have set there before.

FailedQA in foreman-3.7.0-2.el8sat.noarch (6.14 snap 5).

Comment 23 Adam Ruzicka 2023-07-19 10:00:14 UTC
https://github.com/theforeman/foreman/pull/9767 was merged in upstream

Comment 25 Pavel Novotny 2023-08-17 15:35:12 UTC
Verified in 6.14 snap 12:
satellite-6.14.0-3.el8sat.noarch
foreman-3.7.0.7-1.el8sat.noarch

Verified by following the reproducer in comment 0 plus focusing on the "PXE loader" field (see comment 21).

The Media and Partition Table values don't change after changing the Lifecycle Environment of the host group
as well as the PXE loader value, which has been fixed.

Comment 28 errata-xmlrpc 2023-11-08 14:17:34 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 (Important: Satellite 6.14 security and bug fix 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/RHSA-2023:6818


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