commit a638685c469da18dcf8f4bc4763763d90e50be17
Author: Matt Riedemann <email address hidden>
Date: Wed May 30 13:40:35 2018 -0400
Add functional test for AggregateMultiTenancyIsolation + migrate
A bug was reported against Ocata where a non-admin user
creates a server and the user's project is isolated to a
set of hosts via the AggregateMultiTenancyIsolation filter.
The admin, with a different project, cold migrates the server
and the filter rejects the request because before change
I195d389ac59574724a5e7202ba1a17d92c53a676 the cold migrate
task would re-generate the RequestSpec using the request context
which was from the admin, not the owner of the instance.
Even though this is not a problem past Ocata, we did not have
functional test coverage for this scenario so it is added here.
This will also be used to backport the fix to Ocata to show
the regression and fix in that branch.
Reviewed: https:/ /review. opendev. org/571265 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=a638685c469 da18dcf8f4bc476 3763d90e50be17
Committed: https:/
Submitter: Zuul
Branch: master
commit a638685c469da18 dcf8f4bc4763763 d90e50be17
Author: Matt Riedemann <email address hidden>
Date: Wed May 30 13:40:35 2018 -0400
Add functional test for AggregateMultiT enancyIsolation + migrate
A bug was reported against Ocata where a non-admin user enancyIsolation filter.
creates a server and the user's project is isolated to a
set of hosts via the AggregateMultiT
The admin, with a different project, cold migrates the server 9574724a5e7202b a1a17d92c53a676 the cold migrate
and the filter rejects the request because before change
I195d389ac5
task would re-generate the RequestSpec using the request context
which was from the admin, not the owner of the instance.
Even though this is not a problem past Ocata, we did not have
functional test coverage for this scenario so it is added here.
This will also be used to backport the fix to Ocata to show
the regression and fix in that branch.
Change-Id: I97559607fc720f b98c3543ff3dd60 95281752cd4
Related-Bug: #1774205
Related-Bug: #1675607