码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • OpenStack 创建虚拟机错误: Host ‘compute1‘ is not mapped to any cell


    1. 之前 Ubuntu 20.04 手动安装OpenStack只做到了 Networking service Installation Guide 这一步,然后就不继续了,以为最困难的都过去了

    2. 今天临时想要创建一个虚拟机,发现从命令行方式和 DashBoard 创建虚拟机,都报错了!

      Host ‘compute2’ is not mapped to any cell

    3. 从 DashBoard 查看错误原因
      在这里插入图片描述

    4. 分析:前面其他错误修改后,没有重新同步发现 compute 节点
      所以直接重新来过

      root@controller:/home/dhbm# nova-manage cell_v2 discover_hosts --verbose

       Found 2 cell mappings.
       Skipping cell0 since it does not contain hosts.
       Getting computes from cell 'cell1': acff5521-7a28-4a1d-bf04-6354dc5884eb
       Checking host mapping for compute host 'compute2': 0186d682-fbda-4c55-a6b4-950fa35ca6e2
       Creating host mapping for compute host 'compute2': 0186d682-fbda-4c55-a6b4-950fa35ca6e2
       Found 1 unmapped computes in cell: acff5521-7a28-4a1d-bf04-6354dc5884eb
      
      • 1
      • 2
      • 3
      • 4
      • 5
      • 6

      root@controller:/home/dhbm# openstack compute service list --service nova-compute

       +----+--------------+------------+------+---------+-------+----------------------------+
       | ID | Binary       | Host       | Zone | Status  | State | Updated At                 |
       +----+--------------+------------+------+---------+-------+----------------------------+
       |  5 | nova-compute | controller | nova | enabled | up    | 2022-12-06T06:26:07.000000 |
       | 13 | nova-compute | compute2   | nova | enabled | up    | 2022-12-06T06:26:10.000000 |
       +----+--------------+------------+------+---------+-------+----------------------------+
      
      • 1
      • 2
      • 3
      • 4
      • 5
      • 6

      再次创建虚拟机,就 OK了!

      在这里插入图片描述

    后记

    保险起见,以上修改调整后,一定重启一下对应服务

    service nova-api restart
    service nova-scheduler restart
    service nova-conductor restart
    service nova-novncproxy restart

    HTTP 服务也要重启

    systemctl restart apache2

    比如:我这里直接继续创建虚拟机,就报错了

    消息
    Build of instance aec7299c-8928-44a3-a486-5d2521869bf3 aborted: The request you have made requires authentication. (HTTP 401) (Request-ID: req-9adf4910-4225-494d-9179-0e03317fc513)

    在这里插入图片描述

  • 相关阅读:
    【Linux】《Linux命令行与shell脚本编程大全 (第4版) 》笔记-Chapter4-更多的 bash shell 命令
    一款pdf工具
    Flutter 按钮 大集合
    Python中的函数、闭包、装饰器、lambda表达式、生成器和递归
    第09章 循环神经网络变种
    【玩转 Cloud Studio】以 Rust 为例定制自己的开发环境
    容易犯且复杂的Python错误
    代码检测利器“利特莫斯”之优化血泪史
    Java中23种设计模式-单例模式--工厂模式
    【剑指Offer】41.数据流中的中位数
  • 原文地址:https://blog.csdn.net/u010953609/article/details/128202334
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号