Comment 2 for bug 1481614

Revision history for this message
Martin Paulo (martin-paulo) wrote : Re: [Bug 1481614] Re: Ubuntu 15.04 python3 path problem when running loguserdata.py

The full stack trace is:

Traceback (most recent call last):
  File "/var/lib/cloud/instance/scripts/loguserdata.py", line 92, in
<module>
    code = main()
  File "/var/lib/cloud/instance/scripts/loguserdata.py", line 73, in main
    if not chk_ci_version():
  File "/var/lib/cloud/instance/scripts/loguserdata.py", line 30, in
chk_ci_version
    v = LooseVersion(pkg_resources.get_distribution('cloud-init').version)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
514, in get_distribution
    dist = get_provider(dist)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
394, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
920, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
807, in resolve
    raise DistributionNotFound(req)

Interestingly a command line call:
$ cloud-init --version
cloud-init 0.7.7

Returns the required version number without error on the Ubuntu 15.04
instance.

Sadly I needed to run cfn-init. Which is why I encountered this problem :(

Thanks

Martin

On 6 August 2015 at 06:58, Steve Baker <email address hidden> wrote:

> Lets assume we can fix this by changing loguserdata.py.
>
> As a workaround you can always set user_data_format:RAW on your server
> resource (assuming the template doesn't actually need to run cfn-init).
>
> http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Nova::Server
>
> ** Changed in: heat
> Status: New => Triaged
>
> ** Changed in: heat
> Importance: Undecided => Medium
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1481614
>
> Title:
> Ubuntu 15.04 python3 path problem when running loguserdata.py
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/heat/+bug/1481614/+subscriptions
>

--
=================================================================

Martin Paulo, BSc.
Software Developer

Tel : +61-3-9434 2508 (Home)
Tel : 04 205 20339 (Mobile)
Site: http://www.thepaulofamily.net

"Nobody goes there any more. It's too crowded" - Yogi Berra.