这次错误不同了,提示"mysql.connector.errors.ProgrammingError: 1227 (42501): Access denied; you need (at least one of) the CREATE privilege(s) for this operation",
还有下面这个错误
run sql: create tablegroup if not exists meta; failed,
2022-11-23 18:40:10 - INFO - 1 - [ob_install.py:71] - create meta tenant with command obd cluster tenant create meta -n meta_tenant --max-cpu 2 --min-cpu 2 --max-memory 4294967296 --min-memory 4294967296
2022-11-23 18:40:16 - INFO - 1 - [ob_install.py:76] - create monitor tenant with command obd cluster tenant create meta -n monitor_tenant --max-cpu 2 --min-cpu 2 --max-memory 4294967296 --min-memory 4294967296
2022-11-23 18:40:18 - ERROR - 1 - [ob_install.py:79] - create monitor tenant got result ret_code: 1, stdout: Get local repositories and plugins ok
Open ssh connection ok
Connect to observer ok
Create tenant monitor_tenant x
[ERROR] resource not enough: memory (Avail: 1.6G, Need: 4.0G)
See https://open.oceanbase.com/docs/obd-cn/V1.4.0/10000000000436999 .
, stderr:
Traceback (most recent call last):
File "pipeline/install_ocp.py", line 43, in <module>
run(context)
File "pipeline/install_ocp.py", line 33, in run
install_ocp_pipeline.run()
File "/root/installer/core/pipeline.py", line 10, in run
task.run()
File "/root/installer/task/ob_install.py", line 147, in run
self.create_tenant()
File "/root/installer/task/ob_install.py", line 80, in create_tenant
raise Exception("create monitor tenant failed")
Exception: create monitor tenant failed
而且每次重新运行安装脚本前还要清掉 :
meta cluster的安装目录
ocp的数据和日志目录
还要杀掉已经运行中的obproxyd, obproxy, observer 进程,如果这些进程存在,
会报错 [ERROR] Some of the servers in the cluster have been started
executing real sql script: real/update_ddl_2.2.0.sql
[2022-11-24 16:27:11] run sql: drop table if exists test ; failed, got exception Traceback (most recent call last):
File "/home/admin/ocp-init/src/ocp-init/common.py", line 207, in source_sql_file
run_sql_no_result(sql, config)
File "/home/admin/ocp-init/src/ocp-init/common.py", line 77, in run_sql_no_result
run_sql(sql, db_config, True)
File "/home/admin/ocp-init/src/ocp-init/common.py", line 61, in run_sql
cursor.execute(sql)
File "/usr/lib64/python2.7/site-packages/mysql/connector/cursor.py", line 569, in execute
self._handle_result(self._connection.cmd_query(stmt))
File "/usr/lib64/python2.7/site-packages/mysql/connector/connection.py", line 590, in cmd_query
result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
File "/usr/lib64/python2.7/site-packages/mysql/connector/connection.py", line 478, in _handle_result
raise errors.get_exception(packet)
DatabaseError: 4018 (HY000): Entry not exist