kolla-genpwd pbr versioning exception

Bug #1655653 reported by Thomas O'Neill
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Undecided
Unassigned

Bug Description

$ kolla-genpwd
Traceback (most recent call last):
  File "/usr/bin/kolla-genpwd", line 7, in <module>
    from kolla.cmd.genpwd import main
  File "/usr/lib/python2.7/site-packages/kolla/__init__.py", line 19, in <module>
    'kolla').version_string()
  File "/usr/lib/python2.7/site-packages/pbr/version.py", line 465, in version_string
    return self.semantic_version().brief_string()
  File "/usr/lib/python2.7/site-packages/pbr/version.py", line 460, in semantic_version
    self._semantic = self._get_version_from_pkg_resources()
  File "/usr/lib/python2.7/site-packages/pbr/version.py", line 447, in _get_version_from_pkg_resources
    result_string = packaging.get_version(self.package)
  File "/usr/lib/python2.7/site-packages/pbr/packaging.py", line 725, in get_version
    raise Exception("Versioning for this project requires either an sdist"
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?

This was produced by running kolla-genpwd with only kolla-ansible installed from PyPI. With kolla installed from PyPI this bug disappears.

Changed in kolla-ansible:
status: New → Triaged
Revision history for this message
sean mooney (sean-k-mooney) wrote :

 kolla is missing form the requirements.txt file in kolla-ansible
that is why this is happening.

installing kolla-ansible via pip should automatically install kolla too.

Revision history for this message
jeck (jeckxie) wrote :

it's not a bug
pip install kolla will works

Changed in kolla-ansible:
milestone: none → ocata-rc2
milestone: ocata-rc2 → pike-1
Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

This is already fixed.

Changed in kolla-ansible:
status: Triaged → Won't Fix
status: Won't Fix → Fix Released
milestone: pike-1 → ocata-rc2
Changed in kolla-ansible:
milestone: ocata-rc2 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.