执行如下命令时:
obd cluster upgrade obce-3zones -c oceanbase-ce -V 3.1.2
报错如下:
[ERROR] fail to get upgrade graph: ‘NoneType’ object has no attribute ‘version’
我的OBD是:1.3.3
执行如下命令时:
obd cluster upgrade obce-3zones -c oceanbase-ce -V 3.1.2
报错如下:
[ERROR] fail to get upgrade graph: ‘NoneType’ object has no attribute ‘version’
我的OBD是:1.3.3
可以提供一些obd的日志信息吗?
文件路径是 $HOME/.obd/log/obd
022-05-20 15:40:26.098] [1b9b581a-d810-11ec-828b-005056abb84d] [INFO] Open ssh connection
[2022-05-20 15:40:26.361] [1b9b581a-d810-11ec-828b-005056abb84d] [DEBUG] - Searching upgrade_route plugin for components ...
[2022-05-20 15:40:26.361] [1b9b581a-d810-11ec-828b-005056abb84d] [DEBUG] - Searching upgrade_route plugin for oceanbase-ce-3.1.0-b73bcd531bdf3f087391991b290ff2cbcdaa0dc9
[2022-05-20 15:40:26.362] [1b9b581a-d810-11ec-828b-005056abb84d] [DEBUG] - Found for oceanbase-ce-py_script_upgrade_route-3.1.0 for oceanbase-ce-3.1.0
[2022-05-20 15:40:26.362] [1b9b581a-d810-11ec-828b-005056abb84d] [DEBUG] - import upgrade_route
[2022-05-20 15:40:26.365] [1b9b581a-d810-11ec-828b-005056abb84d] [DEBUG] - add upgrade_route ref count to 1
[2022-05-20 15:40:26.375] [1b9b581a-d810-11ec-828b-005056abb84d] [ERROR] [ERROR] fail to get upgrade graph: 'NoneType' object has no attribute 'version'
[2022-05-20 15:40:26.375] [1b9b581a-d810-11ec-828b-005056abb84d] [ERROR] Traceback (most recent call last):
[2022-05-20 15:40:26.376] [1b9b581a-d810-11ec-828b-005056abb84d] [ERROR] File "core.py", line 2086, in upgrade_cluster
[2022-05-20 15:40:26.376] [1b9b581a-d810-11ec-828b-005056abb84d] [ERROR] File "_plugin.py", line 237, in __call__
[2022-05-20 15:40:26.376] [1b9b581a-d810-11ec-828b-005056abb84d] [ERROR] File "_plugin.py", line 211, in _new_func
[2022-05-20 15:40:26.376] [1b9b581a-d810-11ec-828b-005056abb84d] [ERROR] File "/home/admin/.obd/plugins/oceanbase-ce/3.1.0/upgrade_route.py", line 192, in upgrade_route
[2022-05-20 15:40:26.376] [1b9b581a-d810-11ec-828b-005056abb84d] [ERROR] route = graph.findShortestUpgradePath(current_repository, dest_repository)
[2022-05-20 15:40:26.376] [1b9b581a-d810-11ec-828b-005056abb84d] [ERROR] File "/home/admin/.obd/plugins/oceanbase-ce/3.1.0/upgrade_route.py", line 117, in findShortestUpgradePath
[2022-05-20 15:40:26.376] [1b9b581a-d810-11ec-828b-005056abb84d] [ERROR] if node.version == dest_repository.version:
[2022-05-20 15:40:26.376] [1b9b581a-d810-11ec-828b-005056abb84d] [ERROR] AttributeError: 'NoneType' object has no attribute 'version'
[2022-05-20 15:40:26.376] [1b9b581a-d810-11ec-828b-005056abb84d] [ERROR]
[2022-05-20 15:40:26.377] [1b9b581a-d810-11ec-828b-005056abb84d] [DEBUG] - sub upgrade_route ref count to 0
[2022-05-20 15:40:26.377] [1b9b581a-d810-11ec-828b-005056abb84d] [DEBUG] - export upgrade_route
[2022-05-20 15:40:26.377] [1b9b581a-d810-11ec-828b-005056abb84d] [INFO] See https://open.oceanbase.com/docs/obd-cn/V1.3.0/10000000000099584.
[2022-05-20 15:40:26.394] [1b9b581a-d810-11ec-828b-005056abb84d] [DEBUG] - share lock /home/admin/.obd/lock/mirror_and_repo release, count 3
[2022-05-20 15:40:26.394] [1b9b581a-d810-11ec-828b-005056abb84d] [DEBUG] - exclusive lock /home/admin/.obd/lock/mirror_and_repo release, count 6
没办法了吗?只能重装??
升级前的OB是什么版本呢?
3.1.0 ->3.1.2
3.1.0不支持升级