1. Proposed title of this feature request [RFE] Provide the ability to delete a lifecycle environment from the middle of an existing path 2. What is the nature and description of the request? It is currently not possible to remove a lifecycle environment from the beginning or middle of an existing lifecycle environment path. For example if the current lifecycle environments (in order) are Dev -> Test -> Staging -> Prod and you wish to remove Staging such that the new list (in order) is Dev -> Test -> Prod it is not currently possible to achieve this 3. Why does the customer need this? (List the business requirements here) The customer supports various distinct environments in their organization. Some environments needs change over time, and this would allow them to remove lifecycle environments that are deemed no longer necessary, by the different environment stakeholders. 4. How would the customer like to achieve this? (List the functional requirements here) Make it possible, via the gui and hammer to remove a lifecycle environment from the path, in such a way as the previous environment is now linked instead to the latter environment. 6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented. Try to remove "Staging" as per the example in #2 7. Is there already an existing RFE upstream or in Red Hat Bugzilla? None found 8. Does the customer have any specific timeline dependencies and which release would they like to target (i.e. RHEL5, RHEL6)? ASAP 9. Is the sales team involved in this request and do they have any additional input? No 10. List any affected packages or components. Satellite 6.3.2 - API - Hammer - GUI 11. Would the customer be able to assist in testing this functionality if implemented? yes
Created redmine issue https://projects.theforeman.org/issues/24596 from this bug
Upstream bug assigned to jsherril
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/24596 has been resolved.
Created attachment 1480959 [details] 6.3 patch
6.3 patch attached, simply apply the patch to your tfm-rubygem-katello installed directory, restart httpd and foreman-tasks and then remove the desired lifecycle environment with hammer. Current 6.3 blocks UI elements from making this work in the UI and changing UI assets in production with just a patch is not possible currently, so you will have to use hammer.
Verified: @Satellite 6.5.0 Snap 5.0 steps: +++++++++++++++++++++++++++++++++++++++++ hammer> lifecycle-environment list ---|---------|-------- ID | NAME | PRIOR ---|---------|-------- 2 | DEV | Library 1 | Library | 8 | Prod | Staging 7 | Staging | Test 6 | Test | DEV ---|---------|-------- hammer> lifecycle-environment paths --organization-id 1 ----------------------------------------- LIFECYCLE PATH ----------------------------------------- Library >> DEV >> Test >> Staging >> Prod ----------------------------------------- hammer> lifecycle-environment delete --name Staging --organization-id 1 Environment deleted. hammer> lifecycle-environment paths --organization-id 1 ------------------------------ LIFECYCLE PATH ------------------------------ Library >> DEV >> Test >> Prod ------------------------------ hammer> hammer> lifecycle-environment list ---|---------|-------- ID | NAME | PRIOR ---|---------|-------- 2 | DEV | Library 1 | Library | 8 | Prod | Test 6 | Test | DEV ---|---------|-------- +++++++++++++++++++++++++++++++++++++++++ Observation: - Able to delete a lifecycle environment from the middle of an existing path.
Can I implement this fix on a running Satellite 6.3.5 server?
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:1222