Exception in instances and volumes tab
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned | ||
OpenStack Dashboard (Horizon) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
If a user has access to more than one tenant and it has also a volume mounted to an instance.
When retrieving the instances and volumes of another tenant it fails with the exception:
KeyError at /nova/instances
File "/usr/lib/
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/
40. return view_func(request, *args, **kwargs)
File "/usr/lib/
55. return view_func(request, *args, **kwargs)
File "/usr/lib/
40. return view_func(request, *args, **kwargs)
File "/usr/lib/
47. return self.dispatch(
File "/usr/lib/
68. return handler(request, *args, **kwargs)
File "/usr/lib/
105. handled = self.construct_
File "/usr/lib/
96. handled = self.handle_
File "/usr/lib/
68. data = self._get_
File "/usr/lib/
37. self._data[
File "/usr/lib/
75. att['instance'] = instances[
Reproducible: always
1. Create Project1
2. Create Project2
3. Assign user as member of Project1
4. Assign user as member of Project2
5. Create instance in Project1
6. Create a volume
7. Attach volume to the instance
8. Change to Project2 and look at Instances & Volumes
Actual Result:
Exception fired
Expected Result:
No error
It seems that the volumes are available for all the tenants, and it fails into mapping the volume to the instance which could be mounted on another tenant