Bug 1736179 - Remove --host-parameters-attributes and --interfaces from "hammer discovery" command
Summary: Remove --host-parameters-attributes and --interfaces from "hammer discovery" ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Discovery Plugin
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.7.0
Assignee: Lukas Zapletal
QA Contact: Jitendra Yejare
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-01 15:00 UTC by Lukas Zapletal
Modified: 2020-04-14 13:25 UTC (History)
4 users (show)

Fixed In Version: tfm-rubygem-hammer_cli_foreman_discovery-1.0.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-14 13:25:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 27592 0 Normal Closed Remove --host-parameters-attributes from hammer discovery provision 2019-12-12 08:40:10 UTC
Red Hat Product Errata RHSA-2020:1454 0 None None None 2020-04-14 13:25:27 UTC

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


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