Back to bug 1314371

Who When What Removed Added
Red Hat Bugzilla Rules Engine 2016-03-03 13:13:01 UTC Flags testing_ack? planning_ack?
Yaniv Lavi 2016-03-03 13:14:25 UTC CC myakove
Flags needinfo?(myakove)
Yaniv Lavi 2016-03-03 13:14:49 UTC Priority unspecified medium
Target Milestone --- ovirt-3.6.6
Flags planning_ack? ovirt-3.6.z? ovirt-4.0.0? planning_ack+
Yaniv Lavi 2016-03-03 13:21:04 UTC Blocks 1314375
Yaniv Lavi 2016-03-03 13:21:50 UTC Assignee danken mmirecki
Aharon Canan 2016-03-13 15:41:53 UTC QA Contact acanan myakove
Dan Kenigsberg 2016-04-14 07:50:55 UTC CC danken
Target Milestone ovirt-3.6.6 ovirt-3.6.7
Marcin Mirecki 2016-05-17 09:38:38 UTC Link ID oVirt gerrit 57395
Link ID oVirt gerrit 57538
Status NEW POST
Dan Kenigsberg 2016-06-02 12:18:32 UTC Target Milestone ovirt-3.6.7 ovirt-3.6.8
Marcin Mirecki 2016-06-13 15:03:41 UTC Link ID oVirt gerrit 58810
Link ID oVirt gerrit 58881
Link ID oVirt gerrit 58898
Link ID oVirt gerrit 58917
Link ID oVirt gerrit 59057
Doc Text Some operations performed on vm during startup, might require that the vm should be started in the paused state, and kept as such until these operations are complete. An example of such an operation is external nic attachement. The vm should not be started until the plugging of the nic is complete not only on the vm, but also the entire nic infrastructure outside the vm is done.

This patch adds a functionality where the hook implementor will be able to set the vm state after startup to paused, and later to unpause the vm.

The paused state can be set in the following two hooks:
- before_device_create
- before_vm_start.

Unpausing of the vm can be done in the following hooks:
- after_device_create
- after_vm_start

The flags which control the vm state can be read and set using the following functions included in the hooking library:
- load_vm_launch_flags_from_file(vm_id) - get the current state of the flags, including changes made by other hooks
- dump_vm_launch_flags_from_file(vm_id, flags) - write the new state of the startup flags, all subsequent hooks will see the modified state of the flags
Meni Yakove 2016-06-27 08:32:12 UTC Link ID oVirt gerrit 59077
Flags needinfo?(myakove) testing_ack? testing_ack+
Red Hat Bugzilla Rules Engine 2016-06-27 08:32:16 UTC Flags ovirt-4.0.0? ovirt-4.0.0+
Dan Kenigsberg 2016-07-06 08:16:02 UTC Link ID oVirt gerrit 59919
Status POST MODIFIED
Bronce McClain 2016-07-11 12:35:52 UTC Target Milestone ovirt-3.6.8 ovirt-3.6.9
Michael Burman 2016-07-18 08:23:35 UTC Status MODIFIED ASSIGNED
CC mburman
Yaniv Lavi 2016-07-20 08:12:21 UTC Link ID oVirt gerrit 60896
Link ID oVirt gerrit 60897
Link ID oVirt gerrit 61070
Status ASSIGNED POST
Flags ovirt-3.6.z?
Yaniv Lavi 2016-07-20 08:13:55 UTC Target Milestone ovirt-3.6.9 ovirt-4.0.2
Yaniv Lavi 2016-07-20 08:14:59 UTC CC bazulay, gklein, lsurette, srevivo, ycui, ykaul
Component General vdsm
Version --- 3.6.0
Product vdsm Red Hat Enterprise Virtualization Manager
Target Milestone ovirt-4.0.2 ---
Flags ovirt-4.0.0+ planning_ack+ testing_ack+
Yaniv Lavi 2016-07-20 08:15:32 UTC Keywords ZStream
Yaniv Lavi 2016-07-20 08:15:51 UTC Target Milestone --- ovirt-3.6.9
Yaniv Lavi 2016-07-25 08:56:34 UTC Flags needinfo?(danken)
Dan Kenigsberg 2016-07-25 09:11:07 UTC Status POST MODIFIED
Flags needinfo?(danken)
Michael Burman 2016-08-28 08:31:12 UTC Status MODIFIED ON_QA
CC mmirecki
Flags needinfo?(mmirecki)
Michael Burman 2016-08-28 08:31:32 UTC Flags needinfo?(danken)
Dan Kenigsberg 2016-08-28 14:04:29 UTC Flags needinfo?(mmirecki) needinfo?(danken) needinfo?(mburman)
Michael Burman 2016-08-28 14:24:37 UTC Flags needinfo?(mburman)
Dan Kenigsberg 2016-08-29 12:03:45 UTC CC ahadas
Flags needinfo?(ahadas)
Arik 2016-08-30 08:27:57 UTC Flags needinfo?(ahadas) needinfo?(mburman)
Arik 2016-08-30 08:39:46 UTC Flags needinfo?(mburman)
Francesco Romani 2016-08-30 11:16:08 UTC CC fromani
Dan Kenigsberg 2016-08-30 11:41:38 UTC Flags needinfo?(mburman)
Michael Burman 2016-08-30 14:28:20 UTC Flags needinfo?(mburman)
Dan Kenigsberg 2016-08-31 07:37:36 UTC Flags needinfo?(mburman)
Michael Burman 2016-08-31 08:09:44 UTC Flags needinfo?(mburman)
Michael Burman 2016-08-31 11:31:26 UTC Status ON_QA VERIFIED
Byron Gravenorst 2016-09-13 06:15:28 UTC CC bgraveno
Doc Text Some operations performed on vm during startup, might require that the vm should be started in the paused state, and kept as such until these operations are complete. An example of such an operation is external nic attachement. The vm should not be started until the plugging of the nic is complete not only on the vm, but also the entire nic infrastructure outside the vm is done.

This patch adds a functionality where the hook implementor will be able to set the vm state after startup to paused, and later to unpause the vm.

The paused state can be set in the following two hooks:
- before_device_create
- before_vm_start.

Unpausing of the vm can be done in the following hooks:
- after_device_create
- after_vm_start

The flags which control the vm state can be read and set using the following functions included in the hooking library:
- load_vm_launch_flags_from_file(vm_id) - get the current state of the flags, including changes made by other hooks
- dump_vm_launch_flags_from_file(vm_id, flags) - write the new state of the startup flags, all subsequent hooks will see the modified state of the flags
This update adds functionality to enable the hook implementer to change the virtual machine state from start-up to paused, then later resume it.

This ensures that operations that require virtual machines to be started in the paused state can be completed. For example, to attach an external NIC the virtual machine should not be started until the plugging of the NIC is complete on the virtual machine and the entire NIC infrastructure outside the virtual machine.

The paused state can be set in the following two hooks:
- before_device_create
- before_vm_start.

Resuming the virtual machine can be done in the following hooks:
- after_device_create
- after_vm_start

The flags which control the virtual machine state can be read and set using the following functions in the hooking library:
- load_vm_launch_flags_from_file(vm_id)
Get the current state of the flags, including changes made by other hooks
- dump_vm_launch_flags_from_file(vm_id, flags)
Write the new state of the startup flags, all subsequent hooks will see the modified state of the flags
errata-xmlrpc 2016-09-21 00:51:28 UTC Status VERIFIED RELEASE_PENDING
errata-xmlrpc 2016-09-21 18:07:02 UTC Status RELEASE_PENDING CLOSED
Resolution --- ERRATA
Last Closed 2016-09-21 14:07:02 UTC

Back to bug 1314371