Collapse glance into platform in ControllerFS API
The existing "platform" filesystem is now resizable and added to the ControllerFS API. The “glance” filesystem is merged into "platform" and therefore removed from the ControllerFS API. The "--force" flag is removed from the controllerfs-modify API as it was only used for glance fs resizing. The folder /opt/cgcs is removed and the “helm_charts” and “keystone” folders now resides under /opt/platform. ls /opt/platform/ armada config helm nfv puppet sysinv ls /opt/cgcs/ helm_charts keystone Resources related to drbd-cgcs and /opt/cgcs are removed from puppet or updated to use drbd-platform and /opt/platform. SM is no longer monitoring resources related to drbd-cgcs. Tested in AIO-SX, AIO-DX and Standard hardware labs. Partial-Bug: 1830142 Change-Id: I0a80c95a057e9d6d2acec5f33cc4da31cd20955e Signed-off-by: Kristine Bujold <kristine.bujold@windriver.com>
This commit is contained in:
@@ -40,10 +40,6 @@ def _print_controller_fs_show(controller_fs):
|
||||
action='append',
|
||||
default=[],
|
||||
help="Modify controller filesystem sizes")
|
||||
@utils.arg('-f', '--force',
|
||||
action='store_true',
|
||||
default=False,
|
||||
help="Force the resize operation ")
|
||||
def do_controllerfs_modify(cc, args):
|
||||
"""Modify controller filesystem sizes."""
|
||||
|
||||
@@ -58,14 +54,9 @@ def do_controllerfs_modify(cc, args):
|
||||
except ValueError:
|
||||
raise exc.CommandError('Attributes must be a list of '
|
||||
'FS_NAME=SIZE not "%s"' % attr)
|
||||
if args.force is True:
|
||||
patch_list.append([{'op': 'replace',
|
||||
'path': '/action',
|
||||
'value': 'force_action'}])
|
||||
|
||||
try:
|
||||
controller_fs = cc.controller_fs.update_many(cc.isystem.list()[0].uuid,
|
||||
patch_list)
|
||||
cc.controller_fs.update_many(cc.isystem.list()[0].uuid, patch_list)
|
||||
except exc.HTTPNotFound:
|
||||
raise exc.CommandError('Failed to modify controller filesystems')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user