Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CentOS7: missing wget in installation chroot blocks postinstallationscripts. #3854

Closed
ronan-kerviche opened this issue Sep 6, 2017 · 9 comments

Comments

@ronan-kerviche
Copy link

wget is not present in the installation chroot for CentOS7 and ends up blocking the post-installation scripts in /opt/xcat/share/xcat/install/scripts/post.xcat. Alternatives such as curl are available.

Additional information :

$ lsxcatd -a
Version 2.13.6 (git commit f8c0d11ff2c7c97d6e62389c0aafcdfa06cee1f6, built Mon Aug  7 07:15:47 EDT 2017)
$ uname -a
Linux --- 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 GNU/Linux
$ cat /etc/centos-release
CentOS Linux release 7.3.1611 (Core)
@immarvin
Copy link
Contributor

immarvin commented Sep 6, 2017

@ronan-kerviche , what's your osimage definition?

@ronan-kerviche
Copy link
Author

Right after copycds :

$ lsdef -t osimage centos7.3-x86_64-install-compute
Object name: centos7.3-x86_64-install-compute
    imagetype=linux
    osarch=x86_64
    osdistroname=centos7.3-x86_64
    osname=Linux
    osvers=centos7.3
    otherpkgdir=/install/post/otherpkgs/centos7.3/x86_64
    pkgdir=/install/centos7.3/x86_64
    pkglist=/opt/xcat/share/xcat/install/centos/compute.centos7.pkglist
    profile=compute
    provmethod=install
    template=/opt/xcat/share/xcat/install/centos/compute.centos7.tmpl

@immarvin
Copy link
Contributor

immarvin commented Sep 6, 2017

wget is included in /opt/xcat/share/xcat/install/centos/compute.centos7.pkglist, if you can access the installed compute node, would you please take a look at whether wget is installed?

[root@c910f03c05k21 ~]# cat /opt/xcat/share/xcat/install/centos/compute.centos7.pkglist
#Please make sure there is a space between @ and group name
wget
ntp
nfs-utils
net-snmp
rsync
yp-tools
openssh-server
util-linux
net-tools

@ronan-kerviche
Copy link
Author

wget is indeed installed but is outside of the chroot environment in which post.xcat is running. I verified that 'which wget' and 'find / -name wget' both fail there (PATH contains '/bin' and '/usr/bin').

@immarvin
Copy link
Contributor

immarvin commented Sep 6, 2017

what is the full path of wget on the installed node?
by default, the post.xcat included in %post is run in the chroot environment, which is the installed root file system. So you mentioned you run 'which wget' or 'find / -name wget' , did you mean you run the commands inside the installer?

@ronan-kerviche
Copy link
Author

From the installer command line, wget is in /usr/bin which is outside the chroot in which post.xcat is running. To verify this I added 'which' and 'find' to the post.xcat template on the management node and pushed the installation to a compute node. The information is then visible in xcat.log.

@robin2008 robin2008 added this to the 2.14.2 milestone Jun 19, 2018
@robin2008
Copy link
Member

try to recreate it if possible, if not we can close it.

@immarvin
Copy link
Contributor

cannot recreate, close this first. please reopen it if it is still there

@chuckbrazie
Copy link
Contributor

chuckbrazie commented Jul 11, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants