mirror of
				https://git.proxmox.com/git/qemu-server
				synced 2025-11-04 06:13:19 +00:00 
			
		
		
		
	There are checks for custom parsing behavior inside certain sections relying only on the section name. While the name 'pending' cannot be used by snapshots, the name 'cloudinit' can. Introduce an associated section type to make the checks precise. The test was not added in a separate commit, because it would fail when writing the config before the fix, and failure in writing is never expected by the test script. So there is no easy way to highlight just the difference in behavior together with the fix and the git history should stay bisectable. Compare with the verify-snapshot.conf testcase without the actual fix applied to see the difference. Signed-off-by: Fiona Ebner <f.ebner@proxmox.com> Link: https://lore.proxmox.com/20250127112923.31703-5-f.ebner@proxmox.com
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
boot: order=scsi0
 | 
						|
cores: 2
 | 
						|
cpu: x86-64-v2-AES
 | 
						|
ide2: lvm:vm-120-cloudinit,media=cdrom
 | 
						|
ipconfig0: ip6=dhcp
 | 
						|
memory: 4096
 | 
						|
meta: creation-qemu=9.0.2,ctime=1725975013
 | 
						|
name: deb1223
 | 
						|
net0: vmxnet3=BC:24:11:2C:69:EC,bridge=vnet0,firewall=1
 | 
						|
numa: 0
 | 
						|
ostype: l26
 | 
						|
parent: cloudinit
 | 
						|
scsi0: nfs:120/vm-120-disk-0.qcow2,iothread=1,size=4G
 | 
						|
scsihw: virtio-scsi-single
 | 
						|
smbios1: uuid=b3247ab1-1fe6-428e-965b-08a1b64a8746
 | 
						|
sockets: 1
 | 
						|
unused0: rbd:vm-120-disk-0
 | 
						|
vmgenid: 7079e97c-50e3-4079-afe7-23e67566b946
 | 
						|
 | 
						|
[special:cloudinit]
 | 
						|
ipconfig0: ip=dhcp,ip6=dhcp
 | 
						|
name: deb122
 | 
						|
 | 
						|
[cloudinit]
 | 
						|
boot: order=scsi0
 | 
						|
cores: 2
 | 
						|
cpu: x86-64-v2-AES
 | 
						|
ide2: lvm:vm-120-cloudinit,media=cdrom
 | 
						|
ipconfig0: ip6=dhcp
 | 
						|
memory: 4096
 | 
						|
meta: creation-qemu=9.0.2,ctime=1725975013
 | 
						|
name: deb1223
 | 
						|
net0: vmxnet3=BC:24:11:2C:69:EC,bridge=vnet0,firewall=1
 | 
						|
numa: verify meee~ :)
 | 
						|
ostype: l26
 | 
						|
scsi0: nfs:120/vm-120-disk-0.qcow2,iothread=1,size=4G
 | 
						|
scsihw: virtio-scsi-single
 | 
						|
smbios1: uuid=b3247ab1-1fe6-428e-965b-08a1b64a8746
 | 
						|
snaptime: 1737549549
 | 
						|
sockets: 1
 | 
						|
vmgenid: 7079e97c-50e3-4079-afe7-23e67566b946
 |