Skip to content
This repository was archived by the owner on Nov 9, 2020. It is now read-only.

Handle case where device.backing.uuid is None #16

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Leibniz137
Copy link

Some of the devices attached to VMs in my vsphere deployment apparently lack a backing uuid (ie. device.backing.uuid is None). This ended up being an issue because this driver checks every VM to see if the device it needs is already attached elsewhere.

During this process an AttributeError was being raised in _list_vsphere_volumes on line 586, specifically where _normalize_uuid was called. This method presumes uuid is a string (and thus has .translate & .lower methods).

This issue manifested itself in vsphere.log with the following error:

2016-02-04 01:36:48,289 - vsphere_blockdevice - ERROR - list_volumes: List volumes failed with error: 'NoneType' object has no attribute 'translate'

Also rm'ed an unused import

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant