Ask Your Question
0

can't get traffic into my VM

asked 2014-09-22 15:38:29 -0600

Hussein gravatar image

updated 2014-09-22 15:39:45 -0600

Hi there, hoping someone can help me. I have a server with three physical ports connected, eth0 (management), eth1 (mirror port 1), and eth3 (mirror port 2). The two mirror ports are from a network segment with a copy of network traffic arriving on eth1 and eth3. In order to get the traffic from eth1 and eth3 into my VM I did

neutron net-create eth1 --shared --provider:network_type flat --provider:physical_network eth1 --router:external=True
neutron net-create eth3 --shared --provider:network_type flat --provider:physical_network eth3 --router:external=True

I also did

neutron port-create eth1
neutron port-create eth3

which gave me

neutron net-list
+--------------------------------------+---------+------------------------------------------------------+
| id                                   | name    | subnets                                              |
+--------------------------------------+---------+------------------------------------------------------+
| 3843a4e6-55b6-43d9-af81-3c9353c794c3 | eth3    | d63e1aab-57ee-427b-8a51-061afec61743 1.0.0.0/24      |
| 51fc913b-8982-4e0c-b022-18283bf01585 | ext-net | 5dfa925f-4cb1-433e-8c86-fc6e25a11ddc 172.16.100.0/24 |
| a1915aca-2d11-4a85-88ca-1f77d7a59c1b | eth1    | 58770fd5-2ffa-49cb-8365-cfd24a677bc0 1.1.0.0/24      |
| d8612611-d040-428c-be0f-c39ee6ae36ea | svc     |                                                      |
| e70595b6-b5fb-4f31-b063-37c7e00fff53 | ctrl    | 45f7fc04-6742-494e-8163-35716fd88791 172.16.0.0/24   |
+--------------------------------------+---------+------------------------------------------------------+

Upon doing

nova boot --flavor sv.pts --image pts --nic net-id=e70595b6-b5fb-4f31-b063-37c7e00fff53 --nic net-id=d8612611-d040-428c-be0f-c39ee6ae36ea --nic net-id=3843a4e6-55b6-43d9-af81-3c9353c794c3 --nic net-id=a1915aca-2d11-4a85-88ca-1f77d7a59c1b v

I got

+--------------------------------------+--------------------------------------------+
| Property                             | Value                                      |
+--------------------------------------+--------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                     |
| OS-EXT-AZ:availability_zone          | nova                                       |
| OS-EXT-SRV-ATTR:host                 | -                                          |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | -                                          |
| OS-EXT-SRV-ATTR:instance_name        | instance-00000007                          |
| OS-EXT-STS:power_state               | 0                                          |
| OS-EXT-STS:task_state                | scheduling                                 |
| OS-EXT-STS:vm_state                  | building                                   |
| OS-SRV-USG:launched_at               | -                                          |
| OS-SRV-USG:terminated_at             | -                                          |
| accessIPv4                           |                                            |
| accessIPv6                           |                                            |
| adminPass                            | QVPatHGvibu6                               |
| config_drive                         |                                            |
| created                              | 2014-09-22T20:16:45Z                       |
| flavor                               | sv.pts (1000)                              |
| hostId                               |                                            |
| id                                   | d9cf590b-253e-4792-8387-14413302a676       |
| image                                | pts (a417a192-3706-429d-98cc-308466f0552a) |
| key_name                             | -                                          |
| metadata                             | {}                                         |
| name                                 | v                                          |
| os-extended-volumes:volumes_attached | []                                         |
| progress                             | 0                                          |
| security_groups                      | default                                    |
| status                               | BUILD                                      |
| tenant_id                            | 8685c3e9b9a94a7c94bb77ced0cf1062           |
| updated                              | 2014-09-22T20:16:46Z                       |
| user_id                              | c45ff0f0a0d54a06b5c61ce56acec755           |
+--------------------------------------+--------------------------------------------+

When doing

nova list

I get

+--------------------------------------+------+--------+------------+-------------+----------+
| ID                                   | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------+--------+------------+-------------+----------+
| d9cf590b-253e-4792-8387-14413302a676 | v    | ERROR  | -          | NOSTATE     |          |
+--------------------------------------+------+--------+------------+-------------+----------+

The specific error that I can see is in /var/log/nova/nova-scheduler.log

2014-09-22 16:16:49.223 7926 ERROR nova.scheduler.filter_scheduler [req-4474adb6-e032-49ea-bd07-20e9bb30de31 c45ff0f0a0d54a06b5c61ce56acec755 8685c3e9b9a94a7c94bb77ced0cf1062] [instance: d9cf590b-253e-4792-8387-14413302a676] Error from last host: amazing.sandvine.rocks (node amazing.sandvine.rocks):[u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1329, in _build_instance\n    set_access_ip=set_access_ip)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 393, in decorated_function\n    return function(self, context, *args, **kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1741, in _spawn\n    LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n    six.reraise(self.type_, self.value, self.tb)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", ne 1738, in _spawn\n  block_device_info)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2284, in spawn\n    write_to_disk=True)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3478, in to_xml\n    disk_info, rescue, block_device_info)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3292, in get_guest_config\n    flavor)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/vif.py", line 384, in get_config\n    _("Unexpected vif_type=%s") % vif_type)\n', u'NovaException: Unexpected vif_type=binding_failed\n']

Has anyone been able ... (more)

edit retag flag offensive close merge delete

Comments

I suggest you check the nova-api-compute log to find out why your vm fails to start, it might have nothing to do with networking right now. because normally vm's will start even when your networking is botched, they just won't get an ip address and have no connectivity

Remko Duppen gravatar imageRemko Duppen ( 2014-09-22 15:56:47 -0600 )edit

Here is what shows up in the nova-compute log. Looks like it's barfing on the binding of the virtual interface after-all.

_("Unexpected vif_type=%s") % vif_type)
NovaException: Unexpected vif_type=binding_failed
Hussein gravatar imageHussein ( 2014-09-23 08:53:03 -0600 )edit

Also, when i remove the eth1 and eth3 references (below) in my nova boot command, it's successful.

--nic net-id=3843a4e6-55b6-43d9-af81-3c9353c794c3 --nic net-id=a1915aca-2d11-4a85-88ca-1f77d7a59c1b
Hussein gravatar imageHussein ( 2014-09-23 09:04:12 -0600 )edit

As it turns out, the VM spawns but then errors with the same exception as before.

NovaException: Unexpected vif_type=binding_failed

Any help that anyone can provide would be appreciated.

Hussein gravatar imageHussein ( 2014-09-23 13:21:59 -0600 )edit

I also see in /var/log/neutron/server.log a warning saying failed port binding

2014-09-23 09:47:14.739 21678 WARNING neutron.plugins.ml2.managers [req-38d9fee0-d704-4e65-a48d-b66c392da694 None] Failed to bind port 9d2f12cc-2836-4788-b295-5a07c4bc2766 on host ...
Hussein gravatar imageHussein ( 2014-09-23 13:23:44 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-09-23 09:38:15 -0600

Hussein gravatar image

https://www.redhat.com/archives/rdo-list/2014-May/msg00079.html (https://www.redhat.com/archives/rdo-l...)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-09-22 15:38:29 -0600

Seen: 94 times

Last updated: Sep 23 '14