Project

General

Profile

Bug #10629

Some Hammer commands which issue a look up by name fail

Added by Greg Koch over 6 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

Some Hammer commands which issue a look up by name fail because they require an organization for scoping, but organization is not a valid parameter on the command.

  • activation-key add-host-collection
  • content-view version list

Example commands that fail:

hammer activation-key add-host-collection --id 142 --host-collection dev-centos-6.6 --organization-id 1
Could not add host collection:
  One of parameters [ organization_id ] required but not specified.

hammer activation-key add-host-collection --name dev-centos-6.6-xxxxx-xxxx-srv-ak --host-collection dev-centos-6.6 --organization-id 1
Could not add host collection:
  One of parameters [ organization_id ] required but not specified.

hammer content-view version list --content-view centos-6.6-x86_64-cv --organization-id 1
Error: Unrecognised option '--organization-id'

Example commands that work:

hammer activation-key add-host-collection --id 142 --host-collection-id 21 --organization-id 1

hammer content-view version list --content-view-id 81

History

#1 Updated by Justin Sherrill over 6 years ago

  • Legacy Backlogs Release (now unused) set to 55

#2 Updated by Eric Helms over 6 years ago

  • Category set to Hammer
  • Assignee set to Eric Helms
  • Triaged changed from No to Yes

#3 Updated by Eric Helms over 6 years ago

  • Legacy Backlogs Release (now unused) changed from 55 to 61

#4 Updated by Eric Helms over 6 years ago

  • Legacy Backlogs Release (now unused) changed from 61 to 31

#5 Updated by Stephen Benjamin about 6 years ago

  • Legacy Backlogs Release (now unused) changed from 31 to 70

Mass move to 2.4.0

#6 Updated by Justin Sherrill almost 6 years ago

  • Legacy Backlogs Release (now unused) changed from 70 to 86

#7 Updated by Eric Helms over 5 years ago

  • Priority changed from Normal to High

#8 Updated by Eric Helms over 5 years ago

  • Status changed from New to Need more information

Can you re-test on 3.0 RC and let us know if you still see an issue?

#9 Updated by Eric Helms over 5 years ago

  • Legacy Backlogs Release (now unused) changed from 86 to 144

#10 Updated by Greg Koch over 5 years ago

These commands seem to be working now.
Server Packages:
Katello 2.4.1
Foreman 1.10.3

Hammer Client Packages:
hammer_cli 0.6.1
hammer_cli_foreman 0.6.2
hammer_cli_foreman_bootdisk 0.1.3
hammer_cli_foreman_docker 0.0.4
hammer_cli_foreman_ssh 0.0.3
hammer_cli_foreman_tasks 0.0.10
hammer_cli_katello 0.0.24

#11 Updated by Eric Helms over 5 years ago

  • Legacy Backlogs Release (now unused) deleted (144)

#12 Updated by Justin Sherrill over 5 years ago

  • Status changed from Need more information to Resolved

#13 Updated by Eric Helms over 5 years ago

  • Legacy Backlogs Release (now unused) set to 166

Also available in: Atom PDF