Loading stack using stored context calls keystone
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
huangtianhua | ||
Mitaka |
Triaged
|
Medium
|
Unassigned | ||
Newton |
Fix Released
|
Medium
|
huangtianhua |
Bug Description
When we load a stack from the database using the stored user context, we make a bunch of calls to Keystone to fetch the roles, user_domain_id and project_domain_id. These calls are fixes for bug 1529354 and bug 1531406.
One of the things we pass stored_context=True for is at startup for loading stacks that were left stuck IN_PROGRESS by some previous dead engine. We are unable to do this if Keystone is not available - which is a fairly likely scenario after e.g. a restart of the box.
If we could lazily load the information we need only when it is required, it would not only be more efficient but we could also be sure to always reset stuck stacks at startup regardless of the order in which services start.
Changed in heat: | |
assignee: | nobody → Thomas Herve (therve) |
milestone: | none → newton-1 |
Fix proposed to branch: master /review. openstack. org/315772
Review: https:/