Re: ovsdb-dev Digest, Vol 26, Issue 22


Yang, Yi Y <yi.y.yang@...>
 

Here is my l3 agent config, do you know how to configure it to use ODL to handle?

 

[root@localhost ~]# cat /etc/neutron/l3_agent.ini

[DEFAULT]

# Show debugging output in log (sets DEBUG log level output)

# debug = False

debug = False

 

# L3 requires that an interface driver be set. Choose the one that best

# matches your plugin.

# interface_driver =

interface_driver =neutron.agent.linux.interface.OVSInterfaceDriver

 

# Example of interface_driver option for OVS based plugins (OVS, Ryu, NEC)

# that supports L3 agent

# interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver

 

# Use veth for an OVS interface or not.

# Support kernels with limited namespace support

# (e.g. RHEL 6.5) so long as ovs_use_veth is set to True.

# ovs_use_veth = False

 

# Example of interface_driver option for LinuxBridge

# interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver

 

# Allow overlapping IP (Must have kernel build with CONFIG_NET_NS=y and

# iproute2 package that supports namespaces).

# use_namespaces = True

use_namespaces = True

 

# If use_namespaces is set as False then the agent can only configure one router.

 

# This is done by setting the specific router_id.

# router_id =

 

# When external_network_bridge is set, each L3 agent can be associated

# with no more than one external network. This value should be set to the UUID

# of that external network. To allow L3 agent support multiple external

# networks, both the external_network_bridge and gateway_external_network_id

# must be left empty.

# gateway_external_network_id =

 

# Indicates that this L3 agent should also handle routers that do not have

# an external network gateway configured.  This option should be True only

# for a single agent in a Neutron deployment, and may be False for all agents

# if all routers must have an external network gateway

# handle_internal_only_routers = True

handle_internal_only_routers = True

 

# Name of bridge used for external network traffic. This should be set to

# empty value for the linux bridge. when this parameter is set, each L3 agent

# can be associated with no more than one external network.

# external_network_bridge = br-ex

external_network_bridge = br-ex

 

# TCP Port used by Neutron metadata server

# metadata_port = 9697

metadata_port = 9697

 

# Send this many gratuitous ARPs for HA setup. Set it below or equal to 0

# to disable this feature.

# send_arp_for_ha = 0

send_arp_for_ha = 3

 

# seconds between re-sync routers' data if needed

# periodic_interval = 40

periodic_interval = 40

 

# seconds to start to sync routers' data after

# starting agent

# periodic_fuzzy_delay = 5

periodic_fuzzy_delay = 5

 

# enable_metadata_proxy, which is true by default, can be set to False

# if the Nova metadata server is not available

# enable_metadata_proxy = True

enable_metadata_proxy = True

 

# Location of Metadata Proxy UNIX domain socket

# metadata_proxy_socket = $state_path/metadata_proxy

 

# router_delete_namespaces, which is false by default, can be set to True if

# namespaces can be deleted cleanly on the host running the L3 agent.

# Do not enable this until you understand the problem with the Linux iproute

# utility mentioned in https://bugs.launchpad.net/neutron/+bug/1052535 and

# you are sure that your version of iproute does not suffer from the problem.

# If True, namespaces will be deleted when a router is destroyed.

# router_delete_namespaces = False

router_delete_namespaces = False

 

# Timeout for ovs-vsctl commands.

# If the timeout expires, ovs commands will fail with ALARMCLOCK error.

# ovs_vsctl_timeout = 10

[root@localhost ~]#

 

From: ovsdb-dev-bounces@... [mailto:ovsdb-dev-bounces@...] On Behalf Of Hemanth N
Sent: Monday, August 17, 2015 5:19 PM
To: ovsdb-dev@...
Subject: Re: [ovsdb-dev] ovsdb-dev Digest, Vol 26, Issue 22

 

Hi Yi

The flows in br-int are configured by ODL. OpenStack normally uses tags instead of flows to route the packets.

However  please check the service plugin set for L3 services in Neutron config file or process l3-agt on network node.

L3 can be configured either to be handled by OpenStack or ODL.

 

// Hemanth

 

On Mon, Aug 17, 2015 at 2:22 PM, <ovsdb-dev-request@...> wrote:

Send ovsdb-dev mailing list submissions to
        ovsdb-dev@...

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.opendaylight.org/mailman/listinfo/ovsdb-dev
or, via email, send a message with subject or body 'help' to
        ovsdb-dev-request@...

You can reach the person managing the list at
        ovsdb-dev-owner@...

When replying, please edit your Subject line so it is more specific
than "Re: Contents of ovsdb-dev digest..."


Today's Topics:

   1. Anybody knows how to check if neutron is working  normally
      with ODL? (Yang, Yi Y)


----------------------------------------------------------------------

Message: 1
Date: Mon, 17 Aug 2015 08:50:37 +0000
From: "Yang, Yi Y" <yi.y.yang@...>
To: "ovsdb-dev@..."
        <ovsdb-dev@...>
Subject: [ovsdb-dev] Anybody knows how to check if neutron is working
        normally with ODL?
Message-ID:
        <79BBBFE6CB6C9B488C1A45ACD284F51910F5D544@...>

Content-Type: text/plain; charset="us-ascii"

Hi, All

I followed https://wiki.opendaylight.org/view/OpenStack_and_OpenDaylight to integrate Openstack and SFC. I saw br-int was created by ODL.

[root@localhost ~(keystone_admin)]# ovs-vsctl show
795a890a-9a70-4340-98c6-d3f6db82264c
    Manager "tcp:10.240.224.185:6640"
        is_connected: true
    Bridge br-int
        Controller "tcp:10.240.224.185:6653"
            is_connected: true
        fail_mode: secure
        Port br-int
            Interface br-int
                type: internal
    ovs_version: "2.3.1-git4750c96"
[root@localhost ~(keystone_admin)]#

I'm not sure if Openstack neutron really connected to ODL.

[root@localhost ~(keystone_admin)]# curl -u admin:admin http://10.240.224.185:8181/controller/nb/v2/neutron/networks
{
   "networks" : [ ]
}[root@localhost ~(keystone_admin)]#

When I ran neutron commands to create net, subnet, router, etc, neutron didn't report any error, but it seems openflow tables aren't changed after I created net, subnet, router and start a VM. Anybody knows how to check if neutron is working normally with ODL?

[root@localhost ~(keystone_admin)]# neutron router-create router1
Created a new router:
+-----------------------+--------------------------------------+
| Field                 | Value                                |
+-----------------------+--------------------------------------+
| admin_state_up        | True                                 |
| external_gateway_info |                                      |
| id                    | ba8603f7-68ea-48ed-88a2-fdf49cd5d8a8 |
| name                  | router1                              |
| status                | ACTIVE                               |
| tenant_id             | fa82c46cf8ed48d39ca516699a81032d     |
+-----------------------+--------------------------------------+
[root@localhost ~(keystone_admin)]# neutron subnet-create private --name=private_subnet 192.168.1.0/24
Created a new subnet:
+------------------+--------------------------------------------------+
| Field            | Value                                            |
+------------------+--------------------------------------------------+
| allocation_pools | {"start": "192.168.1.2", "end": "192.168.1.254"} |
| cidr             | 192.168.1.0/24                                   |
| dns_nameservers  |                                                  |
| enable_dhcp      | True                                             |
| gateway_ip       | 192.168.1.1                                      |
| host_routes      |                                                  |
| id               | 53d03079-e689-4292-a10f-317b8cb012f0             |
| ip_version       | 4                                                |
| name             | private_subnet                                   |
| network_id       | 5b1a7624-b8b5-4ce3-b264-1445df528ec6             |
| tenant_id        | fa82c46cf8ed48d39ca516699a81032d                 |
+------------------+--------------------------------------------------+
[root@localhost ~(keystone_admin)]# neutron router-interface-add router1 private_subnet
Added interface 4f123e5f-0285-4b55-b316-59709b19921c to router router1.
[root@localhost ~(keystone_admin)]# glance image-create --name='cirros image' --container-format=bare --disk-format=qcow2 < cirros-0.3.1-x86_64-disk.img
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | d972013792949d0d3ba628fbe8685bce     |
| container_format | bare                                 |
| created_at       | 2015-08-17T08:46:09                  |
| deleted          | False                                |
| deleted_at       | None                                 |
| disk_format      | qcow2                                |
| id               | 11553256-c2f9-4f80-93b7-1615046dc8c3 |
| is_public        | False                                |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | cirros image                         |
| owner            | fa82c46cf8ed48d39ca516699a81032d     |
| protected        | False                                |
| size             | 13147648                             |
| status           | active                               |
| updated_at       | 2015-08-17T08:46:09                  |
| virtual_size     | None                                 |
+------------------+--------------------------------------+
[root@localhost ~(keystone_admin)]# nova flavor-list
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name      | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| 1  | m1.tiny   | 512       | 1    | 0         |      | 1     | 1.0         | True      |
| 2  | m1.small  | 2048      | 20   | 0         |      | 1     | 1.0         | True      |
| 3  | m1.medium | 4096      | 40   | 0         |      | 2     | 1.0         | True      |
| 4  | m1.large  | 8192      | 80   | 0         |      | 4     | 1.0         | True      |
| 5  | m1.xlarge | 16384     | 160  | 0         |      | 8     | 1.0         | True      |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
[root@localhost ~(keystone_admin)]# glance image-list
+--------------------------------------+--------------+-------------+------------------+----------+--------+
| ID                                   | Name         | Disk Format | Container Format | Size     | Status |
+--------------------------------------+--------------+-------------+------------------+----------+--------+
| 11553256-c2f9-4f80-93b7-1615046dc8c3 | cirros image | qcow2       | bare             | 13147648 | active |
+--------------------------------------+--------------+-------------+------------------+----------+--------+
[root@localhost ~(keystone_admin)]# neutron net-list
+--------------------------------------+---------+-----------------------------------------------------+
| id                                   | name    | subnets                                             |
+--------------------------------------+---------+-----------------------------------------------------+
| 5b1a7624-b8b5-4ce3-b264-1445df528ec6 | private | 53d03079-e689-4292-a10f-317b8cb012f0 192.168.1.0/24 |
+--------------------------------------+---------+-----------------------------------------------------+
[root@localhost ~(keystone_admin)]# nova boot --flavor m1.small --image 11553256-c2f9-4f80-93b7-1615046dc8c3 --nic net-id=5b1a7624-b8b5-4ce3-b264-1445df528ec6 test1
+--------------------------------------+-----------------------------------------------------+
| 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-00000001                                   |
| 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                            | 9ZxWJ94RKjyH                                        |
| config_drive                         |                                                     |
| created                              | 2015-08-17T08:51:18Z                                |
| flavor                               | m1.small (2)                                        |
| hostId                               |                                                     |
| id                                   | fa6be9cf-875e-4a58-86d8-58f5f6a2d6bd                |
| image                                | cirros image (11553256-c2f9-4f80-93b7-1615046dc8c3) |
| key_name                             | -                                                   |
| metadata                             | {}                                                  |
| name                                 | test1                                               |
| os-extended-volumes:volumes_attached | []                                                  |
| progress                             | 0                                                   |
| security_groups                      | default                                             |
| status                               | BUILD                                               |
| tenant_id                            | fa82c46cf8ed48d39ca516699a81032d                    |
| updated                              | 2015-08-17T08:51:19Z                                |
| user_id                              | 1058503dc1434ab783fc79bdb9626626                    |
+--------------------------------------+-----------------------------------------------------+
[root@localhost ~(keystone_admin)]# ovs-vsctl show
795a890a-9a70-4340-98c6-d3f6db82264c
    Manager "tcp:10.240.224.185:6640"
        is_connected: true
    Bridge br-int
        Controller "tcp:10.240.224.185:6653"
            is_connected: true
        fail_mode: secure
        Port br-int
            Interface br-int
                type: internal
        Port "tap6e750af4-e9"
            Interface "tap6e750af4-e9"
        Port "tap5efa303c-10"
            Interface "tap5efa303c-10"
                type: internal
    ovs_version: "2.3.1-git4750c96"
[root@localhost ~(keystone_admin)]# ovs-ofctl --protocol=OpenFlow13 dump-flows br-int
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x0, duration=11013.425s, table=0, n_packets=17, n_bytes=2082, priority=0 actions=goto_table:20
cookie=0x0, duration=11014.721s, table=0, n_packets=0, n_bytes=0, dl_type=0x88cc actions=CONTROLLER:65535
cookie=0x0, duration=11013.404s, table=20, n_packets=17, n_bytes=2082, priority=0 actions=goto_table:30
cookie=0x0, duration=11013.328s, table=30, n_packets=17, n_bytes=2082, priority=0 actions=goto_table:40
cookie=0x0, duration=11013.298s, table=40, n_packets=17, n_bytes=2082, priority=0 actions=goto_table:50
cookie=0x0, duration=11013.246s, table=50, n_packets=17, n_bytes=2082, priority=0 actions=goto_table:60
cookie=0x0, duration=11013.216s, table=60, n_packets=17, n_bytes=2082, priority=0 actions=goto_table:70
cookie=0x0, duration=11013.154s, table=70, n_packets=17, n_bytes=2082, priority=0 actions=goto_table:80
cookie=0x0, duration=11013.135s, table=80, n_packets=17, n_bytes=2082, priority=0 actions=goto_table:90
cookie=0x0, duration=11013.114s, table=90, n_packets=17, n_bytes=2082, priority=0 actions=goto_table:100
cookie=0x0, duration=11013.035s, table=100, n_packets=17, n_bytes=2082, priority=0 actions=goto_table:110
cookie=0x0, duration=11013.014s, table=110, n_packets=17, n_bytes=2082, priority=0 actions=drop
[root@localhost ~(keystone_admin)]#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opendaylight.org/pipermail/ovsdb-dev/attachments/20150817/16e1bc8c/attachment.html>

------------------------------

_______________________________________________
ovsdb-dev mailing list
ovsdb-dev@...
https://lists.opendaylight.org/mailman/listinfo/ovsdb-dev


End of ovsdb-dev Digest, Vol 26, Issue 22
*****************************************

 

Join z.archive.ovsdb-dev@lists.opendaylight.org to automatically receive all group messages.