REST API relies on policies being initialized after RESOURCE_ATTRIBUTE_MAP is processed, does nothing to ensure it.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| neutron |
Undecided
|
Brent Eagles | ||
| Icehouse |
Undecided
|
Unassigned | ||
| Juno |
Undecided
|
Unassigned |
Bug Description
A race condition exists where policies may be loaded and processed before the neutron extensions are loaded and the RESOURCE_
Related bugs:
https:/
https:/
https:/
Changed in neutron: | |
assignee: | nobody → Brent Eagles (beagles) |
Brent Eagles (beagles) wrote : | #1 |
summary: |
- Policies may be loaded prematurely, causing failed policy checks + REST API relies on policies being initialized after + RESOURCE_ATTRIBUTE_MAP is processed, does nothing to ensure it. |
Eugene Nikanorov (enikanorov) wrote : | #2 |
Can you please describe steps to reproduce in text form?
I think there was several attempts to fix the issue so I wonder if it really still exists.
Changed in neutron: | |
status: | New → Incomplete |
Brent Eagles (beagles) wrote : | #3 |
Here, in general form, are the steps used to reproduce this issue as demonstrated in the video:
1. simulate high agent load by changing report_interval to 1
2. simulate startup processing load by putting a sleep immediately after the line containing:
ext_mgr = extensions.
in neutron/
3. stop agents
4. stop neutron server
5. start agents
6. start neutron server
run nova network-list until REST API starts responding. Networks with router:
Changed in neutron: | |
status: | Incomplete → In Progress |
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit eeff5d06b2099ed
Author: Brent Eagles <email address hidden>
Date: Fri Oct 10 13:27:51 2014 -0230
Reset policies after RESOURCE_
The REST API relies on neutron-specific policy checking logic that is
only available after the extensions are loaded and the
RESOURCE_
immediately after these steps are done. This ensures that in the event
the policies are prematurely loaded for any reason, the on-demand
loading of the policies will reload the policies and properly configure
the neutron specific checks on the next policy check.
Change-Id: Ic2ab3f0179b0c1
Closes-Bug: #1398566
Related-Bug: #1254555
Changed in neutron: | |
status: | In Progress → Fix Committed |
Fix proposed to branch: stable/juno
Review: https:/
Fix proposed to branch: stable/icehouse
Review: https:/
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: stable/juno
commit 175e86977d6905e
Author: Brent Eagles <email address hidden>
Date: Fri Oct 10 13:27:51 2014 -0230
Reset policies after RESOURCE_
The REST API relies on neutron-specific policy checking logic that is
only available after the extensions are loaded and the
RESOURCE_
immediately after these steps are done. This ensures that in the event
the policies are prematurely loaded for any reason, the on-demand
loading of the policies will reload the policies and properly configure
the neutron specific checks on the next policy check.
Change-Id: Ic2ab3f0179b0c1
Closes-Bug: #1398566
Related-Bug: #1254555
(cherry picked from commit eeff5d06b2099ed
tags: | added: in-stable-juno |
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: stable/icehouse
commit c9cb001626e9023
Author: Brent Eagles <email address hidden>
Date: Fri Oct 10 13:27:51 2014 -0230
Reset policies after RESOURCE_
The REST API relies on neutron-specific policy checking logic that is
only available after the extensions are loaded and the
RESOURCE_
immediately after these steps are done. This ensures that in the event
the policies are prematurely loaded for any reason, the on-demand
loading of the policies will reload the policies and properly configure
the neutron specific checks on the next policy check.
Change-Id: Ic2ab3f0179b0c1
Closes-Bug: #1398566
Related-Bug: #1254555
(cherry picked from commit eeff5d06b2099ed
tags: | added: in-stable-icehouse |
Changed in neutron: | |
milestone: | none → kilo-2 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | kilo-2 → 2015.1.0 |
Video demonstrating how to reproduce http:// youtu.be/ -nL1gyL3KL8.