[Satelite 6.x] - When trying to remove a lifecycle environment from a capsule, it throws the error "ActiveRecord::RecordNotFound".
Issue
- When trying to remove a lifecycle environment from a capsule, it throws the error
ActiveRecord::RecordNotFound
. The issue happens when using the webUI or thehammer
cli.
hammer> capsule list
---|-------------------------------------|-------------------------------------------------
ID | NAME | URL
---|-------------------------------------|-------------------------------------------------
2 | capsule-nfs-001.rdu.redhat.com | https://capsule-nfs-001.rdu.redhat.com:9090
3 | capsule-sysmgmt.usersys.redhat.com | https://capsule-sysmgmt.usersys.redhat.com:9090
1 | sat6-sysmgmt.usersys.redhat.com | https://sat6-sysmgmt.usersys.redhat.com:9090
---|-------------------------------------|-------------------------------------------------
hammer> lifecycle-environment list --organization sysmgmt
---|---------|--------
ID | NAME | PRIOR
---|---------|--------
2 | Library |
5 | Prod | QA
4 | QA | Devel
3 | Devel | Library
---|---------|--------
hammer> capsule content lifecycle-environments --id 2
---|-------|-------------
ID | NAME | ORGANIZATION
---|-------|-------------
3 | Devel | sysmgmt
---|-------|-------------
hammer> capsule content remove-lifecycle-environment --lifecycle-environment-id 3 --id 2
Could not remove the lifecycle environment from the capsule:
ActiveRecord::RecordNotFound
Environment
- Red Hat Satellite 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.