[Bug 2066066] Re: cloud-init startup failure with Python 3.9.5, Ubuntu Focal

2024-07-28 Thread Launchpad Bug Tracker
[Expired for cloud-init (Ubuntu Focal) because there has been no activity for 60 days.] ** Changed in: cloud-init (Ubuntu Focal) Status: Incomplete => Expired -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchp

[Bug 2066066] Re: cloud-init startup failure with Python 3.9.5, Ubuntu Focal

2024-07-28 Thread Launchpad Bug Tracker
[Expired for cloud-init (Ubuntu) because there has been no activity for 60 days.] ** Changed in: cloud-init (Ubuntu) Status: Incomplete => Expired -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/

[Bug 2066066] Re: cloud-init startup failure with Python 3.9.5, Ubuntu Focal

2024-05-29 Thread Rilindo Foster
I think that make sense. I think we don't actual need to make the python3.9 the default for what we are trying to do originally. That said, even when we didn't make python3.9 the default, it was still breaking. :confused: At any event, I'll going to revert the change at some point and get back to

[Bug 2066066] Re: cloud-init startup failure with Python 3.9.5, Ubuntu Focal

2024-05-22 Thread James Falcon
The version of Python that is shipped with Ubuntu is what is supported for the system. In the case of Focal, that is 3.8. It is fine to install and use Python 3.9 for user applications, but when you run `update- alternatives` to replace the default version of Python, you are now forcing packages th

[Bug 2066066] Re: cloud-init startup failure with Python 3.9.5, Ubuntu Focal

2024-05-22 Thread Rilindo Foster
What is considered a supported version of Python? Would Python3.9 from upstream be considered a supported version? That said, I re-tested today and it appears that the issue no longer exists. Interestingly enough, there was a new image that was released yesterday - ami-03e9149278a6f457c (Date 2024

[Bug 2066066] Re: cloud-init startup failure with Python 3.9.5, Ubuntu Focal

2024-05-22 Thread James Falcon
"when we install python3.9, we point /usr/bin/python to 3.9, but not /usr/bin/python3" cloud-init does use `python3` and not `python`, though I'm not sure that would change anything. $ head -1 /usr/bin/cloud-init #!/usr/bin/python3 Since we can launch the AMI and cloud-init works ok out of the b

[Bug 2066066] Re: cloud-init startup failure with Python 3.9.5, Ubuntu Focal

2024-05-21 Thread Rilindo Foster
TLDR; when we install python3.9, we point /usr/bin/python to 3.9, but not /usr/bin/python3 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2066066 Title: cloud-init startup failure with Python 3.9.5,

[Bug 2066066] Re: cloud-init startup failure with Python 3.9.5, Ubuntu Focal

2024-05-21 Thread Rilindo Foster
To answer your question, we usually installed python3.9 on Ubuntu 20.04 like so: DEBIAN_FRONTEND=noninteractive apt-get -y install -m -f python3.9 python3.9-distutils update-alternatives --install /usr/bin/python python /usr/bin/python3.9 10 curl https://bootstrap.pypa.io/get-pip.py -

[Bug 2066066] Re: cloud-init startup failure with Python 3.9.5, Ubuntu Focal

2024-05-21 Thread Rilindo Foster
As it turns out, python3-jinja2 is installed. This is output after the upgrade to cloud-init root@IP-INSTANCE-REDACT:~# systemctl status cloud-init ● cloud-init.service - Initial cloud-init job (metadata service crawler) Loaded: loaded (/lib/systemd/system/cloud-init.service; enabled; vendor

[Bug 2066066] Re: cloud-init startup failure with Python 3.9.5, Ubuntu Focal

2024-05-21 Thread James Falcon
"We can test to see if installing python3-jinja2 moved us forward. Standby." That's good if that works, but I'm still not sure how this situation happened. If I run `apt depends cloud-init`, I see `Depends: python3-jinja2` as one of the dependencies. That means that even if python3-jinja2 wasn't p

[Bug 2066066] Re: cloud-init startup failure with Python 3.9.5, Ubuntu Focal

2024-05-21 Thread Rilindo Foster
To answer: > How are you running Python 3.9 in Focal? We installed Python 3.9 from Focal's upstream. No third party. > Are you using the cloud-init package provided by Apt? Yes, because we started to see the issue after the OS update. We switch AMIs, thinking that the OS update was problematic

[Bug 2066066] Re: cloud-init startup failure with Python 3.9.5, Ubuntu Focal

2024-05-21 Thread James Falcon
How are you running Python 3.9 in Focal? Are you using the cloud-init package provided by Apt? Your error shows a crash due to the jinja2 library not existing, but jinja2 is a dependency of cloud-init. The python3-jinja2 package should have been installed when you installed cloud-init. Up until now

[Bug 2066066] Re: cloud-init startup failure with Python 3.9.5, Ubuntu Focal

2024-05-21 Thread James Falcon
** Changed in: cloud-init (Ubuntu) Importance: Critical => Undecided -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2066066 Title: cloud-init startup failure with Python 3.9.5, Ubuntu Focal To ma

[Bug 2066066] Re: cloud-init startup failure with Python 3.9.5, Ubuntu Focal

2024-05-20 Thread James Falcon
** Changed in: cloud-init (Ubuntu) Status: New => Triaged ** Changed in: cloud-init (Ubuntu) Importance: Undecided => Critical -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2066066 Title:

[Bug 2066066] Re: cloud-init startup failure with Python 3.9.5, Ubuntu Focal

2024-05-20 Thread Scott Moser
** Also affects: cloud-init (Ubuntu Focal) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2066066 Title: cloud-init startup failure with Python 3.9.5, Ubun

[Bug 2066066] Re: cloud-init startup failure with Python 3.9.5, Ubuntu Focal

2024-05-17 Thread Rilindo Foster
Note: We are running off the official Ubuntu provided image on AWS. Here is the URL and AMI https://console.aws.amazon.com/ec2/home?region=us- east-1#launchAmi=ami-0e3a6d8ff4c8fe246 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. http