Bug 1577847 - CLI - Unrecognised option '--content-view-id' on hammer host create
Summary: CLI - Unrecognised option '--content-view-id' on hammer host create
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts - Content
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Stephen Wadeley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-14 09:33 UTC by Roman Plevka
Modified: 2020-06-08 13:14 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-08 13:14:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Roman Plevka 2018-05-14 09:33:25 UTC
Description of problem:

hammer -v -u admin -p changeme --output=csv host create --architecture-id="1" --content-view-id="465" --domain-id="60" --ip="170.91.36.85" --lifecycle-environment-id="355" --location-id="2" --mac="68:4a:81:11:b8:0e" --medium-id="72" --name="kHeuqZWIoeJjakz" --operatingsystem-id="2" --organization-id="336" --partition-table-id="91" --root-password="pzxaqqHF"'
2018-05-12 21:08:02 - robottelo.ssh - INFO - <<< stderr
[ERROR 2018-05-12T21:08:01 Exception] Error: Unrecognised option '--content-view-id'.

See: 'hammer host create --help'.
Could not create the host:
  Error: Unrecognised option '--content-view-id'.
  
  See: 'hammer host create --help'.
[ERROR 2018-05-12T21:08:01 Exception] 

Clamp::UsageError (Unrecognised option '--content-view-id'.):
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/option/parsing.rb:71:in `find_option'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/option/parsing.rb:35:in `set_options_from_command_line'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/option/parsing.rb:9:in `parse_options'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:48:in `parse'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.12.0/lib/hammer_cli/abstract.rb:40:in `parse'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:62:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.12.0/lib/hammer_cli/abstract.rb:29:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.12.0/lib/hammer_cli/abstract.rb:29:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.12.0/lib/hammer_cli/abstract.rb:29:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.12.0/bin/hammer:142:in `<top (required)>'
    /usr/bin/hammer:23:in `load'
    /usr/bin/hammer:23:in `<main>'



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

Comment 4 Roman Plevka 2019-01-11 09:02:12 UTC
This is still an issue on 6.4.1 snap 2:


2018-12-07 07:35:29 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8  hammer -v -u admin -p changeme --output=csv host create --architecture-id="1" --content-view-id="384" --domain-id="115" --ip="88.153.151.123" --lifecycle-environment-id="345" --location-id="2" --mac="42:f3:53:64:76:3b" --medium-id="128" --name="rDHRcjQqpY" --operatingsystem-id="1" --organization-id="447" --partition-table-id="94" --root-password="gecTAyxR"'
2018-12-07 07:35:32 - robottelo.ssh - INFO - <<< stderr
[ERROR 2018-12-07T07:35:32 Exception] Error: Unrecognised option '--content-view-id'.

See: 'hammer host create --help'.
Could not create the host:
  Error: Unrecognised option '--content-view-id'.
  
  See: 'hammer host create --help'.
[ERROR 2018-12-07T07:35:32 Exception] 

Clamp::UsageError (Unrecognised option '--content-view-id'.):
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/option/parsing.rb:71:in `find_option'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/option/parsing.rb:35:in `set_options_from_command_line'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/option/parsing.rb:9:in `parse_options'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:48:in `parse'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.1.1/lib/hammer_cli/abstract.rb:40:in `parse'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:62:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.1.1/lib/hammer_cli/abstract.rb:29:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.1.1/lib/hammer_cli/abstract.rb:29:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.1.1/lib/hammer_cli/abstract.rb:29:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.13.1.1/bin/hammer:143:in `<top (required)>'
    /usr/bin/hammer:23:in `load'
    /usr/bin/hammer:23:in `<main>'

Comment 5 Jan Hutař 2019-04-09 14:09:10 UTC
I can still see it in 6.4.2.1:

E Command "host create" finished with return_code 64
E stderr contains following message:
E [ERROR 2019-03-24T02:24:47 Exception] Error: Unrecognised option '--content-source-id'.

or:

E Command "host create" finished with return_code 64
E stderr contains following message:
E [ERROR 2019-03-24T02:26:34 Exception] Error: Unrecognised option '--content-view-id'.

I assume it is same issue.

Comment 7 Bryan Kearney 2020-05-01 14:23:03 UTC
The Satellite Team is attempting to provide an accurate backlog of bugzilla requests which we feel will be resolved in the next few releases. We do not believe this bugzilla will meet that criteria, and have plans to close it out in 1 month. This is not a reflection on the validity of the request, but a reflection of the many priorities for the product. If you have any concerns about this, feel free to contact Red Hat Technical Support or your account team. If we do not hear from you, we will close this bug out. Thank you.

Comment 8 Bryan Kearney 2020-06-08 13:14:29 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this, please do not reopen. Instead, feel free to contact Red Hat Technical Support. Thank you.


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