Bug 1889564 - Updating hostgroup of the host through bulk action allows blank lifecycle and blank content view of the hostgroup but not while updating individual host from Satellite Web UI.
Summary: Updating hostgroup of the host through bulk action allows blank lifecycle and...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Host Group
Version: 6.7.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Mirek Długosz
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-20 02:14 UTC by shisingh
Modified: 2020-10-27 00:55 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description shisingh 2020-10-20 02:14:45 UTC
Description of problem:

When we try to update the hostgroup of multiple hosts using bulk action it allows us to change the association even if hostgroup does not have any Life Cycle Environment or Content View associated.

Whereas if we try to update the host: Host >> All Hosts >> Edit >> Change the Hostgroup >> Make sure that Content View and LifeCycle Environment is blank >> Submit, it fails with below mentioned error message:

===============================
  Content view can't be blank
  Lifecycle environment can't be blank
===============================


Version-Release number of selected component (if applicable): Red Hat Satellite 6.7 and Red Hat Satellite 6.8


How reproducible: Everytime


Steps to Reproduce:

1. Create a Hostgroup test_blank and keep everything blank.

2. Try to change the hostgroup of any host using the steps: On Satellite Web UI, navigate to Hosts >> All Hosts >> Select Hosts >> From the drop down menu, select Change Group >> Select the Host Group and Submit. Change will be performed irrespective of the fact that Host group is blank.

3. Now try to change the hostgroup of another host using the steps: On Satellite Web UI, navigate to Hosts >> All Hosts >> Select Host >> Edit >> Change the Hostgroup >> Make sure that Life Cycle and Content View is blank >> Submit.

Note: Known bug : Changing HostGroup does not reload Lifecycle or content View from the HostGroup #1888523


Actual results: It fails to change the hostgroup with below mentioned error:

===============================
  Content view can't be blank
  Lifecycle environment can't be blank
===============================


Expected results: It should either change the hostgroup or it should fail for both the methods mentioned in step 2 and step 3.


Additional info:


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