diff options
author | Jesper Schmitz Mouridsen <jesper@schmitz.computer> | 2022-06-14 21:32:18 +0000 |
---|---|---|
committer | Jesper Schmitz Mouridsen <jesper@schmitz.computer> | 2022-09-06 07:29:40 +0000 |
commit | 20a571fdd299f18c497bbb22ab0af7ead1bc4690 (patch) | |
tree | 8bc0fc4652e8484bbd397c0bc38b63134ab3f55d /openstack_dashboard/dashboards/project/backups/tables.py | |
parent | f044c4b0a30da4b4b5e3df1b7888811efddce447 (diff) | |
download | horizon-20a571fdd299f18c497bbb22ab0af7ead1bc4690.tar.gz |
Add cinder-user-facing messages for Backup
This patch adds a tab for cinder user messages for volume backups.
Cinder user messages show error details for cinder resources like if we
are unable to create a volume backup due to some failure in cinder it
will show us the reason for failure.
It also updates project and admin SnapshotDetailsTabs to use
DetailTabsGroup instead of TabGroup to improve top padding.
Also adds the fail_reason in the detail view, if backup errored.
Related-Bug https://bugs.launchpad.net/cinder/+bug/1978729
Change-Id: I4e639211043270e814fac489f915588af03f966a
Diffstat (limited to 'openstack_dashboard/dashboards/project/backups/tables.py')
-rw-r--r-- | openstack_dashboard/dashboards/project/backups/tables.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/openstack_dashboard/dashboards/project/backups/tables.py b/openstack_dashboard/dashboards/project/backups/tables.py index 4cbf34ef8..6c0a1c46d 100644 --- a/openstack_dashboard/dashboards/project/backups/tables.py +++ b/openstack_dashboard/dashboards/project/backups/tables.py @@ -197,3 +197,21 @@ class BackupsTable(tables.DataTable): row_class = UpdateRow table_actions = (DeleteBackup,) row_actions = (RestoreBackup, DeleteBackup) + + +class BackupMessagesTable(tables.DataTable): + message_id = tables.Column("id", verbose_name=_("ID")) + message_level = tables.Column("message_level", + verbose_name=_("Message Level")) + event_id = tables.Column("event_id", + verbose_name=_("Event Id")) + user_message = tables.Column("user_message", + verbose_name=_("User Message")) + created_at = tables.Column("created_at", + verbose_name=_("Created At")) + guaranteed_until = tables.Column("guaranteed_until", + verbose_name=_("Guaranteed Until")) + + class Meta(object): + name = "backup_messages" + verbose_name = _("Messages") |