"hammer capsule content available-lifecycle-environments" should not list environments already attached to capsule server
Environment
- Red Hat Satellite 6.x
Issue
- "hammer capsule content available-lifecycle-environments" should not list environment that is already attached to capsule server.
- Listing of capsule content using hammer command is incorrect.
- Environment is attached to capsule, but it is still listing in available list in hammer command.
Root Cause
- Its a bug and fix is on progress.
This content is not included.Bug 1465723 - hammer capsule content lists incorrect available life-cycle environments
Diagnostic Steps
- Help parameter mentions :
"available-lifecycle-environments List the lifecycle environments not attached to the capsule"
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
- List attached capsule lifecycle environment.
# hammer capsule content lifecycle-environments --id 2
-
ID | NAME | ORGANIZATION
-|-|-
1 | Library | GSS
-|-|-
- List available lifecycle environment that can be attached to capsule server
- Even environment-id 1 is attached to capsule, it is still listing in available list.
- Library environment should not be listed in available list
# hammer capsule content available-lifecycle-environments --id 2
-
ID | NAME | ORGANIZATION
-|-|-
1 | Library | GSS
3 | prod | GSS
2 | dev | GSS
-|-|-
- Attached another lifecycle environment and verify the results.
# 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
2 | dev | GSS
-|-|-
- Even environment-id 1 and 3 is attached to capsule, it is still listing in available list.
- Library and Prod should not be listed here after attaching to capsule.
For more KB articles/solutions related to Red Hat Satellite 6.x hammer Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x hammer-related Issues
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.