Add mac and hostInterface name setting forcibly #PSBM-155705In case of creating a VM via prlctl, macaddress and hostInterface
name are generated during
VM registration within TaskRegisterVM. Here we add default behavior
for virsh define similar to prlctl create. If dumpxml of a VM contains
a network interface, but this interface does not have a hostInterface name,
then this device will not be validated by the rng schema of the dispatcher
and the dispatc...
backup: fix printing backup list for case without backups #PSBM-156151problem was introduced by commit: 560455baf80
backup: append log to watch for list and last backup #PSBM-156006
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
Add default value for watchdog int Dispatcher #PSBM-154159Libvirt upstream has added default value for watch dog.
Currently we dont have and appropriate device in libprlxml,
here we just support default value.
Signed-off-by: Fima Shevrin <efim.shevrin@virtuozzo.com>
Add watch dog, qemicmdline, controller in domaincommon #PSBM-154159Compilation fixes in acc to new domaincommon
Signed-off-by: Fima Shevrin <efim.shevrin@virtuozzo.com>
backupTarget: improve log message if we switched to full backup due to uuid mismatch #PSBM-156006Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
guest-tool-win: do not use path for calling guest-tools exec files #PSBM-156074VZ9 guest tools already have proper PATH variable with
path to 'qemu-ga' so we do not need to use %programfiles%
for execution prl_newsid and prl_nettool and avoid getting error
with space character inside path.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
unittest: remove CT testing from unit test #PSBM-156060VZ9 does not support CT anymore
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
vm state: update vm staus for already runnig vm #PSBM-154028If virsh shows running vm but somewhy prl-disp-service
sees vm as stopped, prlctl command does not allow to start vm or
change its state. Only restart prl-disp-service can help.
This fix updates current vm state and starts socat for vnc
by sending internal signal about already started vm status.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
Conflicts:
Dispatcher/Dispatcher...
tunnel: add error handling for fail connection #PSBM-153870Send error to source prl-disp-service if we can't
set established connection to qemu-nbd server.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
tunnel: improve logs for dsp tunnel #PSBM-153871Added watcher for socket state in target side.
We should see any problem with connection,
some error cases can be ignored, so lets observe
for socket state.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
Conflicts:
Dispatcher/Dispatcher/Tasks/Task_BackupHelper.cpp
backup: introduce more logs for understanding rare race VM #PSBM-153401Sometimes race happens and backup fails with error
PRL_ERR_OPERATION_WAS_CANCELED
I suspect that clearing channel in the kill() method
sometimes happens earlier than reactFinish() and in
the moment when other thread is inside the read_() method.
Let's check this theory by adding this logs.
I think we should call read_() and use m_channel under the
mutex lock.
Signed-off-by: Aleksandr Leskin <a...
VmConfig: keep OsType and OsVersion for VM #PSBM-153171This patch reverts old functionality wich was removed mistakenly
Pavel Vokhmyanin:
Translate osType and osVersion from and into libosinfo #PSBM-131215
commit: a3b4ffa93cc87a87f9042b128f6bb1811d41d3ae
Dispatcher should keep OsType and OsVersion in pvs config and
do not rely on libvirt domain xml, especially in cases of
migration from VHS7 version.
All other logic works properly and Transponst...
Omit IOTUNE_GROUP_NAME flag in case zero IoTune limit setting #PSBM-151497Libvirt function qemuDomainSetGroupBlockIoTune in case of IoTune setting
expects that if iolimit is set to zero, the blk group name will not be
specified, thus libvirt interprets a null io value as a way to remove
the blk disk group.
Otherwise, libvirt throws an error because creating a blk group
with zero parameters makes no sense.
We omit specifying the flag VIR_DOMAIN_BLOCK_IOTUNE_GROUP_NAME...
Merge pull request #2311 in OVZ/prl-disp-service from ~EFIM SHEVRIN/prl-disp-service_0:rng_vhost_blk_pr to master* commit 'c5d4d57cd91b131022cca7250488d4209b538c70':
add vhost-blk based disks PSBM-152241
ct: do not allow empty host mac address for CT #PSBM-152520We should use predefined mac address for CT on the Host machine
to avoid reconfigure Bridge on the Host.
Predefined mac address should be less than mac address of
Bridge on the host. VZ9 use prefix of mac address 'FE3772'
for this purposes.
Empty host mac address means that libvzctl scripts should
create it but without adjusting, this brings for us
randomly generated mac addresses and effects p...
add vhost-blk based disks PSBM-152241We add vhost-blk based disks in rng Schema and fix Direct and Reverse
files respectively.
Signed-off-by: Fima Shevrin <efim.shevrin@virtuozzo.com>
libvirt: do not shutdown not running VM #PSBM-150691libvirt does not send error anymore about shutdowned VM:
\"domain is not running\".
So we should check before the current VM status and do not ask
libvirt shutdown stopped VM.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
libvirt agent: do not create QSharedPointer for nullptr #PSBM-150691Destructor of Abstract calls virDomainFree for NULL ptr, which
provides error message.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
Revert: transponster: all appended CD devices should have boot order #PSBM-150310This reverts commit 353e3bc9af5b32ebbb3f16067dfcb2811fbd138e.
Aleksandr Leskin committed 08 Sep 2023
We should not do it for all CD-ROM devices, we should do
it only for new appended (like installtools and cloud-init etc).
https://bugs.openvz.org/browse/OVZ-7480
https://virtuozzo.atlassian.net/browse/PSBM-151770
https://virtuozzo.atlassian.net/browse/PSBM-150310
Signed-off-by: Aleksandr Les...