VMware: Attribute error while selecting datastores

Bug #1401052 reported by Vipin Balachandran
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Medium
Vipin Balachandran

Bug Description

Using the new datastore selection logic with a single host fails with error " val instance has no attribute 'obj'"

Tags: drivers vmware
Revision history for this message
Vipin Balachandran (vbala) wrote :

Currently this code path is never executed, but will be called by future bug fixes.

Changed in cinder:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/140655

Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/140655
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=01b029e4d3afb181b43cce4b7f7c0185adb9eeac
Submitter: Jenkins
Branch: master

commit 01b029e4d3afb181b43cce4b7f7c0185adb9eeac
Author: Vipin Balachandran <email address hidden>
Date: Wed Dec 10 12:41:08 2014 +0530

    VMware: Fix datastore selection with single host

    Currently, the select_datastore method is called with an empty list of
    ESX hosts. This causes the method to retrieve all the hosts in vCenter
    as candidates for selecting a datastore. The reference to a retrieved
    host is stored in attribute 'obj'. Some of the future bug fixes will
    need to invoke this method with reference to a single ESX host. Such
    invocations will fail with attribute error: 'val instance has no
    attribute 'obj''. This patch fixes the attribute error.

    Closes-Bug: #1401052
    Change-Id: Ib4f48d2ebfbfa3a9ce6a402300d41351548932ef

Changed in cinder:
status: In Progress → Fix Committed
Mike Perez (thingee)
Changed in cinder:
milestone: none → kilo-1
Thierry Carrez (ttx)
Changed in cinder:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: kilo-1 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.