mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-29 18:35:33 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			67 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| #comment out for developper will not fix it
 | |
| #start:chvm_null
 | |
| #cmd:chvm
 | |
| #check:rc!=0
 | |
| #check:output=~Usage
 | |
| #end
 | |
| 
 | |
| start:chvm_p
 | |
| hcp:hmc
 | |
| label:others,virtualization
 | |
| cmd:mkdef -t node -o testnode mgt=hmc groups=all
 | |
| cmd:mkvm testnode -i $$MaxLparID -l $$CN
 | |
| check:rc==0
 | |
| cmd:lsvm testnode > /tmp/autotest.profile
 | |
| check:rc==0
 | |
| cmd:perl -pi -e 's/min_mem=\d+/min_mem=1024/g' /tmp/autotest.profile
 | |
| cmd:cat /tmp/autotest.profile|chvm testnode
 | |
| check:rc==0
 | |
| cmd:lsvm testnode
 | |
| check:output=~min_mem=1024
 | |
| cmd:chvm testnode -p __GETNODEATTR($$CN, pprofile)__
 | |
| check:rc==0
 | |
| check:output=~Success
 | |
| cmd:lsvm -a testnode
 | |
| check:output=~__GETNODEATTR($$CN, pprofile)__
 | |
| cmd:lsdef -t node -l testnode -i pprofile
 | |
| check:output=~__GETNODEATTR($$CN, pprofile)__
 | |
| cmd:rmvm testnode
 | |
| cmd:rm -f /tmp/autotest.profile
 | |
| end
 | |
| 
 | |
| start:chvm_attr
 | |
| hcp:hmc
 | |
| label:others,virtualization
 | |
| cmd:mkdef -t node -o testnode mgt=hmc groups=all
 | |
| cmd:mkvm testnode -i $$MaxLparID -l $$CN
 | |
| check:rc==0
 | |
| cmd:chvm testnode min_mem=1024
 | |
| check:rc==0
 | |
| check:output=~Success
 | |
| cmd:lsvm testnode
 | |
| check:output=~min_mem=1024
 | |
| cmd:rmvm testnode
 | |
| end
 | |
| 
 | |
| start:chvm_node
 | |
| label:mn_only,virtualization
 | |
| cmd:chvm $$CN
 | |
| check:rc!=0
 | |
| check:output=~Usage
 | |
| end
 | |
| 
 | |
| start:chvm_err_node
 | |
| label:mn_only,virtualization
 | |
| cmd:dir="/tmp/chvm_err_node";echo ${dir}".old";if [ -d "${dir}" ];then mv ${dir} ${dir}".old"; fi; mkdir -p $dir
 | |
| check:rc==0
 | |
| cmd:lsdef bogusnode > /dev/null 2>&1;if [[ $? -eq 0 ]]; then lsdef bogusnode -z >/tmp/chvm_err_node/bogusnode.stanza ;rmdef bogusnode;fi
 | |
| check:rc==0
 | |
| cmd:chvm bogusnode
 | |
| check:rc!=0
 | |
| check:output=~Error: (\[.*?\]: )?Invalid nodes and/or groups in noderange
 | |
| cmd:if [[ -e /tmp/chvm_err_node/bogusnode.stanza ]]; then cat /tmp/chvm_err_node/bogusnode.stanza | mkdef -z;fi
 | |
| check:rc==0
 | |
| cmd:dir="/tmp/chvm_err_node"; rm -rf $dir; if [ -d ${dir}".old" ];then mv ${dir}".old" $dir; fi
 | |
| check:rc==0
 | |
| end
 |