version.version_info fails miserably without git

Bug #1662266 reported by Davanum Srinivas (DIMS)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.cache
Fix Released
Undecided
Unassigned
oslo.concurrency
Fix Released
Undecided
Unassigned
oslo.config
Fix Released
Undecided
Davanum Srinivas (DIMS)
oslo.context
Fix Released
Undecided
Unassigned
oslo.log
Fix Released
Undecided
Davanum Srinivas (DIMS)
oslo.messaging
Fix Released
Undecided
Davanum Srinivas (DIMS)
oslo.middleware
Fix Released
Undecided
Davanum Srinivas (DIMS)
oslo.policy
Fix Released
Undecided
Unassigned
oslo.privsep
Fix Released
Undecided
Unassigned
oslo.rootwrap
Fix Released
Undecided
Davanum Srinivas (DIMS)
oslo.service
Fix Released
Undecided
Unassigned
oslo.vmware
Fix Released
Undecided
Unassigned

Bug Description

>>> from oslo.context import version
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named oslo.context
>>> from oslo_context import version
>>> version
<module 'oslo_context.version' from '/Users/dims/junk/test-venv/lib/python2.7/site-packages/oslo_context/version.pyc'>
>>> version.version_info
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/dims/junk/test-venv/lib/python2.7/site-packages/pbr/version.py", line 429, in __repr__
    self.package, self.version_string())
  File "/Users/dims/junk/test-venv/lib/python2.7/site-packages/pbr/version.py", line 465, in version_string
    return self.semantic_version().brief_string()
  File "/Users/dims/junk/test-venv/lib/python2.7/site-packages/pbr/version.py", line 460, in semantic_version
    self._semantic = self._get_version_from_pkg_resources()
  File "/Users/dims/junk/test-venv/lib/python2.7/site-packages/pbr/version.py", line 447, in _get_version_from_pkg_resources
    result_string = packaging.get_version(self.package)
  File "/Users/dims/junk/test-venv/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?
>>>

Full steps to recreate is here:
http://paste.openstack.org/show/597867/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.config (master)

Fix proposed to branch: master
Review: https://review.openstack.org/429802

Changed in oslo.config:
assignee: nobody → Davanum Srinivas (DIMS) (dims-v)
status: New → In Progress
Changed in oslo.log:
assignee: nobody → Davanum Srinivas (DIMS) (dims-v)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.log (master)

Fix proposed to branch: master
Review: https://review.openstack.org/429804

Changed in oslo.messaging:
assignee: nobody → Davanum Srinivas (DIMS) (dims-v)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.messaging (master)

Fix proposed to branch: master
Review: https://review.openstack.org/429805

Changed in oslo.middleware:
assignee: nobody → Davanum Srinivas (DIMS) (dims-v)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.middleware (master)

Fix proposed to branch: master
Review: https://review.openstack.org/429807

Changed in oslo.rootwrap:
assignee: nobody → Davanum Srinivas (DIMS) (dims-v)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.rootwrap (master)

Fix proposed to branch: master
Review: https://review.openstack.org/429810

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.rootwrap (master)

Reviewed: https://review.openstack.org/429810
Committed: https://git.openstack.org/cgit/openstack/oslo.rootwrap/commit/?id=82755ebbc2a8540c14681576f429e2a88860a0ee
Submitter: Jenkins
Branch: master

commit 82755ebbc2a8540c14681576f429e2a88860a0ee
Author: Davanum Srinivas <email address hidden>
Date: Mon Feb 6 12:49:21 2017 -0500

    pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz)

     We need to pass into VersionInfo what one would expect from running:
     setup.py --name

     Right now we pass in say oslo_context and pbr fails if there is no .git in
      the python source tree

      Closes-Bug: #1662266

    Change-Id: I9bdf6a792cb18432268e6aaaa509e25119775597

Changed in oslo.rootwrap:
status: In Progress → Fix Released
Changed in oslo.middleware:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.middleware (master)

Reviewed: https://review.openstack.org/429807
Committed: https://git.openstack.org/cgit/openstack/oslo.middleware/commit/?id=1cb766c0fc3ae1803651e0dd4e80a572a92ea4cd
Submitter: Jenkins
Branch: master

commit 1cb766c0fc3ae1803651e0dd4e80a572a92ea4cd
Author: Davanum Srinivas <email address hidden>
Date: Mon Feb 6 12:49:22 2017 -0500

    pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz)

     We need to pass into VersionInfo what one would expect from running:
     setup.py --name

     Right now we pass in say oslo_context and pbr fails if there is no .git in
      the python source tree

      Closes-Bug: #1662266

    Change-Id: Ia1495af62a02410607c27f443af59dc20b052072

Changed in oslo.log:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.log (master)

Reviewed: https://review.openstack.org/429804
Committed: https://git.openstack.org/cgit/openstack/oslo.log/commit/?id=bea9341b87e2687c3aa80491b96d4e51b66e1577
Submitter: Jenkins
Branch: master

commit bea9341b87e2687c3aa80491b96d4e51b66e1577
Author: Davanum Srinivas <email address hidden>
Date: Mon Feb 6 12:49:23 2017 -0500

    pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz)

     We need to pass into VersionInfo what one would expect from running:
     setup.py --name

     Right now we pass in say oslo_context and pbr fails if there is no .git in
      the python source tree

      Closes-Bug: #1662266

    Change-Id: Ief1b4cf71bb0830160ff91b0d359042618038931

Changed in oslo.cache:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.cache (master)

Reviewed: https://review.openstack.org/429800
Committed: https://git.openstack.org/cgit/openstack/oslo.cache/commit/?id=a27d1edb4fce7383e2eb39862f091b63536d145b
Submitter: Jenkins
Branch: master

commit a27d1edb4fce7383e2eb39862f091b63536d145b
Author: Davanum Srinivas <email address hidden>
Date: Mon Feb 6 12:49:23 2017 -0500

    pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz)

     We need to pass into VersionInfo what one would expect from running:
     setup.py --name

     Right now we pass in say oslo_context and pbr fails if there is no .git in
      the python source tree

      Closes-Bug: #1662266

    Change-Id: I6a4c2875d45609c5bc7326273a2e9b45fde6c085

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.messaging (master)

Reviewed: https://review.openstack.org/429805
Committed: https://git.openstack.org/cgit/openstack/oslo.messaging/commit/?id=f33bb02c8239eed78c7e9ef2f45cef5c271bee75
Submitter: Jenkins
Branch: master

commit f33bb02c8239eed78c7e9ef2f45cef5c271bee75
Author: Davanum Srinivas <email address hidden>
Date: Mon Feb 6 12:49:23 2017 -0500

    pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz)

     We need to pass into VersionInfo what one would expect from running:
     setup.py --name

     Right now we pass in say oslo_context and pbr fails if there is no .git in
      the python source tree

      Closes-Bug: #1662266

    Change-Id: I45d2edddfd516f65e1589e9b7816f1256e3f0d24

Changed in oslo.messaging:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.config (master)

Reviewed: https://review.openstack.org/429802
Committed: https://git.openstack.org/cgit/openstack/oslo.config/commit/?id=d7d497aa097795bcb95e7ec87fbddea099e131e2
Submitter: Jenkins
Branch: master

commit d7d497aa097795bcb95e7ec87fbddea099e131e2
Author: Davanum Srinivas <email address hidden>
Date: Mon Feb 6 12:49:23 2017 -0500

    pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz)

     We need to pass into VersionInfo what one would expect from running:
     setup.py --name

     Right now we pass in say oslo_context and pbr fails if there is no .git in
      the python source tree

      Closes-Bug: #1662266

    Change-Id: I14e802131eab4fd4c1bdb2bde91c249e18f8236a

Changed in oslo.config:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.messaging (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/433141

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.cache 1.18.0

This issue was fixed in the openstack/oslo.cache 1.18.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.concurrency 3.19.0

This issue was fixed in the openstack/oslo.concurrency 3.19.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.config 3.23.0

This issue was fixed in the openstack/oslo.config 3.23.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.context 2.13.0

This issue was fixed in the openstack/oslo.context 2.13.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.log 3.21.0

This issue was fixed in the openstack/oslo.log 3.21.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.messaging 5.18.0

This issue was fixed in the openstack/oslo.messaging 5.18.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.middleware 3.24.0

This issue was fixed in the openstack/oslo.middleware 3.24.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.policy 1.19.0

This issue was fixed in the openstack/oslo.policy 1.19.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.privsep 1.17.0

This issue was fixed in the openstack/oslo.privsep 1.17.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.rootwrap 5.5.0

This issue was fixed in the openstack/oslo.rootwrap 5.5.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.service 1.20.0

This issue was fixed in the openstack/oslo.service 1.20.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.vmware 2.18.0

This issue was fixed in the openstack/oslo.vmware 2.18.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.messaging (stable/ocata)

Reviewed: https://review.openstack.org/433141
Committed: https://git.openstack.org/cgit/openstack/oslo.messaging/commit/?id=0a91a7a4fea02931a9cee7851bc19ceebdbe5271
Submitter: Jenkins
Branch: stable/ocata

commit 0a91a7a4fea02931a9cee7851bc19ceebdbe5271
Author: Davanum Srinivas <email address hidden>
Date: Mon Feb 6 12:49:23 2017 -0500

    pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz)

     We need to pass into VersionInfo what one would expect from running:
     setup.py --name

     Right now we pass in say oslo_context and pbr fails if there is no .git in
      the python source tree

      Closes-Bug: #1662266

    Change-Id: I45d2edddfd516f65e1589e9b7816f1256e3f0d24
    (cherry picked from commit f33bb02c8239eed78c7e9ef2f45cef5c271bee75)

tags: added: in-stable-ocata
Changed in oslo.policy:
status: New → Fix Released
Changed in oslo.privsep:
status: New → Fix Released
Changed in oslo.context:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.messaging 5.17.2

This issue was fixed in the openstack/oslo.messaging 5.17.2 release.

Ben Nemec (bnemec)
Changed in oslo.concurrency:
status: New → Fix Released
Changed in oslo.service:
status: New → Fix Released
Changed in oslo.vmware:
status: New → Fix Released
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.