重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

创建云主机失败报错Exceededmaximumnumberofretries怎么办

这篇文章将为大家详细讲解有关创建云主机失败报错Exceeded maximum number of retries怎么办,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

从策划到设计制作,每一步都追求做到细腻,制作可持续发展的企业网站。为客户提供网站建设、网站设计、网站策划、网页设计、域名与空间、网页空间、网络营销、VI设计、 网站改版、漏洞修补等服务。为客户提供更好的一站式互联网解决方案,以客户的口碑塑造优易品牌,携手广大客户,共同发展进步。

1. 报错信息

做测试的时候,发现创建云主机失败,点开概况看到 创建云主机失败报错Exceeded maximum number of retries怎么办

2.检查日志

报错信息上要求检查neutron的日志,查看server.log,看到以下信息:

2017-06-08 17:22:52.103 1434130 ERROR neutron.plugins.ml2.managers [req-1ace1476-a027-4409-90b1-e46c9898d1a4 7a969cf8b5f04efdbe1af5e8ac690698 73948300ef77444cbdcf96fa60e0158f - - -] Failed to bind port f8d9b6f2-b8ba-4351-ba51-28321be3dd85 on host dlw2 for vnic_type normal using segments [{'segmentation_id': 78, 'physical_network': None, 'id': u'e6bc5f71-03c3-4453-bee8-0933096bf682', 'network_type': u'vxlan'}]
2017-06-08 17:22:52.103 1434130 INFO neutron.plugins.ml2.plugin [req-1ace1476-a027-4409-90b1-e46c9898d1a4 7a969cf8b5f04efdbe1af5e8ac690698 73948300ef77444cbdcf96fa60e0158f - - -] Attempt 10 to bind port f8d9b6f2-b8ba-4351-ba51-28321be3dd85
2017-06-08 17:22:52.116 1434130 WARNING neutron.plugins.ml2.drivers.mech_agent [req-1ace1476-a027-4409-90b1-e46c9898d1a4 7a969cf8b5f04efdbe1af5e8ac690698 73948300ef77444cbdcf96fa60e0158f - - -] Refusing to bind port f8d9b6f2-b8ba-4351-ba51-28321be3dd85 to dead agent: {'binary': u'neutron-linuxbridge-agent', 'description': None, 'admin_state_up': True, 'heartbeat_timestamp': datetime.datetime(2017, 6, 8, 8, 48, 20), 'availability_zone': None, 'alive': False, 'topic': u'N/A', 'host': u'dlw2', 'agent_type': u'Linux bridge agent', 'resource_versions': {u'SubPort': u'1.0', u'QosPolicy': u'1.3', u'Trunk': u'1.0'}, 'created_at': datetime.datetime(2017, 6, 2, 9, 1, 38), 'started_at': datetime.datetime(2017, 6, 2, 9, 8, 15), 'id': u'a4c3d014-531f-4f08-aea8-3f2a36e08d43', 'configurations': {u'tunneling_ip': u'172.16.40.2', u'devices': 5, u'interface_mappings': {u'provider': u'eno2'}, u'extensions': [], u'l2_population': True, u'tunnel_types
': [u'vxlan'], u'bridge_mappings': {}}}
2017-06-08 17:22:52.116 1434130 ERROR neutron.plugins.ml2.managers [req-1ace1476-a027-4409-90b1-e46c9898d1a4 7a969cf8b5f04efdbe1af5e8ac690698 73948300ef77444cbdcf96fa60e0158f - - -] Failed to bind port f8d9b6f2-b8ba-4351-ba51-28321be3dd85 on host dlw2 for vnic_type normal using segments [{'segmentation_id': 78, 'physical_network': None, 'id': u'e6bc5f71-03c3-4453-bee8-0933096bf682', 'network_type': u'vxlan'}]

3.日志分析

看到{u'tunneling_ip': u'172.16.40.2', u'devices',发现有tunneling_ip,想到了Linux bridge agent服务,于是检查neutron服务

# neutron agent-list |grep Linux
| a4c3d014-531f-4f08-aea8-3f2a36e08d43 | Linux bridge agent | dlw2 |                   | xxx   | True           | neutron-linuxbridge-agent |
| df626dfb-a874-44d6-9ce2-a5e7d8157500 | Linux bridge agent | dlw1 |                   | xxx   | True           | neutron-linuxbridge-agent |
| e04db880-1e77-4bf6-9321-dea7791d1eaf | Linux bridge agent | dlw3 |                   | xxx   | True           | neutron-linuxbridge-agent |

发现三个linuxbridgeagent都是xxx表示down了

[root@dlw1 openrc]# for i in `neutron agent-list |grep Li |awk -F '|' '{print $2}'` ;do neutron agent-show $i ;done
+---------------------+--------------------------------------+
| Field               | Value                                |
+---------------------+--------------------------------------+
| admin_state_up      | True                                 |
| agent_type          | Linux bridge agent                   |
| alive               | False                                |
| availability_zone   |                                      |
| binary              | neutron-linuxbridge-agent            |
| configurations      | {                                    |
|                     |      "tunneling_ip": "172.16.40.2",  |
|                     |      "devices": 5,                   |
|                     |      "interface_mappings": {         |
|                     |           "provider": "eno2"         |
|                     |      },                              |
|                     |      "extensions": [],               |
|                     |      "l2_population": true,          |
|                     |      "tunnel_types": [               |
|                     |           "vxlan"                    |
|                     |      ],                              |
|                     |      "bridge_mappings": {}           |
|                     | }                                    |
| created_at          | 2017-06-02 09:01:38                  |
| description         |                                      |
| heartbeat_timestamp | 2017-06-08 08:48:20                  |
| host                | dlw2                                 |
| id                  | a4c3d014-531f-4f08-aea8-3f2a36e08d43 |
| started_at          | 2017-06-02 09:08:15                  |
| topic               | N/A                                  |
+---------------------+--------------------------------------+
+---------------------+--------------------------------------+
| Field               | Value                                |
+---------------------+--------------------------------------+
| admin_state_up      | True                                 |
| agent_type          | Linux bridge agent                   |
| alive               | False                                |
| availability_zone   |                                      |
| binary              | neutron-linuxbridge-agent            |
| configurations      | {                                    |
|                     |      "tunneling_ip": "172.16.40.1",  |
|                     |      "devices": 5,                   |
|                     |      "interface_mappings": {         |
|                     |           "provider": "eno2"         |
|                     |      },                              |
|                     |      "extensions": [],               |
|                     |      "l2_population": true,          |
|                     |      "tunnel_types": [               |
|                     |           "vxlan"                    |
|                     |      ],                              |
|                     |      "bridge_mappings": {}           |
|                     | }                                    |
| created_at          | 2017-06-02 09:01:39                  |
| description         |                                      |
| heartbeat_timestamp | 2017-06-08 08:46:50                  |
| host                | dlw1                                 |
| id                  | df626dfb-a874-44d6-9ce2-a5e7d8157500 |
| started_at          | 2017-06-02 09:08:18                  |
| topic               | N/A                                  |
+---------------------+--------------------------------------+
+---------------------+--------------------------------------+
| Field               | Value                                |
+---------------------+--------------------------------------+
| admin_state_up      | True                                 |
| agent_type          | Linux bridge agent                   |
| alive               | False                                |
| availability_zone   |                                      |
| binary              | neutron-linuxbridge-agent            |
| configurations      | {                                    |
|                     |      "tunneling_ip": "172.16.40.3",  |
|                     |      "devices": 3,                   |
|                     |      "interface_mappings": {         |
|                     |           "provider": "eno2"         |
|                     |      },                              |
|                     |      "extensions": [],               |
|                     |      "l2_population": true,          |
|                     |      "tunnel_types": [               |
|                     |           "vxlan"                    |
|                     |      ],                              |
|                     |      "bridge_mappings": {}           |
|                     | }                                    |
| created_at          | 2017-06-02 09:02:37                  |
| description         |                                      |
| heartbeat_timestamp | 2017-06-08 08:48:17                  |
| host                | dlw3                                 |
| id                  | e04db880-1e77-4bf6-9321-dea7791d1eaf |
| started_at          | 2017-06-02 09:08:11                  |
| topic               | N/A                                  |
+---------------------+--------------------------------------+

4.启动服务

可能之前重启neutron相关服务的时候导致linuxbridgeagent服务down了,所以出现以上报错 重启下服务应该就没问题了

# systemctl restart neutron-linuxbridge-agent.service

再重新创建云主机,发现创建成功。

关于“创建云主机失败报错Exceeded maximum number of retries怎么办”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。


新闻标题:创建云主机失败报错Exceededmaximumnumberofretries怎么办
分享URL:http://cqcxhl.com/article/jspsdc.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP