Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1327030

Summary: [RFE] Add extension point to Subnets form for Discovery Proxy
Product: Red Hat Satellite Reporter: dgupte
Component: Discovery PluginAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Daniel Lobato Garcia <dlobatog>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1.8CC: bbuckingham, bkearney, dlobatog, jcallaha, lzap, xdmoon
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
URL: http://projects.theforeman.org/issues/14036
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 12:34:46 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:
Attachments:
Description Flags
Discovery capsule in Subnet none

Description dgupte 2016-04-14 06:52:19 UTC
Description of problem:

If we have multiple organization, every time the discovered host goes to the same organization unit and it ignores the organization information defined in subnet.

How reproducible:

Create a multiple organization, each organization has its own subnet or network address. So based on its subnet it should go to the correct unit automatically but it is getting discovered into first organization only and ignores organization defined in Subnet. 

Steps to Reproduce:

For ex.

Create three organizations, and assign only third organization to subnet.
provision host using foreman discovery image, provisioning host get discovered into first organization.

Actual results:
Discovered host goes to first organization and ignores organization specified in subnet.

Expected results:

Discovered host should go to the organization specified in subnet.


Additional info:

http://theforeman.org/plugins/foreman_discovery/5.0/#3.1.3OrganizationsandLocations

Is the below upstream bug related to this bz?

http://projects.theforeman.org/issues/14036

Comment 1 Lukas Zapletal 2016-04-15 08:39:47 UTC
Hello,

this will be fixed in Satellite 6.2. At least this will be implemented:

http://theforeman.org/plugins/foreman_discovery/5.0/#3.1.3OrganizationsandLocations

Note there is one limitation, if Subnet has multiple Org/Locs, it is choosen randomly. This will only work for Subnets with one Organization and/or Location. There is a ticket we are working on next sprint that should add an extra field to the Subnet page.

Comment 5 Bryan Kearney 2016-07-08 20:38:32 UTC
Per 6.3 planning, moving out non acked bugs to the backlog

Comment 9 Bryan Kearney 2016-10-12 16:12:52 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/14036 has been resolved.

Comment 11 Lukas Zapletal 2017-05-24 07:17:32 UTC
QA notes: Verify Discovery Capsule can be set for a Subnet and it works.

Comment 12 Daniel Lobato Garcia 2017-08-30 14:02:30 UTC
Verified.

Tested with Satellite 6.3 - Snap 13.


See attached screenshot.

Comment 13 Daniel Lobato Garcia 2017-08-30 14:03:00 UTC
Created attachment 1320103 [details]
Discovery capsule in Subnet

Comment 16 errata-xmlrpc 2018-02-21 12:34:46 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-2018:0336