20867780 Nova should support LZR for block devices
authorDrew Fisher <drew.fisher@oracle.com>
Sat, 18 Jul 2015 06:52:03 -0700
changeset 4671 d08190e626f1
parent 4670 5d025a8c4800
child 4677 6bacf1a9d9ea
20867780 Nova should support LZR for block devices
components/openstack/nova/files/solariszones/driver.py
--- a/components/openstack/nova/files/solariszones/driver.py	Fri Jul 17 23:29:07 2015 -0700
+++ b/components/openstack/nova/files/solariszones/driver.py	Sat Jul 18 06:52:03 2015 -0700
@@ -1836,6 +1836,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."""
@@ -1862,6 +1865,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.