Browse Source

Pull full partition properties before powering on partition

The partition status attribute is not being updated automatically.
Before doing the poweron, we need to get the current status.
Otherwise wemight try to stop an already stopped partition,
only as the old status "paused" is still kept in the object.

Change-Id: I6971866e42d4c9a3cab225d52c95ed33a2035f0c
Andreas Scheuring 1 year ago
parent
commit
bbf4f71eea
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      nova_dpm/virt/dpm/vm.py

+ 1
- 0
nova_dpm/virt/dpm/vm.py View File

@@ -397,6 +397,7 @@ class PartitionInstance(object):
397 397
     def power_on_vm(self):
398 398
         LOG.debug('Partition power on triggered')
399 399
 
400
+        self.partition.pull_full_properties()
400 401
         self._ensure_status_transitioned()
401 402
 
402 403
         if self.partition.get_property(

Loading…
Cancel
Save