Openstack 调整云主机大小失败解决

Openstack 使用调整openstack云主机大小报错

tailf /var/log/nova/nova-compute.log

2017-02-24 18:21:29.088 28511 ERROR oslo_messaging.rpc.server     raise error.inner_exception
2017-02-24 18:21:29.088 28511 ERROR oslo_messaging.rpc.server ResizeError: Resize error: not able to execute ssh command: Unexpected error while running command.
2017-02-24 18:21:29.088 28511 ERROR oslo_messaging.rpc.server Command: ssh -o BatchMode=yes x.x.x.x mkdir -p /var/lib/nova/instances/a3477397-66a5-4f53-9010-a8413c1a8b70
2017-02-24 18:21:29.088 28511 ERROR oslo_messaging.rpc.server Exit code: 255
2017-02-24 18:21:29.088 28511 ERROR oslo_messaging.rpc.server Stdout: u''
2017-02-24 18:21:29.088 28511 ERROR oslo_messaging.rpc.server Stderr: u'Host key verification failed.\r\n'

查看信息可以知道,调整大小,需要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@x.x.x.x```

posted @ 2017-02-24 18:45  kubernetes-ops  阅读(3115)  评论(0编辑  收藏  举报