Show availability zone for volume backups
This adds availability zone fields to volume backup tables. Change-Id: I6bf7c3ef4f6d6b73a6fafcc9b7038ccc4782037f (cherry picked from commit dbdd3764624e42a073288558dcf825b4aab4878f)
This commit is contained in:
parent
dcaf0cc51f
commit
72ea53cddc
@ -128,4 +128,4 @@ class AdminBackupsTable(project_tables.BackupsTable):
|
|||||||
row_actions = (AdminRestoreBackup, ForceDeleteBackup,
|
row_actions = (AdminRestoreBackup, ForceDeleteBackup,
|
||||||
AdminDeleteBackup, UpdateVolumeBackupStatusAction,)
|
AdminDeleteBackup, UpdateVolumeBackupStatusAction,)
|
||||||
columns = ('project', 'name', 'description', 'size', 'status',
|
columns = ('project', 'name', 'description', 'size', 'status',
|
||||||
'volume_name', 'snapshot',)
|
'availability_zone', 'volume_name', 'snapshot',)
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
<dt>{%trans "Fail reason"%}</dt>
|
<dt>{%trans "Fail reason"%}</dt>
|
||||||
<dd>{{ backup.fail_reason }} <dd>
|
<dd>{{ backup.fail_reason }} <dd>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<dt>{% trans "Availability Zone" %}</dt>
|
||||||
|
<dd>{{ backup.availability_zone }}</dd>
|
||||||
{% if volume %}
|
{% if volume %}
|
||||||
<dt>{% trans "Volume" %}</dt>
|
<dt>{% trans "Volume" %}</dt>
|
||||||
<dd>
|
<dd>
|
||||||
|
@ -181,6 +181,8 @@ class BackupsTable(tables.DataTable):
|
|||||||
status=True,
|
status=True,
|
||||||
status_choices=STATUS_CHOICES,
|
status_choices=STATUS_CHOICES,
|
||||||
display_choices=STATUS_DISPLAY_CHOICES)
|
display_choices=STATUS_DISPLAY_CHOICES)
|
||||||
|
availability_zone = tables.Column("availability_zone",
|
||||||
|
verbose_name=_("Availability Zone"))
|
||||||
volume_name = BackupVolumeNameColumn("name",
|
volume_name = BackupVolumeNameColumn("name",
|
||||||
verbose_name=_("Volume Name"),
|
verbose_name=_("Volume Name"),
|
||||||
link="horizon:project:volumes:detail")
|
link="horizon:project:volumes:detail")
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
<dt>{%trans "Fail reason"%}</dt>
|
<dt>{%trans "Fail reason"%}</dt>
|
||||||
<dd>{{ backup.fail_reason }} <dd>
|
<dd>{{ backup.fail_reason }} <dd>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<dt>{% trans "Availability Zone" %}</dt>
|
||||||
|
<dd>{{ backup.availability_zone }}</dd>
|
||||||
{% if volume %}
|
{% if volume %}
|
||||||
<dt>{% trans "Volume" %}</dt>
|
<dt>{% trans "Volume" %}</dt>
|
||||||
<dd>
|
<dd>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user