Bug 1221685 - hammer: Activation key name update claims to run without error but did not really update the name
Summary: hammer: Activation key name update claims to run without error but did not re...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Christine Fouant
QA Contact: sthirugn@redhat.com
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-14 14:42 UTC by sthirugn@redhat.com
Modified: 2017-02-23 20:02 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 14:01:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 10669 0 None None None 2016-04-22 15:12:15 UTC

Description sthirugn@redhat.com 2015-05-14 14:42:44 UTC
Description of problem:
hammer: Activation key name update works without error but did not really update the name

Version-Release number of selected component (if applicable):
Satellite 6.1 GA Snap 4 Compose 2

How reproducible:
Always

Steps to Reproduce:
hammer> activation-key create --name='testIncorrectSatellite' --organization-id=1
Activation key created

hammer> activation-key update --name='testIncorrectSatellite' --new-name='testCorrectSatellite' --organization-id=1
Activation key updated

hammer> activation-key info --name='testCorrectSatellite' --organization-id=1
Error: activation_key not found

hammer> activation-key info --name='testIncorrectSatellite' --organization-id=1
Name:                  testCorrectSatellite
ID:                    4
Description:           
Content Host Limit:    Unlimited
Auto Attach:           true
Lifecycle Environment: 
Content View:          
Host Collections:


Actual results:
Activation key name is not updated (see above)

Expected results:
Activation key name should be updated

Additional info:

Comment 4 Christine Fouant 2015-06-01 15:39:41 UTC
Created redmine issue http://projects.theforeman.org/issues/10669 from this bug

Comment 5 Bryan Kearney 2015-06-02 16:05:23 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/10669 has been closed
-------------
Christine Fouant
Applied in changeset commit:katello|c78f11a0ebadda49780e43b5f8543eb74b6d3c64.

Comment 7 sthirugn@redhat.com 2015-06-04 13:35:21 UTC
Verified in Sat 6.1 GA Snap 7.

hammer> activation-key list --organization-id=4
---|----------------|----------------|-----------------------|---------------
ID | NAME           | CONSUMED       | LIFECYCLE ENVIRONMENT | CONTENT VIEW  
---|----------------|----------------|-----------------------|---------------
5  | rhel7ak        | 1 of Unlimited | QE                    | rhel7cv       
6  | rhel7partialak | 1 of Unlimited | QE                    | rhel7partialcv
---|----------------|----------------|-----------------------|---------------

hammer> activation-key info --id=6
Name:                  rhel7partialak
ID:                    6
Description:           
Content Host Limit:    Unlimited
Auto Attach:           true
Lifecycle Environment: QE
Content View:          rhel7partialcv
Host Collections:

hammer> activation-key update --name=rhel7partialak --new-name=newactivationkeyname --organization-id=4
Activation key updated

hammer> activation-key info --id=6
Name:                  newactivationkeyname
ID:                    6
Description:           
Content Host Limit:    Unlimited
Auto Attach:           true
Lifecycle Environment: QE
Content View:          rhel7partialcv
Host Collections:

hammer> activation-key info --name=newactivationkeyname --organization-id=4
Name:                  newactivationkeyname
ID:                    6
Description:           
Content Host Limit:    Unlimited
Auto Attach:           true
Lifecycle Environment: QE
Content View:          rhel7partialcv
Host Collections:

hammer> activation-key info --name=rhel7partialak --organization-id=4
Error: activation_key not found

Comment 8 Bryan Kearney 2015-08-11 13:36:01 UTC
This bug is slated to be released with Satellite 6.1.

Comment 9 Bryan Kearney 2015-08-12 14:01:16 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.


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