[Openstack] On Ubuntu 18.04, the package "gnocchi-api" install tries to remove both "keystone" and "openstack-dashboard"!

Tobias Urdin tobias.urdin at crystone.com
Thu Jun 7 05:26:09 UTC 2018


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
since we run all services on the same nodes in our CI.

We got help from Corey and James, they added the python-gnocchi (which is py2) package which provides the necessary Gnocchi code and
WSGI entry points that we could start using that with Apache2, it just doesn't fix the Apache2 config automatically.

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.
You will however need the python3-redis and python3-rados (if you use Ceph) packages for the metricd daemon.

The full swap to python3 should be a coordinated bump where it moves all packages to python3.
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.

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?
Best regards

On 06/05/2018 04:43 PM, Corey Bryant 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 - ジェームズ <thiagocmartinsc at gmail.com<mailto:thiagocmartinsc at gmail.com>> wrote:
Thank you!

On 4 June 2018 at 21:25, pablo brunetti <pablobrunetti at hotmail.com<mailto:pablobrunetti at hotmail.com>> wrote:

Hello,


This bug is confirmed in https://bugs.launchpad.net/ubuntu/+source/gnocchi/+bug/1746992

Bug #1746992 “gnocchi-api in Bionic uses python3, and libapache2...” : 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 - ジェームズ <thiagocmartinsc at gmail.com<mailto:thiagocmartinsc at gmail.com>>
Enviado: segunda-feira, 4 de junho de 2018 21:53
Para: openstack at lists.openstack.org<mailto:openstack at 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 at 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 at lists.openstack.org<mailto:openstack at lists.openstack.org>
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20180607/cc960a3e/attachment.html>


More information about the Openstack mailing list