This issue happens for PCM used genesis but seems caused by xCAT xCAT-genesis-base.spec code issue. It may not impact xCAT 2.8.x -> 2.9.x upgrade due to in 2.8.x xCAT was using an older version of package xCAT-genesis-base.
Env: PCM
package type: x86_64 rpm
scenario: upgrade packages 2.8.5 -> 2.9.1
install old version genesis packages:
[root@rhel64 old]# rpm -ivh *
warning: xCAT-genesis-scripts-x86_64-2.8.5pcm-snap201410090153.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID da736c68: NOKEY
Preparing... ########################################### [100%]
1:xCAT-genesis-base-x86_6########################################### [ 50%]
2:xCAT-genesis-scripts-x8########################################### [100%]
If you are installing/updating xCAT-genesis-base separately, not as part of installing/updating all of xCAT, run 'mknb <arch> manually'
Upgrade them to newer version, runs into problem:
[root@rhel64 new]# rpm -Uvh xCAT-genesis-base-x86_64-2.9-snap201503060727.noarch.rpm
Preparing... ########################################### [100%]
file /opt/xcat/share/xcat/netboot/genesis/x86_64/fs/bin from install of xCAT-genesis-base-x86_64-1:2.9-snap201503060727.noarch conflicts with file from package xCAT-genesis-scripts-x86_64-1:2.8.5pcm-snap201410090153.noarch
file /opt/xcat/share/xcat/netboot/genesis/x86_64/fs/sbin from install of xCAT-genesis-base-x86_64-1:2.9-snap201503060727.noarch conflicts with file from package xCAT-genesis-scripts-x86_64-1:2.8.5pcm-snap201410090153.noarch
[root@rhel64 new]#
Odd directory created:
[root@rhel64 new]# ll /opt/xcat/share/xcat/netboot/genesis/x86_64/fs/
total 84
drwxr-xr-x 2 root root 4096 Mar 26 15:36 bin
lrwxrwxrwx 1 root root 7 Mar 26 15:36 bin;5513b701 -> usr/bin <--------------------- ???
drwxr-xr-x 2 root root 4096 Mar 26 15:32 cmdline
drwxr-xr-x 2 root root 4096 Mar 26 15:36 debian
drwxr-xr-x 3 root root 4096 Mar 26 15:32 dev
drwxr-xr-x 5 root root 4096 Mar 26 15:32 etc
-rwxr-xr-x 1 root root 8879 Mar 5 2014 init
drwxr-xr-x 2 root root 4096 Apr 4 2014 initqueue
drwxr-xr-x 2 root root 4096 Apr 4 2014 initqueue-finished
drwxr-xr-x 2 root root 4096 Apr 4 2014 initqueue-settled
drwxr-xr-x 2 root root 4096 Apr 4 2014 initqueue-timeout
drwxr-xr-x 6 root root 4096 Mar 26 15:32 lib
drwxr-xr-x 3 root root 4096 Mar 26 15:32 lib64
drwxr-xr-x 2 root root 4096 Apr 4 2014 proc
drwxr-xr-x 2 root root 4096 Mar 26 15:36 sbin
drwxr-xr-x 2 root root 4096 Apr 4 2014 sys
drwxr-xr-x 2 root root 4096 Apr 4 2014 sysroot
drwxrwxrwt 2 root root 4096 Apr 4 2014 tmp
drwxr-xr-x 7 root root 4096 Mar 26 15:32 usr
drwxr-xr-x 5 root root 4096 Mar 26 15:32 var
Analysis:
Probably caused by this line?
leiai@leiai-desktop:~/leiai/codes/xcat-git/xcat-core/xCAT-genesis-builder$ git diff 6d8b0c81862b8634874c39fe3bb530705adef05f f252d167a1a90cf729ac361826f030d8e79359b4 xCAT-genesis-base.spec
diff --git a/xCAT-genesis-builder/xCAT-genesis-base.spec b/xCAT-genesis-builder/xCAT-genesis-base.spec
old mode 100644
new mode 100755
index 6187e76..dff9dc3
--- a/xCAT-genesis-builder/xCAT-genesis-base.spec
+++ b/xCAT-genesis-builder/xCAT-genesis-base.spec
@@ -59,4 +59,4 @@ fi
%Files
%defattr(-,root,root)
-/
+/opt/xcat/share/xcat/netboot/genesis/%{tarch}
This line may impact xCAT 2.9.x upgrade to future releases.
I am not able to recreate this problem.
And I could update from 2.9.1 to 2.10 without any problem.
~~~
[root@c910f04x19k07 xcat]# yum clean metadata
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Cleaning repos: local-rhels6.6-x86_64-HighAvailability local-rhels6.6-x86_64-LoadBalancer
: local-rhels6.6-x86_64-ResilientStorage local-rhels6.6-x86_64-ScalableFileSystem
: local-rhels6.6-x86_64-Server local-rhels6.6-x86_64-x86_64 xcat-2-core xcat-dep
16 metadata files removed
8 sqlite files removed
0 metadata files removed
[root@c910f04x19k07 xcat]# yum update "xCAT"
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Update Process
local-rhels6.6-x86_64-HighAvailability | 4.1 kB 00:00
local-rhels6.6-x86_64-HighAvailability/primary_db | 44 kB 00:00
local-rhels6.6-x86_64-LoadBalancer | 4.1 kB 00:00
local-rhels6.6-x86_64-LoadBalancer/primary_db | 7.4 kB 00:00
local-rhels6.6-x86_64-ResilientStorage | 4.1 kB 00:00
local-rhels6.6-x86_64-ResilientStorage/primary_db | 50 kB 00:00
local-rhels6.6-x86_64-ScalableFileSystem | 4.1 kB 00:00
local-rhels6.6-x86_64-ScalableFileSystem/primary_db | 7.0 kB 00:00
local-rhels6.6-x86_64-Server | 4.1 kB 00:00
local-rhels6.6-x86_64-Server/primary_db | 3.1 MB 00:00
local-rhels6.6-x86_64-x86_64 | 4.1 kB 00:00
local-rhels6.6-x86_64-x86_64/primary_db | 3.1 MB 00:00
xcat-2-core | 2.5 kB 00:00 ...
xcat-2-core/primary_db | 25 kB 00:00 ...
xcat-dep | 2.5 kB 00:00 ...
xcat-dep/primary_db | 27 kB 00:00 ...
Resolving Dependencies
--> Running transaction check
---> Package perl-xCAT.noarch 4:2.9.1-snap201503190325 will be updated
---> Package perl-xCAT.noarch 4:2.10-snap201504012124 will be an update
---> Package xCAT.x86_64 0:2.9.1-snap201503190326 will be updated
---> Package xCAT.x86_64 0:2.10-snap201504012124 will be an update
---> Package xCAT-buildkit.noarch 4:2.9.1-snap201503190326 will be updated
---> Package xCAT-buildkit.noarch 4:2.10-snap201503312336 will be an update
---> Package xCAT-client.noarch 4:2.9.1-snap201503190325 will be updated
---> Package xCAT-client.noarch 4:2.10-snap201503312336 will be an update
---> Package xCAT-genesis-scripts-x86_64.noarch 1:2.9.1-snap201503190326 will be updated
---> Package xCAT-genesis-scripts-x86_64.noarch 1:2.10-snap201503312336 will be an update
---> Package xCAT-server.noarch 4:2.9.1-snap201503190325 will be updated
---> Package xCAT-server.noarch 4:2.10-snap201503312336 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================
Package Arch Version Repository Size
==================================================================================================================
Updating:
perl-xCAT noarch 4:2.10-snap201504012124 xcat-2-core 706 k
xCAT x86_64 2.10-snap201504012124 xcat-2-core 215 k
xCAT-buildkit noarch 4:2.10-snap201503312336 xcat-2-core 92 k
xCAT-client noarch 4:2.10-snap201503312336 xcat-2-core 552 k
xCAT-genesis-scripts-x86_64 noarch 1:2.10-snap201503312336 xcat-2-core 44 k
xCAT-server noarch 4:2.10-snap201503312336 xcat-2-core 1.8 M
Transaction Summary
Upgrade 6 Package(s)
Total download size: 3.3 M
Is this ok [y/N]: y
Downloading Packages:
Total 131 MB/s | 3.3 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : 4:perl-xCAT-2.10-snap201504012124.noarch 1/12
Updating : 4:xCAT-client-2.10-snap201503312336.noarch 2/12
Updating : 4:xCAT-server-2.10-snap201503312336.noarch 3/12
Updating : 1:xCAT-genesis-scripts-x86_64-2.10-snap201503312336.noarch 4/12
If you are installing/updating xCAT-genesis-base separately, not as part of installing/updating all of xCAT, run 'mknb <arch>' manually
Updating : 4:xCAT-buildkit-2.10-snap201503312336.noarch 5/12
Updating : xCAT-2.10-snap201504012124.x86_64 6/12
Restarting xCATd [ OK ]
Running '/opt/xcat/sbin/mknb x86_64', triggered by the installation/update of xCAT-genesis-scripts-x86_64 ...
Creating genesis.fs.x86_64.lzma in /tftpboot/xcat
The 'mknb x86_64' command completed successfully.
Cleanup : xCAT-2.9.1-snap201503190326.x86_64 7/12
Cleanup : 4:xCAT-server-2.9.1-snap201503190325.noarch 8/12
Cleanup : 4:xCAT-client-2.9.1-snap201503190325.noarch 9/12
Cleanup : 4:perl-xCAT-2.9.1-snap201503190325.noarch 10/12
Cleanup : 4:xCAT-buildkit-2.9.1-snap201503190326.noarch 11/12
Cleanup : 1:xCAT-genesis-scripts-x86_64-2.9.1-snap201503190326.noarch 12/12
Verifying : 4:perl-xCAT-2.10-snap201504012124.noarch 1/12
Verifying : 4:xCAT-buildkit-2.10-snap201503312336.noarch 2/12
Verifying : 4:xCAT-client-2.10-snap201503312336.noarch 3/12
Verifying : xCAT-2.10-snap201504012124.x86_64 4/12
Verifying : 1:xCAT-genesis-scripts-x86_64-2.10-snap201503312336.noarch 5/12
Verifying : 4:xCAT-server-2.10-snap201503312336.noarch 6/12
Verifying : 1:xCAT-genesis-scripts-x86_64-2.9.1-snap201503190326.noarch 7/12
Verifying : 4:perl-xCAT-2.9.1-snap201503190325.noarch 8/12
Verifying : 4:xCAT-client-2.9.1-snap201503190325.noarch 9/12
Verifying : 4:xCAT-buildkit-2.9.1-snap201503190326.noarch 10/12
Verifying : xCAT-2.9.1-snap201503190326.x86_64 11/12
Verifying : 4:xCAT-server-2.9.1-snap201503190325.noarch 12/12
Updated:
perl-xCAT.noarch 4:2.10-snap201504012124 xCAT.x86_64 0:2.10-snap201504012124
xCAT-buildkit.noarch 4:2.10-snap201503312336 xCAT-client.noarch 4:2.10-snap201503312336
xCAT-genesis-scripts-x86_64.noarch 1:2.10-snap201503312336 xCAT-server.noarch 4:2.10-snap201503312336
Complete!
[root@c910f04x19k07 xcat]# /opt/xcat/bin/lsxcatd -v
Version 2.10 (git commit cc73b77243db41fe256aa660740804d2c8144891, built Wed Apr 1 21:24:16 EDT 2015)
[root@c910f04x19k07 xcat]# rpm -qa | grep -i xcat
elilo-xcat-3.14-4.noarch
xCAT-server-2.10-snap201503312336.noarch
syslinux-xcat-3.86-2.noarch
grub2-xcat-1.0-1.noarch
conserver-xcat-8.1.16-10.x86_64
xCAT-genesis-base-x86_64-2.9-snap201410100236.noarch
xCAT-client-2.10-snap201503312336.noarch
xCAT-genesis-scripts-x86_64-2.10-snap201503312336.noarch
xCAT-2.10-snap201504012124.x86_64
ipmitool-xcat-1.8.11-3.x86_64
perl-xCAT-2.10-snap201504012124.noarch
xCAT-buildkit-2.10-snap201503312336.noarch
[root@c910f04x19k07 xcat]#
~~~~
The only possibility I could think of is that the xCAT-genesis-base shipped with PCM still includes the "/", "/usr/bin" and "/usr/sbin" in the spec file, I fixed this problem in the middle of 2014, if PCM is still using this old version, then PCM needs to ship a newer version of xCAT-genesis-base.
Assigning back to PCM team for further investigation...
Ai Lei does not work on xCAT any more, since this problem could be recreated, closing this bug.