Make project volume group table work even with volumev3 only env

Previously the volume group table in the project dashboard checked if
'volume' endpoint is available and 'volumev3' endpoint was not checked.
'volumev3' is an endpoint name commonly used for Volume v3 API and
it is not surprising that only volumev3 is configured in deployments,
so we should ensure that horizon works with environments only with
'volumev3' endpoint.

The service endpoints are already checked in panel.py, so there is no
need to have the permission check (i.e., service check) in the table.

Similar patterns are found in tables in project/snapshots and
project/vg_snapshots. They are also cleanup by this commit.

Change-Id: I12d03745bec5d8dec10a8e2b4306c595f2f39560
Closes-Bug: #1829461
(cherry picked from commit 0cb5167b99)
This commit is contained in:
Akihiro Motoki 2019-05-29 21:22:23 +09:00 committed by Vishal Manchanda
parent a3ba780ba4
commit c3ac75edcb
3 changed files with 0 additions and 8 deletions

View File

@ -234,10 +234,6 @@ class VolumeDetailsSnapshotsTable(volume_tables.VolumesTableBase):
UpdateMetadata))
row_class = UpdateRow
status_columns = ("status",)
permissions = [
('openstack.services.volume', 'openstack.services.volumev2',
'openstack.services.volumev3'),
]
class VolumeSnapshotsTable(VolumeDetailsSnapshotsTable):

View File

@ -136,6 +136,3 @@ class GroupSnapshotsTable(tables.DataTable):
DeleteGroupSnapshot,)
row_class = UpdateRow
status_columns = ("status",)
permissions = [
('openstack.services.volume', 'openstack.services.volumev3')
]

View File

@ -188,4 +188,3 @@ class GroupsTable(tables.DataTable):
)
row_class = UpdateRow
status_columns = ("status",)
permissions = ['openstack.services.volume']