Пример #1
0
  def HotplugSupported(self, instance):
    """Checks if hotplug is supported.

    By default is not. Currently only KVM hypervisor supports it.

    """
    raise errors.HotplugError("Hotplug is not supported by this hypervisor")
Пример #2
0
    def VerifyHotplugSupport(self, instance, action, dev_type):
        """Verifies that hotplug is supported.

    Given the target device and hotplug action checks if hotplug is
    actually supported.

    @type instance: L{objects.Instance}
    @param instance: the instance object
    @type action: string
    @param action: one of the supported hotplug commands
    @type dev_type: string
    @param dev_type: one of the supported device types to hotplug
    @raise errors.HotplugError: if hotplugging is not supported

    """
        raise errors.HotplugError("Hotplug is not supported.")
Пример #3
0
 def _raise(reason):
     raise errors.HotplugError("Cannot hot-add NIC: %s." % reason)
Пример #4
0
    def HotModDevice(self, instance, dev_type, device, extra, seq):
        """Hot-mod a device.

    """
        raise errors.HotplugError(
            "Hotplug is not supported by this hypervisor")