mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 05:12:30 +00:00 
			
		
		
		
	Merge pull request #7282 from gurevichmark/lzma_test
Test lzma compression for genesis network boot
This commit is contained in:
		@@ -104,7 +104,7 @@ sub process_request {
 | 
			
		||||
        $callback->({ error => "Need to specify architecture (x86, x86_64 or ppc64)" }, { errorcode => [1] });
 | 
			
		||||
        return;
 | 
			
		||||
    } elsif ($arch eq "ppc64le" or $arch eq "ppc64el") {
 | 
			
		||||
        $callback->({ data => "The arch:$arch is not supported at present, use \"ppc64\" instead" });
 | 
			
		||||
        $callback->({ data => "The arch:$arch is not supported, using \"ppc64\" instead" });
 | 
			
		||||
        $arch = 'ppc64';
 | 
			
		||||
        $request->{arg}->[0] = $arch;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -23,6 +23,7 @@ get_xcat_postscripts_loginfo
 | 
			
		||||
nodeset_cmdline
 | 
			
		||||
nodeset_runimg
 | 
			
		||||
nodeset_shell
 | 
			
		||||
nodeset_shell_lzma
 | 
			
		||||
reg_linux_diskfull_installation_flat
 | 
			
		||||
compare_postscripts
 | 
			
		||||
cleanup_postscripts_diskfull
 | 
			
		||||
 
 | 
			
		||||
@@ -23,6 +23,7 @@ get_xcat_postscripts_loginfo
 | 
			
		||||
nodeset_cmdline
 | 
			
		||||
nodeset_runimg
 | 
			
		||||
nodeset_shell
 | 
			
		||||
nodeset_shell_lzma
 | 
			
		||||
reg_linux_diskfull_installation_flat
 | 
			
		||||
compare_postscripts
 | 
			
		||||
cleanup_postscripts_diskfull
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,30 @@
 | 
			
		||||
start:nodeset_shell_lzma
 | 
			
		||||
os:rhels
 | 
			
		||||
label:others,genesis
 | 
			
		||||
description: verify could log in genesis shell lzma compression
 | 
			
		||||
cmd:yum install -y https://rpmfind.net/linux/centos/8-stream/PowerTools/__GETNODEATTR($$CN,arch)__/os/Packages/xz-lzma-compat-5.2.4-3.el8.__GETNODEATTR($$CN,arch)__.rpm
 | 
			
		||||
#Generate genesis network boot with lzma compression
 | 
			
		||||
cmd:mknb __GETNODEATTR($$CN,arch)__
 | 
			
		||||
check:rc==0
 | 
			
		||||
cmd:nodeset $$CN shell
 | 
			
		||||
check:rc==0
 | 
			
		||||
cmd:ls -l /tftpboot/xcat/genesis.fs.*.lzma
 | 
			
		||||
check:output=~genesis
 | 
			
		||||
cmd:find /tftpboot -type f -name $$CN | xargs grep "lzma"
 | 
			
		||||
check:output=~genesis
 | 
			
		||||
cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl  -n $$CN  -g
 | 
			
		||||
check:rc==0
 | 
			
		||||
cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl  -n $$CN -s
 | 
			
		||||
check:rc==0
 | 
			
		||||
cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl  -n $$CN -c
 | 
			
		||||
check:rc==0
 | 
			
		||||
cmd:cat /tmp/genesistestlog/*
 | 
			
		||||
#Remove lzma compression RPM, cleanup and generate default gz genesis network boot
 | 
			
		||||
cmd:yum remove -y xz-lzma-compat
 | 
			
		||||
cmd:rm -f /tftpboot/xcat/genesis.fs.*.lzma
 | 
			
		||||
cmd:mknb __GETNODEATTR($$CN,arch)__
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
start:nodeset_shell
 | 
			
		||||
label:others,genesis
 | 
			
		||||
description: verify could log in genesis shell
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user