Change Q_FOREACH on range based for #PSBM-155654Q_FOREACH generates Werror=dangling-else warning that is considered as error
Signed-off-by: Fima Shevrin <efim.shevrin@virtuozzo.com>
SDK API: improve working with init/deinit SDK API #PSBM-152041Creating and deleting global pointer on Main thread of event loop
should be under lock.
Appended GetCurrentInstance method to avoid usage Instance
which can create new Instance in the other threads.
Avoid to usage Instance() method in the ASSERTs.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
errors: fix usage global variable for error storage #PSBM-152041- Do not change global variable g_pErrStringsStorage without mutex;
- Set tu NULL the g_pErrStringsStorage in the destructor, to avoid
usage of non-relevant pointer.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
msg: fix warning messages #PSBM-150726KSM settings takes effect only for VM. CT is not affected.
So, improve warning message log. And correct name of this
warning constant.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
Conflicts:
Sources/SDK/Handles/Core/PrlErrStringsStorage.cpp
DspCfg: append backup parameters compression and tunnelAllow customers enabling/disabling tunneling and compression
for the backups started by Virtuozzo Automator
https://jira.vzint.dev/browse/PSBM-150576
https://jira.vzint.dev/browse/PSBM-150577
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
VmConfig: fix StackIndex for HDD #PSBM-148938In current version VZ9 several types of Hard Disk Devices
can have same Stack Indexes which allow to create
devices with the same target name, such as 'hda' or 'sda'.
This fix checks interface type for CVmHardDisk devices
and sets proper StackIndex for further usage.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
Refactoring: Fix PyObject_GetBuffer acc python upsteam #PSBM-149588The PyObject_GetBuffer and PrlReport_GetData
call the bytearray_getbuffer function internally. It does not
accept a NULL buffer, throwing an exception. Instead, pass
stack-allocated Py_buffer.
Signed-off-by: Fima Shevrin <efim.shevrin@virtuozzo.com>
error msg: NUMA nodes should be compatible with cpu-sockets #PSBM-149609Linux kernel produces warning if number of NUMA nodes is not compatible
with the cpu-sockets. So, we should only check the number of CPU sockets
is multiple of the NUMA nodes.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
errors: introduce SDK errors for NUMA nodes parameter #PSBM-148903 #PSBM-148902 #PSBM-148901Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
vm: introduce NUMA nodes parameter #PSBM-146634Allow to simulate on Virtual machines NUMA Nodes
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
vm: introduce handles to dispatcher for updating nvram #PSBM-146309Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
Conflicts:
Sources/SDK/Include/PrlApiVm.h
Remove netfilter support #PSBM-145299The kernel counterpart of this feature has been dropped in VHS9.
Signed-off-by: Efim Shevrin <efim.shevrin@virtuozzo.com>
Api Vm: introduce enums and functions for working VM chipset #PSBM-142003plrsdk library should support and allow to change chipset type
and chipset version for VM. #PSBM-131869 #PSBM-142003
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
refactoring related with expanding xmlmodel blkio physical_block_size and logical_block_size #PSBM-131181Signed-off-by: Efim Shevrin <efim.shevrin@virtuozzo.com>
Change event in postEvent method from QEvent(QEvent::DeferredDelete) to QDeferredDeleteEvent #PSBM-143293QCoreApplication::postEvent method source code includes static_cast<QDeferredDeleteEvent *>(pe.event)->loopLevel(),
thus we face with the problem of using uninitialised variable for the derived object
QDeferredDeleteEvent created from parent object QEvent(QEvent::DeferredDelete).
We change QCoreApplication::postEvent call in prl_sdk to QDeferredDeleteEvent events to remove described
problem.
S...
prlsrvctl: change vcmmd set policy message from fail to warning #PSBM-143450If we change the vcmd policy using the prlsrvctl set --vcmmd-policy command,
any non-zero return code is considered a configuration setting error.
In terms of vcmmd VCMMD_ERROR_POLICY_SET_ACTIVE_VES is only a warning.
In the dispatcher, the code VCMMD_ERROR_POLICY_SET_ACTIVE_VES corresponds to
the code PRL_ERR_RUNNING_VM_OR_CT. So we change the behavior of prlsrvctl and
change the message text ...
Add cloudlinux8 into supported os list #PSBM-141631We support vm creation with old versions of cloudlinux and
cloudlinux7 at the moment. The current commit adds cloundlinux8 to
list of supported distributions.
Signed-off-by: Efim Shevrin <efim.shevrin@virtuozzo.com>
Add default memory for freebsd #PSBM-141802We add support of FreeBSD in Dispatcher. Add default ram size
for FreeBSD.
Signed-off-by: Efim Shevrin <efim.shevrin@virtuozzo.com>