OpenStack中down掉的異常dhcp port 處理
阿新 • • 發佈:2018-07-20
端口 style device family Opens oot status fixed -- 在OpenStack中,隨著網絡環境費復雜增長,有時候會遇到dhcp agent port bonding failed,導致agent無法正常提供服務,我們可以簡單的用下面的方法來處理
1、查找down掉的port
root@node-32:~# neutron port-list -c id -c tenant_id --status DOWN --device_owner network:dhcp -c device_owner -c device_id -c fixed_ips +--------------------------------------+----------------------------------+--------------+-------------------------------------------------------------------------------+------------------------------------------------------------------------------------+ | id | tenant_id | device_owner | device_id | fixed_ips | +--------------------------------------+----------------------------------+--------------+-------------------------------------------------------------------------------+------------------------------------------------------------------------------------+ | fa172acf-8900-487a-9aaf-ff4c12061b2e | d0a33ff6b4da4714a3cea18ddb6dc859 | network:dhcp | dhcp0f308520-710f-57c8-af30-18395065ae2a-68861e75-22c8-4575-bcc3-29b19a8cb189 | {"subnet_id": "ebb540a8-8284-4ec8-89a2-bf180d706a0d", "ip_address": "10.xxx.64.1"} | +--------------------------------------+----------------------------------+--------------+-------------------------------------------------------------------------------+------------------------------------------------------------------------------------+
2、delet 掉端口,agent服務會重新綁定一個新的端口
root@node-32:~# neutron port-delete fa172acf-8900-487a-9aaf-ff4c12061b2e
OpenStack中down掉的異常dhcp port 處理