Collect parameters more oftenWe need more fine-grained counters, or at least we might need it.
PSBM-40950
Signed-off-by: dderbyshev <dderbyshev@virtuozzo.com>
ve-fill data from lin VMFilling counters from lin VM in data_from_VM function via reading from pipe got from exec via ConnectionToVM.
It makes it possible to execute a file in VM and store fd to its output. Map uuid2Connection stores information about already opened connections.
PSBM-40950
Signed-off-by: dderbyshev <dderbyshev@virtuozzo.com>
ve-fill data from lin CTFilling counters from lin CT in data_from_CT function via proc read and exec "vzlist -o laverage"
PSBM-40950
Signed-off-by: dderbyshev <dderbyshev@virtuozzo.com>
ve-new properties for linux VE countersAdded new fields for linux VE stats. They have { rmond 59 } MIB.
Not yet filling them.
PSBM-40950
Signed-off-by: dderbyshev <dderbyshev@virtuozzo.com>
ve-report os typeIt is necessary to distinguish win and lin guests from each other because they require different stats for prediction.
PSBM-40950
Signed-off-by: dderbyshev <dderbyshev@virtuozzo.com>
Different mibs from rmondrmond-drs now will use 26171.1.2 (was .1) and 26171.3 (was .3) to avoid conflicts with original rmond
Signed-off-by: dderbyshev <dderbyshev@virtuozzo.com>
guest-transport: add installation scriptPSBM-40227, PSBM-40228
Adds new target 'install'
Script 'install_transport.py' is used for installing binaries in guests.
Prerequisites for succesful installation are:
1) Target VMs are running under control of prl-disp-service
2) Qemu guest-agent with guest-exec is installed in each VM and running.
3) In windows host python is installed
Signed-off-by: Igor Redko <redkoi@virtuozzo.com>
guest-transport: add windows supportPSBM-40227
move linux specific code to lin_transport.c
add windows specific code
Signed-off-by: Igor Redko <redkoi@virtuozzo.com>
Merge pull request #3 in OVZ/rmond from ~ABONDROV/rmond:master to master* commit '01956c08480339352f042f0de71c27fda1f9e128':
Add install target to makefile
Merge pull request #1 in OVZ/rmond from ~ABURLUKA/rmond:master to master* commit 'c65d1ed5915bc8000b6a39135f09d4d83a19adcf':
Make a threadsafe container for inner data in rmond plugin
BUGFIX @103011 Review @103011 "Add license CT usage to node info" Reviewed-by: shrike Observers: dim * Problem:In pdrs we use number of running CTs as number of license CT usage but it is not correct
as 1 and 50 ids are not account for usage and there could be temporary CT of number up to 2 with lifetime up to 5 hours that are not accounted too.
* Solution
Include lisence CT usage into rmond data.
#PSBM-28708
Issues:
Affects Major Issue PSBM-28708 - "PDRS: Service (1) and MN (50) containers should no...
MINOR update PARALLELS-RMOND-SMI to pass validation @102516Review @102516 "Yet another SMI update"
Reviewed-by: shrike
Observers: dim
PARALLELS-RMOND-SMI also failed validation.
Proposed version works for IBS
MINOR @100910, bug #PSBM-30667 Review @100910 "Fixes bug #PSBM-30667 (snmp memory leak)" Reviewed-by: dimrmond subscribes to ves performance stats. every second the dispatcher pushes a stat
event for every ve. not all the performance data is available from subscription. therefore
rmond polls the required info periodically. the actual implementation uses a single lock
to serialize state updates. then polling may slow down the events handling.
it incures accumulation of events pending for processing...
MINOR @99513, bug #PSBM-30202:fixed Review @99513 "Fixes bug #PSBM-30202 (Node has been dropped by PDRS)" Reviewed-by: dimrmond uses the system time which is sensible to time adjustments.
let's switch to the monotonic clock to workaround
Issues:
Fixes Critical Issue PSBM-30202 - "[at.pcs6] vzt-pcs-ha-ct-functional: functional.fit_rand_5 ERROR: Node has been dropped by PDRS" #PSBM-30202
MINOR @noreview, bug #PSBM-25734:fixed. looks like the sdk misses replies sometimes or the dispatcher just doesn't answer to some requests. then we may end up hanging in PrlJob_Wait forever. the worst the wait might occure under the big global lock and this'll lead to the whole application deadlock. as a workaround let's limit waiting to 15 seconds for requests which tolerate failure.Issues:
Fixes Major Issue PSBM-25734 - "snmpd with rmond leaks memory" #PSBM-25734
MERGE @noreview, bug #PSBM-24884. process network statistics events, report MAC addresses for network devicesIssues:
Affects Major Issue PSBM-24884 - "Metering support in Nova driver" #PSBM-24884
BUGFIX Fix VM handling in DRS in a case of combined license usedThis patch fixes the problem with wrong handling of a license's limit on a
running VMs number in a case of a combined license.
The check in DRS is follows:
1) compare a sum of running VMs & CTs with servers_total
2) if the object is CT - than compare a number of running CTs with ct_limit
3) if the object is VM - than compare a number of running VMs with nr_vms
In a case of combined license...
MINOR @noreview, bug #PSBM-22818. sizeof(counter64) is 16 bytes. O_o. fill the structure members manually to workaroundIssues:
Affects Major Issue PSBM-22818 - "invalid value of VE mem limit at snmp statistic" #PSBM-22818
MINOR @76367, bug #PSBM-21993:fixedReview @76367 "Fixes bug #PSBM-21993 (it's needs to subscribe on UCD-SNMP-MIB::memTotalReal)"
Reviewed-by: shrike
Observers: sergeyt, dim, krasnov
use a fake request and the main_session to query values from external mibs
Issues:
Fixes Critical Issue PSBM-21993 - "[snmp] it's needs to subscribe on UCD-SNMP-MIB::memTotalReal" #PSBM-21993
MINOR @75994, bug #PSBM-21891:fixedReview @75994 "Fixes bug #PSBM-21891 (snmpwalk crashes snmpd)"
Reviewed-by: sergeyt
Observers: dim
external devices names could be rather long bigger than the limit for the record oid length. let's use the hash of the device name instead and move name itself out of the table index.
Issues:
Fixes Major Issue PSBM-21891 - "snmpwalk crashes snmpd" #PSBM-21891
MINOR @noreview.the latest version of the net-snmp lib expects that the ip address value length would be 4 bytes exactly but the snmp_set_var_typed_value doesn't enforce that rule. pass correct length to make proper packet