openstack 調整例項大小報錯 ERROR oslo_messaging.rpc.server ResizeError: Resize error: not able to execute ssh command: Unexpected error while running command
阿新 • • 發佈:2020-08-07
[root@node01 nova]# tail nova-compute.log
2020-08-07 15:18:25.128 61415 ERROR oslo_messaging.rpc.server self.gen.throw(type, value, traceback)
2020-08-07 15:18:25.128 61415 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 8987, in _error_out_instance_on_exception
2020-08-07 15:18:25.128 61415 ERROR oslo_messaging.rpc.server ResizeError: Resize error: not able to execute ssh command: Unexpected error while running command.
2020-08-07 15:18:25.128 61415 ERROR oslo_messaging.rpc.server Command: ssh -o BatchMode=yes 10.199.103.16 mkdir -p /var/lib/nova/instances/f3cd597a-3a01-4d2f-927d-8be35a955413
2020-08-07 15:18:25.128 61415 ERROR oslo_messaging.rpc.server Stdout: u''
2020-08-07 15:18:25.128 61415 ERROR oslo_messaging.rpc.server Stderr: u'Host key verification failed.\r\n'
2020-08-07 15:18:25.128 61415 ERROR oslo_messaging.rpc.server
解決方法
調整大小,需要openstack的nova節點和ssh通訊,在所有管理和計算節點配置免金鑰通訊
usermod -s /bin/bash nova echo "nova"|passwd --stdin nova su - nova ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa ssh-copy-id nova@10.199.103.13