Avaya Support Forums

Avaya Support Forums (http://support.avaya.com/forums/index.php)
-   Avaya Aura & Unified Communications (http://support.avaya.com/forums/forumdisplay.php?f=2)
-   -   KVM OVA bugs: SMGR HW resources (http://support.avaya.com/forums/showthread.php?t=14096)

hajek2 09-15-2019 08:04 AM

KVM OVA bugs: SMGR HW resources
 
SMGR is checking the HW resources and it is doing it wrong!

SMGR-8.1.0.0.733078-KVM-47.ova (SMGR81GA007), patched SMGR81GA013, SMGR81GA018 and SMGR81SSP01

/opt/Avaya/vsp/VEProfile/VEProfile.sh:55
Code:

allocated_cpu=`cat /proc/cpuinfo  | grep processor  | wc -l`
This is terribly wrong approach because if the work ‘processor’ is in the actual name then it produces double CPU count:
https://i.imgur.com/RP2kiKl.png

Solution is in including tabulator and colon (additionally matching the word from the beginning of line with ^) in the grep:
Code:

cat /proc/cpuinfo | grep -P "^processor\t:" | wc -l
or parse /bin/lscpu (util-linux) output or just simply use /bin/nproc (GNU coreutils) which is also present in the system!


... btw. next issue is that if configuration changes one can’t run the VM and it shuts down itself without warning (lame):
https://i.imgur.com/gjyvYr3.png



... and please don't tell me to change CPU type to 'host' ... I already did that but it doesn't change the thing that script is buggy.

mlombardi1 09-16-2019 06:41 AM

Good info. Avaya development needs to see this post.


All times are GMT -7. The time now is 06:54 PM.