Bug 1416851

Summary: Cloudforms attempts to connect to the wrong tenant to reach an instance (all actions but open vnc console)
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ProvidersAssignee: Tzu-Mainn Chen <tzumainn>
Status: CLOSED ERRATA QA Contact: Ola Pavlenko <opavlenk>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: cbudzilo, cpelland, fdewaley, gblomqui, jfrey, jhardy, jocarter, mfeifer, obarenbo, rrasouli, simaishi, tzumainn
Target Milestone: GAKeywords: ZStream
Target Release: 5.6.4   
Hardware: All   
OS: All   
Whiteboard: openstack:tenant
Fixed In Version: 5.6.4.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1391882 Environment:
Last Closed: 2017-03-09 17:08:44 UTC Type: ---
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: 1391882    
Bug Blocks:    

Comment 2 CFME Bot 2017-01-26 15:31:03 UTC
New commit detected on ManageIQ/manageiq/darga:
https://github.com/ManageIQ/manageiq/commit/8847de83b97b160086ffc43c45c6810212b71c18

commit 8847de83b97b160086ffc43c45c6810212b71c18
Author:     Adam Grare <agrare>
AuthorDate: Wed Nov 9 11:34:47 2016 -0500
Commit:     Satoe Imaishi <simaishi>
CommitDate: Thu Jan 26 10:27:49 2017 -0500

    Merge pull request #12486 from petrblaho/openstack-cloud-vm-use-correct-tenant
    
    Adds connection_options to OS Cloud VM
    (cherry picked from commit e5bf22a7b2f74f9b70a8c1c4950c63b2560d34e7)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1416851

 .../providers/openstack/cloud_manager/vm.rb        | 19 ++++++++
 .../providers/openstack/cloud_manager/vm_spec.rb   | 51 +++++++++++++++++-----
 2 files changed, 58 insertions(+), 12 deletions(-)

Comment 3 Ronnie Rasouli 2017-02-07 15:40:18 UTC
000026, :tenant_id=>121000000000011, :automate_message=>nil}], Dequeued in: [3.26452036] seconds
[----] I, [2017-02-07T10:20:27.931157 #32556:62b13c]  INFO -- : MIQ(MiqQueue#deliver) Message id: [121000000242919], Delivering...
[----] I, [2017-02-07T10:20:27.932171 #32556:62b13c]  INFO -- : MIQ(MiqAeEngine.deliver) Delivering {:event_type=>:request_vm_poweroff, "VmOrTemplate::vm"=>121000000000013, :vm_id=>121000000000013, "Host::host"=>121000000000004, :host_id=>121000000000004, "ExtManagementSystem::ext_management_system"=>121000000000015, :ext_management_system_id=>121000000000015, "MiqEvent::miq_event"=>121000000053657, :miq_event_id=>121000000053657, "EventStream::event_stream"=>121000000053657, :event_stream_id=>121000000053657} for object [ManageIQ::Provider

The host stopped with a non admin tenant

Comment 5 errata-xmlrpc 2017-03-09 17:08:44 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://rhn.redhat.com/errata/RHBA-2017-0474.html