launch instance not respecting picked project
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Invalid
|
Undecided
|
Masco |
Bug Description
Description of problem:
If you have a user with more than one project and admin role on one of the projects you get an additional pane when launching an instance. If you pick a project to launch under that isn't the current active project and try to launch a new instance the instance is launched under the current project not the selected project.
How reproducible: Every time
Steps to Reproduce:
1. Have a user with 2 projects and an admin role on one of the projects
2. log in as that user
3. identity -> projects -> set as active (project with admin role)
4. project -> instances -> Launch Instance -> Projects & Users -> Select non active project
5. Launch Instance (simple instance is fine)
Actual results:
Instance launched within current project
Expected results:
Instance launched within requested project
2015.1.0
Changed in horizon: | |
assignee: | nobody → jelly (coding1314) |
Changed in horizon: | |
assignee: | jelly (coding1314) → nobody |
after doing some more digging through the code it would appear this panel was hidden back in 2012 so that it wouldn't actually be visible but somewhere since it's accessible again if you have the admin role.
https:/ /github. com/openstack/ horizon/ blob/master/ openstack_ dashboard/ dashboards/ project/ instances/ workflows/ create_ instance. py#L70