10 天前我成功设置了 openstack。今天我重启了服务器,结果如下:
ceph-mon/0 maintenance executing 1/lxd/0 10.2.200.44
hook failed: "config-changed"
ceph-mon/1 error idle 3/lxd/0 10.2.200.49 hook failed: "config-changed"
ceph-mon/2* error idle 2/lxd/1 10.2.200.47 hook failed: "config-changed"
我尝试调试该问题并得到了以下跟踪:
root@juju-b8f983-1-lxd-0:/var/lib/juju/agents/unit-ceph-mon-0/charm# ./hooks/config-changed
Traceback (most recent call last):
File "./hooks/config-changed", line 725, in <module>
hooks.execute(sys.argv)
File "/var/lib/juju/agents/unit-ceph-mon-0/charm/hooks/charmhelpers/core/hookenv.py", line 798, in execute
self._hooks[hook_name]()
File "/var/lib/juju/agents/unit-ceph-mon-0/charm/hooks/charmhelpers/contrib/hardening/harden.py", line 79, in _harden_inner2
return f(*args, **kwargs)
File "./hooks/config-changed", line 187, in config_changed
check_for_upgrade()
File "./hooks/config-changed", line 113, in check_for_upgrade
ceph.pretty_print_upgrade_paths()))
File "lib/ceph/utils.py", line 2162, in pretty_print_upgrade_paths
for key, value in UPGRADE_PATHS.iteritems()]
AttributeError: 'dict' object has no attribute 'iteritems'
你能帮助我吗?问题的原因是什么?一些 Python 版本不匹配?但是,如果在服务器重启之前一切正常,这怎么可能呢。
希望对你有帮助。
答案1
由于发布了 Python 3 兼容性补丁,因此解决方案是升级 ceph-mon charm。很简单:
juju upgrade-charm --force-units ceph-mon
juju resolved ceph-mon