please drop Py 2 OpenStack dependencies
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| simplestreams (Ubuntu) |
High
|
Chad Smith |
Bug Description
In eoan, the python-swiftclient, python-glanceclient and python-
Changed in simplestreams (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
Dan Watkins (daniel-thewatkins) wrote : | #1 |
Dan Watkins (daniel-thewatkins) wrote : | #2 |
tags: | added: patch |
Corey Bryant (corey.bryant) wrote : | #3 |
I'm adding to this bug since there are more py2 openstack dependencies that need to be dropped.
summary: |
- please drop python-swiftclient BD + please drop Py 2 OpenSTack Build-Depends |
summary: |
- please drop Py 2 OpenSTack Build-Depends + please drop Py 2 OpenStack Build-Depends |
description: | updated |
I tried a build with the above named Build-Depends dropped but that results in a failure [1]. It looks like at least keystoneclient is also a run-time dependency. Can the python-
[1]
=======
ERROR: Failure: ImportError (No module named keystoneclient.
-------
Traceback (most recent call last):
File "/usr/lib/
addr.filename, addr.module)
File "/usr/lib/
return self.importFrom
File "/usr/lib/
mod = load_module(
File "/build/
import simplestreams.
File "/build/
from keystoneclient.v2_0 import client as ksclient_v2
ImportError: No module named keystoneclient.v2_0
Corey Bryant (corey.bryant) wrote : | #5 |
Patch for dropping py2 support.
summary: |
- please drop Py 2 OpenStack Build-Depends + please drop Py 2 OpenStack dependencies |
tags: | added: py3 |
Scott Moser (smoser) wrote : | #6 |
Corey, simplestreams-dev
My thoughts here have a primary goal to educate the audience on the use cases
and users as I know them for simplestreams. That would then allow the teams
involved make an educated decision on how to handle python 2 support.
I do not personally have any need for python2.
A few things to note
a.) simplestreams as a project currently has packaging in its master
branch, and maintains a ubuntu/devel branch for easy uploads to ubuntu
using the same 'new-upstream-
curtin use. Upstream debian/ directory is sometimes useful, but I think
I'd prefer to remove it entirely if it is going to differ from
ubuntu/devel.
If kept, I'd shoot for the general goal being little or no delta between
ubuntu/
upstream/master branch had no delta other than debian/changelog between
the ubuntu/devel and master branches in the debian/ directory.
b.) There are daily builds of simplestreams via recipe at
https:/
that include python2 support. We probably do not want to drop python2
output from those builds/ppas. I do not know of all the users of recipe
based builds/PPAs but I suspect that there are some users of python2
packaging from there (possibly from the openstack team).
c.) it looks like the trusty PPA/recipe has been failing for some time.
Since no one screamed loudly enough to fix that, and clearly no one is
listening to the recipe build failures, I'd suggest that it get dropped
https:/
My suggestion would probably be to:
1. drop python2 support from upstream proper
2. Your choice on dropping the debian/ directory from upstream entirely and
maintaining it in ubuntu/devel branch or keeping the process that is there
right now.
3. add and maintain packaging branch (ubuntu/python2 ?) that kept python2
support functional for at least xenial and bionic and point the recipe
builds there.
4. add eoan recipe builds. I do not know of a way to magically ubuntu 'devel'
in recipe builds... for cloud-init and curtin, at the beginning of each ubuntu
release, someone has to go click through launchpad and add the release builds.
doc on that at https:/
5. have someone pay attention to recipe-
important as inevitably if upstream does not run python2 unit tests, then they
will start to fail at some point and this is what will tell us.
6. Fix doc at
https:/
as I think it is currently wrong... Sorry for not updating it. It looks
like I moved that over to new-upstream-
Canonical.
All suggested changes should be done with merge proposals rather than diffs
attached to a bug.
Corey Bryant (corey.bryant) wrote : | #7 |
Thanks for all the guidance Scott. I'll sync with the server team on this to figure out the path forward and will then get patches submitted in the right places.
tags: | added: server-triage-discuss |
Changed in simplestreams (Ubuntu): | |
assignee: | nobody → Chad Smith (chad.smith) |
Changed in simplestreams (Ubuntu): | |
status: | Confirmed → Triaged |
Christian Ehrhardt (paelzer) wrote : | #8 |
FYI an upload of python-swiftclient [1] droppyin py2 made simplestreams a FTBFS lacking the py2 dependency.
Therefore the drop of py2 became slightly more severe now.
I'm not sure what the state of this is between Corey and Chad that seemed to be working on this.
[1]: https:/
Corey Bryant (corey.bryant) wrote : | #9 |
@Christian, I haven't synced with Chad but was assumed he was focusing on it now since the bug was assigned to him. Happy to help with the patches if needed though.
Chad Smith (chad.smith) wrote : | #10 |
Thanks for the ping on this Corey. Our plan is for me to work on this, but I've mentioned to management that we haven't had cycles to address this work over the last couple weeks. The plan is to draw up a suggestion here and work it next week at a team sprint.
tags: | added: ftbfs |
tags: | removed: server-triage-discuss |
Diff attached which addresses the issue; also pushed up to the ubuntu/devel branch in lp:simplestreams.