[pve-devel] [PATCH common 0/2] factor out mtunnels run command

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Aug 3 17:11:16 CEST 2017


pvecm mtunnel was a bit of failure, it was misused for various stuff, and as
it is located in the pve-cluster package no guest specific code is
available.

But we need those to tackle down the increase of latency on VM migration.
Namely, we plan to let qm mtunnel accept commands as "resume", "set
replication state", "?", in addition to its quit command, with the prime
target to fight the startup time of an SSH cconnection + perl PVE CLI tool,
which adds currently a few seconds unnecessary delay to a VM migration.

But, for the good old backward compatibility, pvecm mtunnel must stay, for
the PVE 5.X release, at least.
Factor out all it's functionality so that we can reuse that code in qm.

This is the first step toward this.
The next step is finding a place in the API for the "get migration network"
functionality, maybe /nodes/{node}/network or there like. Also renaming it
to a more generic term, as we can get arbitrary networks not just "migration
networks" from it.
Then qm needs to gain the above mentioned commands, Fabian is looking at
that currently.

cheers,
Thomas

Thomas Lamprecht (2):
  tools: add pipe_socket_to_command
  pvecm mtunnel: factor out run command

 src/PVE/Tools.pm      | 58 +++++++++++++++++++++++++++++++++++++++++++++
 data/PVE/CLI/pvecm.pm | 45 +--------------------------------------------
 2 file changed, 59 insertion(+), 44 deletions(-)

-- 
2.11.0





More information about the pve-devel mailing list