Revision 5063d1d5 lib/hypervisor/hv_kvm.py

b/lib/hypervisor/hv_kvm.py
2111 2111
    device specific method.
2112 2112

  
2113 2113
    """
2114
    # in case of hot-mod this is given
2114
    # in case of hot-mod if the device already exists this is given
2115 2115
    if device.pci is None:
2116 2116
      self._GetFreePCISlot(instance, device)
2117 2117
    kvm_devid = _GenerateDeviceKVMId(dev_type, device)
......
2174 2174
    """
2175 2175
    if dev_type == constants.HOTPLUG_TARGET_NIC:
2176 2176
      # putting it back in the same pci slot
2177
      device.pci = self.HotDelDevice(instance, dev_type, device, _, seq)
2177
      try:
2178
        device.pci = self.HotDelDevice(instance, dev_type, device, _, seq)
2179
      except errors.HotplugError:
2180
        logging.info("Device not found in runtime file. Assuming it was"
2181
                     " previously added without --hotplug option.")
2178 2182
      # TODO: remove sleep when socat gets removed
2179 2183
      self.HotAddDevice(instance, dev_type, device, _, seq)
2180 2184

  

Also available in: Unified diff