Why TAP-interface (qr-) not created by OVS-agent? [closed]

asked 2016-05-16 09:16:08 -0500

SoHm gravatar image

updated 2016-06-13 09:23:27 -0500

Hello! My system: Ubuntu 14.04 LTS x64. Openstack Mitaka.

My problem: I create instance from Horizon. It have ip 10.0.0.30 But from Host it is unreachable:

root@openstack-2:/opt/stack# ping 10.0.0.30
PING 10.0.0.30 (10.0.0.30) 56(84) bytes of data.
^C
--- 10.0.0.30 ping statistics ---
24 packets transmitted, 0 received, 100% packet loss, time 23105ms

I think that is because there is no TAP-interfaces on OVS-bridge:

root@openstack-2:/opt/stack# ovs-vsctl show
99ad01f7-28ac-4bdc-b0b3-eb12c6e2a080
    Bridge br-int
        fail_mode: secure
        Port br-int
            Interface br-int
                type: internal
    Bridge br-ex
        Port br-ex
            Interface br-ex
                type: internal
        Port "eth1"
            Interface "eth1"
    ovs_version: "2.5.0"

Output of command "ip netns list" is empty.

Running processes:

root@openstack-2:/opt/stack# pstree
init─┬─acpid
     ├─apache2─┬─2*[apache2───26*[{apache2}]]
     │         ├─10*[apache2───3*[{apache2}]]
     │         └─3*[apache2───12*[{apache2}]]
     ├─atd
     ├─cgmanager
     ├─cron
     ├─dbus-daemon
     ├─dnsmasq───dnsmasq
     ├─epmd
     ├─6*[getty]
     ├─glance-api───8*[glance-api]
     ├─glance-registry───8*[glance-registry]
     ├─irqbalance
     ├─2*[iscsid]
     ├─libvirtd───16*[{libvirtd}]
     ├─logger
     ├─memcached───5*[{memcached}]
     ├─mongod───10*[{mongod}]
     ├─monitor───ovsdb-server
     ├─monitor───ovs-vswitchd───9*[{ovs-vswitchd}]
     ├─mysqld_safe───mysqld───80*[{mysqld}]
     ├─neutron-dhcp-ag
     ├─neutron-l3-agen
     ├─neutron-linuxbr
     ├─neutron-metadat───4*[neutron-metadat]
     ├─neutron-openvsw───sudo───neutron-rootwra───ovsdb-client
     ├─neutron-server───10*[neutron-server]
     ├─nova-api───16*[nova-api]
     ├─nova-compute───21*[{nova-compute}]
     ├─nova-conductor───8*[nova-conductor]
     ├─nova-consoleaut
     ├─nova-novncproxy
     ├─nova-scheduler
     ├─ntpd
     ├─qemu-system-x86───3*[{qemu-system-x86}]
     ├─rabbitmq-server───rabbitmq-server───beam.smp─┬─inet_gethost───inet_gethost
     │                                              └─76*[{beam.smp}]
     ├─rsyslogd───3*[{rsyslogd}]
     ├─sshd───sshd───sshd───bash───sudo───bash───pstree
     ├─systemd-logind
     ├─systemd-udevd
     ├─upstart-file-br
     ├─upstart-socket-
     ├─upstart-udev-br
     ├─virtlockd───{virtlockd}
     └─virtlogd───{virtlogd}

root@openstack-2:/opt/stack# openstack service list
+----------------------------------+----------+----------+
| ID                               | Name     | Type     |
+----------------------------------+----------+----------+
| 0656ba73a84d478a82e71cda52db6332 | neutron  | network  |
| 2b3b893769ec48918056bb03efe3c35c | keystone | identity |
| 92c9541506034ee094372de6207886d6 | glance   | image    |
| fb7344c7e88347de86ea923f71dec059 | nova     | compute  |
+----------------------------------+----------+----------+

root@openstack-2:/opt/stack# neutron agent-list
+--------------------------------------+--------------------+-------------+-------------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host        | availability_zone | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+-------------+-------------------+-------+----------------+---------------------------+
| 3b8b06ec-6b99-45f0-9c71-f5c4c58129e7 | Open vSwitch agent | openstack-2 |                   | :-)   | True           | neutron-openvswitch-agent |
| ae0eae88-0326-41c8-876c-8387cdbf9941 | Linux bridge agent | openstack-2 |                   | :-)   | True           | neutron-linuxbridge-agent |
| d2768135-6aa0-4334-9cdf-176cb62e5a5f | Metadata agent     | openstack-2 |                   | :-)   | True           | neutron-metadata-agent    |
| eb7db378-fd15-4d40-ba6b-a44fd0fdb0ea | DHCP agent         | openstack-2 | nova              | :-)   | True           | neutron-dhcp-agent        |
| efe5cd21-c65e-4c03-8f8c-b251f18e2dbb | L3 agent           | openstack-2 | nova              | :-)   | True           | neutron-l3-agent          |
+--------------------------------------+--------------------+-------------+-------------------+-------+----------------+---------------------------+

root@openstack-2:/opt/stack# neutron net-show private-network-test
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| availability_zone_hints   |                                      |
| availability_zones        | nova                                 |
| created_at                | 2016-05-13T08:19:11                  |
| description               |                                      |
| id                        | 13f65443-b111-4c82-afba-f86ac5430a9f |
| ipv4_address_scope        |                                      |
| ipv6_address_scope        |                                      |
| mtu                       | 1450                                 |
| name                      | private-network-test                 |
| port_security_enabled     | True                                 |
| provider:network_type     | vxlan                                |
| provider:physical_network |                                      |
| provider:segmentation_id  | 75                                   |
| router:external           | False                                |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   | 478bc657-88b0-4e69-be65-bb3de3ebd7bf |
| tags                      |                                      |
| tenant_id                 | d80ebc72ac9e49eba0e9a0fc62d48474     |
| updated_at                | 2016-05-13T08:19:11                  |
+---------------------------+--------------------------------------+

========================================================

cat /etc/neutron/l3_agent.ini

[DEFAULT]
l3_agent_manager = neutron.agent.l3_agent.L3NATAgentWithStateReport
ovs_use_veth = false
interface_driver = openvswitch
router_delete_namespaces = False
verbose = true
[AGENT]
root_helper_daemon = sudo /usr/local/bin/neutron-rootwrap-daemon /etc/neutron/rootwrap.conf
root_helper = sudo /usr/local/bin/neutron-rootwrap /etc/neutron/rootwrap.conf

========================================================

cat /etc/neutron/neutron.conf

[DEFAULT]
auth_strategy = keystone
core_plugin = ml2
service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin,neutron.services.metering.metering_plugin.MeteringPlugin
allow_overlapping_ips = True
notify_nova_on_port_status_changes = true
notify_nova_on_port_data_changes = true
verbose = true
rpc_backend = rabbit
[agent]
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
[cors]
[cors.subdomain]
[database]
connection = mysql+pymysql://neutron:ghjcnjgfhjkm@controller/neutron
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = ghjcnjgfhjkm
[matchmaker_redis]
[nova]
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = nova
password = ghjcnjgfhjkm
[oslo_concurrency]
[oslo_messaging_amqp]
[oslo_messaging_notifications ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by SoHm
close date 2016-06-13 09:23:50.733107

Comments

it's the l3-agent that should create it. It seems to have a problem with rootwrap.

darragh-oreilly gravatar imagedarragh-oreilly ( 2016-05-16 12:43:08 -0500 )edit