unit test fails after ./stack.sh
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Blazar |
Fix Released
|
Low
|
Unassigned |
Bug Description
After installing aio OpenStack with Blazar using devstack,
tox -e py27 fails.
hoge@fuga:
-- snip --
FAIL: utils.test_
tags: worker-0
-------
Traceback (most recent call last):
File "/opt/stack/
self.
File "/opt/stack/
self.
File "/opt/stack/
raise mismatch_error
testtools.
reference = {'_BaseContext_
actual = {'_BaseContext_
Ran 483 tests in 22.167s (-3.541s)
FAILED (id=7, failures=1 (+1), skips=4)
error: testr failed (1)
ERROR: InvocationError for command '/opt/stack/
_______
ERROR: py27: commands failed
hoge@fuga:
[DEFAULT]
rpc_backend = rabbit
transport_url = rabbit:
use_syslog = False
debug = True
host = 127.0.0.1
os_region_name = RegionOne
identity_service = identity
os_admin_
os_admin_username = blazar
os_admin_password = hogehoge
os_auth_prefix = identity
os_auth_port = 80
os_auth_host = 127.0.0.1
os_auth_version = v3
[keystone_
memcached_servers = localhost:11211
cafile = /opt/stack/
project_domain_name = Default
project_name = service
user_domain_name = Default
password = hogehoge
username = blazar
auth_url = http://
auth_type = password
signing_dir = /var/cache/blazar
[physical:host]
aggregate_
[manager]
plugins = physical.
[api]
api_v2_controllers = oshosts,leases
[database]
connection = mysql+pymysql:
description: | updated |
Changed in blazar: | |
milestone: | none → rocky-3 |
importance: | Undecided → Low |
Reviewed: https:/ /review. openstack. org/576035 /git.openstack. org/cgit/ openstack/ blazar/ commit/ ?id=36259acf75e 3308ead70c7cfcd bd5034a7d25b09
Committed: https:/
Submitter: Zuul
Branch: master
commit 36259acf75e3308 ead70c7cfcdbd50 34a7d25b09
Author: Tetsuro Nakamura <email address hidden>
Date: Mon Jun 18 15:04:13 2018 +0900
Use parameters in config file for trust test
``create_ ctx_from_ trust`` creates a context using project_id
and user_id that are set to blazar configuration file, but
the test is fixed to use "admin", which can cause unpredictable
unit test error on developer's local environment.
This patch fixes the problem.
Change-Id: Ied2451d8821dc0 ac3f59fe838efec 01453839909
Closes-Bug: #1777399