Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ankirich opened this issue Aug 31, 2020 · 3 comments

Comments

@ankirich
Copy link

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 ankirich changed the title OVA image created with cot 2.2.1 and Python 3.8.5 fails the ovftool vlidation OVA image created with cot 2.2.1 and Python 3.8.5 fails the ovftool validation Sep 1, 2020
@jbartlet
Copy link

Ran into this as well today. Any updates?

@jdp9
Copy link

jdp9 commented Mar 24, 2023

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?

@glennmatthews
Copy link
Owner

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.

nibty added a commit to nibty/cot that referenced this issue Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants