all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH v2 pve-container/qemu-server/pve-docs/pve-guest-common 0/8] Add pre/post-migrate hooks
@ 2022-10-06 12:44 Stefan Hanreich
  2022-10-06 12:44 ` [pve-devel] [PATCH v2 pve-guest-common 1/1] Add run_params to exec_hookscript function Stefan Hanreich
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Stefan Hanreich @ 2022-10-06 12:44 UTC (permalink / raw)
  To: pve-devel

This series adds pre/post-migrate hooks to the migration process of containers
and VMs.

Additionally to testing the API/CLI migration from updated nodes, I have also
made sure to keep backwards compatibility with old nodes. This means that
migration to a node that has not yet been upgraded to support the migration hook
functionality works flawlessly. The behaviour in this case is that a warning
is printed and the migration process then continues as usual.

Changes from v1:
- remove the newly added CLI commands
- remove the abstract methods from pve-guest-common
- Add migrate-hook and query-migrate-hook commands to qm mtunnel
- Add migrate-hook functionality to Qemu backend
- Add pct mtunnel command
- Add migrate-hook, query-migrate-hook and quit commands to pct mtunnel
- Add migrate-hook functionality to LXC backend
- Add documentation for migrate-hooks to VM Hookscript documentation
- Add section for Hookscripts to the Container documentation
- Extend exec_hookscript functionality to include run parameters for run_command


pve-container:

Stefan Hanreich (2):
  add pct mtunnel command to the CLI
  add migration hooks to container migration process

 src/PVE/CLI/pct.pm     | 230 +++++++++++++++++++++++++++++++++++++++++
 src/PVE/LXC/Migrate.pm | 119 +++++++++++++++++++++
 2 files changed, 349 insertions(+)


qemu-server:

Stefan Hanreich (2):
  add migrate-hook and query-migrate-hook commands to CLI
  add migration hooks to VM migration process

 PVE/CLI/qm.pm                         | 109 ++++++++++++++++++++++++++
 PVE/QemuMigrate.pm                    | 108 +++++++++++++++++++++++++
 test/MigrationTest/QemuMigrateMock.pm |  11 ++-
 3 files changed, 227 insertions(+), 1 deletion(-)


pve-docs:

Stefan Hanreich (3):
  Add pre/post-migrate events to hookscript example
  Add hookscript section to container documentation
  Add pre/post-migrate section to VM hookscript documentation

 examples/guest-example-hookscript.pl | 20 ++++++++++++++++++++
 pct.adoc                             | 23 +++++++++++++++++++++++
 qm.adoc                              | 10 ++++++++++
 3 files changed, 53 insertions(+)


pve-guest-common:

Stefan Hanreich (1):
  Add run_params to exec_hookscript function

 src/PVE/GuestHelpers.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.30.2




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-10-06 12:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-06 12:44 [pve-devel] [PATCH v2 pve-container/qemu-server/pve-docs/pve-guest-common 0/8] Add pre/post-migrate hooks Stefan Hanreich
2022-10-06 12:44 ` [pve-devel] [PATCH v2 pve-guest-common 1/1] Add run_params to exec_hookscript function Stefan Hanreich
2022-10-06 12:44 ` [pve-devel] [PATCH v2 pve-container 1/2] add pct mtunnel command to the CLI Stefan Hanreich
2022-10-06 12:44 ` [pve-devel] [PATCH v2 pve-container 2/2] add migration hooks to container migration process Stefan Hanreich
2022-10-06 12:44 ` [pve-devel] [PATCH v2 pve-docs 1/3] Add pre/post-migrate events to hookscript example Stefan Hanreich
2022-10-06 12:44 ` [pve-devel] [PATCH v2 pve-docs 2/3] Add hookscript section to container documentation Stefan Hanreich
2022-10-06 12:44 ` [pve-devel] [PATCH v2 pve-docs 3/3] Add pre/post-migrate section to VM hookscript documentation Stefan Hanreich
2022-10-06 12:44 ` [pve-devel] [PATCH v2 qemu-server 1/2] add migrate-hook and query-migrate-hook commands to CLI Stefan Hanreich
2022-10-06 12:44 ` [pve-devel] [PATCH v2 qemu-server 2/2] add migration hooks to VM migration process Stefan Hanreich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal