Scripts called in Snippets

Latest response

All,

We utilize Satellite 5.6 for our deployments. In our post script, we call a snippet that runs post build orientated steps. Recently in one of these snippets i added a section, to install an rpm, and run the script that this rpm installs.

I've been seeing a problem when I do this in testing, where it seems to run the script, but never actually move on from it.

I'm curious if there are some rules about running local scripts during the kickstart. I'm suspecting that for whatever reason, since this script doesn't end with an 'exit' it doesn't end.

To be clear this script is working fine, and has been for quite a while when not included in the kickstart process.

Without putting the whole script here (as there is proprietary information) It's ran in two function:

PREP
INSTALL

There is nothing after INSTALL.

I know it's mostly working, because one of the last steps of the INSTALL function calls another:

if [ $RH_VER == "5" ]
then
CLEAN;
yum -y install srvadmin-all libxml2 srvadmin-cm;
PATH_SET;
if [ -s ${DELL_PATH}/srvadmin/sbin/srvadmin-services.sh ]
then
${DELL_PATH}/srvadmin/sbin/srvadmin-services.sh restart;
echo "Install Succesful";
if [ ! -e /usr/bin/omreport ]
then
ln -s ${DELL_PATH}/srvadmin/bin/omreport /usr/bin/omreport
fi
SNMPSETUP;
OMEUSER;
else
echo "Install Failed";
exit 1
fi
fi
}

The SNMPSETUP section.. works.. because the output on the kickstart page shows SNMP information.

So for whatever reason AFTER these steps it stops and basically hangs as if it's waiting for something.

Anyway, any suggestions?

Thanks,

Denny

Responses

Hi Denny,

Are you really sure that the OMEUSER section finishes or is your script hanging in this section?

regards,
Siem

What I suspect might be happening: I assume your OMEUSER section is running some dracadm commands to configure users for your DRAC, and they are possibly hanging. I had to go through SO many iterations to get my Dell stuff working correctly. (I assume you have probably had your dracadm commands hang on you on a running system like myself ;-)

First I determine whether idracadm or idracadm7 is available, giving preference to idrac7

/opt/dell/srvadmin/sbin/srvadmin-services.sh status || /opt/dell/srvadmin/sbin/srvadmin-services.sh restart

# Determine which version of idracadm is installed, favoring idracadm7
ls /opt/dell/srvadmin/bin/idracadm && myRACADM="/opt/dell/srvadmin/bin/idracadm"
ls /opt/dell/srvadmin/bin/idracadm7 && myRACADM="/opt/dell/srvadmin/bin/idracadm7"

$myRACADM config -g cfgLanNetworking -o cfgNicEnable 1

Also - I have found that using the srvadmin-idrac7 package works more universally - and I don't believe it is automagically installed via srvadmin-all (we don't use the public Dell repos - rather, we pull down the Dell non-hardware-specific one). This is my "Dell Specific" bit in my bootstrap:

yum -y install srvadmin-all srvadmin-idrac7 yum-dellsysid OpenIPMI libsmbios smbios-utils ipmitool 

I would put some "tell-tales" in your bootstrap/kickstart to let you know how far along things get and when they fail.

Na, nothing is running dracadm commands. This isn't setting up OME per'se as much as it's just installing srvadmin, and setting up SNMP. Also this script works perfectly fine in setting up OME/OMSA outside of a kickstart post script.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.