Bug 1306419

Summary: Unit tests for shade are failing
Product: [Fedora] Fedora Reporter: Paul Belanger <pabelanger>
Component: python-shadeAssignee: Paul Belanger <pabelanger>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: lars
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-20 14:05:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1315111    
Bug Blocks:    
Attachments:
Description Flags
current version of local spec none

Description Paul Belanger 2016-02-10 19:29:15 UTC
Currently, the shades that ship with shade are failing.  This is because we are not using os-client-config >=1.13.0

FAIL: shade.tests.unit.test_users.TestUsers.test_is_user_in_group
tags: worker-7
----------------------------------------------------------------------
Empty attachments:
  pythonlogging:''
  stderr
  stdout

Traceback (most recent call last):
  File "/builddir/build/BUILD/shade-1.4.0/shade/tests/unit/test_users.py", line 31, in setUp
    self.cloud = shade.operator_cloud(validate=False)
  File "/builddir/build/BUILD/shade-1.4.0/shade/__init__.py", line 92, in operator_cloud
    return OperatorCloud(cloud_config=cloud_config)
  File "/builddir/build/BUILD/shade-1.4.0/shade/operatorcloud.py", line 35, in __init__
    super(OperatorCloud, self).__init__(*args, **kwargs)
  File "/builddir/build/BUILD/shade-1.4.0/shade/openstackcloud.py", line 169, in __init__
    cache_expiration_time = int(cloud_config.get_cache_expiration_time())
TypeError: 'NoneType' object is not callable

Comment 1 Paul Belanger 2016-02-10 19:30:19 UTC
The fix is to bump os-client-config >=1.13.0. I am currently working on that.

Comment 2 Paul Belanger 2016-02-10 19:34:41 UTC
Created attachment 1122890 [details]
current version of local spec

Comment 3 Jan Kurik 2016-02-24 14:28:50 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase