Gate fail with pyasn1==0.2.3

Bug #1697123 reported by Dai Dang Van
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Anchor
New
Undecided
Unassigned
OpenStack Global Requirements
Fix Released
Undecided
Matthew Thode

Bug Description

2017-06-03 13:04:54.111682 | ======================================================================
2017-06-03 13:04:54.111704 | FAIL: tests.validators.test_callable_validators.TestValidators.test_key_usage_bad
2017-06-03 13:04:54.111712 | tags: worker-3
2017-06-03 13:04:54.111732 | ----------------------------------------------------------------------
2017-06-03 13:04:54.111745 | Traceback (most recent call last):
2017-06-03 13:04:54.111768 | File "tests/validators/test_callable_validators.py", line 333, in test_key_usage_bad
2017-06-03 13:04:54.111781 | ext.set_usage('keyCertSign', True)
2017-06-03 13:04:54.111800 | File "anchor/X509/extension.py", line 120, in ext_value_filled
2017-06-03 13:04:54.111811 | value = self._get_value()
2017-06-03 13:04:54.111828 | File "anchor/X509/extension.py", line 212, in _get_value
2017-06-03 13:04:54.111839 | asn1Spec=self.spec())[0]
2017-06-03 13:04:54.111878 | File "/home/jenkins/workspace/gate-anchor-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/pyasn1/codec/ber/decoder.py", line 908, in __call__
2017-06-03 13:04:54.111892 | stGetValueDecoder, self, substrateFun
2017-06-03 13:04:54.111932 | File "/home/jenkins/workspace/gate-anchor-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/pyasn1/codec/ber/decoder.py", line 128, in valueDecoder
2017-06-03 13:04:54.111951 | value = self.protoComponent.fromOctetString(head, trailingBits)
2017-06-03 13:04:54.111990 | File "/home/jenkins/workspace/gate-anchor-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/pyasn1/type/univ.py", line 694, in fromOctetString
2017-06-03 13:04:54.303766 | return cls(cls.SizedInteger(integer.from_bytes(value) >> padding).setBitLength(len(value) * 8 - padding))
2017-06-03 13:04:54.303846 | File "/home/jenkins/workspace/gate-anchor-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/pyasn1/compat/integer.py", line 14, in from_bytes
2017-06-03 13:04:54.303865 | value = long(b2a_hex(str(octets)), 16)
2017-06-03 13:04:54.303883 | ValueError: invalid literal for long() with base 16: ''

Tags: pyasn1
Revision history for this message
Ilya Etingof (etingof) wrote :

Just a quick note that this bug has been fixed in pyasn1 master (commit https://github.com/etingof/pyasn1/pull/42/commits/2e5bbe62012c593d606c71e02131c8b7d0eeb2dd) and will appear in the upcoming pyasn1 release (the one past 0.2.3).

Revision history for this message
Dai Dang Van (daikk115) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/requirements 1.1.0

This issue was fixed in the openstack/requirements 1.1.0 release.

Revision history for this message
Matthew Thode (prometheanfire) wrote :

making a note for the reqs team to unblock pysnmp versions once the new pyasn1 is out.

Revision history for this message
Ilya Etingof (etingof) wrote :

note that pyasn1 0.3.1 is out

Revision history for this message
Matthew Thode (prometheanfire) wrote :

and the fix as been merged, marking as fixed in reqs

Changed in openstack-requirements:
assignee: nobody → Matthew Thode (prometheanfire)
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/requirements 1.2.0

This issue was fixed in the openstack/requirements 1.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/requirements pike-eol

This issue was fixed in the openstack/requirements pike-eol release.

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.