This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
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 1939735 - hammer discovery provision --interface will not apply interface settings
Summary: hammer discovery provision --interface will not apply interface settings
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Discovery Plugin
Version: 6.8.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Roman Plevka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-16 22:10 UTC by Pablo Hess
Modified: 2024-06-06 00:47 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-06-06 00:47:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker   SAT-23334 0 None Migrated None 2024-06-06 00:47:47 UTC

Description Pablo Hess 2021-03-16 22:10:52 UTC
Description of problem:
When running a hammer command to provision a discovered host while providing additional information (i.e. --interface "list=of,many=values,...") on how to configure bonded networking, foreman will ignore the networking information and will provision the discovered host without applying any of the bonding options.

Version-Release number of selected component (if applicable):
Satellite 6.8.3
tfm-rubygem-hammer_cli_foreman-2.1.2.1-1.el7sat.noarch
tfm-rubygem-smart_proxy_discovery-1.0.5-5.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_discovery-1.0.2-1.el7sat.noarch
tfm-rubygem-hammer_cli_katello-0.22.2.3-1.el7sat.noarch
tfm-rubygem-hammer_cli-2.1.2-1.el7sat.noarch
foreman-discovery-image-3.6.7-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_admin-0.0.9-1.el7sat.noarch
tfm-rubygem-foreman_discovery-16.1.2-1.el7sat.noarch


How reproducible:
100% of attempts.

Steps to Reproduce:
1. PXE-discover a new host that has 2 NICs: em1 and em2.
2. Run the hammer command below to provision said discovered host:

hammer -d discovery provision \
--name mac000102030405 \
--new-name mynewhost \
--organization MyOrg \
--hostgroup-title myhg/childhg \
--location MyLocation \
--domain-id 1 \
--build false \
--enabled true \
--managed true \
--owner-id 12 \
   --interface="identifier=em1, \
               mac=00:01:02:03:04:05, \
               managed=true, \
               type=Nic::Managed, \
               domain_id=1, \
               subnet_id=15" \
   --interface="identifier=em2, \
               mac=00:11:12:13:14:15, \
               managed=true, \
               type=Nic::Managed, \
               domain_id=1, \
               subnet_id=15" \
   --interface="identifier=bond0, \
               ip=10.11.12.13, \
               type=Nic::Bond, \
               mode=active-backup, \
               attached_devices='[em1,em2]', \
               managed=true, \
               domain_id=1, \
               subnet_id=15"
~~~


Actual results:
The host will kexec and install the appropriate RHEL version but it will configure only em1 as the single NIC with an IP address and all and won't even create bond0 or configure em2.

Expected results:
The host kexecs and installs the appropriate RHEL version, configuring bond0 as its main interface while configuring em1 and em2 as simply attached to bond0 i.e. em1 and em2 won't have IP addresses or anything.


Additional info:
If using the web UI to modify the discovered host before provisioning it, the intended result is achieved i.e. bond0 is created and the host provisions through it and comes out of provisioning with bond0 correctly configured.

One more note: using JSON-formatted parameters to the "hammer discovery provision --interface" command showed no difference in results: the host was provisioned with em1 as the sole NIC just like when using comma-separated options for hammer.

Comment 4 Eric Helms 2024-06-06 00:47:49 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "SAT-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.


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