cot icon indicating copy to clipboard operation
cot copied to clipboard

OVA image created with cot 2.2.1 and Python 3.8.5 fails the ovftool validation

Open ankirich opened this issue 3 years ago • 3 comments

Hi, I suddenly stumbled across the problem that cot script used to inject CSR1K OVA images with a prebuilt configs started creating an OVA which is not readable by ovftool:

macos:user$ ovftool --deploymentOption=1CPU-4GB --net:GigabitEthernet1=ALL-VLANS --name=test_router --datastore=Test-VSAN /Users/user/Downloads/test_router.ova vi://user:*****@vcenter.lab/LAB/host/TEST/test.lab

Error: Did not find an .ovf file at the beginning of the OVA package. Completed with errors

After playing a bit with different configs and OVAs, I came to conclusion that the only recent change was Python upgrade to 3.8.5. Indeed, after running cot with Python 3.7.0 things got back to normal and cot produced OVA file is now readable by the ovftool.

ankirich avatar Aug 31 '20 18:08 ankirich

Ran into this as well today. Any updates?

jbartlet avatar Jun 17 '21 22:06 jbartlet

Hi @glennmatthews, ran into this today when we were scoping for upgrading our python env to 3.8. Any updates or workaround for the same?

jdp9 avatar Mar 24 '23 20:03 jdp9

My current day job doesn't focus on this particular tech area so I haven't had time to look into this. Sorry! Looking at https://docs.python.org/3/library/tarfile.html#tarfile.DEFAULT_FORMAT, I see that Python 3.8 changed the default tarfile format that it creates; possibly this needs to be accounted for.

glennmatthews avatar Mar 24 '23 21:03 glennmatthews