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 1384970 - After host looses primary interface, primary interface cannot be added back to the profile
Summary: After host looses primary interface, primary interface cannot be added back t...
Keywords:
Status: CLOSED DUPLICATE of bug 1389063
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Fact
Version: 6.2.2
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact:
URL:
Whiteboard:
: 1384894 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-14 12:56 UTC by Taft Sanders
Modified: 2021-06-10 11:36 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-21 13:11:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2706701 0 None None None 2016-10-14 15:34:34 UTC

Description Taft Sanders 2016-10-14 12:56:38 UTC
Description of problem:
After creating a host from the Satellite webui under hosts > all hosts with 1 primary interface set. If the profile is saved without a primary interface, the host profile will not allow you to save any changes to the profile or select a new primary interface. Error given in the webui:

Oops, we're sorry but something went wrong Host::Base#name= delegated to primary_interface.name=, but primary_interface is nil: #<Host::Managed id: 29, name: "test46", last_compile: nil, last_report: nil, updated_at: "2016-10-14 12:43:19", created_at: "2016-10-14 12:42:41", root_pass: "$5$Gccv5/7h$9AxSRhnUoqRY5rrZBcbw4spU0MvDSn7O1EZYj4...", architecture_id: 1, operatingsystem_id: 2, environment_id: 2, ptable_id: 61, medium_id: nil, build: true, comment: "", disk: "", installed_at: nil, model_id: nil, hostgroup_id: 2, owner_id: 3, owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, managed: true, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: 1, certname: nil, image_id: nil, organization_id: 1, location_id: 2, type: "Host::Managed", otp: "bC,DdAHGlZqk", realm_id: 1, compute_profile_id: 4, provision_method: "build", content_source_id: 1, grub_pass: "$5$Gccv5/7h$9AxSRhnUoqRY5rrZBcbw4spU0MvDSn7O1EZYj4...", content_view_id: 1, lifecycle_environment_id: 1, global_status: 0, lookup_value_matcher: "fqdn=test46.libvirtnode1.prov", discovery_rule_id: nil, openscap_proxy_id: nil>


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

How reproducible:
Every time

Steps to Reproduce:
1. Create host profile with primary interface with any number of NICs, submit
2. Select newly built host, edit, interface tab, edit nic, and remove primary check from the check box, click ok, and submit
3. Perform the same steps as step 2 except try to add one of the NICs as a primary, results in the error from above.

Actual results:
Oops, we're sorry but something went wrong Host::Base#name= delegated to primary_interface.name=, but primary_interface is nil: #<Host::Managed id: 29, name: "test46", last_compile: nil, last_report: nil, updated_at: "2016-10-14 12:43:19", created_at: "2016-10-14 12:42:41", root_pass: "$5$Gccv5/7h$9AxSRhnUoqRY5rrZBcbw4spU0MvDSn7O1EZYj4...", architecture_id: 1, operatingsystem_id: 2, environment_id: 2, ptable_id: 61, medium_id: nil, build: true, comment: "", disk: "", installed_at: nil, model_id: nil, hostgroup_id: 2, owner_id: 3, owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, managed: true, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: 1, certname: nil, image_id: nil, organization_id: 1, location_id: 2, type: "Host::Managed", otp: "bC,DdAHGlZqk", realm_id: 1, compute_profile_id: 4, provision_method: "build", content_source_id: 1, grub_pass: "$5$Gccv5/7h$9AxSRhnUoqRY5rrZBcbw4spU0MvDSn7O1EZYj4...", content_view_id: 1, lifecycle_environment_id: 1, global_status: 0, lookup_value_matcher: "fqdn=test46.libvirtnode1.prov", discovery_rule_id: nil, openscap_proxy_id: nil>


Expected results:
Either, never be allowed to leave the profile with out having set a primary NIC
or
Allow to set primary NIC after removing all primarys

Additional info:
Without primary NIC being set, the "kickstart_networking_setup" template does not seem to render for review from the host page of the webui.

Comment 1 Marcelo Moreira de Mello 2016-10-14 15:34:34 UTC
* Adding KCS https://access.redhat.com/solutions/2706701

Comment 4 Brad Buckingham 2016-10-14 17:32:16 UTC
*** Bug 1384894 has been marked as a duplicate of this bug. ***

Comment 5 Brad Buckingham 2016-10-14 17:33:36 UTC
Refer to duplicate bug 1384894 for additional details/scenario.

Comment 10 Taft Sanders 2016-12-21 13:11:21 UTC
Closing as duplicate of bug 1389063.

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


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