cancel
Showing results for 
Search instead for 
Did you mean: 

KVMguest error and solution

ElCoyote
Level 3

Hi,

Infoscale 7.3.1 on RHEL7.4.z.

Trying to use KVMguest to start KVM guests yields this in the log file (/var/VRTSvcs/log/KVMGuest_A.log)

#
# Log Name: KVMGuest
# System: palanthas
# SysInfo: Linux:palanthas,#1 SMP Fri Feb 23 18:54:16 UTC 2018,3.10.0-693.21.1.el7.x86_64,x86_64
# Created: 2018/03/26 09:41:48
#

2018/03/26 09:41:48 VCS INFO V-16-1-10196 Cluster logger started
2018/03/26 10:06:54 VCS INFO V-16-2-13716 Thread(140170448512768) Resource(sg_loc02_KVMguest_smb): Output of the completed operation (open)
==============================================
Can't locate rhev_virt_functions.pm in @INC (you may need to install the rhev_virt_functions module) (@INC contains: /opt/VRTSvcs/lib /opt/VRTSperl/lib/site_perl/5.26.0/x86_64-linux-thread-multi /opt/VRTSperl/lib/site_perl/5.26.0 /opt/VRTSperl/lib/5.26.0/x86_64-linux-thread-multi /opt/VRTSperl/lib/5.26.0 /opt/VRTSperl/lib/site_perl/5.26.0/x86_64-linux-thread-multi /opt/VRTSperl/lib/site_perl/5.26.0 /opt/VRTSperl/lib/site_perl /opt/VRTSvcs/lib/modules) at /opt/VRTSvcs/bin/KVMGuest/open line 29.
BEGIN failed--compilation aborted at /opt/VRTSvcs/bin/KVMGuest/open line 29.
==============================================

2018/03/26 10:06:54 VCS DBG_FFDC Generating FFDC for resource (sg_loc02_KVMguest_smb) as open entry point completed
==============================================
2018/03/26 10:06:53 VCS DBG_AGDEBUG Calling open for resource sg_loc02_KVMguest_smb
VCSAgType.C:call_open[1743]
2018/03/26 10:06:53 VCS DBG_AGDEBUG Calling exec_script without passing container information
VCSAgType.C:_exec_script[3391]
2018/03/26 10:06:53 VCS DBG_AGDEBUG Value of VCSAgResEPStruct is {ResName=sg_loc02_KVMguest_smb, EpName=open, EpEnum=8, ConfLevel=32636, MonitorInfo=0}
VCSAgProcess.C:exec_script[1892]
2018/03/26 10:06:53 VCS DBG_AGDEBUG child pid is - 6056
VCSAgProcess.C:exec_script[2121]
2018/03/26 10:06:54 VCS DBG_AGDEBUG script (/opt/VRTSvcs/bin/KVMGuest/open) exited with status (2)
VCSAgProcess.C:exec_script[2205]
2018/03/26 10:06:54 VCS DBG_AGDEBUG Canceling timer for (sg_loc02_KVMguest_smb) op(1613)
VCSAgTimer.C:_cancel[953]

The fix is to add these lines toward the top of /opt/VRTSvcs/bin/KVMGuest/monitor:

------------------------CUT HERE-----------------------------

# Get the present working directory in @INC
BEGIN {
( my $sDirName = $0 ) =~ s#(.*)/.*$#$1#;
unshift ( @INC, $sDirName );
}

------------------------CUT HERE-----------------------------

This was taken from a few other resource agents (AWSIP, AWSRoute53, EBSVol) that seem to do the right thing.

I don't have a support contract so I'm just reporting this on my spare time. :)

1 REPLY 1

ElCoyote
Level 3

BTW, most of the other files in the same Agent subdir need patching too (offline, online, open, etc...)