梦云游 2024-04-17 10:22 采纳率: 0%
浏览 6

云平台compute实例无法启动(创建)云主机

先电云计算基础架构服务平台OpenStack
镜像:centos6.5
问题:云平台compute实例无法启动(创建)云主机

[root@controllerljh ~]# openstack-status 
== Nova services ==
openstack-nova-api:                     active
openstack-nova-cert:                    active
openstack-nova-compute:                 dead      (disabled on boot)
openstack-nova-network:                 dead      (disabled on boot)
openstack-nova-scheduler:               active
openstack-nova-conductor:               active
== Glance services ==
openstack-glance-api:                   active
openstack-glance-registry:              active
== Keystone service ==
openstack-keystone:                     active
== Horizon service ==
openstack-dashboard:                    active
== neutron services ==
neutron-server:                         active
neutron-dhcp-agent:                     active    (disabled on boot)
neutron-l3-agent:                       inactive  (disabled on boot)
neutron-metadata-agent:                 active
neutron-lbaas-agent:                    inactive  (disabled on boot)
neutron-openvswitch-agent:              active
== Cinder services ==
openstack-cinder-api:                   active
openstack-cinder-scheduler:             active
openstack-cinder-volume:                inactive  (disabled on boot)
openstack-cinder-backup:                inactive  (disabled on boot)
== Support services ==
mysqld:                                 active
openvswitch:                            active
messagebus:                             dead      (disabled on boot)
qpidd:                                  active
memcached:                              active    (disabled on boot)
== Keystone users ==
+----------------------------------+---------+---------+-------+
|                id                |   name  | enabled | email |
+----------------------------------+---------+---------+-------+
| 94dd376cd9f94f25a09e31e6bfe5e7b5 |  admin  |   True  |       |
| 8e3a72d7a5b6447384378c9393621245 |  cinder |   True  |       |
| c1332e09d0a04998b3e2a8d2fa5774fe |   demo  |   True  |       |
| 28416dfe9ed1412099dafd6ddfee676c |  glance |   True  |       |
| 7ee410fd375c4617a5ae5cc769e64472 | neutron |   True  |       |
| 3d65a125888b4d6b9182cf4ad110905e |   nova  |   True  |       |
+----------------------------------+---------+---------+-------+
== Glance images ==
+--------------------------------------+-----------+-------------+------------------+-----------+--------+
| ID                                   | Name      | Disk Format | Container Format | Size      | Status |
+--------------------------------------+-----------+-------------+------------------+-----------+--------+
| 750907e3-e17d-4e0b-8742-d45ceee594e9 | centos6.5 | qcow2       | bare             | 305397760 | active |
+--------------------------------------+-----------+-------------+------------------+-----------+--------+
== Nova managed services ==
+------------------+---------------+----------+---------+-------+----------------------------+-----------------+
| Binary           | Host          | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+------------------+---------------+----------+---------+-------+----------------------------+-----------------+
| nova-cert        | controllerljh | internal | enabled | up    | 2024-03-31T12:29:25.000000 | -               |
| nova-consoleauth | controllerljh | internal | enabled | up    | 2024-03-31T12:29:26.000000 | -               |
| nova-conductor   | controllerljh | internal | enabled | up    | 2024-03-31T12:29:23.000000 | -               |
| nova-scheduler   | controllerljh | internal | enabled | up    | 2024-03-31T12:29:24.000000 | -               |
| nova-compute     | computerljh   | nova     | enabled | up    | 2024-03-31T12:29:24.000000 | -               |
+------------------+---------------+----------+---------+-------+----------------------------+-----------------+
== Nova networks ==
+--------------------------------------+------------+------+
| ID                                   | Label      | Cidr |
+--------------------------------------+------------+------+
| 6c8633cb-eeee-4a54-b83d-7e132e7c1ef4 | sharednet1 | -    |
+--------------------------------------+------------+------+
== Nova instance flavors ==
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name      | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| 1  | m1.tiny   | 512       | 1    | 0         |      | 1     | 1.0         | True      |
| 2  | m1.small  | 2048      | 20   | 0         |      | 1     | 1.0         | True      |
| 3  | m1.medium | 4096      | 40   | 0         |      | 2     | 1.0         | True      |
| 4  | m1.large  | 8192      | 80   | 0         |      | 4     | 1.0         | True      |
| 5  | m1.xlarge | 16384     | 160  | 0         |      | 8     | 1.0         | True      |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
== Nova instances ==
+----+------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+----+------+--------+------------+-------------+----------+
+----+------+--------+------------+-------------+----------+

img

img

  • 写回答

6条回答 默认 最新

  • 专家-赤兔[在线] 全栈领域优质创作者 2024-04-17 10:22
    关注

    引自免费微信小程序:皆我百晓生

    根据您提供的OpenStack服务状态信息,看起来Nova compute服务openstack-nova-compute处于dead状态,并且disabled on boot,这意味着它在系统启动时没有被自动启用。这可能是导致无法创建compute实例(云主机)的原因。

    以下是几个可能的步骤来解决这个问题:

    1. 检查compute节点配置: 确保compute节点(computerljh)上安装了所有必要的软件包和依赖项,包括Nova组件,如nova-compute、libvirt(虚拟机管理库)等。检查该节点的日志文件(如/var/log/nova/nova-compute.log)以寻找任何错误或警告信息。

    2. 重启compute服务: 在compute节点上执行以下命令手动重启nova-compute服务:

      sudo systemctl restart openstack-nova-compute
      
    3. 检查服务配置: 检查/etc/nova/nova.conf文件,确认compute部分的配置正确,特别是enabled标志是否设置为True,以及计算节点是否正确指定为scheduler_default_filters中的一个。

    4. 更新服务状态: 如果重启服务后仍然存在问题,尝试手动更新服务状态:

      openstack service enable --enable nova-compute
      
    5. 检查硬件资源: 确保compute节点有足够的CPU、内存和磁盘空间来运行虚拟机实例。

    6. 检查网络配置: 确保compute节点与network服务(neutron)之间的网络连接正常,例如,检查网络插件(如Nova的Neutron插件)配置是否正确,以及物理网络设备的状态。

    7. 检查安全组: 确保compute节点的安全组规则允许实例的网络通信,包括SSH和其他必要的端口。

    8. 重启OpenStack服务: 如果以上步骤都没问题,尝试重启整个OpenStack服务堆栈,包括keystone、glance、neutron和cinder等服务:

      sudo systemctl restart openstack-all
      
    9. 监控事件: 使用OpenStack的事件流服务查看最近的事件日志,可能会找到更多关于问题的具体原因。

    请按照上述步骤逐一排查,确保每个环节都正常,然后再尝试创建新的compute实例。如果问题仍然存在,可能需要进一步检查OpenStack的日志文件和配置,或者联系OpenStack社区或技术支持以获取更专业的帮助。

    评论 编辑记录

报告相同问题?

问题事件

  • 创建了问题 4月17日

悬赏问题

  • ¥15 matlab自定义损失函数
  • ¥15 35114 SVAC视频验签的问题
  • ¥15 impedancepy
  • ¥15 在虚拟机环境下完成以下,要求截图!
  • ¥15 求往届大挑得奖作品(ppt…)
  • ¥15 如何在vue.config.js中读取到public文件夹下window.APP_CONFIG.API_BASE_URL的值
  • ¥50 浦育平台scratch图形化编程
  • ¥20 求这个的原理图 只要原理图
  • ¥15 vue2项目中,如何配置环境,可以在打完包之后修改请求的服务器地址
  • ¥20 微信的店铺小程序如何修改背景图