def qemuGuestAgentShutdown(self): if not self.guestAgent.isResponsive(): raise exception.NonResponsiveGuestAgent()
def qemuGuestAgentReboot(self): if not self.guestAgent.isResponsive(): raise exception.NonResponsiveGuestAgent()
'nfsErr': exception.AccessTimeout().response(), 'exist': exception.VMExists().response(), 'noVmType': exception.UnsupportedVMType().response(), 'down': exception.VMIsDown().response(), 'copyerr': exception.CopyFailed().response(), 'sparse': exception.CannotCreateSparse().response(), 'createErr': exception.CannotCreateVM().response(), 'noConPeer': exception.NoConnectionToPeer().response(), 'MissParam': exception.MissingParameter().response(), 'migrateErr': exception.MigrationError().response(), 'imageErr': exception.ImageFileNotFound().response(), 'outOfMem': exception.OutOfMemory().response(), 'unexpected': exception.UnexpectedError().response(), 'unsupFormat': exception.UnsupportedImageFormat().response(), 'ticketErr': exception.SpiceTicketError().response(), 'nonresp': exception.NonResponsiveGuestAgent().response(), # codes 20-35 are reserved for add/delNetwork # code 39 was used for: # wrongHost - migration destination has an invalid hostname 'unavail': exception.ResourceUnavailable().response(), 'changeDisk': exception.ChangeDiskFailed().response(), 'destroyErr': exception.VMDestroyFailed().response(), 'fenceAgent': exception.UnsupportedFenceAgent().response(), 'noimpl': exception.MethodNotImplemented().response(), 'hotplugDisk': exception.HotplugDiskFailed().response(), 'hotunplugDisk': exception.HotunplugDiskFailed().response(), 'migCancelErr': exception.MigrationCancelationFailed().response(), 'snapshotErr': exception.SnapshotFailed().response(), 'hotplugNic': exception.HotplugNicFailed().response(), 'hotunplugNic': exception.HotunplugNicFailed().response(), 'migInProgress': exception.MigrationInProgress().response(),