New Question

Revision history [back]

click to hide/show revision 1
initial version

VM unable to connect to virtual switch : vif_type: binding_failed

Hi again, I followed the tutorial of neutron-hyperv-Agent until the end and after the creation of the new VM, it was successfully created and the hyper-v manager shows me the VM which was created through by Openstack. However, When I'd like to check for the vNIC of the VM, I found it not connected. After that, I followed the troubleshooting and I reached until neutron port-show $PORT_ID then I got :

+-----------------------+--------------------------------------------------------------
| Field                 | Value                                              |
+-----------------------+---------------------------------------------------------------------------------+
| admin_state_up        | True                                |
| allowed_address_pairs |                                                                     |
| binding:host_id       | WIN-C6EIDJEP5J0                                                |
| binding:profile       | {}                                                                  |
| binding:vif_details   | {}                                                                  |
| binding:vif_type      | binding_failel                                                      |
| binding:vnic_type     | normal                                                              |
| device_id             | 94690504-ca00-4f72-86f7-9f8c8833e9af                           |
| device_owner          | compute:nova                                                        |
| extra_dhcp_opts       |                                                                     |
| fixed_ips             | {"subnet_id": "a4895d36-28b8-447b-b551-f84796ffe5a1", "ip_address": "10.0.1.2"} |
| id                    | 0cf3d49f-fa77-4249-ad2c-59a237e22b47                                |
| mac_address           | fa:16:3e:4f:a3:f0                                                   |
| name                  |                                                                     |
| network_id            | 37dd11a3-07ce-4411-b290-b85bde4b2bb9                                |
| security_groups       | 120a3bde-efd3-4fb1-8416-a07ec83b0438                                |
| status                | DOWN                                                                |
| tenant_id             | 0335a8743dcc44aeaa8fecaae079f969                                   |
+-----------------------+---------------------------------------------------------------------------------+

for the neutron agent-list , I got:

+--------------------------------------+--------------------+-----------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host            | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+-----------------+-------+----------------+---------------------------+
| 12623ad9-61a3-4707-abc9-04fbbc6c3ee9 | Metadata agent     | network         | :-)   | True           | neutron-metadata-agent    |
| 24666abb-0fa7-4b5a-92b1-aef5c128356a | HyperV agent       | WIN-C6EIDJEP5J0 | :-)   | True           | neutron-hyperv-agent      |
| 47599326-636e-46ae-98c1-96ac5ce5d63d | DHCP agent         | network         | :-)   | True           | neutron-dhcp-agent        |
| bb8a28a6-9ce3-432d-bef9-e9c6b799a35a | Open vSwitch agent | network         | :-)   | True           | neutron-openvswitch-agent |
| d3a805ad-16ee-4541-9629-4567d1ddedd2 | L3 agent           | network         | :-)   | True           | neutron-l3-agent          |
+--------------------------------------+--------------------+-----------------+-------+----------------+---------------------------+
  • this is the neutron-hyper-agent.log file from windows server which I run on it the Hyper-v but I pasted only the final lines which where I got the errors : http://paste.openstack.org/show/429541/ .
  • neutronhypervagent.conf from windows server : http://paste.openstack.org/show/429543/ .
  • nova.conf from windows server : http://paste.openstack.org/show/429544/ .

for the following line command neutron subnet-show a4895d36-28b8-447b-b551-f84796ffe5a1, I got:

+-------------------+--------------------------------------------+
| Field             | Value                                      |
+-------------------+--------------------------------------------+
| allocation_pools  | {"start": "10.0.1.2", "end": "10.0.1.254"} |
| cidr              | 10.0.1.0/24                                |
| dns_nameservers   |                                            |
| enable_dhcp       | True                                       |
| gateway_ip        | 10.0.1.1                                   |
| host_routes       |                                            |
| id                | a4895d36-28b8-447b-b551-f84796ffe5a1       |
| ip_version        | 4                                          |
| ipv6_address_mode |                                            |
| ipv6_ra_mode      |                                            |
| name              |                                            |
| network_id        | 37dd11a3-07ce-4411-b290-b85bde4b2bb9       |
| tenant_id         | 0335a8743dcc44aeaa8fecaae079f969           |
+-------------------+--------------------------------------------+

for the following line command Get-VMNetworkAdapter -VMNetworkAdapterName $PORT_ID -All I got:

PS C:\Users\Administrator> Get-VMNetworkAdapter -VMNetworkAdapterName $PORT_ID -All

Name                                 IsManagementOs VMName            SwitchName MacAddress   Status IPAddresses
----                                 -------------- ------            ---------- ----------   ------ -----------
external                             True                             external   F8B156C7662A {Ok}
0cf3d49f-fa77-4249-ad2c-59a237e22b47 False          instance-00000009            FA163E4FA3F0        {}
6f396fe0-b475-4a9c-b632-550cbc50a159 False          instance-00000009            FA163E65D06D        {}

thank you for helping me and if you would like another file I will be in your service.

VM unable to connect to virtual switch : vif_type: binding_failed

Hi again, I followed the tutorial of neutron-hyperv-Agent until the end and after the creation of the new VM, it was successfully created and the hyper-v manager shows me the VM which was created through by Openstack. However, When I'd like to check for the vNIC of the VM, I found it not connected. After that, I followed the troubleshooting and I reached until neutron port-show $PORT_ID then I got :

+-----------------------+--------------------------------------------------------------
| Field                 | Value                                              |
+-----------------------+---------------------------------------------------------------------------------+
| admin_state_up        | True                                |
| allowed_address_pairs |                                                                     |
| binding:host_id       | WIN-C6EIDJEP5J0                                                |
| binding:profile       | {}                                                                  |
| binding:vif_details   | {}                                                                  |
| binding:vif_type      | binding_failel                                                      |
| binding:vnic_type     | normal                                                              |
| device_id             | 94690504-ca00-4f72-86f7-9f8c8833e9af                           |
| device_owner          | compute:nova                                                        |
| extra_dhcp_opts       |                                                                     |
| fixed_ips             | {"subnet_id": "a4895d36-28b8-447b-b551-f84796ffe5a1", "ip_address": "10.0.1.2"} |
| id                    | 0cf3d49f-fa77-4249-ad2c-59a237e22b47                                |
| mac_address           | fa:16:3e:4f:a3:f0                                                   |
| name                  |                                                                     |
| network_id            | 37dd11a3-07ce-4411-b290-b85bde4b2bb9                                |
| security_groups       | 120a3bde-efd3-4fb1-8416-a07ec83b0438                                |
| status                | DOWN                                                                |
| tenant_id             | 0335a8743dcc44aeaa8fecaae079f969                                   |
+-----------------------+---------------------------------------------------------------------------------+

for the neutron agent-list , I got:

+--------------------------------------+--------------------+-----------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host            | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+-----------------+-------+----------------+---------------------------+
| 12623ad9-61a3-4707-abc9-04fbbc6c3ee9 | Metadata agent     | network         | :-)   | True           | neutron-metadata-agent    |
| 24666abb-0fa7-4b5a-92b1-aef5c128356a | HyperV agent       | WIN-C6EIDJEP5J0 | :-)   | True           | neutron-hyperv-agent      |
| 47599326-636e-46ae-98c1-96ac5ce5d63d | DHCP agent         | network         | :-)   | True           | neutron-dhcp-agent        |
| bb8a28a6-9ce3-432d-bef9-e9c6b799a35a | Open vSwitch agent | network         | :-)   | True           | neutron-openvswitch-agent |
| d3a805ad-16ee-4541-9629-4567d1ddedd2 | L3 agent           | network         | :-)   | True           | neutron-l3-agent          |
+--------------------------------------+--------------------+-----------------+-------+----------------+---------------------------+
  • this is the neutron-hyper-agent.log file from windows server which I run on it the Hyper-v but I pasted only the final lines which where I got the errors : http://paste.openstack.org/show/429541/ .
  • neutronhypervagent.conf from windows server : http://paste.openstack.org/show/429543/ .
  • nova.conf from windows server : http://paste.openstack.org/show/429544/ .

for the following command line command neutron subnet-show a4895d36-28b8-447b-b551-f84796ffe5a1, I got:

+-------------------+--------------------------------------------+
| Field             | Value                                      |
+-------------------+--------------------------------------------+
| allocation_pools  | {"start": "10.0.1.2", "end": "10.0.1.254"} |
| cidr              | 10.0.1.0/24                                |
| dns_nameservers   |                                            |
| enable_dhcp       | True                                       |
| gateway_ip        | 10.0.1.1                                   |
| host_routes       |                                            |
| id                | a4895d36-28b8-447b-b551-f84796ffe5a1       |
| ip_version        | 4                                          |
| ipv6_address_mode |                                            |
| ipv6_ra_mode      |                                            |
| name              |                                            |
| network_id        | 37dd11a3-07ce-4411-b290-b85bde4b2bb9       |
| tenant_id         | 0335a8743dcc44aeaa8fecaae079f969           |
+-------------------+--------------------------------------------+

for the following command line command Get-VMNetworkAdapter -VMNetworkAdapterName $PORT_ID -All I got:

PS C:\Users\Administrator> Get-VMNetworkAdapter -VMNetworkAdapterName $PORT_ID -All

Name                                 IsManagementOs VMName            SwitchName MacAddress   Status IPAddresses
----                                 -------------- ------            ---------- ----------   ------ -----------
external                             True                             external   F8B156C7662A {Ok}
0cf3d49f-fa77-4249-ad2c-59a237e22b47 False          instance-00000009            FA163E4FA3F0        {}
6f396fe0-b475-4a9c-b632-550cbc50a159 False          instance-00000009            FA163E65D06D        {}

thank you for helping me and if you would like another file I will be in your service.