You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
url='/#/updateWelcome'ifself.cmdsandself.cmds[0] in ('upgrade', 'update') else''
908
909
910
+
ifself.opts.port<1024:
911
+
ROOT_IO.error('The port number must be in the range of 1025-65535.')
912
+
returnFalse
913
+
909
914
ROOT_IO.print('start OBD WEB in 0.0.0.0:%s'%self.opts.port)
910
915
ROOT_IO.print('please open http://{0}:{1}{2}'.format(NetUtil.get_host_ip(), self.opts.port, url))
911
916
try:
@@ -930,7 +935,7 @@ def __init__(self):
930
935
self.parser.add_option('-U', '--unuselibrepo', '--ulp', action='store_true', help="Disable OBD from installing the libs mirror automatically.")
931
936
self.parser.add_option('-A', '--auto-create-tenant', '--act', action='store_true', help="Automatically create a tenant named `test` by using all the available resource of the cluster.")
932
937
self.parser.add_option('--force-delete', action='store_true', help="Force delete, delete the registered cluster.")
933
-
self.parser.add_option('-s', '--strict-check', action='store_true', help="Throw errors instead of warnings when check fails.")
938
+
self.parser.add_option('-S', '--strict-check', action='store_true', help="Throw errors instead of warnings when check fails.")
934
939
935
940
def_do_command(self, obd):
936
941
ifself.cmds:
@@ -1047,7 +1052,8 @@ def __init__(self):
1047
1052
self.parser.add_option('-c', '--components', type='string', help="List of components to be started. Multiple components are separated with commas.")
1048
1053
self.parser.add_option('-f', '--force-delete', action='store_true', help="Force delete, delete the registered cluster.")
1049
1054
self.parser.add_option('-S', '--strict-check', action='store_true', help="Throw errors instead of warnings when check fails.")
1050
-
self.parser.add_option('--without-parameter', '--wop', action='store_true', help='Start without parameters.')
1055
+
self.parser.add_option('--with-parameter', '--wp', action='store_true', help='Start with parameters.')
1056
+
self.parser.add_option('--service-names', '--sn', type='string', help='List of services to be started for PowerRAG. Multiple services are separated with commas.')
1051
1057
1052
1058
def_do_command(self, obd):
1053
1059
ifself.cmds:
@@ -1065,6 +1071,7 @@ def __init__(self):
1065
1071
super(ClusterStopCommand, self).__init__('stop', 'Stop a started cluster.')
1066
1072
self.parser.add_option('-s', '--servers', type='string', help="List of servers to be stoped. Multiple servers are separated with commas.")
1067
1073
self.parser.add_option('-c', '--components', type='string', help="List of components to be stoped. Multiple components are separated with commas.")
1074
+
self.parser.add_option('--service-names', '--sn', type='string', help='List of services to be stoped for PowerRAG. Multiple services are separated with commas.')
1068
1075
1069
1076
def_do_command(self, obd):
1070
1077
ifself.cmds:
@@ -1128,8 +1135,8 @@ def __init__(self):
1128
1135
1129
1136
def_do_command(self, obd):
1130
1137
ifself.cmds:
1131
-
ifnotgetattr(self.opts, 'with_parameter', False):
1132
-
setattr(self.opts, 'without_parameter', True)
1138
+
# if not getattr(self.opts, 'with_parameter', False):
self.parser.add_option('-t', '--script-query-timeout', type='string', help="The timeout(s) for executing sql in upgrade scripts. Supported since version 4.1.0", default='')
1229
1236
self.parser.add_option('--ignore-standby', '--igs', action='store_true', help="Force upgrade, before upgrade standby tenant`s cluster.")
1237
+
self.parser.add_option('--oms-backup-path', type='string', help="Upgrade the OMS backup meta data directory", default=os.path.join(os.path.expanduser('~'), 'oms', 'meta_backup_data'))
1238
+
self.parser.add_option('--disable-oms-backup', '--dob', action='store_true', help="disable OMS backup meta data.")
self.parser.add_option('--memory_size', type='string', help='The memory size of the resource unit config')
1498
-
self.parser.add_option('--max_cpu', type='int', help='The max cpu of the resource unit config, should be greater than 1.')
1499
-
self.parser.add_option('--min_cpu', type='int', help='The min cpu of the resource unit config, should be greater than 1.If not set, the min cpu will be set to the max cpu.')
1500
-
self.parser.add_option('--max_iops', type='int', help='The max iops of the resource unit config.If not set, the max iops will be set default value by observer.')
1501
-
self.parser.add_option('--min_iops', type='int', help='The min iops of the resource unit config.If not set, the min iops will be set default value by observer.')
1502
-
self.parser.add_option('--log_disk_size', type='string', help='The log disk size of the resource unit config.If not set, the log disk size will be set default value by observer.')
self.parser.add_option('--memory-size', type='string', help='The memory size of the resource unit config')
1509
+
self.parser.add_option('--max-cpu', type='int', help='The max cpu of the resource unit config, should be greater than 1.')
1510
+
self.parser.add_option('--min-cpu', type='int', help='The min cpu of the resource unit config, should be greater than 1.If not set, the min cpu will be set to the max cpu.')
1511
+
self.parser.add_option('--max-iops', type='int', help='The max iops of the resource unit config.If not set, the max iops will be set default value by observer.')
1512
+
self.parser.add_option('--min-iops', type='int', help='The min iops of the resource unit config.If not set, the min iops will be set default value by observer.')
1513
+
self.parser.add_option('--log-disk-size', type='string', help='The log disk size of the resource unit config.If not set, the log disk size will be set default value by observer.')
Copy file name to clipboardExpand all lines: _errno.py
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -150,6 +150,7 @@ class InitDirFailedErrorMessage(object):
150
150
WC_FAIL_TO_RESTART_OR_RELOAD_AFTER_SCALE_OUT=OBDErrorCodeTemplate(1022, 'The cluster has been scaled out, but encountered problems when reloading or restarting. Details:\n{detail}')
151
151
WC_CHANGE_SYSTEM_PARAMETER_FAILED=OBDErrorCodeTemplate(1023, '({server}) failed to change system parameter: {key})')
152
152
153
+
153
154
# error code for observer
154
155
EC_OBSERVER_NOT_ENOUGH_MEMORY=OBDErrorCodeTemplate(2000, '({ip}) not enough memory. (Free: {free}, Need: {need})')
@@ -182,7 +183,7 @@ class InitDirFailedErrorMessage(object):
182
183
EC_OBSERVER_AUTO_START_DBUS_ENV=OBDErrorCodeTemplate(2019, "The current user does not have permission to enable autostart; sudo privileges are required and this operation is not allowed in container environments.")
183
184
EC_MULTIPLE_NODES_SAME=OBDErrorCodeTemplate(2020, "Multiple observer nodes on the same server are not supported by the auto start feature")
184
185
EC_OBSERVER_WEB_AUTO_START=OBDErrorCodeTemplate(2021, "Permission denied. Current user {user} on server {ip} requires sudo privileges.")
185
-
186
+
EC_CPU_CORE_NOT_ENOUGH=OBDErrorCodeTemplate(2022, "({server}) Insufficient CPU cores. (Current: {current}, Required: {required})")
186
187
187
188
WC_OBSERVER_SYS_MEM_TOO_LARGE=OBDErrorCodeTemplate(2010, '({server}): system_memory too large. system_memory should be less than {factor} * memory_limit/memory_limit_percentage.')
188
189
@@ -270,6 +271,13 @@ class InitDirFailedErrorMessage(object):
270
271
EC_OMS_SERVER_CONNECT_METADB=OBDErrorCodeTemplate(4701, 'failed to connect meta db')
271
272
EC_OMS_SERVER_CONNECT_INFLUXDB=OBDErrorCodeTemplate(4702, 'failed to connect influxdb')
272
273
EC_OMS_NOT_ENOUGH_DISK=OBDErrorCodeTemplate(4703, '({ip}) {disk} not enough disk space. (Need: {need})')
274
+
EC_OMS_UPDATE_NOT_DISABLE_HA=OBDErrorCodeTemplate(4704, 'HA is enabled, please disable it before upgrade.')
275
+
276
+
#maas
277
+
EC_MAAS_NOT_ENOUGH_DISK=OBDErrorCodeTemplate(4703, '({ip}) {disk} not enough disk space. (Need: {need})')
278
+
279
+
#powerrag
280
+
EC_POWERRAG_PROJECT_NAME_USED=OBDErrorCodeTemplate(4704, '({ip}) {project_name} is already in use')
0 commit comments