[1.9] VMware power management fails when VMs are organized in nested subfolders
Bug #1515188 reported by
Ante Karamatić
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Unassigned | ||
1.9 |
Won't Fix
|
Medium
|
Unassigned | ||
2.0 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Unfortunately I don't have logs handy right now, but I could add some tomorrow.
If vm name is used in VmWare power management configuration for a machine, power calls result in exceptions. From the memory, API is complaining that there's no 'summary' property for 'Folder' object (detailed logs to be provided tomorrow).
Once vm name is removed and vm uuid is used instead, power management works without issues.
Related branches
lp://staging/~mpontillo/maas/vmware-fixes--bug-1515188
- Gavin Panella (community): Approve
-
Diff: 276 lines (+105/-37)2 files modifiedsrc/provisioningserver/drivers/hardware/tests/test_vmware.py (+12/-1)
src/provisioningserver/drivers/hardware/vmware.py (+93/-36)
lp://staging/~mpontillo/maas/backport-vmware-2.0--bug-1515188
- Mike Pontillo (community): Approve
-
Diff: 306 lines (+124/-37)3 files modifieddocs/changelog.rst (+19/-0)
src/provisioningserver/drivers/hardware/tests/test_vmware.py (+12/-1)
src/provisioningserver/drivers/hardware/vmware.py (+93/-36)
Changed in maas: | |
milestone: | none → 1.9.1 |
Changed in maas: | |
status: | Incomplete → Triaged |
importance: | Undecided → Medium |
milestone: | 1.9.1 → 2.0.0 |
no longer affects: | maas/2.0 |
no longer affects: | maas/1.10 |
Changed in maas: | |
status: | Triaged → Fix Committed |
summary: |
- [1.9] VmWare power management doesn't work with vm name + [1.9] VVMware power management fails when VMs are organized in nested + subfolders |
summary: |
- [1.9] VVMware power management fails when VMs are organized in nested + [1.9] VMware power management fails when VMs are organized in nested subfolders |
Changed in maas: | |
milestone: | 2.0.0 → next |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Changed in maas: | |
milestone: | next → none |
To post a comment you must log in.
This is the type of error:
2015-11-12 16:07:26+0100 [ClusterClient, client] Failed to refresh power state. python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 423, in errback
self. _startRunCallba cks(fail) python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 490, in _startRunCallbacks
self. _runCallbacks( ) python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 577, in _runCallbacks
current. result = callback( current. result, *args, **kw) python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 1155, in gotResult
_inlineCal lbacks( r, g, deferred) python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 1097, in _inlineCallbacks throwExceptionI ntoGenerator( g) python2. 7/dist- packages/ twisted/ python/ failure. py", line 389, in throwExceptionI ntoGenerator python2. 7/dist- packages/ provisioningser ver/power/ query.py" , line 126, in get_power_state
system_ id, hostname, power_type, context) python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 1097, in _inlineCallbacks throwExceptionI ntoGenerator( g) python2. 7/dist- packages/ twisted/ python/ failure. py", line 389, in throwExceptionI ntoGenerator python2. 7/dist- packages/ provisioningser ver/drivers/ power/_ _init__ .py", line 246, in query
self. power_query, system_id, **kwargs) python2. 7/dist- packages/ twisted/ python/ threadpool. py", line 191, in _worker python2. 7/dist- packages/ twisted/ python/ context. py", line 118, in callWithContext text(). callWithContext (ctx, func, *args, **kw) python2. 7/dist- packages/ twisted/ python/ context. py", line 81, in callWithContext python2. 7/dist- packages/ provisioningser ver/drivers/ power/vmware. py", line 70, in power_query python2. 7/dist- packages/ provisioningser ver/drivers/ hardware/ vmware. py", line 480, in power_query_vmware
.format( uuid=uuid) , traceback. format_ exc())
provisioningse rver.drivers. hardware. vmware. VMwareAPIExcept ion: (u'Failed to get power state for uuid=', 'Traceback (most recent call last):\n File "/usr/lib/ python2. 7/dist- packages/ provisioningser ver/drivers/ hardware/ vmware. py", line 472, in power_query_ vmware\ n vm = _find_vm_ by_uuid_ or_name( api, uuid, vm_name)\n File "/usr/lib/ python2. 7/dist- packages/ provisioningser ver/drivers/ hardware/ vmware. py", line 428, in _find_vm_ by_uuid_ or_name\ n vm = api.find_ vm_by_name( vm_name) \n File "/usr/lib/ python2. 7/di...
Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
--- <exception caught here> ---
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
File "/usr/lib/
result = context.call(ctx, function, *args, **kwargs)
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
host, username, password, vm_name, uuid, port, protocol)
File "/usr/lib/