Different heat stack-list results on Newton
Bug #1640891 reported by
Franciraldo Cavalcante
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Expired
|
Medium
|
Unassigned |
Bug Description
Until Heat/Mitaka, heat stack-list for an user with admin privileges would show only the stacks created for his project(tenant). On Newton, we see the stacks from all tenants. Also: there doesn't seem to be a way to filter the stacks by tenant for an admin user.
This behavior change is not documented on the Heat/Newton release notes, and can be found by running either 'heat stack-list' or 'openstack stack list'.
If this is a desired change of behavior, then we need a new flag to be able to specify the project. If it's not, and the existence of (-g, --global-tenant) flag leads me to think it's the case, then we need a fix for the default behavior.
To post a comment you must log in.
It was probably introduced by https:/ /review. openstack. org/#/c/ 344086/. I don't know the details of that change, but I think the reason is that the admin role is somewhat global anyway.
That said, I don't exactly reproduce the behavior you're describing. Here's an output of local testing:
$ source openrc admin demo
$ openstack stack list -f value -c 'Stack Name'
stack 1
$ source openrc admin admin
$ openstack stack list -f value -c 'Stack Name'
stack1
stack2
$ source openrc admin alt_demo
$ openstack stack list -f value -c 'Stack Name'
stack2
Switching projects seemed filter properly, but we see all stacks when on the admin project. Maybe it changed the behavior on the admin project?