<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0"><span id="result_box" class="" lang="en"><span class="">I installed the gnocchi-api
<span id="result_box" class="" lang="en"><span class="">with</span></span> sudo "pip install gnocchi-api" and it worked correctly, without the dependencies of python3 and manually configured the _wsgi module.</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span id="result_box" class="" lang="en"><span class=""><br>
</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span id="result_box" class="" lang="en"><span class=""><span id="result_box" class="" lang="en"><span class="">There was an error in ceilometer-agent-compute on compute node, when I activated the memory.usage metric</span></span>:<br>
</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span id="result_box" class="" lang="en"><span class=""></p>
<div>2018-06-08 13:25:19.031 11424 WARNING ceilometer.compute.pollsters [-] memory.usage statistic in not available for instance 8a6954a4-d8cc-43f6-aa41-8f371bbb9fd3: NoVolumeException<br>
</div>
<div><br>
</div>
<div><span id="result_box" class="short_text" lang="en"><span class="">Could someone help me with this error?</span></span></div>
<div><br>
</div>
<div><br>
</div>
<br>
</span></span>
<p></p>
<p style="margin-top:0;margin-bottom:0"><span id="result_box" class="" lang="en"><span class=""><br>
</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span id="result_box" class="" lang="en"><span class=""></span></span><br>
</p>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De:</b> Tobias Urdin <tobias.urdin@crystone.com><br>
<b>Enviado:</b> sexta-feira, 8 de junho de 2018 04:44<br>
<b>Para:</b> Martinx - $B%8%'!<%`%:(B<br>
<b>Cc:</b> openstack@lists.openstack.org<br>
<b>Assunto:</b> Re: [Openstack] On Ubuntu 18.04, the package "gnocchi-api" install tries to remove both "keystone" and "openstack-dashboard"!</font>
<div> </div>
</div>
<meta content="text/html; charset=iso-2022-jp">
<div style="background-color:#FFFFFF">
<p>Yeah, that's it :)</p>
<p>Can post the apache2 config here, this is the one we use which is generated by puppet, you'll need the mod_wsgi module as well.<br>
</p>
<p><VirtualHost *:8041><br>
  ServerName hostnamehere<br>
<br>
  ## Vhost docroot<br>
  DocumentRoot "/usr/lib/cgi-bin/gnocchi"<br>
<br>
  ## Directories, there should at least be a declaration for /usr/lib/cgi-bin/gnocchi<br>
<br>
  <Directory "/usr/lib/cgi-bin/gnocchi"><br>
    Options Indexes FollowSymLinks MultiViews<br>
    AllowOverride None<br>
    Require all granted<br>
  </Directory><br>
<br>
  ## Logging<br>
  ErrorLog "/var/log/apache2/gnocchi_wsgi_error.log"<br>
  ServerSignature Off<br>
  CustomLog "/var/log/apache2/gnocchi_wsgi_access.log" combined <br>
  SetEnvIf X-Forwarded-Proto https HTTPS=1<br>
  WSGIApplicationGroup %{GLOBAL}<br>
  WSGIDaemonProcess gnocchi display-name=gnocchi_wsgi group=gnocchi processes=2 threads=1 user=gnocchi<br>
  WSGIProcessGroup gnocchi<br>
  WSGIScriptAlias / "/usr/lib/cgi-bin/gnocchi/app"<br>
</VirtualHost><br>
</p>
<br>
<div class="x_moz-cite-prefix">On 06/07/2018 10:54 PM, Martinx - $B%8%'!<%`%:(B wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Worth to mention that I still have to test python-gnocchi, my confs are wrong but, it is installed...   :-P</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr">On Thu, 7 Jun 2018 at 15:57, Martinx - $B%8%'!<%`%:(B <<a href="mailto:thiagocmartinsc@gmail.com" id="LPlnk885164" class="OWAAutoLink" previewremoved="true">thiagocmartinsc@gmail.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0 0 0
          .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">Corey,
<div><br>
</div>
<div> I still don't get it... The package gnocchi-api is basically empty.</div>
<div><br>
</div>
<div> It have only 1 single text file: "/etc/apache2/sites-available/gnocchi-api.conf"!</div>
<div><br>
</div>
<div> The problem is that it depends on "python3-gnocchi" and "libapache2-mod-wsgi-py3", which brings the problem...</div>
<div><br>
</div>
<div> So, the workaround looks quite simple!</div>
<div><br>
</div>
<div> Instead of running "apt install gnocchi-api", I'm doing:</div>
<div><br>
</div>
<div>---</div>
<div> apt install python-gnocchi # which brings Gnocchi API (/usr/bin/gnocchi-api) for Python 2, then:</div>
<div><br>
</div>
<div> apt download gnocchi-api</div>
<div><br>
</div>
<div> # Extract the "<span style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:small; font-style:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; background-color:rgb(255,255,255); float:none; display:inline">/etc/apache2/sites-available/gnocchi-api.conf"
 file out from "gnocchi-api_4.2.4-0ubuntu1_all.deb" and manually copy to /etc/apache/sites-available".</span></div>
<div><span style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:small; font-style:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; background-color:rgb(255,255,255); float:none; display:inline">---</span></div>
<div><span style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:small; font-style:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; background-color:rgb(255,255,255); float:none; display:inline"><br>
</span></div>
<div><span style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:small; font-style:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; background-color:rgb(255,255,255); float:none; display:inline"> </span></div>
</div>
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">On 5 June 2018 at 10:30, Corey Bryant <span dir="ltr">
<<a href="mailto:corey.bryant@canonical.com" target="_blank" id="LPlnk951838" class="OWAAutoLink" previewremoved="true">corey.bryant@canonical.com</a>></span> wrote:<br>
<blockquote class="x_gmail_quote" style="margin:0 0 0
                .8ex; border-left:1px #ccc solid; padding-left:1ex">
<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="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768gmail-boardCommentBody" id="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768gmail-yui_3_10_3_1_1528207243272_1632">
<div class="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768gmail-comment-text" id="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768gmail-yui_3_10_3_1_1528207243272_1631">
<p id="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768gmail-yui_3_10_3_1_1528207243272_1634">
gnocchi-api only supports py3 for now in bionic/queens and above.</p>
<p id="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768gmail-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="x_gmail_extra"><br>
<div class="x_gmail_quote">
<div>
<div class="x_m_7540949537711735380m_-2202560929463598836h5">On Mon, Jun 4, 2018 at 10:31 PM, Martinx - $B%8%'!<%`%:(B
<span dir="ltr"><<a href="mailto:thiagocmartinsc@gmail.com" target="_blank" id="LPlnk796203" class="OWAAutoLink" previewremoved="true">thiagocmartinsc@gmail.com</a>></span> wrote:<br>
</div>
</div>
<blockquote class="x_gmail_quote" style="margin:0
                          0 0 .8ex; border-left:1px #ccc
                          solid; padding-left:1ex">
<div>
<div class="x_m_7540949537711735380m_-2202560929463598836h5">
<div dir="ltr">Thank you!</div>
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">On 4 June 2018 at 21:25, pablo brunetti <span dir="ltr">
<<a href="mailto:pablobrunetti@hotmail.com" target="_blank" id="LPlnk149056" class="OWAAutoLink" previewremoved="true">pablobrunetti@hotmail.com</a>></span> wrote:<br>
<blockquote class="x_gmail_quote" style="margin:0 0 0
                                    .8ex; border-left:1px #ccc
                                    solid; padding-left:1ex">
<div dir="ltr">
<div id="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-3306426881614445108m_-5808167636289061444divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<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="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-3306426881614445108m_-5808167636289061444OWAAutoLink OWAAutoLink" id="LPlnk57141" target="_blank" previewremoved="true">
https://bugs.launchpad.net/ubuntu/+source/gnocchi/+bug/1746992</a></p>
<div id="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-3306426881614445108m_-5808167636289061444LPBorder_GT_15281618446190.7946811420273568" style="margin-bottom:20px; overflow:auto; width:100%; text-indent:0px">
<table id="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-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="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-3306426881614445108m_-5808167636289061444TextCell_15281618446160.725051117521361" colspan="2" style="vertical-align:top; padding:0px; display:table-cell">
<div id="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-3306426881614445108m_-5808167636289061444LPRemovePreviewContainer_15281618446160.08742331048516017">
</div>
<div id="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-3306426881614445108m_-5808167636289061444LPTitle_15281618446170.4805748769074314" style="">
<a id="LPlnk117074" href="https://bugs.launchpad.net/ubuntu/+source/gnocchi/+bug/1746992" target="_blank" style="text-decoration:none" class="OWAAutoLink" previewremoved="true">Bug #1746992 $B!H(Bgnocchi-api in Bionic uses python3, and libapache2...$B!I(B : Bugs : gnocchi
 package : Ubuntu</a></div>
<div id="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-3306426881614445108m_-5808167636289061444LPMetadata_15281618446180.8039465201180641" style="">
<a href="http://bugs.launchpad.net" target="_blank" id="LPlnk571754" class="OWAAutoLink" previewremoved="true">bugs.launchpad.net</a></div>
<div id="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-3306426881614445108m_-5808167636289061444LPDescription_15281618446180.2622118158472251" style="">
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="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-3306426881614445108m_-5808167636289061444divRplyFwdMsg" dir="ltr">
<font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De:</b> Martinx - $B%8%'!<%`%:(B <<a href="mailto:thiagocmartinsc@gmail.com" target="_blank" id="LPlnk942226" class="OWAAutoLink" previewremoved="true">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" id="LPlnk597616" class="OWAAutoLink" previewremoved="true">
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="LPlnk773229" class="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-3306426881614445108m_-5808167636289061444OWAAutoLink OWAAutoLink" target="_blank" previewremoved="true">https://pastebin.com/sns8LG18</a>
<div id="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-3306426881614445108m_-5808167636289061444LPBorder_GT_15281618267120.9744389187432634" style="margin-bottom:20px; overflow:auto; width:100%; text-indent:0px">
<table id="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-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="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-3306426881614445108m_-5808167636289061444ImageCell_15281618267100.16700432572238888" colspan="1" style="width:250px; display:table-cell; padding-right:20px">
<div id="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-3306426881614445108m_-5808167636289061444LPImageContainer_15281618267100.39527109384693604" style="background-color:rgb(255,255,255); height:250px; margin:auto; display:table; width:250px">
<a id="LPlnk437128" href="https://pastebin.com/sns8LG18" target="_blank" style="display:table-cell; text-align:center" class="OWAAutoLink" previewremoved="true"><img id="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-3306426881614445108m_-5808167636289061444LPThumbnailImageID_15281618267100.37602055116690947" style="display:inline-block; max-width:250px; max-height:250px; height:250px; width:250px; border-width:0px; vertical-align:bottom" width="250" height="250" src="https://pastebin.com/i/facebook.png"></a></div>
</td>
<td id="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-3306426881614445108m_-5808167636289061444TextCell_15281618267110.143415194374516" colspan="2" style="vertical-align:top; padding:0px; display:table-cell">
<div id="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-3306426881614445108m_-5808167636289061444LPRemovePreviewContainer_15281618267110.76062144662635">
</div>
<div id="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-3306426881614445108m_-5808167636289061444LPTitle_15281618267110.282023994761885" style="">
<a id="LPlnk863248" href="https://pastebin.com/sns8LG18" target="_blank" style="text-decoration:none" class="OWAAutoLink" previewremoved="true">administrative@queens-1:~$ sudo apt install gnocchi-api Reading package lists. - Pastebin.com</a></div>
<div id="x_m_7540949537711735380m_-2202560929463598836m_-6922203698554669768m_-3306426881614445108m_-5808167636289061444LPMetadata_15281618267110.31517513693856214" style="">
<a href="http://pastebin.com" target="_blank" id="LPlnk67491" class="OWAAutoLink" previewremoved="true">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>
</div>
</div>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank" id="LPlnk283716" class="OWAAutoLink" previewremoved="true">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank" id="LPlnk701655" class="OWAAutoLink" previewremoved="true">
openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank" id="LPlnk134841" class="OWAAutoLink" previewremoved="true">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</body>
</html>