Correct Error message is not shown
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Try to create a volume by a regular user.
400 error is shown
But in logs there is info about forbidden action.
It will be good to show the actual reason to the user
2022-04-28 08:07:00.190799 2022-04-28 08:07:00.187 14 ERROR cinder.
2022-04-28 08:07:00.190803 2022-04-28 08:07:00.187 14 ERROR cinder.
2022-04-28 08:07:00.190808 2022-04-28 08:07:00.187 14 ERROR cinder.
2022-04-28 08:07:00.190817 2022-04-28 08:07:00.187 14 ERROR cinder.
2022-04-28 08:07:00.190874
2022-04-28 08:07:00.205306 2022-04-28 08:07:00.203 14 WARNING cinder.volume.api [req-3a934586-
2022-04-28 08:07:00.205352 1 predecessors (most recent first):
2022-04-28 08:07:00.205356 Flow 'volume_
2022-04-28 08:07:00.205360 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api Traceback (most recent call last):
2022-04-28 08:07:00.205364 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api File "/var/lib/
2022-04-28 08:07:00.205368 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api order_ref = key_order.submit()
2022-04-28 08:07:00.205371 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api File "/var/lib/
2022-04-28 08:07:00.205375 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api return func(self, *args)
2022-04-28 08:07:00.205378 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api File "/var/lib/
2022-04-28 08:07:00.205382 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api response = self._api.
2022-04-28 08:07:00.205386 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api File "/var/lib/
2022-04-28 08:07:00.205390 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api return super(_HTTPClient, self).post(path, *args, **kwargs).json()
2022-04-28 08:07:00.205393 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api File "/var/lib/
2022-04-28 08:07:00.205398 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api return self.request(url, 'POST', **kwargs)
2022-04-28 08:07:00.205401 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api File "/var/lib/
2022-04-28 08:07:00.205404 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api self._check_
2022-04-28 08:07:00.205409 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api File "/var/lib/
2022-04-28 08:07:00.205412 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api status
2022-04-28 08:07:00.205416 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api barbicanclient.
2022-04-28 08:07:00.205419 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api
2022-04-28 08:07:00.205422 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api During handling of the above exception, another exception occurred:
2022-04-28 08:07:00.205425 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api
2022-04-28 08:07:00.205428 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api Traceback (most recent call last):
2022-04-28 08:07:00.205431 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api File "/var/lib/
2022-04-28 08:07:00.205435 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api length=length)
2022-04-28 08:07:00.205438 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api File "/var/lib/
2022-04-28 08:07:00.205442 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api raise exception.
2022-04-28 08:07:00.205446 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api castellan.
2022-04-28 08:07:00.205450 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api
2022-04-28 08:07:00.205453 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api During handling of the above exception, another exception occurred:
2022-04-28 08:07:00.205456 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api
2022-04-28 08:07:00.205525 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api Traceback (most recent call last):
2022-04-28 08:07:00.205529 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api File "/var/lib/
2022-04-28 08:07:00.205532 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api result = task.execute(
2022-04-28 08:07:00.205536 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api File "/var/lib/
2022-04-28 08:07:00.205540 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api image_meta) # new key id that's been cloned already
2022-04-28 08:07:00.205544 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api File "/var/lib/
2022-04-28 08:07:00.205548 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api volume_type_id)
2022-04-28 08:07:00.205551 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api File "/var/lib/
2022-04-28 08:07:00.205555 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api raise exception.
2022-04-28 08:07:00.205558 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api cinder.
2022-04-28 08:07:00.205685 2022-04-28 08:07:00.203 14 ERROR cinder.volume.api
It looks like a log from cinder.volume.api, but horizon does not call cinder.volume.api directly. Horizon talks with cinder via API. Horizon shows an error message returned from cinder API at least in the recent versions. I don't know which version of horizon you use, but if you use the recent versions you can see an error message from Cinder API.
Considering this I don't think it is a valid bug but am marking it as Incomplete to give time to the bug reporter to provider more information on the detail.