Bug#931214: ImportError: No module named oslo.config

2019-07-01 Thread Paul Gevers
Hi,

On 01-07-2019 15:05, Thomas Goirand wrote:
> Looking further, it looks like python-os-collect-config is a *very* old
> package in Debian (ie: no update since 2014), and it's not adapted
> anymore to the version of python-oslo.config that is in Debian. ie:
> oslo.config has moved away from a namespace based system to a
> non-namespace, so it should now be "import oslo_config" and not "import
> oslo.config".
> 
> So, as a result, there's no way python-os-collect-config will work in
> Buster unless we update it to a much newer version, like for example
> version 9.2.1. Of course, it's already too late in the release process
> to do this, so we may just remove os-collect-config from Buster to fix
> the current situation.

I have hinted the package for removal. It will not be part of buster.
Thanks for the investigation.

> I'm sorry the OpenStack team failed to maintain this leaf package,

Happens. Wouldn't it be great if this package had an autopkgtest that
would have detected this... (Yeh, I know).

Paul



signature.asc
Description: OpenPGP digital signature


Bug#931214: ImportError: No module named oslo.config

2019-07-01 Thread Jö Fahlke
Am Mo,  1. Jul 2019, 15:05:30 +0200 schrieb Thomas Goirand:
> Jo, could you explain what your use case is for os-collect-config in
> Debian? I really don't get how it can be useful for you.

I'm trying to set up a Debian VM inside a OpenStack cluster using heat
orchestration.  As far as I understand it, you're supposed to do only the bare
minimum configuration using cloud-init, and do the bulk via something like
puppet, or in my case, ansible.  In that setup os-collect-config is needed to
run as a system service inside the VM to watch for configuration changes
published by heat, download the new configuration, and pass it (via some
indirection) to ansible.

I basically tried to follow this, stripping it down to only support ansible,
and adapting it to Debian:
https://developer.rackspace.com/docs/user-guides/orchestration/bootstrapping-software-config/
Since Debian has a package for os-collect-config, I tried using that rather
than using it from pip[1].

This should actually be useful outside of TripleO, unless I have completely
misunderstood something.


As a side note, the indirection mentioned above seems to be one or more of
os-apply-config (package python-os-apply-config; in stretch, buster and sid)
and os-refresh-config (package python-os-refresh-config; only in buster and
sid).  I did not verify this yet, but those packages are also ancient and
probably suffer from the same problem.


Thanks for looking into this,
regards,
Jö.

[1]: I'd prefer to use the Debian packages, since Debian actually cares about
 the trustworthiness and competence of its package maintainers...

-- 
Jorrit (Jö) Fahlke, Institute for Computational und Applied Mathematics,
University of Münster, Orleans-Ring 10, D-48149 Münster
Tel: +49 251 83 35146 Fax: +49 251 83 32729



signature.asc
Description: PGP signature


Bug#931214: ImportError: No module named oslo.config

2019-07-01 Thread Thomas Goirand
On 6/30/19 7:40 AM, Paul Gevers wrote:
> Hi Thomas,
> 
> On 29-06-2019 23:02, Thomas Goirand wrote:
>> On 6/29/19 10:12 AM, Paul Gevers wrote:
>>> On Fri, 28 Jun 2019 13:52:43 +0200 =?iso-8859-1?Q?J=F6?= Fahlke
>>>  wrote:
 Package: python-os-collect-config
 Version: 0.1.15-1
 Severity: grave
>>>
>>> This is on the radar of the release team, due to the very late time in
>>> the release. Please, any comment from your side helps judging what to do.
>>>
 I'm trying to use os-collect-config in a Debian stretch instance in an
 openstack cluster.  However, running it immediately leads to an import 
 error:
>>>
>>> [...]
>>>
 ImportError: No module named oslo.config
> 
>> It looks like it's just missing a runtime dependency. Just manually
>> installing oslo.config would fix this. So I do contest that the package
>> is not usable. It is, as long as you install pyhon-oslo.config.
> 
> Did you check that that dependency is missing? I checked before and I
> believe that python-oslo.config is in the listed dependencies *and*
> installed on the machine where the log came from. What am I missing?
> 
> Paul

Hi Paul,

Looking further, it looks like python-os-collect-config is a *very* old
package in Debian (ie: no update since 2014), and it's not adapted
anymore to the version of python-oslo.config that is in Debian. ie:
oslo.config has moved away from a namespace based system to a
non-namespace, so it should now be "import oslo_config" and not "import
oslo.config".

So, as a result, there's no way python-os-collect-config will work in
Buster unless we update it to a much newer version, like for example
version 9.2.1. Of course, it's already too late in the release process
to do this, so we may just remove os-collect-config from Buster to fix
the current situation.

I'm sorry the OpenStack team failed to maintain this leaf package,
however, my understanding is that this package is for TripleO, which
isn't, and wont ever, work in Debian.

Jo, could you explain what your use case is for os-collect-config in
Debian? I really don't get how it can be useful for you.

Cheers,

Thomas Goirand (zigo)



Bug#931214: ImportError: No module named oslo.config

2019-06-29 Thread Paul Gevers
Hi Thomas,

On 29-06-2019 23:02, Thomas Goirand wrote:
> On 6/29/19 10:12 AM, Paul Gevers wrote:
>> On Fri, 28 Jun 2019 13:52:43 +0200 =?iso-8859-1?Q?J=F6?= Fahlke
>>  wrote:
>>> Package: python-os-collect-config
>>> Version: 0.1.15-1
>>> Severity: grave
>>
>> This is on the radar of the release team, due to the very late time in
>> the release. Please, any comment from your side helps judging what to do.
>>
>>> I'm trying to use os-collect-config in a Debian stretch instance in an
>>> openstack cluster.  However, running it immediately leads to an import 
>>> error:
>>
>> [...]
>>
>>> ImportError: No module named oslo.config

> It looks like it's just missing a runtime dependency. Just manually
> installing oslo.config would fix this. So I do contest that the package
> is not usable. It is, as long as you install pyhon-oslo.config.

Did you check that that dependency is missing? I checked before and I
believe that python-oslo.config is in the listed dependencies *and*
installed on the machine where the log came from. What am I missing?

Paul



signature.asc
Description: OpenPGP digital signature


Bug#931214: ImportError: No module named oslo.config

2019-06-29 Thread Thomas Goirand
On 6/29/19 10:12 AM, Paul Gevers wrote:
> Control: tags -1 sid buster stretch
> 
> Dear OpenStack maintainers,
> 
> On Fri, 28 Jun 2019 13:52:43 +0200 =?iso-8859-1?Q?J=F6?= Fahlke
>  wrote:
>> Package: python-os-collect-config
>> Version: 0.1.15-1
>> Severity: grave
> 
> This is on the radar of the release team, due to the very late time in
> the release. Please, any comment from your side helps judging what to do.
> 
>> I'm trying to use os-collect-config in a Debian stretch instance in an
>> openstack cluster.  However, running it immediately leads to an import error:
> 
> [...]
> 
>> ImportError: No module named oslo.config
> 
> Paul
> 

Hi Paul,

It looks like it's just missing a runtime dependency. Just manually
installing oslo.config would fix this. So I do contest that the package
is not usable. It is, as long as you install pyhon-oslo.config.

Of course, this needs to be fixed, as since it's too late for fixing
before buster, I can do such a fix for the first point release.

Cheers,

Thomas Goirand (zigo)



Bug#931214: ImportError: No module named oslo.config

2019-06-29 Thread Paul Gevers
Control: tags -1 sid buster stretch

Dear OpenStack maintainers,

On Fri, 28 Jun 2019 13:52:43 +0200 =?iso-8859-1?Q?J=F6?= Fahlke
 wrote:
> Package: python-os-collect-config
> Version: 0.1.15-1
> Severity: grave

This is on the radar of the release team, due to the very late time in
the release. Please, any comment from your side helps judging what to do.

> I'm trying to use os-collect-config in a Debian stretch instance in an
> openstack cluster.  However, running it immediately leads to an import error:

[...]

> ImportError: No module named oslo.config

Paul



signature.asc
Description: OpenPGP digital signature


Bug#931214: ImportError: No module named oslo.config

2019-06-28 Thread Jö Fahlke
Package: python-os-collect-config
Version: 0.1.15-1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

I'm trying to use os-collect-config in a Debian stretch instance in an
openstack cluster.  However, running it immediately leads to an import error:
```
root@epic-sky-gate-server-texage5etawq:/home/debian# os-collect-config 
Traceback (most recent call last):
  File "/usr/bin/os-collect-config", line 6, in 
from os_collect_config.collect import __main__
  File "/usr/lib/python2.7/dist-packages/os_collect_config/collect.py", line 
25, in 
from openstack.common import log
  File 
"/usr/lib/python2.7/dist-packages/os_collect_config/openstack/common/log.py", 
line 43, in 
from oslo.config import cfg
ImportError: No module named oslo.config
root@epic-sky-gate-server-texage5etawq:/home/debian# cat /etc/debian_version
9.9
root@epic-sky-gate-server-texage5etawq:/home/debian# dpkg -l python-oslo.config
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name  Version   
Architecture  Description
+++-=-=-=-
ii  python-oslo.config1:3.17.0-3all 
  Common code for Openstack Projects (configuration API) - 
Python 2.x
```

Here is a reproducer using Docker and Dockers debian:buster image:
```Dockerfile
FROM debian:buster

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y python-os-collect-config
RUN dpkg -l
RUN dpkg -S 
/usr/lib/python2.7/dist-packages/os_collect_config/openstack/common/log.py
RUN grep '' /etc/apt/sources.list /etc/apt/sources.list.d/* || true
RUN os-collect-config --help
```

I'm attaching the output of running docker build on the above.

Regards,
Jorrit Fahlke.

-- System Information:
Debian Release: 9.9
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-8-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-os-collect-config depends on:
ii  dpkg   1.18.25
ii  python 2.7.13-2
ii  python-anyjson 0.3.3-1
ii  python-eventlet0.19.0-6
ii  python-iso8601 0.1.11-1
ii  python-keystoneclient  1:3.2.0-4
ii  python-lxml3.7.1-1
ii  python-oslo.config 1:3.17.0-3
ii  python-pbr 1.10.0-1
ii  python-requests2.12.4-1
ii  python-six 1.10.0-3

python-os-collect-config recommends no packages.

python-os-collect-config suggests no packages.

-- no debconf information

-- 
Jorrit (Jö) Fahlke, Institute for Computational und Applied Mathematics,
University of Münster, Orleans-Ring 10, D-48149 Münster
Tel: +49 251 83 35146 Fax: +49 251 83 32729

Interpunktion, Orthographie und Grammatik der Email ist frei erfunden.
Eine Übereinstimmung mit aktuellen oder ehemaligen Regeln wäre rein
zufällig und ist nicht beabsichtigt.


signature.asc
Description: PGP signature