Bug 1441412
Summary: | retiring parent service doesn't retire child service | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Martin Kourim <mkourim> | |
Component: | Automate | Assignee: | abellott | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Martin Kourim <mkourim> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 5.8.0 | CC: | gmccullo, jhardy, mkanoor, mkourim, obarenbo, simaishi, tfitzger | |
Target Milestone: | GA | Keywords: | TestOnly, ZStream | |
Target Release: | 5.9.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | api:rest:services:retirement | |||
Fixed In Version: | 5.9.0.1 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1496936 (view as bug list) | Environment: | ||
Last Closed: | 2018-03-06 15:35:37 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1496936 |
Description
Martin Kourim
2017-04-11 21:37:17 UTC
Hi Martin, Can I access your test appliance? Thanks, Tina Hi Martin, Parent and child Service retirement works properly when the services are created through the Admin UI. UI Test Scenario: 1. Create a service catalog item. 2. Create a service catalog bundle and specify the service catalog item created in step 1 as a resource. 3. Order Service Bundle. 4. Retire Service Bundle. (You'll see that the parent and child service have been retired.) I think the combination of REST api calls in the example above may need some modifications. Were you testing retirement and decided to use the REST api, or were you specifically testing the REST api service functionality? Let me know if you have any questions. Thanks, Tina Hi Tina, I'm specifically testing the REST API functionality. Thanks Martin. Assigning the ticket to Alberto. Hi Martin, Setting the parent is not sufficient for wiring the services to properly handling retirement of both, you need to add_resource of the child service onto the parent service. Although that's not currently possible, it's only for vms/templates. I'll make an enhancement for that. For step 2 above, while this works, It's very implementation specific, I'd prefer the parent_service reference: POST /api/services/:second_service_id { "action": "edit", "parent_service": { "href" : "/api/services/:first_service_id" } } Hi Martin, Can you give https://github.com/ManageIQ/manageiq/pull/14876 a try, then attempt the retirement of the parent service. Thanks. Alberto The enhancement mentioned in comment #6 was implemented in PR https://github.com/ManageIQ/manageiq/pull/15991. PR https://github.com/ManageIQ/manageiq/pull/16056 also needed to be back-ported along with PR 15991. Verified that retiring parent service also retires child service when the child service was added to parent service using add_resource. |