Bug 1228367

Summary: Archived VM instance still connects to its orchestration stack
Product: Red Hat CloudForms Management Engine Reporter: Bill Wei <bilwei>
Component: ProvidersAssignee: Bill Wei <bilwei>
Status: CLOSED ERRATA QA Contact: Nandini Chandra <nachandr>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.4.0CC: gmccullo, jfrey, jhardy, mfeifer, obarenbo
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:16:12 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 Bill Wei 2015-06-04 18:29:40 UTC
Description of problem:
When a VM instance in an orchestration stack is removed from the provider due to stack update becomes achieved in VMDB, but it still have an association with the stack.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Create a stack with one instance in provider
2. Refresh the provider and collect both stack and instances in VMDB
3. Update the stack, for example, change the flavor of the instance. This will force the stack to delete the existing instance and create another instance with the new flavor.
4. Refresh the provider


Actual results:
The stack contains two instances, the old and the new one. The old instance is achieved but still have the association with the stack.

Expected results:
The stack should contain only the new instance.

Additional info:

Comment 2 CFME Bot 2015-07-09 12:56:50 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/f7babe009a707f08efcccc1cca50df9e3f368702

commit f7babe009a707f08efcccc1cca50df9e3f368702
Author:     Bill Wei <bilwei>
AuthorDate: Fri Jun 5 11:58:26 2015 -0400
Commit:     Bill Wei <bilwei>
CommitDate: Wed Jul 8 17:44:49 2015 -0400

    Remove association to stack for disconnected VMs
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1228367

 app/models/vm_or_template.rb | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comment 3 CFME Bot 2015-07-09 13:18:11 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/f7babe009a707f08efcccc1cca50df9e3f368702

commit f7babe009a707f08efcccc1cca50df9e3f368702
Author:     Bill Wei <bilwei>
AuthorDate: Fri Jun 5 11:58:26 2015 -0400
Commit:     Bill Wei <bilwei>
CommitDate: Wed Jul 8 17:44:49 2015 -0400

    Remove association to stack for disconnected VMs
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1228367

 app/models/vm_or_template.rb | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comment 4 Nandini Chandra 2015-11-10 20:27:51 UTC
Verified in 5.5.0.9

Comment 6 errata-xmlrpc 2015-12-08 13:16:12 UTC
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