mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	Workaround cloud-init hotplug issue
cloud-init added a hook which triggers on every device add/rm event, which results in holding open devices for a while after they're created/destroyed. So let's shove an exclusion rule for that into the GH workflows until it gets fixed. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Signed-off-by: Rich Ercolani <rincebrain@gmail.com> Closes #12644 Closes #12669
This commit is contained in:
		
							parent
							
								
									143476ce8d
								
							
						
					
					
						commit
						55ab3773d7
					
				
							
								
								
									
										11
									
								
								.github/workflows/zfs-tests-functional.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.github/workflows/zfs-tests-functional.yml
									
									
									
									
										vendored
									
									
								
							| @ -44,6 +44,17 @@ jobs: | |||||||
|         sudo sed -i.bak 's/updates/extra updates/' /etc/depmod.d/ubuntu.conf |         sudo sed -i.bak 's/updates/extra updates/' /etc/depmod.d/ubuntu.conf | ||||||
|         sudo depmod |         sudo depmod | ||||||
|         sudo modprobe zfs |         sudo modprobe zfs | ||||||
|  |         # Workaround for cloud-init bug | ||||||
|  |         # see https://github.com/openzfs/zfs/issues/12644 | ||||||
|  |         FILE=/lib/udev/rules.d/10-cloud-init-hook-hotplug.rules | ||||||
|  |         if [ -r "${FILE}" ]; then | ||||||
|  |           HASH=$(md5sum "${FILE}" | awk '{ print $1 }') | ||||||
|  |           if [ "${HASH}" = "121ff0ef1936cd2ef65aec0458a35772" ]; then | ||||||
|  |             # Just shove a zd* exclusion right above the hotplug hook... | ||||||
|  |             sudo sed -i -e s/'LABEL="cloudinit_hook"'/'KERNEL=="zd*", GOTO="cloudinit_end"\n&'/ "${FILE}" | ||||||
|  |             sudo udevadm control --reload-rules | ||||||
|  |           fi | ||||||
|  |         fi | ||||||
|         # Workaround to provide additional free space for testing. |         # Workaround to provide additional free space for testing. | ||||||
|         #   https://github.com/actions/virtual-environments/issues/2840 |         #   https://github.com/actions/virtual-environments/issues/2840 | ||||||
|         sudo rm -rf /usr/share/dotnet |         sudo rm -rf /usr/share/dotnet | ||||||
|  | |||||||
							
								
								
									
										11
									
								
								.github/workflows/zfs-tests-sanity.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.github/workflows/zfs-tests-sanity.yml
									
									
									
									
										vendored
									
									
								
							| @ -40,6 +40,17 @@ jobs: | |||||||
|         sudo sed -i.bak 's/updates/extra updates/' /etc/depmod.d/ubuntu.conf |         sudo sed -i.bak 's/updates/extra updates/' /etc/depmod.d/ubuntu.conf | ||||||
|         sudo depmod |         sudo depmod | ||||||
|         sudo modprobe zfs |         sudo modprobe zfs | ||||||
|  |         # Workaround for cloud-init bug | ||||||
|  |         # see https://github.com/openzfs/zfs/issues/12644 | ||||||
|  |         FILE=/lib/udev/rules.d/10-cloud-init-hook-hotplug.rules | ||||||
|  |         if [ -r "${FILE}" ]; then | ||||||
|  |           HASH=$(md5sum "${FILE}" | awk '{ print $1 }') | ||||||
|  |           if [ "${HASH}" = "121ff0ef1936cd2ef65aec0458a35772" ]; then | ||||||
|  |             # Just shove a zd* exclusion right above the hotplug hook... | ||||||
|  |             sudo sed -i -e s/'LABEL="cloudinit_hook"'/'KERNEL=="zd*", GOTO="cloudinit_end"\n&'/ "${FILE}" | ||||||
|  |             sudo udevadm control --reload-rules | ||||||
|  |           fi | ||||||
|  |         fi | ||||||
|         # Workaround to provide additional free space for testing. |         # Workaround to provide additional free space for testing. | ||||||
|         #   https://github.com/actions/virtual-environments/issues/2840 |         #   https://github.com/actions/virtual-environments/issues/2840 | ||||||
|         sudo rm -rf /usr/share/dotnet |         sudo rm -rf /usr/share/dotnet | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Rich Ercolani
						Rich Ercolani