“错误:找不到有效的主机。没有足够的主机可用”+牛顿

时间:2018-01-17 07:39:40

标签: openstack host openstack-nova openstack-neutron openstack-glance

我在Ubuntu 16.04上安装了openstack(Newton版本)(一体化)。每个服务都运行良好,但是当我尝试启动实例时,会发生错误:

  

错误:无法在实例“test1”上执行请求的操作   实例有错误状态:请稍后再试[错误:无效   主人被发现。没有足够的主机可用。]。

当我进入时:

Math.random()*2

的输出
[root@controller-hp ~(keystone_admin)]$ nova-hypervisor-list
+----+---------------------+-------+---------+
| ID | Hypervisor hostname | State | Status  |
+----+---------------------+-------+---------+
| 1  | controller-hp       | up    | enabled |
+----+---------------------+-------+---------+

我的nova.conf文件在这里:

https://paste.debian.net/1005278/

使用此guide,我的网络配置为:

网络概述

[root@controller-hp ~(keystone_admin)]$ neutron ext-list
+---------------------------+-----------------------------------------------+
| alias                     | name                                          |
+---------------------------+-----------------------------------------------+
| default-subnetpools       | Default Subnetpools                           |
| network-ip-availability   | Network IP Availability                       |
| network_availability_zone | Network Availability Zone                     |
| auto-allocated-topology   | Auto Allocated Topology Services              |
| ext-gw-mode               | Neutron L3 Configurable external gateway mode |
| binding                   | Port Binding                                  |
| metering                  | Neutron Metering                              |
| agent                     | agent                                         |
| subnet_allocation         | Subnet Allocation                             |
| l3_agent_scheduler        | L3 Agent Scheduler                            |
| tag                       | Tag support                                   |
| external-net              | Neutron external network                      |
| flavors                   | Neutron Service Flavors                       |
| fwaasrouterinsertion      | Firewall Router insertion                     |
| net-mtu                   | Network MTU                                   |
| availability_zone         | Availability Zone                             |
| quotas                    | Quota management support                      |
| l3-ha                     | HA Router extension                           |
| provider                  | Provider Network                              |
| multi-provider            | Multi Provider Network                        |
| address-scope             | Address scope                                 |
| extraroute                | Neutron Extra Route                           |
| shared_pools              | Shared pools for LBaaSv2                      |
| subnet-service-types      | Subnet service types                          |
| standard-attr-timestamp   | Resource timestamps                           |
| fwaas                     | Firewall service                              |
| service-type              | Neutron Service Type Management               |
| lb_network_vip            | Create loadbalancer with network_id           |
| l3-flavors                | Router Flavor Extension                       |
| port-security             | Port Security                                 |
| hm_max_retries_down       | Add a fall threshold to health monitor        |
| extra_dhcp_opt            | Neutron Extra DHCP opts                       |
| standard-attr-revisions   | Resource revision numbers                     |
| lbaasv2                   | LoadBalancing service v2                      |
| pagination                | Pagination support                            |
| sorting                   | Sorting support                               |
| lbaas_agent_schedulerv2   | Loadbalancer Agent Scheduler V2               |
| security-group            | security-group                                |
| dhcp_agent_scheduler      | DHCP Agent Scheduler                          |
| router_availability_zone  | Router Availability Zone                      |
| lb-graph                  | Load Balancer Graph                           |
| rbac-policies             | RBAC Policies                                 |
| l7                        | L7 capabilities for LBaaSv2                   |
| standard-attr-description | standard-attr-description                     |
| router                    | Neutron L3 Router                             |
| allowed-address-pairs     | Allowed Address Pairs                         |
| project-id                | project_id field enabled                      |
| dvr                       | Distributed Virtual Router                    |
+---------------------------+-----------------------------------------------+

Name
    physical01
ID
    212248e9-71ff-4015-8fec-54567f38e92f
Project ID
    43605ff65d2a40d19073e7268fd5d124
Status
    Active
Admin State
    UP
Shared
    Yes
External Network
    Yes
MTU
    1500
Provider Network
    Network Type: flat
    Physical Network: physical01
    Segmentation ID: -

我对[root@controller-hp ~(keystone_admin)]$ neutron net-list +--------------------------------+------------+--------------------------------+ | id | name | subnets | +--------------------------------+------------+--------------------------------+ | 212248e9-71ff-4015-8fec- | physical01 | ee667189-bb7c-4861-81a0-2735d0 | | 54567f38e92f | | 1c2011 10.1.79.0/24 | +--------------------------------+------------+--------------------------------+ 图像使用了大量的风格,表明问题与资源无关。

这是“Cirros 0.3.4 64 bits

的输出

http://paste.openstack.org/show/648396/

这些是我的插件配置:

ml2

Linux Bridge Agent

openvswitch

DHCP agent

L3 agent

我已经阅读了这些主题,但它们无法解决我的问题:

OpenStack Newton Installation(using packstack) Error

No valid host was found. There are not enough hosts available

...

任何帮助都将不胜感激。

1 个答案:

答案 0 :(得分:0)

您可以从计算节点上的以下日志中获取线索: /var/log/nova/nova-scheduler.log 的/ var /数/中子/中子 - *登录