Bug 1465723 - hammer capsule content lists incorrect available life-cycle environments
Summary: hammer capsule content lists incorrect available life-cycle environments
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer - Content
Version: 6.2.9
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Roman Plevka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-28 02:50 UTC by Amit Kumar Das
Modified: 2021-06-10 12:31 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-28 19:34:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3097911 0 None None None 2018-01-27 04:22:55 UTC

Description Amit Kumar Das 2017-06-28 02:50:03 UTC
Description of problem:

I can reproduce and see that hammer is not working per defined descriptions.

# hammer capsule content --help
available-lifecycle-environments List the lifecycle environments not attached to the capsule
lifecycle-environments           List the lifecycle environments attached to the capsule


# hammer capsule content --help
lifecycle-environments       List the lifecycle environments attached to the capsule
available-lifecycle-environments   List the lifecycle environments not attached to the capsule

Version-Release number of selected component (if applicable):
Satellite 6.2.10

How reproducible:
Login to satellite server and execute hammer cli.

# hammer capsule content lifecycle-environments --id 2  
---|---------|-------------
ID | NAME    | ORGANIZATION
---|---------|-------------
1  | Library | GSS         
---|---------|-------------

# hammer capsule content available-lifecycle-environments --id 2  
---|---------|-------------
ID | NAME    | ORGANIZATION
---|---------|-------------
1  | Library | GSS            <--Attached Library to capsule shouldn't list here 
3  | prod    | GSS         
2  | dev     | GSS         

# hammer capsule content add-lifecycle-environment --id 2 --environment-id 3
Lifecycle environment successfully added to the capsule

# hammer capsule content lifecycle-environments --id 2
---|---------|-------------
ID | NAME    | ORGANIZATION
---|---------|-------------
3  | prod    | GSS         
1  | Library | GSS         
---|---------|-------------

# hammer capsule content available-lifecycle-environments --id 2 
---|---------|-------------
ID | NAME    | ORGANIZATION
---|---------|-------------
1  | Library | GSS                                                
3  | prod    | GSS           <--Attached Lib/prod to capsule shouldn't list here   
2  | dev     | GSS         
---|---------|-------------


Expected results:
Once environment-id attached to capsule, it should not list in "available-lifecycle-environments"


Additional info:
# hammer capsule content --help
Usage:
    hammer capsule content [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    subcommand
 [ARG] ...                     subcommand arguments

Subcommands:
 add-lifecycle-environment        Add lifecycle environments to the capsule
 available-lifecycle-environments List the lifecycle environments not attached to the capsule
 cancel-synchronization           Cancel running capsule synchronization.
 info                             Get current capsule synchronization status
 lifecycle-environments           List the lifecycle environments attached to the capsule
 remove-lifecycle-environment     Remove lifecycle environments from the capsule
 synchronization-status           Get current capsule synchronization status
 synchronize                      Synchronize the content to the capsule

Comment 1 Amit Kumar Das 2017-07-04 04:35:35 UTC
Hi,
Is it possible to get any patch or temporary fix for this issue. Customer needs this asap since they have large number of lifecycle environments(LC) ID's and capsules, and to find out all unattached LC envs for each capsule is a very tedious manual tasks. 
Thanks.

Comment 10 Bryan Kearney 2019-02-07 12:09:15 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 11 Bryan Kearney 2019-02-28 19:34:54 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.