← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1475842] [NEW] AttributeError: 'module' object has no attribute 'RuleCheck'

 

Public bug reported:

In the newest devstack, the neutron throw a error:

2015-07-18 04:35:52.335 INFO neutron.wsgi [req-569be14a-c958-47b9-a5f7-02e0af8a0780 demo 2c8af32e5ff0495fb7ac3f8003215882] 10.250.11.79 - - [18/Jul/2015 04:35:52] "GET //v2.0/ports.json?tenant_id=2c8af32e5ff0495fb7ac3f8003215882 HTTP/1.1" 500 383 0.023938
2015-07-18 04:35:52.337 INFO neutron.wsgi [-] (22960) accepted ('10.250.11.79', 42341)
2015-07-18 04:35:52.355 ERROR neutron.api.v2.resource [req-a6583f12-cb81-401c-89ab-146ce2b8ba78 demo 2c8af32e5ff0495fb7ac3f8003215882] index failed
2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource Traceback (most recent call last):
2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/resource.py", line 83, in resource
2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource     result = method(request=request, **args)
2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/base.py", line 322, in index
2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource     return self._items(request, True, parent_id)
2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/base.py", line 265, in _items
2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource     pluralized=self._collection)]
2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/policy.py", line 352, in check
2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource     pluralized)
2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/policy.py", line 312, in _prepare_check
2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource     match_rule = _build_match_rule(action, target, pluralized)
2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/policy.py", line 156, in _build_match_rule
2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource     match_rule = policy.RuleCheck('rule', action)
2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource AttributeError: 'module' object has no attribute 'RuleCheck'

the vesion info:
 oslo.policy (0.3.2)
 neutron (7.0.0.0b2.dev287, /opt/stack/neutron)

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1475842

Title:
  AttributeError: 'module' object has no attribute 'RuleCheck'

Status in neutron:
  New

Bug description:
  In the newest devstack, the neutron throw a error:

  2015-07-18 04:35:52.335 INFO neutron.wsgi [req-569be14a-c958-47b9-a5f7-02e0af8a0780 demo 2c8af32e5ff0495fb7ac3f8003215882] 10.250.11.79 - - [18/Jul/2015 04:35:52] "GET //v2.0/ports.json?tenant_id=2c8af32e5ff0495fb7ac3f8003215882 HTTP/1.1" 500 383 0.023938
  2015-07-18 04:35:52.337 INFO neutron.wsgi [-] (22960) accepted ('10.250.11.79', 42341)
  2015-07-18 04:35:52.355 ERROR neutron.api.v2.resource [req-a6583f12-cb81-401c-89ab-146ce2b8ba78 demo 2c8af32e5ff0495fb7ac3f8003215882] index failed
  2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource Traceback (most recent call last):
  2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/resource.py", line 83, in resource
  2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource     result = method(request=request, **args)
  2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/base.py", line 322, in index
  2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource     return self._items(request, True, parent_id)
  2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/base.py", line 265, in _items
  2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource     pluralized=self._collection)]
  2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/policy.py", line 352, in check
  2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource     pluralized)
  2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/policy.py", line 312, in _prepare_check
  2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource     match_rule = _build_match_rule(action, target, pluralized)
  2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/policy.py", line 156, in _build_match_rule
  2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource     match_rule = policy.RuleCheck('rule', action)
  2015-07-18 04:35:52.355 TRACE neutron.api.v2.resource AttributeError: 'module' object has no attribute 'RuleCheck'

  the vesion info:
   oslo.policy (0.3.2)
   neutron (7.0.0.0b2.dev287, /opt/stack/neutron)

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1475842/+subscriptions


Follow ups