gate: context tests failed because missing parameter "is_admin_project" (oslo.context 2.6.0)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Critical
|
Tang Chen |
Bug Description
Description
===========
The following 3 tests failed:
1. nova.tests.
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "nova/tests/
File "/opt/stack/
File "/opt/stack/
raise mismatch_error
testtools.
reference = {
......
'is_admin': True,
......}
actual = {
......
'is_admin': True,
'is_
......}
2. nova.tests.
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "nova/tests/
File "/opt/stack/
File "/opt/stack/
raise mismatch_error
testtools.
reference = {
......
'is_admin': True,
......}
actual = {
......
'is_admin': True,
'is_
......}
3. nova.tests.
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "nova/tests/
File "/opt/stack/
File "/opt/stack/
raise mismatch_error
testtools.
Steps to reproduce
==================
Just run the context tests:
tox -e py27 test_context
This is because we missed to pass "is_admin_project" parameter to __init__() of oslo.context.
In nova/context.py
@enginefacade.
class RequestContext(
"""Security context and request information.
Represents the user taking a given action within the system.
"""
def __init__(self, user_id=None, project_id=None,
......
......
......)
But in oslo_context/
class RequestContext(
......
def __init__(......
Changed in nova: | |
assignee: | nobody → Tang Chen (tangchen) |
description: | updated |
Changed in nova: | |
importance: | Undecided → Critical |
summary: |
- context tests failed because missing parameter "is_admin_project" + gate: context tests failed because missing parameter "is_admin_project" |
summary: |
gate: context tests failed because missing parameter "is_admin_project" + (oslo.context 2.6.0) |
tags: | added: oslo |
Fix proposed to branch: master /review. openstack. org/343618
Review: https:/