Test failures in py26 environment

Bug #1046862 reported by Kevin L. Mitchell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
Steve Martinelli

Bug Description

Current Keystone trunk, I see test failures when I run "tox -e py26", apparently related to an inability to call an external program and/or to verify a token. Examples include:

  ======================================================================
  ERROR: test_fetch_revocation_list (test_auth_token_middleware.AuthTokenMiddlewareTest)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/klmitch/devel/src/keystone/tests/test_auth_token_middleware.py", line 490, in test_fetch_revocation_list
      fetched_list = jsonutils.loads(self.middleware.fetch_revocation_list())
    File "/home/klmitch/devel/src/keystone/keystone/middleware/auth_token.py", line 782, in fetch_revocation_list
      return self.cms_verify(data['signed'])
    File "/home/klmitch/devel/src/keystone/keystone/middleware/auth_token.py", line 711, in cms_verify
      self.ca_file_name)
    File "/home/klmitch/devel/src/keystone/keystone/common/cms.py", line 23, in cms_verify
      output, err = process.communicate(formatted)
    File "/usr/lib/python2.6/subprocess.py", line 691, in communicate
      return self._communicate(input)
    File "/usr/lib/python2.6/subprocess.py", line 1222, in _communicate
      bytes_written = os.write(self.stdin.fileno(), chunk)
  OSError: [Errno 32] Broken pipe
  -------------------- >> begin captured logging << --------------------
  keystone.middleware.auth_token: INFO: Starting keystone auth_token middleware
  keystone.middleware.auth_token: INFO: Using signing as cache directory for signing certificate
  --------------------- >> end captured logging << ---------------------

  ======================================================================
  ERROR: test_get_revocation_list_returns_fetched_list (test_auth_token_middleware.AuthTokenMiddlewareTest)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/klmitch/devel/src/keystone/tests/test_auth_token_middleware.py", line 472, in test_get_revocation_list_returns_fetched_list
      self.assertEqual(self.middleware.token_revocation_list,
    File "/home/klmitch/devel/src/keystone/keystone/middleware/auth_token.py", line 759, in token_revocation_list
      self.token_revocation_list = self.fetch_revocation_list()
    File "/home/klmitch/devel/src/keystone/keystone/middleware/auth_token.py", line 769, in token_revocation_list
      self._token_revocation_list = jsonutils.loads(value)
    File "/home/klmitch/devel/src/keystone/keystone/openstack/common/jsonutils.py", line 132, in loads
      return json.loads(s)
    File "/usr/lib/python2.6/json/__init__.py", line 307, in loads
      return _default_decoder.decode(s)
    File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "/usr/lib/python2.6/json/decoder.py", line 338, in raw_decode
      raise ValueError("No JSON object could be decoded")
  ValueError: No JSON object could be decoded
  -------------------- >> begin captured logging << --------------------
  keystone.middleware.auth_token: INFO: Starting keystone auth_token middleware
  keystone.middleware.auth_token: INFO: Using signing as cache directory for signing certificate
  --------------------- >> end captured logging << ---------------------

Full test run log attached.

Revision history for this message
Kevin L. Mitchell (klmitch) wrote :
Joseph Heck (heckj)
Changed in keystone:
status: New → Confirmed
status: Confirmed → Triaged
Revision history for this message
Joseph Heck (heckj) wrote :

Kevin,

I just replicated your exact run on Ubuntu 10.10 with python2.6-dev package installed, and was unable to reproduce this issue. Can you provide any other details as to what system you're running this on that's failing?

Changed in keystone:
status: Triaged → Incomplete
importance: Undecided → Medium
Revision history for this message
Kevin L. Mitchell (klmitch) wrote :

Debian squeeze, I believe.

klmitch@devhost-klmitch:~/devel/src/keystone$ cat /etc/debian_version
6.0.5

My best guess is that there is a dependency that tox is not installing and which I haven't discovered in the documentation anywhere. I can run the keystone daemon successfully, and authenticate against it; I just can't get the test suite to complete successfully. Any other specific information I can provide you? Any dependencies jump out at you based on the test failures which I could go look up?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Keystone because there has been no activity for 60 days.]

Changed in keystone:
status: Incomplete → Expired
Revision history for this message
Kevin L. Mitchell (klmitch) wrote :

This issue still exists. Again, I expect that there is a dependency that tox is not installing and which I haven't discovered in the documentation anywhere; perhaps on the version of OpenSSL that is installed? OpenSSL on my dev box is:

    klmitch@devhost-klmitch:~/devel/src/keystone$ openssl version
    OpenSSL 0.9.8o 01 Jun 2010

But there's no document that I can find that says what the minimum version of OpenSSL is recommended or required.

Changed in keystone:
status: Expired → New
Revision history for this message
Joseph Heck (heckj) wrote :

Hey Kevin,

It's your local version of openssl - the code's expecting 1.0+

My mac laptop has 0.9.8a and it's not happy with this either.

Not entirely sure how to represent the version of an external binary (openssl) that's required with tox. Suggestions welcome!

Changed in keystone:
status: New → Confirmed
importance: Medium → Low
Revision history for this message
Kevin L. Mitchell (klmitch) wrote :

Hey, I'd just be happy if it were *documented* somewhere. You know, like, in README.rst or something.

Changed in keystone:
assignee: nobody → Steve Martinelli (stevemar)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

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

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

Reviewed: https://review.openstack.org/18054
Committed: http://github.com/openstack/keystone/commit/6ceb06689f5f1da26584192ae9f46a5248277565
Submitter: Jenkins
Branch: master

commit 6ceb06689f5f1da26584192ae9f46a5248277565
Author: Steve Martinelli <email address hidden>
Date: Thu Dec 13 11:35:01 2012 -0500

    fixing bug 1046862

    adding message to readme.rst to include openSSL dependency

    fixing bug 1046862

    Change-Id: Iff1fbc95e804f9e4ddc74ea38c553426c4eabb33

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → grizzly-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: grizzly-2 → 2013.1
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.