zoukankan      html  css  js  c++  java
  • openstack 调整实例大小报错 ERROR oslo_messaging.rpc.server ResizeError: Resize error: not able to execute ssh command: Unexpected error while running command

    [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 raise error.inner_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 Exit code: 255
    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. '
    2020-08-07 15:18:25.128 61415 ERROR oslo_messaging.rpc.server
    2020-08-07 15:18:36.624 61415 INFO nova.compute.manager [req-efc389fd-77f9-487f-a877-b90c82474787 d608482bcb1b4522949e8e3d429d0b00 4abcf64d621e4cf89aa267887647bc8c - default default] [instance: f3cd597a-3a01-4d2f-927d-8be35a955413] Get console output

    解决方法

    调整大小,需要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
  • 相关阅读:
    CentOS中基于不同版本安装重复包的解决方案
    诺讯科技
    SQLMap使用
    python初码
    优秀软件project师必备的7大特性
    3.2 Piecewise Linear Interpolation(站点)
    C#开发Unity游戏教程之游戏对象的属性变量
    java 线程 原子类相关操作演示样例 thinking in java4 文件夹21.3.4
    一键解决ScrollView嵌套ListView仅仅显示一行的问题
    W5500中断寄存器的理解
  • 原文地址:https://www.cnblogs.com/omgasw/p/13453462.html
Copyright © 2011-2022 走看看