Adding a new port-tuple to an SI broke the service chain (errors in schema)

Bug #1546962 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
High
Ignatious Johnson Christopher
Trunk
Fix Committed
High
Ignatious Johnson Christopher

Bug Description

R3.0 2714 with fix for Bug 1539293

On this setup,
Vn1 : 10.1.1.0/24
vn2 : 20.1.1.0/24

Two vms(to serve as SIs) were launched manually using nova custom-vm-1 (IPs 10.1.1.4, 20.1.1.4) and custom-vm-2(10.1.1.5, 20.1.1.5)
An SI si1 was created (V2) out of (10.1.1.4, 20.1.1.4)

A policy was applied between vn1 and vn2 to pass the traffic through SI si1

Things were fine, 10.1.1.5 was able to ping 20.1.1.5 via the SI

Now, i edited the SI si1 by adding a port-tuple (10.1.1.5,20.1.1.5). This broke the SI. SI vrfs were not created in agent at all.

Logs will be in http://10.204.216.50/Docs/bugs/#

schema had the below errors :

02/18/2016 10:24:38 AM [contrail-schema]: service chain a3470f7a-850e-4a72-93a1-fafe73cb30ad: Left interface not found for default-domain:admin:si1:si1-port-tuple1-5ccbe28f-42ef-4c7d-a9a5-61ba46b69860
02/18/2016 10:24:39 AM [contrail-schema]: Duplicate uve delete <a3470f7a-850e-4a72-93a1-fafe73cb30ad>
02/18/2016 10:24:39 AM [contrail-schema]: service chain a3470f7a-850e-4a72-93a1-fafe73cb30ad: Left interface not found for default-domain:admin:si1:si1-port-tuple1-5ccbe28f-42ef-4c7d-a9a5-61ba46b69860
02/18/2016 10:24:39 AM [contrail-schema]: service chain a3470f7a-850e-4a72-93a1-fafe73cb30ad: No ip address found for interface default-domain:admin:6d974bfd-c507-434c-8377-b46c8d3db9e9
02/18/2016 10:24:39 AM [contrail-schema]: service chain a3470f7a-850e-4a72-93a1-fafe73cb30ad: No ip address found for interface default-domain:admin:6d974bfd-c507-434c-8377-b46c8d3db9e9

{
    "service-instance": {
        "display_name": "si1",
        "fq_name": [
            "default-domain",
            "admin",
            "si1"
        ],
        "href": "http://127.0.0.1:8095/service-instance/94b8683f-150e-4393-bbdf-3992423b9df9",
        "id_perms": {
            "created": "2016-02-15T09:35:13.215081",
            "creator": null,
            "description": null,
            "enable": true,
            "last_modified": "2016-02-18T04:54:39.220999",
            "permissions": {
                "group": "KeystoneServiceAdmin",
                "group_access": 7,
                "other_access": 7,
                "owner": "admin",
                "owner_access": 7
            },
            "user_visible": true,
            "uuid": {
                "uuid_lslong": 13537602305238212089,
                "uuid_mslong": 10716429933473579923
            }
        },
        "instance_ip_refs": [
            {
                "attr": {
                    "interface_type": "right"
                },
                "href": "http://127.0.0.1:8095/instance-ip/1ac59850-cdce-48a2-bc4f-6dcbbe704359",
                "to": [
                    "94b8683f-150e-4393-bbdf-3992423b9df9-right-v4"
                ],
                "uuid": "1ac59850-cdce-48a2-bc4f-6dcbbe704359"
            },
            {
                "attr": {
                    "interface_type": "left"
                },
                "href": "http://127.0.0.1:8095/instance-ip/8f233e41-fab4-4495-bd92-63740e64ca47",
                "to": [
                    "94b8683f-150e-4393-bbdf-3992423b9df9-left-v4"
                ],
                "uuid": "8f233e41-fab4-4495-bd92-63740e64ca47"
            }
        ],
        "name": "si1",
        "parent_href": "http://127.0.0.1:8095/project/c89b8c25-1b67-4457-8b8c-8e990403d3d6",
        "parent_type": "project",
        "parent_uuid": "c89b8c25-1b67-4457-8b8c-8e990403d3d6",
        "perms2": {
            "global_access": 0,
            "owner": "c89b8c251b6744578b8c8e990403d3d6",
            "owner_access": 7,
            "share": []
        },
        "port_tuples": [
            {
                "href": "http://127.0.0.1:8095/port-tuple/754de02f-a801-42f2-a58e-93b9834b0253",
                "to": [
                    "default-domain",
                    "admin",
                    "si1",
                    "si1-port-tuple0-2a65325c-244d-41ec-8743-778936d2d8b1"
                ],
                "uuid": "754de02f-a801-42f2-a58e-93b9834b0253"
            },
            {
                "href": "http://127.0.0.1:8095/port-tuple/f42287e2-4280-4a6c-bb1e-2640236212d0",
                "to": [
                    "default-domain",
                    "admin",
                    "si1",
                    "si1-port-tuple1-5ccbe28f-42ef-4c7d-a9a5-61ba46b69860"
                ],
                "uuid": "f42287e2-4280-4a6c-bb1e-2640236212d0"
            }
        ],
        "service_instance_properties": {
            "interface_list": [
                {
                    "virtual_network": "default-domain:admin:vn1"
                },
                {
                    "virtual_network": "default-domain:admin:vn2"
                }
            ],
            "left_virtual_network": "default-domain:admin:vn1",
            "right_virtual_network": "default-domain:admin:vn2"
        },
        "service_template_refs": [
            {
                "attr": null,
                "href": "http://127.0.0.1:8095/service-template/112454f0-319d-4d7f-b223-3a57e6cf358d",
                "to": [
                    "default-domain",
                    "st1"
                ],
                "uuid": "112454f0-319d-4d7f-b223-3a57e6cf358d"
            }
        ],
        "uuid": "94b8683f-150e-4393-bbdf-3992423b9df9"
    }
}

Tags: blocker config
Sachin Bansal (sbansal)
Changed in juniperopenstack:
assignee: Sachin Bansal (sbansal) → Ignatious Johnson Christopher (ijohnson-x)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/17512
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/17513
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/17512
Committed: http://github.org/Juniper/contrail-controller/commit/dee6702360ae4c4e62adfc7ed1ed1037fef8e0d4
Submitter: Zuul
Branch: master

commit dee6702360ae4c4e62adfc7ed1ed1037fef8e0d4
Author: Ignatious Johnson Christopher <email address hidden>
Date: Sat Feb 20 23:50:22 2016 -0800

Updating reaction map to evaluate port_tuple objects when there is
an update in service instance object.

Change-Id: I1e3827d4b8bd81ef1f084995d4a61fc75df68b3a
Closes-Bug: 1546962

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/17513
Committed: http://github.org/Juniper/contrail-controller/commit/1255167d4dc124d3b5cd44fa76ffefe91ce56712
Submitter: Zuul
Branch: R3.0

commit 1255167d4dc124d3b5cd44fa76ffefe91ce56712
Author: Ignatious Johnson Christopher <email address hidden>
Date: Sat Feb 20 23:50:22 2016 -0800

Updating reaction map to evaluate port_tuple objects when there is
an update in service instance object.

Change-Id: I1e3827d4b8bd81ef1f084995d4a61fc75df68b3a
Closes-Bug: 1546962

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.