20867780 Nova should support LZR for devices
authorDrew Fisher <drew.fisher@oracle.com>
Fri, 10 Apr 2015 13:32:09 -0700
changeset 4099 306bbc1c18bb
parent 4097 36a08df8bc1c
child 4104 3dc5412c5fb1
20867780 Nova should support LZR for devices
components/openstack/nova/files/solariszones/driver.py
--- a/components/openstack/nova/files/solariszones/driver.py	Fri Apr 10 11:53:57 2015 -0700
+++ b/components/openstack/nova/files/solariszones/driver.py	Fri Apr 10 13:32:09 2015 -0700
@@ -1810,6 +1810,9 @@
         with ZoneConfig(zone) as zc:
             zc.addresource("device", [zonemgr.Property("storage", suri)])
 
+        # apply the configuration to the running zone
+        zone.apply()
+
     def detach_volume(self, connection_info, instance, mountpoint,
                       encryption=None):
         """Detach the disk attached to the instance."""
@@ -1836,6 +1839,9 @@
         with ZoneConfig(zone) as zc:
             zc.removeresources("device", [zonemgr.Property("storage", suri)])
 
+        # apply the configuration to the running zone
+        zone.apply()
+
     def swap_volume(self, old_connection_info, new_connection_info,
                     instance, mountpoint, resize_to):
         """Replace the disk attached to the instance.