Mailing List Archive

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

Any workaround or bug reported on Launchpad about this?

Time for Canonical to provide OpenStack Snap packages! lol

Thanks!
Thiago
Re: On Ubuntu 18.04, the package "gnocchi-api" install tries to remove both "keystone" and "openstack-dashboard"! [ In reply to ]
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
Since the two wsgi modules are conflicting, installing gnocchi-api breaks other OpenStack services.



Pablo.



________________________________
De: Martinx - $B%8%'!<%`%:(B <thiagocmartinsc@gmail.com>
Enviado: segunda-feira, 4 de junho de 2018 21:53
Para: 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



Any workaround or bug reported on Launchpad about this?

Time for Canonical to provide OpenStack Snap packages! lol

Thanks!
Thiago
Re: On Ubuntu 18.04, the package "gnocchi-api" install tries to remove both "keystone" and "openstack-dashboard"! [ In reply to ]
Thank you!

On 4 June 2018 at 21:25, pablo brunetti <pablobrunetti@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
> Since the two wsgi modules are conflicting, installing gnocchi-api breaks
> other OpenStack services.
>
>
> Pablo.
>
>
>
>
> ------------------------------
> *De:* Martinx - ????? <thiagocmartinsc@gmail.com>
> *Enviado:* segunda-feira, 4 de junho de 2018 21:53
> *Para:* 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/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
>
Re: On Ubuntu 18.04, the package "gnocchi-api" install tries to remove both "keystone" and "openstack-dashboard"! [ In reply to ]
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@gmail.com>
wrote:

> Thank you!
>
> On 4 June 2018 at 21:25, pablo brunetti <pablobrunetti@hotmail.com> wrote:
>
>> Hello,
>>
>>
>> This bug is confirmed in https://bugs.launchpad.net/ubu
>> ntu/+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 - ????? <thiagocmartinsc@gmail.com>
>> *Enviado:* segunda-feira, 4 de junho de 2018 21:53
>> *Para:* 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/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 : openstack@lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
>
>
Re: On Ubuntu 18.04, the package "gnocchi-api" install tries to remove both "keystone" and "openstack-dashboard"! [ In reply to ]
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 - $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
Re: On Ubuntu 18.04, the package "gnocchi-api" install tries to remove both "keystone" and "openstack-dashboard"! [ In reply to ]
On Thu, Jun 7, 2018 at 1:26 AM, Tobias Urdin <tobias.urdin@crystone.com>
wrote:

> 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.
>
>
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.


> 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.
>

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.


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

Yes, the the same package source is used for bionic and queens.

Thanks,
Corey


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@gmail.com> wrote:
>
>> Thank you!
>>
>> On 4 June 2018 at 21:25, pablo brunetti <pablobrunetti@hotmail.com>
>> wrote:
>>
>>> Hello,
>>>
>>>
>>> This bug is confirmed in https://bugs.launchpad.net/ubu
>>> ntu/+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 - ????? <thiagocmartinsc@gmail.com>
>>> *Enviado:* segunda-feira, 4 de junho de 2018 21:53
>>> *Para:* 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/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 : openstack@lists.openstack.org
>> Unsubscribe : http://lists.openstack.org/cgi
>> -bin/mailman/listinfo/openstack
>>
>>
>
>
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
> Post to : openstack@lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
>
>
Re: On Ubuntu 18.04, the package "gnocchi-api" install tries to remove both "keystone" and "openstack-dashboard"! [ In reply to ]
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> 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@gmail.com> wrote:
>
>> Thank you!
>>
>> On 4 June 2018 at 21:25, pablo brunetti <pablobrunetti@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
>>> Since the two wsgi modules are conflicting, installing gnocchi-api
>>> breaks other OpenStack services.
>>>
>>>
>>> Pablo.
>>>
>>>
>>>
>>>
>>> ------------------------------
>>> *De:* Martinx - ????? <thiagocmartinsc@gmail.com>
>>> *Enviado:* segunda-feira, 4 de junho de 2018 21:53
>>> *Para:* 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/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 : openstack@lists.openstack.org
>> Unsubscribe :
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>
>>
>
Re: On Ubuntu 18.04, the package "gnocchi-api" install tries to remove both "keystone" and "openstack-dashboard"! [ In reply to ]
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 - ????? <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> 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@gmail.com> wrote:
>>
>>> Thank you!
>>>
>>> On 4 June 2018 at 21:25, pablo brunetti <pablobrunetti@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
>>>> Since the two wsgi modules are conflicting, installing gnocchi-api
>>>> breaks other OpenStack services.
>>>>
>>>>
>>>> Pablo.
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------
>>>> *De:* Martinx - ????? <thiagocmartinsc@gmail.com>
>>>> *Enviado:* segunda-feira, 4 de junho de 2018 21:53
>>>> *Para:* 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/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 : openstack@lists.openstack.org
>>> Unsubscribe :
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>
>>>
>>
>
Re: On Ubuntu 18.04, the package "gnocchi-api" install tries to remove both "keystone" and "openstack-dashboard"! [ In reply to ]
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
Re: On Ubuntu 18.04, the package "gnocchi-api" install tries to remove both "keystone" and "openstack-dashboard"! [ In reply to ]
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
Re: On Ubuntu 18.04, the package "gnocchi-api" install tries to remove both "keystone" and "openstack-dashboard"! [ In reply to ]
It's the dependencies of gnocchi-api that prevent a py2 installation. I've
uploaded new package versions for cosmic and bionic via
https://bugs.launchpad.net/cloud-archive/+bug/1746992. It would be great if
you could help us test!

Thanks,
Corey

On Thu, Jun 7, 2018 at 3:57 PM, Martinx - ????? <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> 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@gmail.com> wrote:
>>
>>> Thank you!
>>>
>>> On 4 June 2018 at 21:25, pablo brunetti <pablobrunetti@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
>>>> Since the two wsgi modules are conflicting, installing gnocchi-api
>>>> breaks other OpenStack services.
>>>>
>>>>
>>>> Pablo.
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------
>>>> *De:* Martinx - ????? <thiagocmartinsc@gmail.com>
>>>> *Enviado:* segunda-feira, 4 de junho de 2018 21:53
>>>> *Para:* 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/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 : openstack@lists.openstack.org
>>> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/
>>> openstack
>>>
>>>
>>
>