VMware: refactor volumeops._get_volume_uuid()

Bug #1257726 reported by Radoslav Gerganov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Radoslav Gerganov

Bug Description

Recently I have been doing some queries for extraConfig VM options and found that the most efficient way to retrieve a given property is to do:

session._call_method(vim_util, 'get_dynamic_property', vm_ref, 'VirtualMachine', 'config.extraConfig["some_prop_here"]')

Right now we ask for all extraConfig options and then we iterate over the result set to find a particular one.

Tags: vmware
Changed in nova:
assignee: nobody → Radoslav Gerganov (rgerganov)
Changed in nova:
status: New → Confirmed
importance: Undecided → Low
milestone: none → ongoing
Revision history for this message
Shawn Hartsock (hartsock) wrote :

Note: I see this as a low priority refactor for efficiency. That means the refactor should increase over all test coverage as a beneficial side-effect as well as demonstrate a more efficient algorithm (either by logical argument & mathematical proof or by test and measurements)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

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

Reviewed: https://review.openstack.org/72663
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=b48bd3c0cf1f4ccfada24a6aebc7ced308d44927
Submitter: Jenkins
Branch: master

commit b48bd3c0cf1f4ccfada24a6aebc7ced308d44927
Author: Radoslav Gerganov <email address hidden>
Date: Mon Feb 10 18:07:33 2014 +0200

    VMware: refactor _get_volume_uuid

    It is more efficient to ask vCenter for specific extraConfig property instead
    getting all properties and then manually searching the one which is
    needed.

    Closes-Bug: #1257726
    Change-Id: I4fc8399c9a8b6a141ac489e8fb92117ec03ca42f

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: ongoing → none
status: Fix Committed → Fix Released
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.