Greetings!
I have a problem with attach.py with timeout_for_connected_disk. Looks like method from pyudev.monitor def from_netlink could not connect to vm via timeout here
context = pyudev.Context()
monitor = pyudev.Monitor.from_netlink(context)
monitor.filter_by(subsystem='block', device_type='disk').
Can you also show me a simple output here via print(result)
result = []
for device in iter(partial(monitor.poll, timeout), None):
if device.action == 'add':
result = [device.device_node, 'connected']
break
elif device.action == 'remove':
result = [device.device_node, 'disconnected']
break
return result
I was trying to incrase timeout to 1000s but still not work, im not realy sure how pydev.monitor works.
Rest works as intended.
I see how app create disk, how attach/deattach disk to vm. Also I see disk via fdisk -l
Disk /dev/sdd: 1073 MB, 1073741824 bytes, 2097152 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
But I cant continue script, because it's reaching timeout for wait_for_connected_disk.
Maybe need to modernize this method?
Greetings!
I have a problem with attach.py with timeout_for_connected_disk. Looks like method from pyudev.monitor def from_netlink could not connect to vm via timeout here
Can you also show me a simple output here via print(result)
I was trying to incrase timeout to 1000s but still not work, im not realy sure how pydev.monitor works.
Rest works as intended.
I see how app create disk, how attach/deattach disk to vm. Also I see disk via fdisk -l
But I cant continue script, because it's reaching timeout for wait_for_connected_disk.
Maybe need to modernize this method?