Created attachment 1187211 [details]
Example of automation.log with loop on Ansible Tower service retirement
Description of problem:
I have a bundle setup with two services, first one is a VM provisioning, second is an Ansible Tower job template (specifying limit in the dialog). Provisioning is fine, but when retirering this service, the ServiceRetirement state machine goes in a loop at StartRetirement step (first step of the state machine) for the Ansible Type service. this causes CFME to become extremely slow and the automate.log to fill up with the same step being executed over and over (MIQ_ABORT is bot handle correctly). Example log attached.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a bundle with item 1) provision a VM, item 2) run Ansible Tower job template
2. Once the service provisioned, retire the service
3. CFME never completes the service retirement as seen in automation.log (loop for the ansible tower service retirement)
The retirement for the Ansible Tower service results with MIQ_ABORT but re-run the same retirement state machine over and over
Retirement state machine should stop, either successfully or with an error
Deleting the services manually (Services > My Services > Configuration > Remove Service from VMDB) causes the retirement service to complete.
Discussed issue with Kevin Morey who recommended a retirement instance for generic service types. New "Generic" instance should be used as the retirement entry point for Ansible Tower.
This PR has been merged so I am moving this to 'post'.
Created a bundle with two service 1) Vmware catalog item and 2) Ansible Tower item . Ordered the bundle.
Two separate services (one for vmware and one for ansible tower ) are provisioned under MyService.
On retiring each service , the ansible tower job does not retire .
Appliance : https://10.8.196.170
Service - bundle
I was using your appliance on Friday but its not working now. Is it still available?
Service bundle - "retire"
The job under Automate - Ansible Tower - Job does not retire and keeps showing
The Ansible Tower Service should not be shown in the UI when it is provisioned as part of a Service Bundle as reported here:
Once the fix for the above BZ is merged, those sub services will not be shown.
As long as the Ansible Tower job gets retired when the Bundle Service is retired, then it's not an issue.
If you can validate the Bundle retirement works properly, we can validate this ticket.
Let me know if you have any questions.
Created attachment 1275965 [details]
Hi Tina ,
What I am seeing is ansible service whether part of bundle or not does not retire the job .
https://10.8.198.201 . I have created a catalog item here named ansible and retired it . The service moves to "retired" section in Myservice but the job (Under Automate-Ansible Tower- Jobs) does not retire .
See attached screenshot . Isn't the job supposed to retire with service ?
No, we don't do anything to the job.
As long as the Service is marked as Retired, the retirement process has completed successfully.