Big news! The community will be moving to a new platform April 21. Read more.
Big news! The community will be moving to a new platform April 21. Read more.
Absent Member.. Absent Member..
Absent Member..
355 views

NA Satellite Install fails because it cannot detect the OS Version

Jump to solution

Hi guys,  Long time no see 🙂

I'm installing NA on a dev box here and when deploying the satellite gateway I get an error saying that "Can't determine Linux distribution. Aborting..."

OS is CentOS 6.7.  I tried modifiyng /etc/redhat-release /etc/issue with no luck.  I also looked into the installation script and it looks like it calls another install.py script that checks the /etc/redhat-release file.

Any ideas?

Some more data:

 

============================================================
Package install
============================================================

Scanning /root/Software_NA_Satellite_10/saOPSWgw-50.0.37394.0-installer-RedHat6-Or-SUSE11/pkgs
for updated Gateway packages...
Found /root/Software_NA_Satellite_10/saOPSWgw-50.0.37394.0-installer-RedHat6-Or-SUSE11/pkgs/OPSWgw-50.0.37394.0-1.x86_64.rpm
Current version: 50.0.37394.0
Installer version: 50.0.37394.0

============================================================
Verify Realm and Gateway Names
============================================================

Realm and Gateway names are legal.

============================================================
Gateway Property File Generation
============================================================


============================================================
Gateway Crypto Generation
============================================================


============================================================
Starting Opsware Gateway
============================================================

Can't determine Linux distribution. Aborting...
/etc/opt/opsware/startup/opswgw-EpiconProdNAGW1 start failed!

 

--
Franklin Zamora-Chang
0 Likes
1 Solution

Accepted Solutions
Absent Member.. Absent Member..
Absent Member..

 Yep, that's what I ended up doing.

 

After the installation., an init script gets created, so I edited that one.

/etc/init.d/opswgw-MyCompanyProdNAGW1

... and added this to the code:

######################################
# Determine Linux distribution
######################################

if [ `uname` = "Linux" ]; then

for distribution in redhat sles
do
RELPKG=`rpm -qa | grep ${distribution}-release`
if [ ! -z "$RELPKG" ] ; then
LINUX_DISTRIBUTION=$distribution
break
fi
done

# line added by franklin
LINUX_DISTRIBUTION='redhat'

--
Franklin Zamora-Chang

View solution in original post

0 Likes
4 Replies
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

Hi,

Just hard-code the LINUX_DISTIBUTION variable to 'redhat' and unconstruct the for loop  in the gateway startup script after installer failes. Should be fine.

 

Cheers,

 

 

Marius Herculea
HP SW Technical Consultant

Cloud and Automation Professional Services

Absent Member.. Absent Member..
Absent Member..

 Yep, that's what I ended up doing.

 

After the installation., an init script gets created, so I edited that one.

/etc/init.d/opswgw-MyCompanyProdNAGW1

... and added this to the code:

######################################
# Determine Linux distribution
######################################

if [ `uname` = "Linux" ]; then

for distribution in redhat sles
do
RELPKG=`rpm -qa | grep ${distribution}-release`
if [ ! -z "$RELPKG" ] ; then
LINUX_DISTRIBUTION=$distribution
break
fi
done

# line added by franklin
LINUX_DISTRIBUTION='redhat'

--
Franklin Zamora-Chang

View solution in original post

0 Likes
Absent Member.. Absent Member..
Absent Member..

Thanks Michael.

I was petty sure CentOS was not supported, had to make it work anyway, as proof of concept.  

--
Franklin Zamora-Chang
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.