[2.20-Build 64] "rfp" attribute in virtual-network is deleted when ohter attribute is modified by WebUI

Bug #1486322 reported by Daisuke Nakajima
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
High
Rahul
R2.20
Fix Committed
High
asbalaji

Bug Description

"rpf" attribute is deleted when other attribute is updated by WebUI

### Original JSON
{
    "virtual-network": {
        "display_name": "rpf2",
        "flood_unknown_unicast": false,
        "fq_name": [
            "default-domain",
            "demo",
            "rpf2"
        ],
        "href": "http://172.27.113.209:8082/virtual-network/d3d1c161-56f8-4295-af72-320aab94127f",
        "id_perms": {
            "created": "2015-08-19T01:44:04.105523",
            "creator": null,
            "description": null,
            "enable": true,
            "last_modified": "2015-08-19T02:08:48.581441",
            "permissions": {
                "group": "admin",
                "group_access": 7,
                "other_access": 7,
                "owner": "admin",
                "owner_access": 7
            },
            "user_visible": true,
            "uuid": {
                "uuid_lslong": 12642222125392073343,
                "uuid_mslong": 15263193235950420629
            }
        },
        "instance_ip_back_refs": [
            {
                "attr": null,
                "href": "http://172.27.113.209:8082/instance-ip/3b587762-dcf7-4733-bc2d-305c41092872",
                "to": [
                    "3b587762-dcf7-4733-bc2d-305c41092872"
                ],
                "uuid": "3b587762-dcf7-4733-bc2d-305c41092872"
            },
            {
                "attr": null,
                "href": "http://172.27.113.209:8082/instance-ip/411047b2-800f-4a4e-b34c-8f71f602940f",
                "to": [
                    "411047b2-800f-4a4e-b34c-8f71f602940f"
                ],
                "uuid": "411047b2-800f-4a4e-b34c-8f71f602940f"
            },
            {
                "attr": null,
                "href": "http://172.27.113.209:8082/instance-ip/58c26db0-6bef-400f-a7eb-5d24b8ec23d7",
                "to": [
                    "58c26db0-6bef-400f-a7eb-5d24b8ec23d7"
                ],
                "uuid": "58c26db0-6bef-400f-a7eb-5d24b8ec23d7"
            }
        ],
        "is_shared": false,
        "name": "rpf2",
        "network_ipam_refs": [
            {
                "attr": {
                    "ipam_subnets": [
                        {
                            "addr_from_start": true,
                            "allocation_pools": [
                                {
                                    "end": "30.0.255.254",
                                    "start": "30.0.0.2"
                                }
                            ],
                            "default_gateway": "30.0.0.1",
                            "dhcp_option_list": {
                                "dhcp_option": []
                            },
                            "dns_server_address": "30.0.0.2",
                            "enable_dhcp": true,
                            "host_routes": {
                                "route": []
                            },
                            "subnet": {
                                "ip_prefix": "30.0.0.0",
                                "ip_prefix_len": 16
                            },
                            "subnet_uuid": "6a7e43d1-5a14-4149-a0fa-c8eb9636203b"
                        }
                    ]
                },
                "href": "http://172.27.113.209:8082/network-ipam/644962c8-b54f-497b-b3b1-7cb901fe59b6",
                "to": [
                    "default-domain",
                    "default-project",
                    "default-network-ipam"
                ],
                "uuid": "644962c8-b54f-497b-b3b1-7cb901fe59b6"
            }
        ],
        "parent_href": "http://172.27.113.209:8082/project/c05418b9-2f32-47f3-a085-a004dae65e49",
        "parent_type": "project",
        "parent_uuid": "c05418b9-2f32-47f3-a085-a004dae65e49",
        "route_target_list": {},
        "router_external": false,
        "routing_instances": [
            {
                "href": "http://172.27.113.209:8082/routing-instance/f891cc13-8d04-4f7f-8684-7c59c7459cfc",
                "to": [
                    "default-domain",
                    "demo",
                    "rpf2",
                    "rpf2"
                ],
                "uuid": "f891cc13-8d04-4f7f-8684-7c59c7459cfc"
            }
        ],
        "uuid": "d3d1c161-56f8-4295-af72-320aab94127f",
        "virtual_machine_interface_back_refs": [
            {
                "attr": null,
                "href": "http://172.27.113.209:8082/virtual-machine-interface/6774c32c-268f-44ef-9d39-99c03acc5059",
                "to": [
                    "default-domain",
                    "demo",
                    "6774c32c-268f-44ef-9d39-99c03acc5059"
                ],
                "uuid": "6774c32c-268f-44ef-9d39-99c03acc5059"
            },
            {
                "attr": null,
                "href": "http://172.27.113.209:8082/virtual-machine-interface/6b2732ff-fe74-4f37-96fa-5779da435f23",
                "to": [
                    "default-domain",
                    "demo",
                    "6b2732ff-fe74-4f37-96fa-5779da435f23"
                ],
                "uuid": "6b2732ff-fe74-4f37-96fa-5779da435f23"
            },
            {
                "attr": null,
                "href": "http://172.27.113.209:8082/virtual-machine-interface/e328b46f-5933-4474-a9df-b8e16e62a0b5",
                "to": [
                    "default-domain",
                    "demo",
                    "e328b46f-5933-4474-a9df-b8e16e62a0b5"
                ],
                "uuid": "e328b46f-5933-4474-a9df-b8e16e62a0b5"
            }
        ],
        "virtual_network_network_id": 7,
        "virtual_network_properties": {
            "allow_transit": false,
            "forwarding_mode": "l2_l3",
            "rpf": "disable"
        }
    }
}

### Deleted JSON
{
    "virtual-network": {
        "access_control_lists": [
            {
                "href": "http://172.27.113.209:8082/access-control-list/980be49d-54bc-49d2-bad4-1b82e6abdcc1",
                "to": [
                    "default-domain",
                    "demo",
                    "rpf2",
                    "rpf2"
                ],
                "uuid": "980be49d-54bc-49d2-bad4-1b82e6abdcc1"
            }
        ],
        "display_name": "rpf2",
        "flood_unknown_unicast": false,
        "fq_name": [
            "default-domain",
            "demo",
            "rpf2"
        ],
        "href": "http://172.27.113.209:8082/virtual-network/d3d1c161-56f8-4295-af72-320aab94127f",
        "id_perms": {
            "created": "2015-08-19T01:44:04.105523",
            "creator": null,
            "description": null,
            "enable": true,
            "last_modified": "2015-08-19T02:51:58.445172",
            "permissions": {
                "group": "admin",
                "group_access": 7,
                "other_access": 7,
                "owner": "admin",
                "owner_access": 7
            },
            "user_visible": true,
            "uuid": {
                "uuid_lslong": 12642222125392073343,
                "uuid_mslong": 15263193235950420629
            }
        },
        "instance_ip_back_refs": [
            {
                "attr": null,
                "href": "http://172.27.113.209:8082/instance-ip/3b587762-dcf7-4733-bc2d-305c41092872",
                "to": [
                    "3b587762-dcf7-4733-bc2d-305c41092872"
                ],
                "uuid": "3b587762-dcf7-4733-bc2d-305c41092872"
            },
            {
                "attr": null,
                "href": "http://172.27.113.209:8082/instance-ip/411047b2-800f-4a4e-b34c-8f71f602940f",
                "to": [
                    "411047b2-800f-4a4e-b34c-8f71f602940f"
                ],
                "uuid": "411047b2-800f-4a4e-b34c-8f71f602940f"
            },
            {
                "attr": null,
                "href": "http://172.27.113.209:8082/instance-ip/58c26db0-6bef-400f-a7eb-5d24b8ec23d7",
                "to": [
                    "58c26db0-6bef-400f-a7eb-5d24b8ec23d7"
                ],
                "uuid": "58c26db0-6bef-400f-a7eb-5d24b8ec23d7"
            }
        ],
        "is_shared": false,
        "name": "rpf2",
        "network_ipam_refs": [
            {
                "attr": {
                    "ipam_subnets": [
                        {
                            "addr_from_start": true,
                            "allocation_pools": [
                                {
                                    "end": "30.0.255.254",
                                    "start": "30.0.0.2"
                                }
                            ],
                            "default_gateway": "30.0.0.1",
                            "dhcp_option_list": {
                                "dhcp_option": []
                            },
                            "dns_server_address": "30.0.0.2",
                            "enable_dhcp": true,
                            "host_routes": {
                                "route": []
                            },
                            "subnet": {
                                "ip_prefix": "30.0.0.0",
                                "ip_prefix_len": 16
                            },
                            "subnet_uuid": "6a7e43d1-5a14-4149-a0fa-c8eb9636203b"
                        }
                    ]
                },
                "href": "http://172.27.113.209:8082/network-ipam/644962c8-b54f-497b-b3b1-7cb901fe59b6",
                "to": [
                    "default-domain",
                    "default-project",
                    "default-network-ipam"
                ],
                "uuid": "644962c8-b54f-497b-b3b1-7cb901fe59b6"
            }
        ],
        "network_policy_refs": [
            {
                "attr": {
                    "sequence": {
                        "major": 0,
                        "minor": 0
                    },
                    "timer": null
                },
                "href": "http://172.27.113.209:8082/network-policy/ea20b885-65ce-4289-9753-a1920057384e",
                "to": [
                    "default-domain",
                    "demo",
                    "po1"
                ],
                "uuid": "ea20b885-65ce-4289-9753-a1920057384e"
            }
        ],
        "parent_href": "http://172.27.113.209:8082/project/c05418b9-2f32-47f3-a085-a004dae65e49",
        "parent_type": "project",
        "parent_uuid": "c05418b9-2f32-47f3-a085-a004dae65e49",
        "route_target_list": {},
        "router_external": false,
        "routing_instances": [
            {
                "href": "http://172.27.113.209:8082/routing-instance/f891cc13-8d04-4f7f-8684-7c59c7459cfc",
                "to": [
                    "default-domain",
                    "demo",
                    "rpf2",
                    "rpf2"
                ],
                "uuid": "f891cc13-8d04-4f7f-8684-7c59c7459cfc"
            }
        ],
        "uuid": "d3d1c161-56f8-4295-af72-320aab94127f",
        "virtual_machine_interface_back_refs": [
            {
                "attr": null,
                "href": "http://172.27.113.209:8082/virtual-machine-interface/6774c32c-268f-44ef-9d39-99c03acc5059",
                "to": [
                    "default-domain",
                    "demo",
                    "6774c32c-268f-44ef-9d39-99c03acc5059"
                ],
                "uuid": "6774c32c-268f-44ef-9d39-99c03acc5059"
            },
            {
                "attr": null,
                "href": "http://172.27.113.209:8082/virtual-machine-interface/6b2732ff-fe74-4f37-96fa-5779da435f23",
                "to": [
                    "default-domain",
                    "demo",
                    "6b2732ff-fe74-4f37-96fa-5779da435f23"
                ],
                "uuid": "6b2732ff-fe74-4f37-96fa-5779da435f23"
            },
            {
                "attr": null,
                "href": "http://172.27.113.209:8082/virtual-machine-interface/e328b46f-5933-4474-a9df-b8e16e62a0b5",
                "to": [
                    "default-domain",
                    "demo",
                    "e328b46f-5933-4474-a9df-b8e16e62a0b5"
                ],
                "uuid": "e328b46f-5933-4474-a9df-b8e16e62a0b5"
            }
        ],
        "virtual_network_network_id": 7,
        "virtual_network_properties": {
            "allow_transit": false,
            "forwarding_mode": "l2_l3" <<<< rpf was deleted
        }
    }
}

Tags: ui
information type: Proprietary → Public
tags: added: ui
removed: vrouter
Rahul (rahuls)
Changed in juniperopenstack:
assignee: nobody → asbalaji (asbalaji)
importance: Undecided → High
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20

Review in progress for https://review.opencontrail.org/13249
Submitter: asbalaji (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/13249
Committed: http://github.org/Juniper/contrail-web-controller/commit/dc3ed8bf9661c7d0e91a75d1aa078808e4ad3fb9
Submitter: Zuul
Branch: R2.20

commit dc3ed8bf9661c7d0e91a75d1aa078808e4ad3fb9
Author: Balaji Kumar AS <email address hidden>
Date: Mon Aug 24 17:22:18 2015 +0530

Added two tags(subnet_name, rpf) to existing set of tags
Closes-Bug: #1485483
Closes-Bug: #1486322

Both the tags subnet_name, rpf are GET, PUT on all the edit VN configuration.

Change-Id: I117a56e866ae10ce0dca6d579f3e17094b4ca9fb

Rahul (rahuls)
Changed in juniperopenstack:
assignee: asbalaji (asbalaji) → Rahul (rahuls)
Revision history for this message
Rahul (rahuls) wrote :
Changed in juniperopenstack:
status: New → Fix Committed
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.