Bug 1024357
Summary: | cloud-init: Use Python 3 instead of Python 2 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | cloud-init | Assignee: | Garrett Holmstrom <gholms> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | apevec, bkabrda, gholms, Jan.van.Eldik, mattdm, p, shardy |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | cloud-init-0.7.6-4.20140218bzr1060.fc23 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-03-12 17:50:19 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 988304, 1024363, 1024365, 1195004 | ||
Bug Blocks: | 1014209, 1194577 |
Description
Miro Hrončok
2013-10-29 13:59:14 UTC
Hi Garrett, for our Python 3 as default feature, we would really need cloud-init to use Python 3 in rawhide (F22) by 24.2. Upstream already merged the patches, but didn't yet made a release. Would you please take what is in upstream bazaar and package it as a pre-release, so we can make it in time? I'm almost sure next release will hit use before the release of Fedora 22, so we can ship a non pre-release package for it once available. I'm also willing to do the packaging if you let me. s/hit use/hit us/ Upstream's python3 work is still very much ongoing, so while this may be okay for rawhide, I am reluctant to simply dump code that is this unstable into F22 because it carries such a high risk of breaking cloud image testing completely. Cloud-init updates have historically been quite conservative because we can't update a cloud image once it has shipped. A few people are working on a system for shipping updated images, but that isn't ready yet. There are a couple ways we could work on that without breaking F22, though: 1. Build against python3 in rawhide and update F22 if ready before beta. 2. Build against python3 in a COPR and update F22 if ready before beta. Either way, this should definitely go into rawhide, and a COPR shouldn't be too much work. What do you think? Would it make sense to switch to Python 3 now and if some serious bugs are introduced, then switch back to Python 2 before Beta? At this point, so many packages have been switched that I'd say switching them back would mean more work for us than helping you fix cloud-init if it breaks. But of course it's your decision and I understand your POV, so we'll help you no matter which way you choose. After updating the package to cloud-init's current mainline code I grabbed the latest F22 cloud base image out of koji, updated cloud-init, updated libselinux-python3 with a fix for bug 1195004, and installed dhcp-client, which was, for whatever reason, missing. At that point I had something I could boot and log into on EC2. Looks like we've got our starting point. 8^) Note: All that, running on Python 3 powered cloud-inid BTW the specfile is here: https://github.com/gholms/cloud-init-rpmspec Ok, so it seems that we'll have to revert after all for F22 [1]. Please only build this for F23 (so this doesn't need to be built today). Thanks. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1194577#c4 I built this in rawhide for now. Let's stick with stable cloud-init in F22 until libselinux-python3 works well enough to not break things. This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22 |