溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

創(chuàng)建云主機(jī)失敗報(bào)錯(cuò)Exceeded maximum number of retries怎么辦

發(fā)布時(shí)間:2021-12-29 14:38:28 來源:億速云 閱讀:556 作者:小新 欄目:云計(jì)算

這篇文章將為大家詳細(xì)講解有關(guān)創(chuàng)建云主機(jī)失敗報(bào)錯(cuò)Exceeded maximum number of retries怎么辦,小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考,希望大家閱讀完這篇文章后可以有所收獲。

1. 報(bào)錯(cuò)信息

做測試的時(shí)候,發(fā)現(xiàn)創(chuàng)建云主機(jī)失敗,點(diǎn)開概況看到 創(chuàng)建云主機(jī)失敗報(bào)錯(cuò)Exceeded maximum number of retries怎么辦

2.檢查日志

報(bào)錯(cuò)信息上要求檢查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',發(fā)現(xiàn)有tunneling_ip,想到了Linux bridge agent服務(wù),于是檢查neutron服務(wù)

# 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 |

發(fā)現(xiàn)三個(gè)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.啟動(dòng)服務(wù)

可能之前重啟neutron相關(guān)服務(wù)的時(shí)候?qū)е耹inuxbridgeagent服務(wù)down了,所以出現(xiàn)以上報(bào)錯(cuò) 重啟下服務(wù)應(yīng)該就沒問題了

# systemctl restart neutron-linuxbridge-agent.service

再重新創(chuàng)建云主機(jī),發(fā)現(xiàn)創(chuàng)建成功。

關(guān)于“創(chuàng)建云主機(jī)失敗報(bào)錯(cuò)Exceeded maximum number of retries怎么辦”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,使各位可以學(xué)到更多知識(shí),如果覺得文章不錯(cuò),請(qǐng)把它分享出去讓更多的人看到。

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI