Project

General

Profile

Actions

Bug #10629

closed

Some Hammer commands which issue a look up by name fail

Added by Greg Koch about 9 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
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

Actions #1

Updated by Justin Sherrill about 9 years ago

  • translation missing: en.field_release set to 55
Actions #2

Updated by Eric Helms about 9 years ago

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

Updated by Eric Helms almost 9 years ago

  • translation missing: en.field_release changed from 55 to 61
Actions #4

Updated by Eric Helms almost 9 years ago

  • translation missing: en.field_release changed from 61 to 31
Actions #5

Updated by Stephen Benjamin almost 9 years ago

  • translation missing: en.field_release changed from 31 to 70

Mass move to 2.4.0

Actions #6

Updated by Justin Sherrill over 8 years ago

  • translation missing: en.field_release changed from 70 to 86
Actions #7

Updated by Eric Helms about 8 years ago

  • Priority changed from Normal to High
Actions #8

Updated by Eric Helms about 8 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?

Actions #9

Updated by Eric Helms about 8 years ago

  • translation missing: en.field_release changed from 86 to 144
Actions #10

Updated by Greg Koch about 8 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

Actions #11

Updated by Eric Helms almost 8 years ago

  • translation missing: en.field_release deleted (144)
Actions #12

Updated by Justin Sherrill almost 8 years ago

  • Status changed from Need more information to Resolved
Actions #13

Updated by Eric Helms almost 8 years ago

  • translation missing: en.field_release set to 166
Actions

Also available in: Atom PDF