Bug 1158918

Summary: subnet not matching domain available as choice when creating new host
Product: Red Hat Satellite Reporter: David Juran <djuran>
Component: WebUIAssignee: Shlomi Zadok <szadok>
WebUI sub component: Foreman QA Contact: Kedar Bidarkar <kbidarka>
Status: CLOSED ERRATA Docs Contact:
Severity: low    
Priority: unspecified CC: dcleal, kbidarka, sthirugn
Version: 6.0.4Keywords: Triaged
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/8221
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 05:18:35 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:
Bug Depends On:    
Bug Blocks: 1139277    

Description David Juran 2014-10-30 13:58:23 UTC
Description of problem:
We've noticed that subnets which are not part of the selected domain are available as a valid choice in the WEBUI when creating a new host.

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

How reproducible:
Every time

Steps to Reproduce:
1. Go to https://satellite6ga.lab.arn.redhat.com/subnets 
2. Select a subnet 
3. Go to the "Domains" tab
4. Ensure that there is at least one un-checked domain for your subnet
5. Create a new host
6. On the "Network" tab, select the subnet which was unchecked in the tab above.
7. Note that the subnet for which the domain was unchecked still is a valid option in the "subnets" drop-down

Expected results:
I would expect that only matching subnet/domain pairs would be choosable in the UI.

Comment 1 RHEL Program Management 2014-10-30 14:03:04 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Dominic Cleal 2014-10-30 15:41:28 UTC
Created redmine issue http://projects.theforeman.org/issues/8221 from this bug

Comment 4 Bryan Kearney 2014-12-03 09:04:15 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/8221 has been closed
-------------
Shlomi Zadok
Applied in changeset commit:e23023e29632a755582b2bd080fc7b226e606620.

Comment 5 Bryan Kearney 2015-01-09 14:50:02 UTC
Upstream bug assigned to szadok

Comment 8 Kedar Bidarkar 2015-02-13 12:19:06 UTC
VERIFIED with Sat6.1 Beta-snap2

with the above mentioned build, only matching subnet/domain pairs would be choosable in the UI.

Comment 10 Bryan Kearney 2015-08-11 13:36:10 UTC
This bug is slated to be released with Satellite 6.1.

Comment 11 errata-xmlrpc 2015-08-12 05:18:35 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, 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-2015:1592