VMware Cloud Community
Darren201110141
Contributor
Contributor

Weasel error deploying from usb to SD card

Hi

I'm trying to build a esxi host from a usb stick using a customised KS.cfg file. It works on some hosts but on a few I get an error.

On the hosts that fails there is already an install of esxi.

Any help with this would greatly be appreciated

Thanks

Darren

/sb¡n/ncopy: File “: : /esx5/dell/kickstart/pes . cfg” not found

An unexpected error occurred

Error code: b2IVIiOJNZWPpVQog ICAgaWVgcGFydCSnclPScGUucGFgdGYkPn lsZVM5c3RlbU5hbWUgaW4gWqdnXQxN¡cs ICdnXQzM¡ddOgo

See logs for details

AttributeError: ‘NoneType’ object has no attribute ‘partedFileSystemName’

From within the weasel log

DEBUG Executing: /sbin/bootOption -roC
INFO vmbTbootEnabled=false tboot=0x0x101a000 runweasel ks=usb :/esx5/dell/kickstart/pesesx0l .cfg
INFO Got boot options " vmbTbootEnabled=false tboot0x0x101a000 runweasel ks=usb:/esx5/dell/kickstart/pesesx01.cfg "
INFO Weasel skipped boot command line token (vmbTbootEnabled=false)
INFO Weasel skipped boot command line token (tboot0x0x101a000)
INFO Weasel skipped boot command line token (runweasel)
DEBUG Querying disks
DEBUG lun -- mpx.vmhba33:C0:T0:L0
DEBUG Trying /vmfs/devices/disks/mpx .vmhba33:C0:T0:L0
DEBUG Found overlap in [sTable: ‘vmfs3’ .. overriding ‘weasel.fsset.vmfs3FileSystem’ with ‘weasel.fsset .vmfs3FileSystem’.
INFO Discovered lun -- mpx.vmhba33:C0:T0:L0(console /vmfs/devices/disks/mpx.vmhba33:C0:T0:L0) -- HP vl00w (3822 MiB. usb-storage)
DEBUG lun -- mpx.vmhba32:C0:T0:L0
DEBUG Trying /vmfs/devices/disks/mpx.vmhba32:C0:T0:L0
DEBUG Found overlap in [sTable: ‘vmfs3’ .. overriding ‘weasel.fsset.vm[s3FileSystem’ with ‘weasel.fsset .vmfs3FileSysten’.
INFO Discovered lun -- mpx.vmhba32:C0:T0:L0 (console /vmfs/devices/disks/mpx.vmhba32:C0:T0:L0) -- Dell Internal Dual SD (972 MiB. usb-storage)
DEBUG lun -- naa.5000c5004cfc147b
DEBUG Trying /vmfs/devices/disks/naa.5000c5004cfc147b
DEBUG Found overlap in [sTable: ‘vmfs3’ .. overriding ‘weasel.fsset.vmfs3FileSystem’ with ‘weasel.fsset .vmfs3FileSystem’.
INFO Discovered lun -- naa .5000c5004cfc147b (console /vmfs/devices/disks/naa.5000c5004cfc147b) -- SEAGATE 5T9146B5355 (140014 MiB, megaraid_sas)
DEBUG Executing: /sbin/mcopy - i /dev/disks/mpx .vmhba32:C0:T0:L0:4 \::/esx5/dell/kickstart/pesesx01.cfg /tmp/ks.cfg
ERROR Unhandled exception. (‘NoneType’ object has no attribute ‘partedFileSystemName’)
DEBUG An exceptional situation was encountered. Weasel does not know how to handle this. Terminating
DEBUG The class of the exception was: <type ‘exceptions.AttributeError’>
DEBUG The exception was: ‘NoneType’ object has no attribute ‘partedFileSystemName’
DEBUG Dumping userchoices
DEBUG (‘_actionString’. “)

...

....

xxxxxxxxxxxxx UNHANDLED WEASEL EXCEPTION xxxxxxxxxxxxxx
DEBUG Traceback (most recent call last):
File “weasel/main.py”, line 77, in main
parseArgsToUserChoices (argv)
File “weasel/main.py", line 44, in parseArgsToUserChoices
opts = boot_cmdline.getOptionDict().items() + opts
File “/usr/ lib/vmware/weasel/boot_cmd line. py”, line 466. in getOptionDict
return dict(translateBootcmdL ine(bootOpt ions))
File “/usr/ li b/vmware/weasel/boot_cmd line. py", line 434. in translateBootcmdLine
result = func(match)
File “/usr/lib/vmware/weasel/boot_cmd line. py". line 269. in _ksFileUsbOption
ksPath = usbmedia.copyFileFromUSBMedia(ksFile, usbmedia.KS_PATH)
File “/usr/lib/vmware/weasel/usbmedia.py", line 36. in copyFileFronUSBMedia
if part.fsType.partedFileSystemName in [‘fatl6’. ‘fat32’]:
Attr ibuteError: ‘NoneType’ object has no attribute 'partedFileSystemName'
2012—07—19 16:47:09.407Z DEBUG xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxwxxxxxxxxxxxx€nr
2012-07-19 16:47:09.409Z ERROR [‘Traceback (most recent call last):\n’, ‘ File “weasel/main.py", line 165. in <module)\n
sys.exit(main(sys.argv))\n’, ‘ File “weasel/main.py", line 157. in main\n raise ex\n’. “AttributeError: ‘NoneType’ object has no attribute 'partedFileSystemName'\n”]

weasel log 1.png

0 Kudos
1 Reply
Bisti
Enthusiast
Enthusiast

Have you managed to resolve the issue? I`m having same thing.

0 Kudos