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:
The full stack trace is:
Traceback (most recent call last): cloud/instance/ scripts/ loguserdata. py", line 92, in cloud/instance/ scripts/ loguserdata. py", line 73, in main cloud/instance/ scripts/ loguserdata. py", line 30, in pkg_resources. get_distributio n('cloud- init'). version) python2. 7/dist- packages/ pkg_resources/ __init_ _.py", line python2. 7/dist- packages/ pkg_resources/ __init_ _.py", line set.find( moduleOrReq) or require( str(moduleOrReq ))[0] python2. 7/dist- packages/ pkg_resources/ __init_ _.py", line parse_requireme nts(requirement s)) python2. 7/dist- packages/ pkg_resources/ __init_ _.py", line Found(req)
File "/var/lib/
<module>
code = main()
File "/var/lib/
if not chk_ci_version():
File "/var/lib/
chk_ci_version
v = LooseVersion(
File "/usr/lib/
514, in get_distribution
dist = get_provider(dist)
File "/usr/lib/
394, in get_provider
return working_
File "/usr/lib/
920, in require
needed = self.resolve(
File "/usr/lib/
807, in resolve
raise DistributionNot
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. format: RAW on your server docs.openstack. org/developer/ heat/template_ guide/openstack .html#OS: :Nova:: Server /bugs.launchpad .net/bugs/ 1481614 /bugs.launchpad .net/heat/ +bug/1481614/ +subscriptions
>
> As a workaround you can always set user_data_
> resource (assuming the template doesn't actually need to run cfn-init).
>
> http://
>
> ** 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:/
>
> Title:
> Ubuntu 15.04 python3 path problem when running loguserdata.py
>
> To manage notifications about this bug go to:
> https:/
>
-- ======= ======= ======= ======= ======= ======= ======= ======= ==
=======
Martin Paulo, BSc.
Software Developer
Tel : +61-3-9434 2508 (Home) www.thepaulofam ily.net
Tel : 04 205 20339 (Mobile)
Site: http://
"Nobody goes there any more. It's too crowded" - Yogi Berra.