Traceback (most recent call last):
File "vsan_claim.py", line 97, in <module>
smallerSize = min([disk.capacity.block * disk.capacity.blockSize for disk in ssds])
ValueError: min() arg is an empty sequence
By adding a print statement in vsan_claim.py, we can see that none of the ssd=True disks were status='eligible') (only one disk is shown here, for brevity. Each of the three included the error message that the disk contained existing partitions):
88 diskmap = {host: {'cache':[],'capacity':[]} for host in hosts}
89 cacheDisks = []
90 capacityDisks = []
91
92 for host in hosts:
93 print(repr(hostProps[host]['configManager.vsanSystem'].QueryDisksForVsan())) # added for debugging
94 ssds = [result.disk for result in hostProps[host]['configManager.vsanSystem'].QueryDisksForVsan() if
95 result.state == 'eligible' and result.disk.ssd]
97 smallerSize = min([disk.capacity.block * disk.capacity.blockSize for disk in ssds])
I captured the following log output while attempting to provision this module with the following non-default, Packet device, settings:
By adding a print statement in
vsan_claim.py
, we can see that none of thessd=True
disks werestatus='eligible'
) (only one disk is shown here, for brevity. Each of the three included the error message that the disk contained existing partitions):