Menu

#4631 On SLES 11.3 compute node, three nearly identical zypp repo definitions were created by xCAT

2.11
open
sles11 (10)
linux provisioning
5
2015-07-06
2015-04-01
GONG Jie
No

The management node runs xCAT 2.9.1 GA build on ppc64 LPAR. While use it to deploy a SLES 11.3 ppc64 LPAR. Something went weird. There are three configuration files in the directory /etc/zypp/repos.d with nearly identical contents in them.

The main idea of system administration is keep things neat and clean. So unnecessary redundant should be avoid.

c910f02c04p22:~ # ls -l /etc/zypp/repos.d
total 12
-rw-r--r-- 1 root root 154 Apr  1 08:36 http-10.2.3.27-ec23456b.repo
-rw-r--r-- 1 root root 215 Apr  1 08:36 SUSE-Linux-Enterprise-Server-11-SP3 11.3.3-1.138.repo
-rw-r--r-- 1 root root 132 Apr  1 08:41 xCAT-sles11.3-path0.repo
c910f02c04p22:~ # head -n 999 /etc/zypp/repos.d/*
==> /etc/zypp/repos.d/http-10.2.3.27-ec23456b.repo <==
[http-10.2.3.27-ec23456b]
name=SuSE-Linux-pkg0
enabled=1
autorefresh=1
baseurl=http://10.2.3.27/install/sles11.3/ppc64/1
path=/
type=yast2
keeppackages=0

==> /etc/zypp/repos.d/SUSE-Linux-Enterprise-Server-11-SP3 11.3.3-1.138.repo <==
[SUSE-Linux-Enterprise-Server-11-SP3 11.3.3-1.138]
name=SUSE-Linux-Enterprise-Server-11-SP3 11.3.3-1.138
enabled=1
autorefresh=1
baseurl=http://10.2.3.27:80/install/sles11.3/ppc64/1
path=/
type=yast2
keeppackages=0

==> /etc/zypp/repos.d/xCAT-sles11.3-path0.repo <==
[xCAT-sles11.3-path0]
name=xCAT-sles11.3-path0
enabled=1
autorefresh=0
baseurl=http://10.2.3.27/install/sles11.3/ppc64/1
type=yast2

Here is the osimage definition.

[root@c910f02c03p27 ~]# lsdef -t osimage master_1407s
Object name: master_1407s
    imagetype=linux
    osarch=ppc64
    osdistroname=sles11.3-ppc64
    osname=Linux
    osvers=sles11.3
    otherpkgdir=/install/post/otherpkgs/sles11.3/ppc64
    otherpkglist=/install/custom/install/sles/master.sles11.ppc64.otherpkgs.pkglist
    pkgdir=/install/sles11.3/ppc64
    pkglist=/install/custom/install/sles/master.sles11.pkglist
    profile=master
    provmethod=install
    template=/install/custom/install/sles/master.sles11.tmpl

Please refer the detail of xCAT version below.

[root@c910f02c03p27 ~]# rpm -qa | grep -i xcat
xCAT-client-2.9.1-snap201503190325.noarch
perl-xCAT-2.9.1-snap201503190325.noarch
xCAT-genesis-base-ppc64-2.9-snap201503171145.noarch
xCAT-genesis-scripts-ppc64-2.9.1-snap201503190326.noarch
conserver-xcat-8.1.16-10.ppc64
ipmitool-xcat-1.8.11-3.ppc64
xCAT-IBMhpc-2.9-snap201411170009.noarch
grub2-xcat-2.02-0.16.build17.xcat.noarch
xCAT-server-2.9.1-snap201503190325.noarch
xCAT-2.9.1-snap201503190326.ppc64
xCAT-buildkit-2.9.1-snap201503190326.noarch

Discussion

  • GONG Jie

    GONG Jie - 2015-04-01

    This problem looks similar to [bugs:#4528], which in against Ubuntu distro.

     

    Related

    Bugs: #4528

  • GONG Jie

    GONG Jie - 2015-04-14
    • Milestone: 2.9.1 --> 2.9.2
     
  • GONG Jie

    GONG Jie - 2015-04-14

    Move to milestone 2.9.2

     
  • Guang Cheng Li

    Guang Cheng Li - 2015-04-14
    • Milestone: 2.9.2 --> 2.10
     
  • Guang Cheng Li

    Guang Cheng Li - 2015-04-22

    On my SLES 11 SP3 compute node, there are two identical zypper repos:

    c910f04x19k04:/etc/zypp/repos.d # zypper sl -U
    # | Alias                                            | Name                                             | Enabled | Refresh | Type  | URI                                         
    --+--------------------------------------------------+--------------------------------------------------+---------+---------+-------+---------------------------------------------
    2 | http-10.2.1.2-854815c2                           | SuSE-Linux-pkg0                                  | Yes     | Yes     | yast2 | http://10.2.1.2/install/sles11.3/x86_64/1   
    1 | SUSE-Linux-Enterprise-Server-11-SP3 11.3.3-1.138 | SUSE-Linux-Enterprise-Server-11-SP3 11.3.3-1.138 | Yes     | Yes     | yast2 | http://10.2.1.2:80/install/sles11.3/x86_64/1
    c910f04x19k04:/etc/zypp/repos.d # 
    

    I believe the SuSE-Linux-pkg0 was added by the /opt/xcat/share/xcat/install/scripts/pre.sles, the "SUSE-Linux-Enterprise-Server-11-SP3 11.3.3-1.138" was added by the autoyast os installer. We need to understand why the following code is in /opt/xcat/share/xcat/install/scripts/pre.sles:

    export nextserver=`cat /proc/cmdline | grep http | awk -F'autoyast=http://' {'print \$2'} | awk -F':' {'print \$1'}`
    cp /tmp/profile/modified.xml /tmp/profile/modified1.xml
    sed -e 's!<software>!<add-on><add_on_products config:type="list">#INSTALL_SOURCES_IN_PRE#</add_on_products></add-on><software>!'  /tmp/profile/modified1.xml > /tmp/profile/modified.xml
    
     

    Last edit: Guang Cheng Li 2015-04-22
  • Guang Cheng Li

    Guang Cheng Li - 2015-07-06
    • Milestone: 2.10 --> 2.11
     
MongoDB Logo MongoDB