Initialize obproxy-ce ok
[ERROR] ocp-server-ce-py_script_start-4.2.1 RuntimeError: ‘str’ object has no attribute ‘fetchall’
[ERROR] ocp-server-ce start failed
Wait for observer init ok
麻烦发一下obd日志呢。
再重新 stop 集群,开启正常
我也遇到和你一模一样得这个报错,按照你的方式重新stop集群在开启错误依旧在。有没有什么更好得解决方式:OBD错误日志如下:
[2024-03-07 17:13:22.166] [ERROR] ocp-server-ce-py_script_start-4.2.1 RuntimeError: ‘str’ object has no attribute ‘fetchall’
[2024-03-07 17:13:22.166] [ERROR] Traceback (most recent call last):
[2024-03-07 17:13:22.166] [ERROR] File “core.py”, line 1673, in start_cluster
[2024-03-07 17:13:22.166] [ERROR] File “core.py”, line 1758, in _start_cluster
[2024-03-07 17:13:22.166] [ERROR] File “core.py”, line 184, in call_plugin
[2024-03-07 17:13:22.166] [ERROR] File “_plugin.py”, line 324, in call
[2024-03-07 17:13:22.166] [ERROR] File “_plugin.py”, line 286, in _new_func
[2024-03-07 17:13:22.166] [ERROR] File “/home/admin/.obd/plugins/ocp-server-ce/4.2.1/start.py”, line 704, in start
[2024-03-07 17:13:22.166] [ERROR] if not start_cluster():
[2024-03-07 17:13:22.166] [ERROR] File “/home/admin/.obd/plugins/ocp-server-ce/4.2.1/start.py”, line 503, in start_cluster
[2024-03-07 17:13:22.166] [ERROR] if not create_tenant(cursor, meta_tenant, meta_max_cpu, parse_size(meta_memory_size), meta_user,
[2024-03-07 17:13:22.166] [ERROR] File “/home/admin/.obd/plugins/ocp-server-ce/4.2.1/start.py”, line 239, in create_tenant
[2024-03-07 17:13:22.166] [ERROR] res = cursor.fetchall(sql)
[2024-03-07 17:13:22.166] [ERROR] AttributeError: ‘str’ object has no attribute ‘fetchall’
[2024-03-07 17:13:22.166] [ERROR]
[2024-03-07 17:13:22.166] [DEBUG] - sub start ref count to 0
[2024-03-07 17:13:22.166] [DEBUG] - export start
[2024-03-07 17:13:22.166] [ERROR] ocp-server-ce start failed
obd --version 如果是2.4.1的话,建议升级到最新的obd2.6.1再看下。
版本就是2.6.1呢。
重启解决百分之九十九的问题
rm -f ~/.obd/version 文件
obd mirror list 后
重新启动看下。