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 <[email protected]> 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 - ジェームズ < > [email protected]> wrote: > >> Thank you! >> >> On 4 June 2018 at 21:25, pablo brunetti <[email protected]> >> 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 >>> Since the two wsgi modules are conflicting, installing gnocchi-api >>> breaks other OpenStack services. >>> >>> >>> Pablo. >>> >>> >>> >>> >>> ------------------------------ >>> *De:* Martinx - ジェームズ <[email protected]> >>> *Enviado:* segunda-feira, 4 de junho de 2018 21:53 >>> *Para:* [email protected]; 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/sns8LG18> >>> administrative@queens-1:~$ sudo apt install gnocchi-api Reading package >>> lists. - Pastebin.com <https://pastebin.com/sns8LG18> >>> 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 : [email protected] >> Unsubscribe : >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack >> >> >
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : [email protected] Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
