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 1978690 - [global registration] [hammer] - Argument --activation-key ACTIVATION_KEY is not more valid
Summary: [global registration] [hammer] - Argument --activation-key ACTIVATION_KEY is ...
Keywords:
Status: CLOSED DUPLICATE of bug 1919922
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Registration
Version: 6.10.0
Hardware: All
OS: All
high
high
Target Milestone: 6.10.0
Assignee: satellite6-bugs
QA Contact: Stephen Wadeley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-02 13:53 UTC by Omkar Khatavkar
Modified: 2023-09-15 01:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-29 08:10:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github Katello katello pull 9421 0 None open refs #31809 - Registration API & activation key(s) 2021-07-15 13:48:39 UTC

Description Omkar Khatavkar 2021-07-02 13:53:38 UTC
Description of problem:
[global registration] [hammer] - Argument --activation-key ACTIVATION_KEY is not more valid        

Version-Release number of selected component (if applicable):
Satellite 6.10 snap 7 

How reproducible:
always 

Steps to Reproduce:
1. try host-registration generate-command -h (see option activation key)
2. hammer> host-registration generate-command --activation-key admin
Failed to generate registration command:
  Missing arguments for '--activation-keys'.

Actual results:
hammer> host-registration generate-command --activation-key admin
Failed to generate registration command:
  Missing arguments for '--activation-keys'.


Expected results:
remove the --activation-key argument option as it is not valid and `--activation-keys` is working 

Additional info:

Comment 1 Leos Stejskal 2021-07-15 13:48:42 UTC
Fixed in https://github.com/Katello/katello/pull/9421

behavior should be like this:

```
hammer host-registration generate-command # => error no keys
hammer host-registration generate-command --activation-key key_one # => ok
hammer host-registration generate-command --activation-keys key_one,key_two # => ok
hammer host-registration generate-command --activation-key key_one --activation-keys key_two # => ok
hammer host-registration generate-command --hostgroup-id 1 # => OK if host group have activation keys, otherwise show error
```

Comment 2 Patrick Creech 2021-07-21 18:10:16 UTC
Moving back to assigned.  attached PR is still open, and no upstream issue attached to bug.

Comment 3 Leos Stejskal 2021-07-22 07:36:12 UTC
This issue have been already reported in https://bugzilla.redhat.com/show_bug.cgi?id=1978690,
I'm proposing to close the issue as DUPLICATE

Comment 4 Sudhir Mallamprabhakara 2021-07-27 14:23:00 UTC
Leos - is there a different duplicate BZ - BZ you mentioned in comment 3 is this BZ.

Comment 5 Leos Stejskal 2021-07-27 14:27:29 UTC
Sorry my bad, correct BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1919922

Comment 6 Omkar Khatavkar 2021-07-29 08:10:43 UTC

*** This bug has been marked as a duplicate of bug 1919922 ***

Comment 7 Red Hat Bugzilla 2023-09-15 01:10:56 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days


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