parser.Stack only uses tenant_id from request context

Bug #1246123 reported by Richard Lee
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Invalid
Undecided
Richard Lee

Bug Description

After parsing a stack from the database, we are not using the tenant information that we receive back from the db; instead, we are relying on the request context.tenant_id.

For example in parser.Stack.load, we grab the stack from the database, and we could instantiate the parser.Stack with the real stack's tenant_id rather than depending on the context.tenant_id later down the line (such as in Stack#identifier and Stack#store).

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/54446

Changed in heat:
assignee: nobody → Richard Lee (rblee88)
status: New → In Progress
Revision history for this message
Steven Hardy (shardy) wrote :

As mentioned in my comment on https://review.openstack.org/#/c/54446/, I get the logic behind this change, but can you please explain what actual issue you've observed prompting this change? Where is Stack#identifier and Stack#store used with the admin context?

The admin context should not every be used like that, so if it is, we may be missing some other underlying bug.

Revision history for this message
Steven Hardy (shardy) wrote :

s/every/ever/

Angus Salkeld (asalkeld)
Changed in heat:
status: In Progress → Incomplete
Revision history for this message
Steve Baker (steve-stevebaker) wrote :

There has been so much change in that area of the code that I doubt the behaviour is still the same. Marking invalid for now unless there is some new information on what problem this actually causes.

Changed in heat:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.