RH6.6 xCAT 2.9
I need to install telnet rpm package on the node. When I execute updatenode to install telnet, it gives a warning message "Warning: the packages telnet* could not be found in the repository, falling back to rpm command, did you forget to run createrepo?" . But in fact, there is repo for telnet and telnet is indeed installed on the compute node. Please take a look.
[root@c910f02c01p22 ~]# lsdef -l c910f02c01p24
Object name: c910f02c01p24
addkcmdline=sshd=1
arch=ppc64
cons=hmc
currchain=boot
currstate=netboot rhels6.6-ppc64-compute
groups=lpar,all
hcp=c910hmc01
hwtype=lpar
id=24
initrd=xcat/osimage/rhels6.6-ppc64-netboot-compute/initrd-stateless.gz
installnic=mac
kcmdline=imgurl=http://10.2.1.23:80//install/netboot/rhels6.6/ppc64/compute/ rootimg.gz XCAT=10.2.1.23:3001 NODE=c910f02c01p24 FC=0 BOOTIF=e6:d4:d4:5d:d6:03
kernel=xcat/osimage/rhels6.6-ppc64-netboot-compute/kernel
mac=e6:d4:d4:5d:d6:03
mgt=hmc
monserver=10.2.1.22
nameservers=10.2.1.22
netboot=grub2
nodetype=ppc,osi
os=rhels6.6
parent=c910f02fsp01
postbootscripts=otherpkgs
postscripts=syslog,remoteshell,syncfiles,test
pprofile=c910f02c01p24
primarynic=mac
profile=compute
provmethod=rhels6.6-ppc64-netboot-compute
servicenode=10.2.1.23
status=booted
statustime=11-05-2014 22:10:47
tftpserver=10.2.1.23
updatestatus=failed
updatestatustime=11-03-2014 05:29:58
xcatmaster=10.2.1.23
[root@c910f02c01p22 ~]# lsdef -t osimage -o rhels6.6-ppc64-netboot-compute
Object name: rhels6.6-ppc64-netboot-compute
exlist=/opt/xcat/share/xcat/netboot/rh/compute.rhels6.ppc64.exlist
imagetype=linux
osarch=ppc64
osdistroname=rhels6.6-ppc64
osname=Linux
osvers=rhels6.6
otherpkgdir=/install/post/otherpkgs/rhels6.6/ppc64
otherpkglist=/install/custom/install/rh/compute.list
permission=755
pkgdir=/install/rhels6.6/ppc64
pkglist=/opt/xcat/share/xcat/netboot/rh/compute.rhels6.ppc64.pkglist
postinstall=/opt/xcat/share/xcat/netboot/rh/compute.rhels6.ppc64.postinstall
profile=compute
provmethod=netboot
rootimgdir=/install/netboot/rhels6.6/ppc64/compute
synclists=/install/custom/netboot/rh/compute.synclist
[root@c910f02c01p22 ~]# cat /install/custom/install/rh/compute.list
telnet
[root@c910f02c01p22 ~]# updatenode c910f02c01p24 -V
Running command on c910f02c01p22: /bin/hostname 2>&1
Running command on c910f02c01p22: ip -4 --oneline addr show |awk -F ' ' '{print $4}'|awk -F '/' '{print $1}' 2>&1
Running command on c910f02c01p22: /bin/hostname 2>&1
Running command on c910f02c01p22: ip -4 --oneline addr show |awk -F ' ' '{print $4}'|awk -F '/' '{print $1}' 2>&1
c910f02c01p22: Internal call command: xdcp c910f02c01p24 -s --nodestatus -F /install/custom/netboot/rh/compute.synclist
Running internal xCAT command: xdcp ...
Running command on c910f02c01p22: /bin/hostname 2>&1
Running command on c910f02c01p22: ip -4 --oneline addr show |awk -F ' ' '{print $4}'|awk -F '/' '{print $1}' 2>&1
Running command on c910f02c01p22: rm /tmp/xdcpsynclist.8394 2>&1
Error from pping
File synchronization has completed for service nodes.
c910f02c01p23: Internal call command: xdcp c910f02c01p24 --nodestatus -F /install/custom/netboot/rh/compute.synclist
Running internal xCAT command: xdcp ...
Running command on c910f02c01p23: /bin/hostname 2>&1
Running command on c910f02c01p23: ip -4 --oneline addr show |awk -F ' ' '{print $4}'|awk -F '/' '{print $1}' 2>&1
File synchronization has completed for nodes.
Performing software maintenance operations. This could take a while, if there are packages to install.
c910f02c01p23: Internal call command: xdsh c910f02c01p24 --nodestatus -s -v -e /install/postscripts/xcatdsklspost 2 -m 10.2.1.23 'ospkgs,otherpkgs,syscloneimgupdate' --tftp /tftpboot --installdir /install --nfsv4 no -c -V
Running command on c910f02c01p23: /bin/hostname 2>&1
Running command on c910f02c01p23: ip -4 --oneline addr show |awk -F ' ' '{print $4}'|awk -F '/' '{print $1}' 2>&1
Running command on c910f02c01p23: hostname 2>&1
Running command on c910f02c01p23: /opt/xcat/bin/pping c910f02c01p24 2>&1
c910f02c01p24: Mon Nov 10 12:57:36 EST 2014 Running postscript: ospkgs
c910f02c01p24: NFSSERVER=10.2.1.23
c910f02c01p24: OSPKGDIR=/install/rhels6.6/ppc64
c910f02c01p24: OSPKGS = bash,nfs-utils,openssl,dhclient,kernel,openssh-server,openssh-clients,busybox,wget,rsyslog,dash,vim-minimal,ntp,rsyslog,rpm,rsync,ppc64-utils,iputils,dracut,dracut-network,e2fsprogs,bc,lsvpd,irqbalance,procps,parted
c910f02c01p24: pkgs= bash nfs-utils openssl dhclient kernel openssh-server openssh-clients busybox wget rsyslog dash vim-minimal ntp rsyslog rpm rsync ppc64-utils iputils dracut dracut-network e2fsprogs bc lsvpd irqbalance procps parted
c910f02c01p24: groups=
c910f02c01p24: remove pkgs=
c910f02c01p24: Please install yum on c910f02c01p24.
c910f02c01p24: Postscript: ospkgs exited with code 1
c910f02c01p24: Mon Nov 10 12:57:36 EST 2014 Running postscript: otherpkgs
c910f02c01p24: NFSSERVER=10.2.1.23
c910f02c01p24: OTHERPKGDIR=10.2.1.23/install/post/otherpkgs/rhels6.6/ppc64
c910f02c01p24: Warning: the packages telnet could not be found in the repository, falling back to rpm command, did you forget to run createrepo?
c910f02c01p24: rpm -Uvh --replacepkgs telnet
c910f02c01p24: warning: telnet-0.17-48.el6.ppc64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
c910f02c01p24: Preparing... ##################################################
c910f02c01p24: telnet ##################################################
c910f02c01p24: Postscript: otherpkgs exited with code 0
c910f02c01p24: Mon Nov 10 12:57:37 EST 2014 Running postscript: syscloneimgupdate
c910f02c01p24: Postscript: syscloneimgupdate exited with code 0
c910f02c01p24: Running of Software Maintenance has completed.
c910f02c01p23: Internal call command: xdsh c910f02c01p24 --nodestatus -s -v -e /install/postscripts/xcatdsklspost 1 -m 10.2.1.23 '' --tftp /tftpboot --installdir /install --nfsv4 no -c -V
Running command on c910f02c01p23: /bin/hostname 2>&1
Running command on c910f02c01p23: ip -4 --oneline addr show |awk -F ' ' '{print $4}'|awk -F '/' '{print $1}' 2>&1
Running command on c910f02c01p23: hostname 2>&1
Running command on c910f02c01p23: /opt/xcat/bin/pping c910f02c01p24 2>&1
c910f02c01p24: Mon Nov 10 12:57:38 EST 2014 Running postscript: syslog
c910f02c01p24: Shutting down system logger: [ OK ]
c910f02c01p24: Starting system logger: [ OK ]
c910f02c01p24: Postscript: syslog exited with code 0
c910f02c01p24: Mon Nov 10 12:57:39 EST 2014 Running postscript: remoteshell
c910f02c01p24:
c910f02c01p24: Stopping sshd: [ OK ]
c910f02c01p24: Starting sshd: [ OK ]
c910f02c01p24: Postscript: remoteshell exited with code 0
c910f02c01p24: Mon Nov 10 12:57:41 EST 2014 Running postscript: syncfiles
c910f02c01p24: Postscript: syncfiles exited with code 0
c910f02c01p24: Mon Nov 10 12:57:41 EST 2014 Running postscript: test
c910f02c01p24: Postscript: test exited with code 0
c910f02c01p24: Mon Nov 10 12:57:41 EST 2014 Running postscript: setbootfromnet
c910f02c01p24: Postscript: setbootfromnet exited with code 0
c910f02c01p24: Mon Nov 10 12:57:43 EST 2014 Running postscript: otherpkgs
c910f02c01p24: NFSSERVER=10.2.1.23
c910f02c01p24: OTHERPKGDIR=10.2.1.23/install/post/otherpkgs/rhels6.6/ppc64
c910f02c01p24: Warning: the packages telnet could not be found in the repository, falling back to rpm command, did you forget to run createrepo?
c910f02c01p24: rpm -Uvh --replacepkgs telnet
c910f02c01p24: warning: telnet-0.17-48.el6.ppc64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
c910f02c01p24: Preparing... ##################################################
c910f02c01p24: telnet ##################################################
c910f02c01p24: Postscript: otherpkgs exited with code 0
c910f02c01p24: Running of postscripts has completed.
[root@c910f02c01p22 ~]# cd /install/post/otherpkgs/rhels6.6/ppc64
[root@c910f02c01p22 ppc64]# ls
repodata telnet-0.17-48.el6.ppc64.rpm xcat
Hi Ting Ting,
This problem comes from the ospkgs postscript returning 1 because "yum" is not installed.
c910f02c01p24: Please install yum on c910f02c01p24.
c910f02c01p24: Postscript: ospkgs exited with code 1
Without yum, it can't detect that the rpm is installed or provided in a yum repo, that is why the msg appears.
We don't break in the postscript execution when there is a bad return code.
I'll discuss with the team tomorrow about how this should be handled. Or if anyone responds to this bug...
Discussed today with Poughkeepsie Team.
Diskless images have always NOT included the yum package to keep the images smaller. Normally updatenode ran on diskless images will not persist a reboot, so genimage is normally used to add packages. Without yum installed, updatenode will still use rpm to install the telnet package, so the effect is the same.
Will use the defect to enhance the msg to:
echo "Warning: the packages $plain_pkgs could not be found in the yum repository, falling back to rpm command. If you want your packages to be installed with yum, verify yum is installed and createrepo has been run."
Commit to 2.9: 3eaaa3b6f352302f7fbcc9b19f720160f7095731