Re: Anybody knows how to check if neutron is working normally with ODL?


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

Sam, thank you so much, I’ll use your ova image to set up test.

 

From: Sam Hague [mailto:shague@...]
Sent: Monday, August 17, 2015 9:33 PM
To: Yang, Yi Y
Cc: ovsdb-dev@...
Subject: Re: [ovsdb-dev] Anybody knows how to check if neutron is working normally with ODL?

 

Yi,

it is only partially working in your setup. Your ovsdb nodes are connected to ODL and the pipeline flows are created which is good. You can see that in the final dump-flows in your output. But there should be more flows for the neutron networks you created. So something is failing at that point. Normally this is  config issue and the neutron commands are not even making it to ODL. Looking at the neutron logs helps ehre.

You can look at different logs to find the issue:

- odl logs, look for exceptions

- neutron logs, grep -ir 'error\|fail\|usage\|not found' <path to neutron logs, devstack logs>

That wiki you followed is older. You might have better luck using our tutorial vms from the summit: [ova] [slides]. The ova has all the vms needed to bring up devstack to show integration between openstack and odl. The slides show how everything is connected, how to run the neutron commands and how to verify everything is working.

 

Thanks, Sam

[ova] https://wiki.opendaylight.org/images/HostedFiles/2015Summit/ovsdbtutorial15_2.ova

[slides] https://drive.google.com/open?id=1KIuNDuUJGGEV37Zk9yzx9OSnWExt4iD2Z7afycFLf_I

 

On Mon, Aug 17, 2015 at 4:50 AM, Yang, Yi Y <yi.y.yang@...> wrote:

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)]#


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

 

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