I installed the gnocchi-api with sudo "pip install gnocchi-api" and it worked correctly, without the dependencies of python3 and manually configured the _wsgi module.
There was an error in ceilometer-agent-compute on compute node, when I activated the memory.usage metric:
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
Could someone help me with this error?
________________________________
De: Tobias Urdin <tobias.urdin@crystone.com>
Enviado: sexta-feira, 8 de junho de 2018 04:44
Para: Martinx - $B%8%'!<%`%:(B
Cc: openstack@lists.openstack.org
Assunto: Re: [Openstack] On Ubuntu 18.04, the package "gnocchi-api" install tries to remove both "keystone" and "openstack-dashboard"!
Yeah, that's it :)
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.
<VirtualHost *:8041>
ServerName hostnamehere
## Vhost docroot
DocumentRoot "/usr/lib/cgi-bin/gnocchi"
## Directories, there should at least be a declaration for /usr/lib/cgi-bin/gnocchi
<Directory "/usr/lib/cgi-bin/gnocchi">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Require all granted
</Directory>
## Logging
ErrorLog "/var/log/apache2/gnocchi_wsgi_error.log"
ServerSignature Off
CustomLog "/var/log/apache2/gnocchi_wsgi_access.log" combined
SetEnvIf X-Forwarded-Proto https HTTPS=1
WSGIApplicationGroup %{GLOBAL}
WSGIDaemonProcess gnocchi display-name=gnocchi_wsgi group=gnocchi processes=2 threads=1 user=gnocchi
WSGIProcessGroup gnocchi
WSGIScriptAlias / "/usr/lib/cgi-bin/gnocchi/app"
</VirtualHost>
On 06/07/2018 10:54 PM, Martinx - $B%8%'!<%`%:(B wrote:
Worth to mention that I still have to test python-gnocchi, my confs are wrong but, it is installed... :-P
On Thu, 7 Jun 2018 at 15:57, Martinx - $B%8%'!<%`%:(B <thiagocmartinsc@gmail.com<mailto:thiagocmartinsc@gmail.com>> wrote:
Corey,
I still don't get it... The package gnocchi-api is basically empty.
It have only 1 single text file: "/etc/apache2/sites-available/gnocchi-api.conf"!
The problem is that it depends on "python3-gnocchi" and "libapache2-mod-wsgi-py3", which brings the problem...
So, the workaround looks quite simple!
Instead of running "apt install gnocchi-api", I'm doing:
---
apt install python-gnocchi # which brings Gnocchi API (/usr/bin/gnocchi-api) for Python 2, then:
apt download gnocchi-api
# Extract the "/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".
---
On 5 June 2018 at 10:30, Corey Bryant <corey.bryant@canonical.com<mailto:corey.bryant@canonical.com>> wrote:
Hi Martin,
Thanks for bringing this up. I replied in the bug, but pasting some of my response below:
gnocchi-api only supports py3 for now in bionic/queens and above.
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.
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.
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.
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.
Thanks,
Corey
On Mon, Jun 4, 2018 at 10:31 PM, Martinx - $B%8%'!<%`%:(B <thiagocmartinsc@gmail.com<mailto:thiagocmartinsc@gmail.com>> wrote:
Thank you!
On 4 June 2018 at 21:25, pablo brunetti <pablobrunetti@hotmail.com<mailto:pablobrunetti@hotmail.com>> wrote:
Hello,
This bug is confirmed in
https://bugs.launchpad.net/ubuntu/+source/gnocchi/+bug/1746992 Bug #1746992 $B!H(Bgnocchi-api in Bionic uses python3, and libapache2...$B!I(B : Bugs : gnocchi package : Ubuntu<
https://bugs.launchpad.net/ubuntu/+source/gnocchi/+bug/1746992>
bugs.launchpad.net<
http://bugs.launchpad.net>
Since the two wsgi modules are conflicting, installing gnocchi-api breaks other OpenStack services.
Pablo.
________________________________
De: Martinx - $B%8%'!<%`%:(B <thiagocmartinsc@gmail.com<mailto:thiagocmartinsc@gmail.com>>
Enviado: segunda-feira, 4 de junho de 2018 21:53
Para: openstack@lists.openstack.org<mailto:openstack@lists.openstack.org>; James Page
Assunto: [Openstack] On Ubuntu 18.04, the package "gnocchi-api" install tries to remove both "keystone" and "openstack-dashboard"!
Hello,
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!
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... :-(
The problem (line 29):
https://pastebin.com/sns8LG18 [
https://pastebin.com/i/facebook.png]<
https://pastebin.com/sns8LG18>
administrative@queens-1:~$ sudo apt install gnocchi-api Reading package lists. - Pastebin.com<
https://pastebin.com/sns8LG18>
pastebin.com<
http://pastebin.com>
Any workaround or bug reported on Launchpad about this?
Time for Canonical to provide OpenStack Snap packages! lol
Thanks!
Thiago
_______________________________________________
Mailing list:
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org<mailto:openstack@lists.openstack.org>
Unsubscribe :
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack