<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 7, 2018 at 1:26 AM, Tobias Urdin <span dir="ltr"><<a href="mailto:tobias.urdin@crystone.com" target="_blank">tobias.urdin@crystone.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div text="#000000" bgcolor="#FFFFFF">
I can jump in here as well and say that the Puppet OpenStack project had issue with this as well with the UCA Queens release<br>
since we run all services on the same nodes in our CI.<br>
<br>
We got help from Corey and James, they added the python-gnocchi (which is py2) package which provides the necessary Gnocchi code and<br>
WSGI entry points that we could start using that with Apache2, it just doesn't fix the Apache2 config automatically.<br>
<br>
Other gnocchi packages like the metricd daemon will still be running python3 but it won't collide with any packages since it's Apache2 combining that is the issue.<br>
You will however need the python3-redis and python3-rados (if you use Ceph) packages for the metricd daemon.<br>
<br></div></blockquote><div><br></div><div>Note that all of the other gnocchi-* packages other than gnocchi-api 
(gnocchi-metricd and gnocchi-statsd) support python2. You just need to install 
python-gnocchi before installing them. If you don't do that they'll default to python3-gnocchi.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF">
The full swap to python3 should be a coordinated bump where it moves all packages to python3.<br>
Any changes to the gnocchi-api package does not affect Puppet OpenStack on Ubuntu's ability to work as long as python-gnocchi is provided.<br></div></blockquote><div><br></div><div>I agree it should be coordinated. I'm going to test gnocchi-api support for python2 as an alternative (would behave similar to how the above packages work). It's an easy fix. Stay tuned to the bug that was linked earlier.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF">
<br>
Now while we are at it, do you know if python-gnocchi is packaged for bionic? Or was it a quick fix for uca/queens only?<br></div></blockquote><div><br></div><div>Yes, the the same package source is used for bionic and queens.</div><div><br></div><div>Thanks,</div><div>Corey</div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF">
Best regards<div><div class="h5"><br>
<br>
<div class="m_2117735057779030779moz-cite-prefix">On 06/05/2018 04:43 PM, Corey Bryant wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi Martin,</div>
<div><br>
</div>
<div>Thanks for bringing this up. I replied in the bug, but pasting some of my response below:</div>
<div>
<div class="m_2117735057779030779gmail-boardCommentBody" id="m_2117735057779030779gmail-yui_3_10_3_1_1528207243272_1632">
<div class="m_2117735057779030779gmail-comment-text" id="m_2117735057779030779gmail-yui_3_10_3_1_1528207243272_1631">
<p id="m_2117735057779030779gmail-yui_3_10_3_1_1528207243272_1634">gnocchi-api only supports py3 for now in bionic/queens and above.</p>
<p id="m_2117735057779030779gmail-yui_3_10_3_1_1528207243272_1630">Most OpenStack packages in Ubuntu have not yet received py3 support. That is a focus for the cosmic cycle. Where possible the plan is to install py2 by default and py3 as an alternative to prevent all-in-one issues
 like this.</p>
<p>In other words, 'sudo apt install python3-keystone keystone' would install python3 packages, and (assuming python3-keystone was not already installed) 'sudo apt install keystone' would install python2 packages.<br>
</p>
<p>That's not the case for gnocchi-api, obviously, as it only installs py3 packages which conflicts with other python packages if and only if you're installing on the same machine as other py2 services. Most modern production deployments isolate services in
 one way or another (e.g. containers such as LXD or docker) so there's a clear work around.</p>
<p>With that said, we can probably add py2 alternative packages to the Depends for gnocchi-api allowing py2 installs, however I seem to remember gnocchi-api was forced to move to py3 for a reason. I'm not remembering why though atm.</p>
<p>Thanks,</p>
<p>Corey<br>
</p>
</div>
</div>
</div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Jun 4, 2018 at 10:31 PM, Martinx - ジェームズ <span dir="ltr">
<<a href="mailto:thiagocmartinsc@gmail.com" target="_blank">thiagocmartinsc@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Thank you!</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 4 June 2018 at 21:25, pablo brunetti <span dir="ltr">
<<a href="mailto:pablobrunetti@hotmail.com" target="_blank">pablobrunetti@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hello,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">This bug is confirmed in <a href="https://bugs.launchpad.net/ubuntu/+source/gnocchi/+bug/1746992" class="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444OWAAutoLink" id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444LPlnk301517" target="_blank">
https://bugs.launchpad.net/ubu<wbr>ntu/+source/gnocchi/+bug/17469<wbr>92</a></p>
<div id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444LPBorder_GT_15281618446190.7946811420273568" style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px">
<table id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444LPContainer_15281618446140.2499770392936007" style="width:90%;background-color:rgb(255,255,255);overflow:auto;padding-top:20px;padding-bottom:20px;margin-top:20px;border-top:1px dotted rgb(200,200,200);border-bottom:1px dotted rgb(200,200,200)" cellspacing="0">
<tbody>
<tr style="border-spacing:0px" valign="top">
<td id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444TextCell_15281618446160.725051117521361" style="vertical-align:top;padding:0px;display:table-cell" colspan="2">
<div id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444LPRemovePreviewContainer_15281618446160.08742331048516017">
</div>
<div id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444LPTitle_15281618446170.4805748769074314">
<a id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444LPUrlAnchor_15281618446170.5298622831416855" style="text-decoration:none" href="https://bugs.launchpad.net/ubuntu/+source/gnocchi/+bug/1746992" target="_blank">Bug #1746992 “gnocchi-api
 in Bionic uses python3, and libapache2...” : Bugs : gnocchi package : Ubuntu</a></div>
<div id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444LPMetadata_15281618446180.8039465201180641">
<a href="http://bugs.launchpad.net" target="_blank">bugs.launchpad.net</a></div>
<div id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444LPDescription_15281618446180.2622118158472251">
Since the two wsgi modules are conflicting, installing gnocchi-api breaks other OpenStack services.</div>
</td>
</tr>
</tbody>
</table>
</div>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Pablo.<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De:</b> Martinx - ジェームズ <<a href="mailto:thiagocmartinsc@gmail.com" target="_blank">thiagocmartinsc@gmail.com</a>><br>
<b>Enviado:</b> segunda-feira, 4 de junho de 2018 21:53<br>
<b>Para:</b> <a href="mailto:openstack@lists.openstack.org" target="_blank">
openstack@lists.openstack.org</a>; James Page<br>
<b>Assunto:</b> [Openstack] On Ubuntu 18.04, the package "gnocchi-api" install tries to remove both "keystone" and "openstack-dashboard"!</font>
<div> </div>
</div>
<div>
<div dir="ltr"><span><span>Hello,
<div><br>
</div>
<div> I'm trying to install Gnocchi on Ubuntu 18.04, but there is a problem, the "gnocchi-api" package tries to uninstall Keystone and Horizon!</div>
<div><br>
</div>
<div> So, from what I'm seeing, it is impossible to build an OpenStack Queens All-in-One on Ubuntu 18.04 with Gnocchi and Ceilometer...   :-(</div>
<div><br>
</div>
<div> The problem (line 29):</div>
<div><br>
</div>
</span></span>
<div> <a href="https://pastebin.com/sns8LG18" id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444LPlnk930446" class="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444OWAAutoLink" target="_blank">https://pastebin.com/sns8LG18</a>
<div id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444LPBorder_GT_15281618267120.9744389187432634" style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px">
<table id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444LPContainer_15281618267100.5589507045658504" style="width:90%;background-color:rgb(255,255,255);overflow:auto;padding-top:20px;padding-bottom:20px;margin-top:20px;border-top:1px dotted rgb(200,200,200);border-bottom:1px dotted rgb(200,200,200)" cellspacing="0">
<tbody>
<tr style="border-spacing:0px" valign="top">
<td id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444ImageCell_15281618267100.16700432572238888" style="width:250px;display:table-cell;padding-right:20px" colspan="1">
<div id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444LPImageContainer_15281618267100.39527109384693604" style="background-color:rgb(255,255,255);height:250px;margin:auto;display:table;width:250px">
<a id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444LPImageAnchor_15281618267100.02083220561614585" style="display:table-cell;text-align:center" href="https://pastebin.com/sns8LG18" target="_blank"><img style="display:inline-block;max-width:250px;max-height:250px;height:250px;width:250px;border-width:0px;vertical-align:bottom" id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444LPThumbnailImageID_15281618267100.37602055116690947" src="https://pastebin.com/i/facebook.png" width="250" height="250"></a></div>
</td>
<td id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444TextCell_15281618267110.143415194374516" style="vertical-align:top;padding:0px;display:table-cell" colspan="2">
<div id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444LPRemovePreviewContainer_15281618267110.76062144662635">
</div>
<div id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444LPTitle_15281618267110.282023994761885">
<a id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444LPUrlAnchor_15281618267110.8019538735257502" style="text-decoration:none" href="https://pastebin.com/sns8LG18" target="_blank">administrative@queens-1:~$ sudo apt install gnocchi-api
 Reading package lists. - Pastebin.com</a></div>
<div id="m_2117735057779030779m_-3306426881614445108m_-5808167636289061444LPMetadata_15281618267110.31517513693856214">
<a href="http://pastebin.com" target="_blank">pastebin.com</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
</div>
<span><span>
<div><br>
</div>
<div> Any workaround or bug reported on Launchpad about this?</div>
<div><br>
</div>
<div> Time for Canonical to provide OpenStack Snap packages!  lol</div>
<div><br>
</div>
<div>Thanks!</div>
<div>Thiago</div>
</span></span></div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
______________________________<wbr>_________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">
http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">
openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">
http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
<br>
</div></div></div>

<br>______________________________<wbr>_________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack</a><br>
<br></blockquote></div><br></div></div>