<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.emailquote, li.emailquote, div.emailquote
{mso-style-name:emailquote;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:1.0pt;
border:none;
padding:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt">Thomas, H. and Bob,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> 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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> 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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Jianghua <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"> </span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Bob Ball [mailto:bob.ball@citrix.com]
<br>
<b>Sent:</b> Friday, February 16, 2018 3:02 AM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Subject:</b> Re: [openstack-dev] Debian OpenStack packages switching to Py3 for Queens<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">Hi,<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">> If this code is meant to run on Dom0, fine, then we won't package it,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">> but we also have to decouple that dependency from Nova, Neutron,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">> Ceilometer etc... to either<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">communicate directly through an API<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">> endpoint or a light wrapper around it.<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">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.<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">These projects should now know nothing about the actual plugins or how they are called.<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">Bob<o:p></o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-family:"Calibri",sans-serif">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-family:"Calibri",sans-serif">From:</span></b><span style="font-family:"Calibri",sans-serif"> Haïkel <<a href="mailto:hguemar@fedoraproject.org">hguemar@fedoraproject.org</a>><br>
<b>Sent:</b> Thursday, 15 February 2018 6:39 p.m.<br>
<b>To:</b> "OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
<b>Subject:</b> Re: [openstack-dev] Debian OpenStack packages switching to Py3 for Queens<br>
<br>
<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">2018-02-15 11:25 GMT+01:00 Bob Ball <<a href="mailto:bob.ball@citrix.com">bob.ball@citrix.com</a>>:<br>
> Hi Thomas,<br>
><br>
> 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.<br>
> It's not practical to convert these to support python 3.<br>
><br>
> Bob<br>
><span style="color:#1F497D">H.</span><br>
<br>
We're not there yet but we also plan to work on migrating RDO to Python 3.<br>
And I have to disagree, this code is called by other projects and their tests,<br>
so it will likely be an impediment in migrating OpenStack to Python 3, not just<br>
a "packaging" issue.<br>
<br>
If this code is meant to run on Dom0, fine, then we won't package it,<br>
but we also<br>
have to decouple that dependency from Nova, Neutron, Ceilometer etc... to either<br>
communicate directly through an API endpoint or a light wrapper around it.<br>
<br>
Regards,<br>
H.<br>
<br>
> -----Original Message-----<br>
> From: Thomas Goirand [<a href="mailto:zigo@debian.org">mailto:zigo@debian.org</a>]<br>
> Sent: 15 February 2018 08:31<br>
> To: <a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a><br>
> Subject: [openstack-dev] Debian OpenStack packages switching to Py3 for Queens<br>
><br>
> Hi,<br>
><br>
> 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.<br>
><br>
> 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:<br>
><br>
> <a href="https://review.openstack.org/544809">https://review.openstack.org/544809</a><br>
><br>
> Cheers,<br>
><br>
> Thomas Goirand (zigo)<br>
><br>
> __________________________________________________________________________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">
OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
> __________________________________________________________________________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">
OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">
OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><o:p></o:p></span></p>
</div>
</div>
</body>
</html>