Tests of keystone action need oauthlib

Bug #1757036 reported by pengdake
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
Medium
pengdake

Bug Description

According to https://wiki.openstack.org/wiki/Testr#Debugging_.28pdb.29_Tests,
I run the test about mistral.tests.unit.actions.openstack.test_generator.GeneratorTest.test_generator.

I get two kinds error from stdout:

1. ERROR [mistral.actions.openstack.action_generator.base] Failed to create action: nova.hosts_find
Traceback (most recent call last):
  File "mistral/actions/openstack/action_generator/base.py", line 143, in create_actions
    client_method = class_.get_fake_client_method()
  File "mistral/actions/openstack/base.py", line 75, in get_fake_client_method
    return cls._get_client_method(cls._get_fake_client())
  File "mistral/actions/openstack/base.py", line 59, in _get_client_method
    attribute = getattr(attribute, attr)
AttributeError: 'Client' object has no attribute 'hosts'

This bug is resloved: https://review.openstack.org/#/c/554018/

2. ERROR [mistral.actions.openstack.action_generator.base] Failed to create action: keystone.oauth1.request_tokens_find
Traceback (most recent call last):
  File "mistral/actions/openstack/action_generator/base.py", line 143, in create_actions
    client_method = class_.get_fake_client_method()
  File "mistral/actions/openstack/base.py", line 75, in get_fake_client_method
    return cls._get_client_method(cls._get_fake_client())
  File "mistral/actions/openstack/base.py", line 59, in _get_client_method
    attribute = getattr(attribute, attr)
  File "/home/pengdake/work/openstack/mistral/.tox/py27/local/lib/python2.7/site-packages/keystoneclient/v3/contrib/oauth1/core.py", line 64, in __getattribute__
    _('To use %r oauthlib must be installed') % name)
NotImplementedError: To use 'request_tokens' oauthlib must be installed

I don't know why run test by tox successed, but the error exists indeed.

pengdake (19921207pq)
Changed in mistral:
assignee: nobody → pengdake (19921207pq)
Changed in mistral:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (master)

Reviewed: https://review.openstack.org/550363
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=4e772174fd6eb522af8309abb9fe291cd7f89304
Submitter: Zuul
Branch: master

commit 4e772174fd6eb522af8309abb9fe291cd7f89304
Author: pengdake <email address hidden>
Date: Wed Mar 7 13:09:31 2018 +0800

    Update test-requirements

    There are some tests about keystone actions need oauthlib.

    Closes-Bug: #1757036

    Change-Id: I91cd0e69454132613feafa82acacc96ac13803bb
    Signed-off-by: pengdake <email address hidden>

Changed in mistral:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/mistral 7.0.0.0b1

This issue was fixed in the openstack/mistral 7.0.0.0b1 development milestone.

Dougal Matthews (d0ugal)
Changed in mistral:
milestone: none → rocky-1
importance: Undecided → Medium
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.