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 1736179

Summary: Remove --host-parameters-attributes and --interfaces from "hammer discovery" command
Product: Red Hat Satellite Reporter: Lukas Zapletal <lzap>
Component: Discovery PluginAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Jitendra Yejare <jyejare>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: egolov, lzap, rabajaj, sthirugn
Target Milestone: 6.7.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-hammer_cli_foreman_discovery-1.0.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-14 13:25:13 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:

Description Lukas Zapletal 2019-08-01 15:00:27 UTC
Option --host-parameters-attributes is unused (use --parameters instead) and --interfaces only provides a way to ADD an interface which is confusing.

However it should be only hidden from help screen, for backward compatibility we should keep it.

More info: https://bugzilla.redhat.com/show_bug.cgi?id=1572947#c13

Comment 3 Lukas Zapletal 2019-08-01 15:01:43 UTC
Backlog only.

Comment 5 Bryan Kearney 2019-08-12 14:07:41 UTC
Upstream bug assigned to lzap

Comment 6 Bryan Kearney 2019-08-12 14:07:44 UTC
Upstream bug assigned to lzap

Comment 7 Bryan Kearney 2019-08-30 12:07:38 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27592 has been resolved.

Comment 8 Jitendra Yejare 2019-12-12 14:57:01 UTC
Verified!

@Satellite 6.7 snap 5


Steps:
-------
1. Attempt to provision a discovered host with --host-parameters-attributes and --interfaces options.


Observation:
---------------
1. The -host-parameters-attributes and --interfaces are no longer available in --help option.
2. Also, those are not functional even if the backword compatibity for those options protected.
# hammer discovery provision --architecture-id 1 --domain-id 1 --image-id 1 --location-id 2 --medium-id 1 --name jyea --operatingsystem-id 1 --organization-id 1 --host-parameters-attributes 'enabled=yes,cricbuzz=no' --partition-table-id 1 --provision-method image --puppet-environment-id 1 --pxe-loader 'PXELinux BIOS' --root-password hello --subnet-id 1
Could not create the host:
  Error: Unrecognised option '--host-parameters-attributes'.

The same applies to interfaces option.


Moving this to verified.

Comment 11 errata-xmlrpc 2020-04-14 13:25:13 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-2020:1454