Bug 1494442
Summary: | symbol conversion error while detaching disks from an openstack instance | ||
---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Felix Dewaleyne <fdewaley> |
Component: | Providers | Assignee: | Scott Seago <sseago> |
Status: | CLOSED ERRATA | QA Contact: | Ido Ovadia <iovadia> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 5.7.0 | CC: | fdewaley, gblomqui, iovadia, jfrey, jhajyahy, jhardy, mkanoor, obarenbo, simaishi, tfitzger, tzumainn |
Target Milestone: | GA | ||
Target Release: | 5.9.0 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | 5.9.0.3 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-03-01 13:18:06 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | Bug | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | Openstack | Target Upstream Version: | |
Embargoed: |
Description
Felix Dewaleyne
2017-09-22 09:26:26 UTC
Pass to providers to review errors in backend model. Related issue: https://github.com/ManageIQ/manageiq/issues/16002 A quick note on the steps to reproduce: disks = $evm.vmdb('disk').where(:hardware_id => vm.id, :backing_type => 'CloudVolume') This has an error in it -- it's the hardware ID that we're matching, not the VM ID, so it should change to: disks = $evm.vmdb('disk').where(:hardware_id => vm.hardware.id, :backing_type => 'CloudVolume') You might get lucky and have this work if every hardware object maps to a Vm or Template, and the database IDs happen to all be the same -- if you have any hosts, this probably won't work. I figured I'd mention it in case the code which was included is used anywhere in automate or test scripts. (In reply to Scott Seago from comment #4) > A quick note on the steps to reproduce: > disks = $evm.vmdb('disk').where(:hardware_id => vm.id, :backing_type => > 'CloudVolume') > > This has an error in it -- it's the hardware ID that we're matching, not the > VM ID, so it should change to: > disks = $evm.vmdb('disk').where(:hardware_id => vm.hardware.id, > :backing_type => 'CloudVolume') > > You might get lucky and have this work if every hardware object maps to a Vm > or Template, and the database IDs happen to all be the same -- if you have > any hosts, this probably won't work. I figured I'd mention it in case the > code which was included is used anywhere in automate or test scripts. passed to the customer - This script is just prototype for automation method and currently they are using fog/openstack library for direct openstack connection but will take into account the correction. New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/003dde792e5fad39127bca06fe895e708e81f7aa commit 003dde792e5fad39127bca06fe895e708e81f7aa Author: Scott Seago <sseago> AuthorDate: Tue Oct 10 09:27:38 2017 -0400 Commit: Scott Seago <sseago> CommitDate: Tue Oct 10 10:23:08 2017 -0400 bug 1494442: fix attach/detach disks automate methods Fix for bug 1494442 - symbol conversion error while detaching disks from an openstack instance https://bugzilla.redhat.com/show_bug.cgi?id=1494442 app/models/vm_or_template/operations/configuration.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) New commit detected on ManageIQ/manageiq-providers-openstack/master: https://github.com/ManageIQ/manageiq-providers-openstack/commit/1b4d3f1e3ccc8968910195d055d37bee9a8fa48b commit 1b4d3f1e3ccc8968910195d055d37bee9a8fa48b Author: Scott Seago <sseago> AuthorDate: Tue Oct 10 10:23:33 2017 -0400 Commit: Scott Seago <sseago> CommitDate: Tue Oct 10 16:52:42 2017 -0400 bug 1494442: fix attach/detach disks automate methods Fix for bug 1494442 - symbol conversion error while detaching disks from an openstack instance https://bugzilla.redhat.com/show_bug.cgi?id=1494442 app/models/manageiq/providers/openstack/cloud_manager.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) Verified ======== 5.9.0.21 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-2018:0380 |