mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	Merge pull request #6735 from xcat2/master
Merge from master to 2.16 branch for 2.16.0 release. (1)
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
| @@ -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 | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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" | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user