文档章节

创建云主机失败报错Exceeded maximum number of retries

哓竹
 哓竹
发布于 2017/06/08 18:06
字数 639
阅读 88
收藏 0

1. 报错信息

做测试的时候,发现创建云主机失败,点开概况看到 输入图片说明

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

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

© 著作权归作者所有

共有 人打赏支持
哓竹
粉丝 4
博文 44
码字总数 51605
作品 0
朝阳
运维
OpenStack安装部署实战——问题集锦

安装OpenStack是一个及其考验耐心的事情。最近前后花了一个月的时间,尝试手动、自动两种方式部署OpenStack。我想说的是,尼玛我可以骂人么? 好吧,言归正传,以下一一列出你也可能遇到的问...

RJKD
2016/07/01
1K
0
windowsserver 2012 R2 创建群集失败

windows server 2012 部署群集报错日志如下: Cluster network name resource 'PHZWCS-MSDTC' failed to create its associated computer object in domain 'csot.TCL.com' during: Resource......

122269875
06/29
0
0
hue用Hive查询,超过10000个字报错了

AnalysisException: Exceeded the maximum number of child expressions (10000). Expression has 35522 children: t.openid IN ('o, 'ow... 代码成运行不报错,怎么解开hue的限制......

Baclk5
2016/12/16
218
0
Postgres与OS内核相关的几个参数设置

Postgres在postgresql.conf里面的配置参数有几个是和OS的内核参数紧密相关的,通常默认值是偏小的,但设置过大也会造成Postgres的启动失败,官方文档(Part 17.3)有较详细的说明,但没有例子,...

kenyon_君羊
2013/04/06
0
10
Linux内核TCP/IP参数分析与调优

如图展示的是TCP的三个阶段.1,TCP三次握手. 2,TCP数据传输. 3,TCP的四次挥手. SYN:(同步序列编号,Synchronize Sequence Numbers)该标志仅在三次握手建立的时候有效。表示一个新的TCP连接请求...

shanker
2016/01/13
0
0

没有更多内容

加载失败,请刷新页面

加载更多

SQL count(*) 和count(1)的区别

开发中经常会使用这两个聚合函数,作用都是用来统计记录行,今天查找资料发现,其实这两个函数并没有区别, 实践才是检验的标准,首先看执行计划(表是我自己建立的): 可以看到,两个执行计...

一曲图森破
10分钟前
1
0
ppwjs之bootstrap文字排版:字体设置

<!DOCTYPT html><html><head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><title>ppwjs欢迎您</title><link rel="icon" href="/favicon.ico" ......

ppwjs
13分钟前
1
0
区块链100讲:详解区块链之P2P网络

1 P2P网络 如果我们简单来看 P2P 技术,它的应用领域已经非常广泛了,从流媒体到点对点通讯、从文件共享到协同处理,多种领域都有它的身影出现。 同样的,P2P 的网络协议也有很多,比较常见的...

HiBlock
28分钟前
0
0
74.expect脚本同步文件以及指定host同步文件 构建分发系统文件和命令

20.31 expect脚本同步文件: 在expect脚本中去实现在一台机器上把文件同步到另外一台机器上去。核心命令用的是rsync ~1.自动同步文件 #!/usr/bin/expect set passwd "123456" spawn rsync -a...

王鑫linux
52分钟前
1
0
TypeScript项目引用(project references)

转发 TypeScript项目引用(project references) TypeScript新特性之项目引用(project references) 项目引用是TypeScript 3.0中的一项新功能,允许您将TypeScript程序构建为更小的部分。 通过这...

durban
57分钟前
1
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部