Revision 94fed7da lib/hypervisor/hv_chroot.py

b/lib/hypervisor/hv_chroot.py
255 255
    """
256 256
    if not os.path.exists(self._ROOT_DIR):
257 257
      return "The required directory '%s' does not exist." % self._ROOT_DIR
258

  
259
  @classmethod
260
  def PowercycleNode(cls):
261
    """Chroot powercycle, just a wrapper over Linux powercycle.
262

  
263
    """
264
    cls.LinuxPowercycle()
265

  
266
  def MigrateInstance(self, instance, target, live):
267
    """Migrate an instance.
268

  
269
    @type instance: L{object.Instance}
270
    @param instance: the instance to be migrated
271
    @type target: string
272
    @param target: hostname (usually ip) of the target node
273
    @type live: boolean
274
    @param live: whether to do a live or non-live migration
275

  
276
    """
277
    raise HypervisorError("Migration not supported by the chroot hypervisor")

Also available in: Unified diff