Content view promotion fails with error "Cannot promote environment out of sequence. Use force to bypass restriction" on Red Hat Satellite 6.
Environment
- Red Hat Satellite 6.2.z.
Issue
- Unable to promote content view to the next environment.
- Content view promotion fails with the error message:
# hammer content-view version promote --organization-id 3 --content-view CVNAME --version 4.0 --to-lifecycle-environment Library
Could not promote the content view:
Cannot promote environment out of sequence. Use force to bypass restriction.
Resolution
- Use
--force
option withhammer
command to complete the content view promotion.
# hammer content-view version promote --content-view CVNAME --organization-id 1 --version 4.0 --to-lifecycle-environment Library --force
Root Cause
- Only one lifecycle environment is present on Satellite i.e.
Library
. - Content view is already promoted in
Library
lifecycle environment. Promoting the content view again in the same lifecycle environment fails.
Diagnostic Steps
- On Satellite CLI, check for number of lifecycle environments present:
# hammer lifecycle-environment list --organization-id 1
[Foreman] Password for admin:
---|---------|------
ID | NAME | PRIOR
---|---------|------
1 | Library |
---|---------|------
- From the above output, it is proved that there is only one lifecycle environment present.
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.
Comments