[openstack-dev] Debian OpenStack packages switching to Py3 for Queens

Jianghua Wang jianghua.wang at citrix.com
Thu Feb 22 09:58:42 UTC 2018


Thomas, H. and Bob,

  Please note only the scripts under "os_xenapi/dom0/etc/xapi.d/plugins/" will run in dom0 only. During deployment an OpenStack environment, we usually copy the plugins into dom0 from the installed package (installed in DomU). In this way, it helps us to ensure the plugins are from the same release as the remaining part (e.g. the wrapper APIs invoked by Nova/Neutron/Ceilometer). Otherwise if we split plugins out, it will be difficult to ensure the compatibility. So I'd suggest we keep these plugins in the package.

  I had a chat with Bob on how to resolve the python 2 issue by include these plugins. We think a solution is to rename those plugins without the .py suffix so that they won't be treated as python files. Thomas, please help to confirm if it works for packaging. I can take responsibility to handle the needed change in os-xenapi.

Thanks,
Jianghua


From: Bob Ball [mailto:bob.ball at citrix.com]
Sent: Friday, February 16, 2018 3:02 AM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] Debian OpenStack packages switching to Py3 for Queens

Hi,

> If this code is meant to run on Dom0, fine, then we won't package it,
> but we also have to decouple that dependency from Nova, Neutron,
> Ceilometer etc... to either
communicate directly through an API
> endpoint or a light wrapper around it.

There is already a light wrapper here - other parts of os-xenapi provide the API to Nova/Neutron/etc which make calls through to the plugins in Dom0.

These projects should now know nothing about the actual plugins or how they are called.

Bob
________________________________
From: Haïkel <hguemar at fedoraproject.org<mailto:hguemar at fedoraproject.org>>
Sent: Thursday, 15 February 2018 6:39 p.m.
To: "OpenStack Development Mailing List (not for usage questions)" <openstack-dev at lists.openstack.org<mailto:openstack-dev at lists.openstack.org>>
Subject: Re: [openstack-dev] Debian OpenStack packages switching to Py3 for Queens

2018-02-15 11:25 GMT+01:00 Bob Ball <bob.ball at citrix.com<mailto:bob.ball at citrix.com>>:
> Hi Thomas,
>
> As noted on the patch, XenServer only has python 2 (and some versions of XenServer even has Python 2.4) in domain0.  This is code that will not run in Debian (only in XenServer's dom0) and therefore can be ignored or removed from the Debian package.
> It's not practical to convert these to support python 3.
>
> Bob
>H.

We're not there yet but we also plan to work on migrating RDO to Python 3.
And I have to disagree, this code is called by other projects and their tests,
so it will likely be an impediment in migrating OpenStack to Python 3, not just
a "packaging" issue.

If this code is meant to run on Dom0, fine, then we won't package it,
but we also
have to decouple that dependency from Nova, Neutron, Ceilometer etc... to either
communicate directly through an API endpoint or a light wrapper around it.

Regards,
H.

> -----Original Message-----
> From: Thomas Goirand [mailto:zigo at debian.org]
> Sent: 15 February 2018 08:31
> To: openstack-dev at lists.openstack.org<mailto:openstack-dev at lists.openstack.org>
> Subject: [openstack-dev] Debian OpenStack packages switching to Py3 for Queens
>
> Hi,
>
> Since I'm getting some pressure from other DDs to actively remove Py2 support from my packages, I'm very much considering switching all of the Debian packages for Queens to using exclusively Py3. I would have like to read some opinions about this. Is it a good time for such move? I hope it is, because I'd like to maintain as few Python package with Py2 support at the time of Debian Buster freeze.
>
> Also, doing Queens, I've noticed that os-xenapi is still full of py2 only stuff in os_xenapi/dom0. Can we get those fixes? Here's my patch:
>
> https://review.openstack.org/544809
>
> Cheers,
>
> Thomas Goirand (zigo)
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe<mailto:OpenStack-dev-request at lists.openstack.org?subject:unsubscribe>
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe<mailto:OpenStack-dev-request at lists.openstack.org?subject:unsubscribe>
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe<mailto:OpenStack-dev-request at lists.openstack.org?subject:unsubscribe>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20180222/b9c7c55c/attachment.html>


More information about the OpenStack-dev mailing list