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 1384894 - Setting no primary interface breaks host
Summary: Setting no primary interface breaks host
Keywords:
Status: CLOSED DUPLICATE of bug 1384970
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-14 10:45 UTC by Sean O'Keeffe
Modified: 2016-10-14 17:32 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-14 17:32:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sean O'Keeffe 2016-10-14 10:45:27 UTC
Description of problem:
After creating a new 'Managed' host, if you untick the primary interface and hit submit this breaks the hosts and anything you do to it after including trying and set a primary interface produces a error.

I've also tested on foreman-nightly and get the same error.

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


How reproducible:
100%

Steps to Reproduce:
1. Create 'Managed' host
2. Make no interface Primary
3. Hit Submit
4. anything you now do to the host will result in a error. e.g try and edit and make any interface primary again and it will error. Same thing if you try and clone it.

Actual results:
Module::DelegationError
Host::Base#name= delegated to primary_interface.name=, but primary_interface is nil: #<Host::Managed id: 1, name: "earl-heroman", last_compile: nil, last_report: nil, updated_at: "2016-10-14 10:44:17", created_at: "2016-10-14 10:44:04", root_pass: "$6$VPPU/1m3$Z3b30hZTT8pGLJsRLhlh1FjsKzvpR9dw0XHkBD...", architecture_id: 1, operatingsystem_id: 1, environment_id: nil, ptable_id: 80, medium_id: 1, build: true, comment: "", disk: "", installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 3, owner_type: "User", enabled: true, puppet_ca_proxy_id: nil, managed: true, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: nil, certname: nil, image_id: nil, organization_id: nil, location_id: nil, type: "Host::Managed", otp: nil, realm_id: nil, compute_profile_id: nil, provision_method: "build", grub_pass: "$6$VPPU/1m3$Z3b30hZTT8pGLJsRLhlh1FjsKzvpR9dw0XHkBD...", global_status: 0, lookup_value_matcher: "fqdn=earl-heroman.exmaple.com", pxe_loader: "">


Expected results:
To be able to set the primary interface.

Additional info:

Comment 1 Brad Buckingham 2016-10-14 17:32:16 UTC

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


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