CEPH: Add 'state' column to Storage Devices in Host Inventory
This commit makes state column visible in Storage Devices of Storage tab in Host Inventory. Change is required to display state of the OSD as adding OSD storage devices no longer need nodes to be locked. The new column show state of an OSD as: 1. 'configuring' - puppet manifests are running; 2. 'configuring-on-unlock - node is locked and manifests will be run on unlock; 3. 'configured' - once configuration is successful, #1 above will turn into #3; 4. 'configuration-failed' - error state if manifests fail, this may be corrected by a lock/unlock of the node or a reinstall; Change-Id: I53d63972ee4b0d00ac29cd567a4d1470d00ac29c Story: 2002844 Task: 29795 Signed-off-by: Ovidiu Poncea <ovidiu.poncea@windriver.com>
This commit is contained in:
parent
5684b62b49
commit
e38fa0bd74
|
@ -1,2 +1,2 @@
|
|||
SRC_DIR="starlingx-dashboard"
|
||||
TIS_PATCH_VER=28
|
||||
TIS_PATCH_VER=29
|
||||
|
|
|
@ -339,6 +339,8 @@ class StorageVolumesTable(tables.DataTable):
|
|||
verbose_name=('OSD ID'))
|
||||
function = tables.Column('function',
|
||||
verbose_name=('Function'))
|
||||
state = tables.Column('state',
|
||||
verbose_name=('State'))
|
||||
idisk_uuid = tables.Column('idisk_uuid',
|
||||
verbose_name=('Disk UUID'))
|
||||
journal_path = tables.Column('journal_path',
|
||||
|
@ -354,8 +356,8 @@ class StorageVolumesTable(tables.DataTable):
|
|||
class Meta(object):
|
||||
name = "storagevolumes"
|
||||
verbose_name = ("Storage Functions")
|
||||
columns = ('uuid', 'function', 'osdid', 'idisk_uuid', 'journal_path',
|
||||
'journal_size_mib', 'journal_location')
|
||||
columns = ('uuid', 'function', 'osdid', 'state', 'idisk_uuid',
|
||||
'journal_path', 'journal_size_mib', 'journal_location')
|
||||
multi_select = False
|
||||
row_actions = (DeleteStor, EditStor,)
|
||||
table_actions = (CreateStorageVolume, CreateDiskProfile,)
|
||||
|
|
Loading…
Reference in New Issue