Bug 1217097
Summary: | VM Retirement Backward Compatibility Information | ||
---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Tina Fitzgerald <tfitzger> |
Component: | Automate | Assignee: | Tina Fitzgerald <tfitzger> |
Status: | CLOSED ERRATA | QA Contact: | Jan Krocil <jkrocil> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 5.4.0 | CC: | dajohnso, eminguez, jhardy, jkrocil, mfeifer, mkanoor, obarenbo, psavage, tfitzger |
Target Milestone: | GA | ||
Target Release: | 5.5.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 5.5.0.1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-12-08 13:06:36 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: |
Description
Tina Fitzgerald
2015-04-29 14:31:55 UTC
Tina, how to test this? Do I need an older appliance and "upgrade" it? /Automation and /Factory don't exist any more. How should I proceed? Hi Pete, Yes, can you perform the upgrade from an older appliance? That should give you the CUSTOMER domain with the /Factory and /Automation namespaces. Let me know if you have any questions. Thanks, Tina Hi Dave, Can you have someone test this? Thanks, Tina Hi Jan, Thanks so much for the feedback! 1. Yes, the older methods expect the additional argument. The status_state does need to be supplied. 2. The log is confusing for this one. The preretirement method call to vm.finish_retirement should have set the retired flag to true and the builtin policy should have powered off the VM. Do you see any errors and/or "Finishing Retirement for" the vmname in the evm.log? If it's easier, you can send me the credentials for the appliance and I'll check it out. Thanks, Tina Hi Jan, The builtin policy to stop a newly retired VM should have kicked in, but I can see from your logs that it hasn't. I think it makes sense to power it off in our preretirement method, so lets change step 6 to read: 6. Add method: /Factory/VM/preretirement with the following content: vm = $evm.root[‘vm’] if vm vm.finish_retirement if vm.power_state == "on" $evm.log("info", "Preretirement powering off VM") vm.stop end end Thanks, Tina Tina, yup - changing the preretirement automate method to stop the VM fixed the issue. Works for me now. 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-2015:2551 |