Periodic task uses global stack-list
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
Fix Released
|
Undecided
|
Johannes Grassler |
Bug Description
Magnum's Periodic task sets the global_tenant flag when listing Heat stacks. This will fail since heat does not allow this action to be performed by anyone but the admin user by default:
log_http_response /usr/lib/
2016-06-07 10:42:56.116 18279 WARNING magnum.
2016-06-07 10:42:56.116 18279 ERROR magnum.
2016-06-07 10:42:56.116 18279 ERROR magnum.
2016-06-07 10:42:56.116 18279 ERROR magnum.
2016-06-07 10:42:56.116 18279 ERROR magnum.
2016-06-07 10:42:56.116 18279 ERROR magnum.
2016-06-07 10:42:56.116 18279 ERROR magnum.
2016-06-07 10:42:56.116 18279 ERROR magnum.
2016-06-07 10:42:56.116 18279 ERROR magnum.
2016-06-07 10:42:56.116 18279 ERROR magnum.
2016-06-07 10:42:56.116 18279 ERROR magnum.
2016-06-07 10:42:56.116 18279 ERROR magnum.
2016-06-07 10:42:56.116 18279 ERROR magnum.
2016-06-07 10:42:56.116 18279 ERROR magnum.
2016-06-07 10:42:56.116 18279 ERROR magnum.
2016-06-07 10:42:56.116 18279 ERROR magnum.
2016-06-07 10:42:56.116 18279 ERROR magnum.
2016-06-07 10:42:56.116 18279 ERROR magnum.
2016-06-07 10:42:56.116 18279 ERROR magnum.
2016-06-07 10:42:56.116 18279 ERROR magnum.
Magnum does not need to perform a global stack list since it's got all the information it needs in its database, namely each bay has a stack_id attribute and the function in question collects all of these IDs in bay_stack_ids, so a simple get operation on these will do just as well, without a need for special privileges.
Fix proposed to branch: master /review. openstack. org/326428
Review: https:/