Project

General

Profile

Bug #12767

cetpkgsupport can return the wrong information in a docker container

Added by Lynn Garren about 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
05/25/2016
Due date:
% Done:

0%

Estimated time:
Spent time:
Duration:

Description

This happens if lsb_release is not installed. The example below is from a docker container on a SL7 host.

[kherner@localhost ~]$ export UPS_OVERRIDE="-H Linux64bit+2.6-2.12" 
[kherner@localhost ~]$ source /cvmfs/fermilab.opensciencegrid.org/products/common/etc/setup
[kherner@localhost ~]$ setup cetpkgsupport -z /cvmfs/nova.opensciencegrid.org/externals
[kherner@localhost ~]$ get-directory-name debug
debug output: os slf7
              platform x86_64
              platinfo Linux64bit+2.6-2.12:slf7:x86_64
              subdir slf7.x86_64
              flavor Linux64bit+2.6-2.12

History

#1 Updated by Kenneth Herner about 4 years ago

It can happen even when lsb_releaseis installed if UPS_OVERRIDE is set. There's a bug in the translate_ups_flavor function:

translate_ups_flavor () {
echo "going into the translate function"
echo "flvr_uanme = $flvr_uname"
if [ "${flvr_uname}" = "2.6" ]
then
if [ "${flvr_uname}" = "2.12" ]
then
OS=slf6
elif [ "${flvr_uname}" = "2.5" ]
then
OS=slf5
else
check_further
fi
else
#unknown kernel release number
check_further
fi
}

Both "${flvr_uname}" = "2.12" and "${flvr_uname}" = "2.5" should be testing ${flvr_glibc} instead of ${flvr_uname}.

#2 Updated by Lynn Garren about 4 years ago

  • Status changed from New to Resolved
  • Assignee set to Lynn Garren

Much thanks for the fix, Ken. This is now available as cetpkgsupport v1_10_02. It will be part of new distrubtions, but NOvA will need to install it themselves. cetpkgsupport is one of the few products that is declared current, so new releases will be picked up automatically.

http://scisoft.fnal.gov/scisoft/packages/cetpkgsupport/v1_10_02/cetpkgsupport-1.10.02-noarch.tar.bz2

#3 Updated by Lynn Garren almost 4 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF