← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2092659] [NEW] NoneType' object has no attribute 'registered_rules'

 

Public bug reported:

While opening Admin -> Networks section in Horizon, there are some
errors in neutron serverlogs:

2024-12-29 14:30:46.258 1988956 INFO neutron.api.wsgi [None req-228c8948-38de-4786-a90c-0c8f685b515e 39ef1840d2d14de49ba16ac7e11ec2c4 b6f178e22d304f99a905c31f0e374587 - - default default] 10.0.0.2 "GET /v2.0/networks/992fc508-4215-4318-86f8-1bb38cb4e502/dhcp-agents HTTP/1.1" status: 500  len: 368 time: 0.0028458
2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource [None req-a3e36258-171d-4b7b-b94f-3681270774b4 39ef1840d2d14de49ba16ac7e11ec2c4 b6f178e22d304f99a905c31f0e374587 - - default default] index failed: No details.: AttributeError: 'NoneType' object has no attribute 'registered_rules'
2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource Traceback (most recent call last):
2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource   File "/usr/lib/python3.9/site-packages/neutron/api/v2/resource.py", line 97, in resource
2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource     result = method(request=request, **args)
2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource   File "/usr/lib/python3.9/site-packages/neutron/extensions/dhcpagentscheduler.py", line 72, in index
2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource     policy.enforce(request.context,
2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource   File "/usr/lib/python3.9/site-packages/neutron/policy.py", line 521, in enforce
2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource     rule, target, context = _prepare_check(context, action, target, pluralized)
2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource   File "/usr/lib/python3.9/site-packages/neutron/policy.py", line 448, in _prepare_check
2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource     match_rule = _build_match_rule(action, target, pluralized)
2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource   File "/usr/lib/python3.9/site-packages/neutron/policy.py", line 210, in _build_match_rule
2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource     registered_rule = _ENFORCER.registered_rules.get(action)
2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource AttributeError: 'NoneType' object has no attribute 'registered_rules'
2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource

OpenStack version: 2024.2 Dalmatian
OS: AlmaLinux 9.5

** Affects: neutron
     Importance: Undecided
         Status: New

** Description changed:

  While opening Admin -> Networks section in Horizon, there are some
  errors in neutron serverlogs:
  
  2024-12-29 14:30:46.258 1988956 INFO neutron.api.wsgi [None req-228c8948-38de-4786-a90c-0c8f685b515e 39ef1840d2d14de49ba16ac7e11ec2c4 b6f178e22d304f99a905c31f0e374587 - - default default] 10.0.0.2 "GET /v2.0/networks/992fc508-4215-4318-86f8-1bb38cb4e502/dhcp-agents HTTP/1.1" status: 500  len: 368 time: 0.0028458
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource [None req-a3e36258-171d-4b7b-b94f-3681270774b4 39ef1840d2d14de49ba16ac7e11ec2c4 b6f178e22d304f99a905c31f0e374587 - - default default] index failed: No details.: AttributeError: 'NoneType' object has no attribute 'registered_rules'
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource Traceback (most recent call last):
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource   File "/usr/lib/python3.9/site-packages/neutron/api/v2/resource.py", line 97, in resource
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource     result = method(request=request, **args)
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource   File "/usr/lib/python3.9/site-packages/neutron/extensions/dhcpagentscheduler.py", line 72, in index
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource     policy.enforce(request.context,
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource   File "/usr/lib/python3.9/site-packages/neutron/policy.py", line 521, in enforce
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource     rule, target, context = _prepare_check(context, action, target, pluralized)
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource   File "/usr/lib/python3.9/site-packages/neutron/policy.py", line 448, in _prepare_check
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource     match_rule = _build_match_rule(action, target, pluralized)
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource   File "/usr/lib/python3.9/site-packages/neutron/policy.py", line 210, in _build_match_rule
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource     registered_rule = _ENFORCER.registered_rules.get(action)
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource AttributeError: 'NoneType' object has no attribute 'registered_rules'
- 2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource 
- 
+ 2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource
  
  OpenStack version: 2024.2 Dalmatian
- OS: Dalmatian 2024.2
+ OS: AlmaLinux 9.5

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

Title:
  NoneType' object has no attribute 'registered_rules'

Status in neutron:
  New

Bug description:
  While opening Admin -> Networks section in Horizon, there are some
  errors in neutron serverlogs:

  2024-12-29 14:30:46.258 1988956 INFO neutron.api.wsgi [None req-228c8948-38de-4786-a90c-0c8f685b515e 39ef1840d2d14de49ba16ac7e11ec2c4 b6f178e22d304f99a905c31f0e374587 - - default default] 10.0.0.2 "GET /v2.0/networks/992fc508-4215-4318-86f8-1bb38cb4e502/dhcp-agents HTTP/1.1" status: 500  len: 368 time: 0.0028458
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource [None req-a3e36258-171d-4b7b-b94f-3681270774b4 39ef1840d2d14de49ba16ac7e11ec2c4 b6f178e22d304f99a905c31f0e374587 - - default default] index failed: No details.: AttributeError: 'NoneType' object has no attribute 'registered_rules'
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource Traceback (most recent call last):
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource   File "/usr/lib/python3.9/site-packages/neutron/api/v2/resource.py", line 97, in resource
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource     result = method(request=request, **args)
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource   File "/usr/lib/python3.9/site-packages/neutron/extensions/dhcpagentscheduler.py", line 72, in index
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource     policy.enforce(request.context,
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource   File "/usr/lib/python3.9/site-packages/neutron/policy.py", line 521, in enforce
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource     rule, target, context = _prepare_check(context, action, target, pluralized)
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource   File "/usr/lib/python3.9/site-packages/neutron/policy.py", line 448, in _prepare_check
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource     match_rule = _build_match_rule(action, target, pluralized)
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource   File "/usr/lib/python3.9/site-packages/neutron/policy.py", line 210, in _build_match_rule
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource     registered_rule = _ENFORCER.registered_rules.get(action)
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource AttributeError: 'NoneType' object has no attribute 'registered_rules'
  2024-12-29 14:30:46.266 1988956 ERROR neutron.api.v2.resource

  OpenStack version: 2024.2 Dalmatian
  OS: AlmaLinux 9.5

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