Skip to content

Commit

Permalink
Merge pull request xcat2#6735 from xcat2/master
Browse files Browse the repository at this point in the history
Merge from master to 2.16 branch for 2.16.0 release. (1)
  • Loading branch information
gurevichmark authored Jun 16, 2020
2 parents a93c7c9 + a013138 commit 7fc773b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
5 changes: 3 additions & 2 deletions xCAT-test/autotest/testcase/go_xcat/case3
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ check:rc==0
#Install additional packages on Red Hat
cmd:if xdsh $$CN "grep \"Red Hat\" /etc/*release >/dev/null"; then xdsh $$CN "yum install -y yum-utils dnf-utils bzip2"; fi

#Pull down repomd.xml on SLES to prevent caching of the wrong file
cmd:if xdsh $$CN "grep \"SUSE\" /etc/*release >/dev/null"; then xdsh $$CN "wget http://xcat.org/files/xcat/repos/yum/devel/core-snap/repodata/repomd.xml"; fi
#Pull down core and deps repomd.xml on SLES to prevent caching of the wrong file
cmd:if xdsh $$CN "grep \"SUSE\" /etc/*release >/dev/null"; then xdsh $$CN "wget --no-cache http://xcat.org/files/xcat/repos/yum/devel/core-snap/repodata/repomd.xml"; fi
cmd:if xdsh $$CN "grep \"SUSE\" /etc/*release >/dev/null"; then os=`echo __GETNODEATTR($$CN,os)__ | cut -d "." -f1 | sed s/sle1/sles1/` && xdsh $$CN "wget --no-cache http://xcat.org/files/xcat/repos/yum/devel/xcat-dep/$os/__GETNODEATTR($$CN,arch)__/repodata/repomd.xml"; fi

#Install additional packages on Ubuntu
cmd:if xdsh $$CN "grep \"Ubuntu\" /etc/*release >/dev/null"; then xdsh $$CN "DEBIAN_FRONTEND=noninteractive apt-get install -y gnupg"; fi
Expand Down
9 changes: 5 additions & 4 deletions xCAT-test/autotest/testcase/migration/sles_migration
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cmd:service dhcpd restart
check:rc==0
cmd:if cat /etc/*release |grep SUSE >/dev/null;then cat /var/lib/dhcp/db/dhcpd.leases|grep $$CN;elif cat /etc/*release |grep "Red Hat" >/dev/null;then cat /var/lib/dhcpd/dhcpd.leases|grep $$CN;fi
check:output=~$$CN
cmd:copycds $$ISO
cmd:copycds $$ISO | grep -v "%"
check:rc==0
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/commoncmd/retry_install.sh $$CN __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute
check:rc==0
Expand Down Expand Up @@ -146,7 +146,7 @@ cmd:service dhcpd restart
check:rc==0
cmd:if cat /etc/*release |grep SUSE >/dev/null;then cat /var/lib/dhcp/db/dhcpd.leases|grep $$CN;elif cat /etc/*release |grep "Red Hat" >/dev/null;then cat /var/lib/dhcpd/dhcpd.leases|grep $$CN;fi
check:output=~$$CN
cmd:copycds $$ISO
cmd:copycds $$ISO | grep -v "%"
check:rc==0
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/commoncmd/retry_install.sh $$CN __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute
check:rc==0
Expand Down Expand Up @@ -188,10 +188,11 @@ cmd:xdsh $$CN "zypper sl -U;zypper --gpg-auto-import-keys search --match-exact -
check:rc==0
cmd:xdsh $$CN "zypper -n install xCAT"
check:rc==0
cmd:xdsh $$CN "zypper -n install createrepo"
# Name of createrepo package on sles15 is different from sles12
cmd:if [ "__GETNODEATTR($$CN,os)__" = "sle15" ]; then xdsh $$CN "zypper -n install createrepo_c"; else xdsh $$CN "zypper -n install createrepo";fi
check:rc==0
cmd:xdsh $$CN "source /etc/profile.d/xcat.sh"
eck:rc==0
check:rc==0
cmd:xdsh $$CN "lsxcatd -v"
check:rc==0
check:output=~$$MIGRATION2_VERSION
Expand Down
2 changes: 1 addition & 1 deletion xCAT-test/autotest/testcase/nodeset/cases0
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ label:others
cmd:mkdef -t node -o testnode1 arch=ppc64el cons=ipmi groups=pbmc mgt=ipmi ip=10.1.1.200 mac=e6:d4:d2:3a:ad:06 monserver=10.1.1.1 nameservers=10.1.1.1 nodetype=ppc,osi profile=compute tftpserver=10.1.1.1 xcatmaster=10.1.1.1
check:rc==0
cmd:chdef testnode1 os=rhels7.5 netboot=petitboot
eck:rc==0
check:rc==0
cmd: mkdef "rhels7.5-ppc64el-install-compute" -u profile=compute provmethod=install osvers=rhels7.5
check:rc==0
cmd:nodeset testnode1 osimage="rhels7.5-ppc64el-install-compute"
Expand Down
2 changes: 1 addition & 1 deletion xCAT-test/autotest/testcase/xcat_inventory/cases.common
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ check:output ~=usage
check:output ~= error: argument -f/--path: expected one argument
cmd:xcat-inventory export -t node -o bogusnode --path
check:rc!=0
eck:output ~=usage
check:output ~=usage
check:output ~= error: argument -f/--path: expected one argument
cmd:mkdir /tmp/xcat_inventory_export_option_f/testdir
check:rc==0
Expand Down

0 comments on commit 7fc773b

Please sign in to comment.