Creation of l3 router's external g/w snat SI breaks Contrail UI Service Instance Page

Bug #1354347 reported by Rahul
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R1.1
Fix Committed
Critical
Rudra Rugge
R2.0
Fix Committed
Undecided
Unassigned
Trunk
Fix Committed
Critical
Rudra Rugge

Bug Description

After setting external g/w for a l3 router. The snat SI is created in old way with SI properties left/right interfaces instead of interface list.

But the Service Template for the snat sets interface types in its interface type list.

This breaks Contrail UI Service Instance page. The page doesn't load due to exception.

Build 9

Revision history for this message
Rahul (rahuls) wrote :

Template
==========
{
service-template: {
fq_name: [
"default-domain",
"netns-snat-template"
],
uuid: "7e60c09c-acd0-434a-b711-23f4f5186fa9",
parent_uuid: "a1a7761d-b7f2-489e-9aa4-7ac8af90e261",
parent_href: "http://nodec2:8082/domain/a1a7761d-b7f2-489e-9aa4-7ac8af90e261",
parent_type: "domain",
service_template_properties: {
ordered_interfaces: true,
service_virtualization_type: "network-namespace",
interface_type: [
{
static_route_enable: false,
shared_ip: false,
service_interface_type: "left"
},
{
static_route_enable: false,
shared_ip: false,
service_interface_type: "right"
}
],
image_name: null,
service_mode: "in-network-nat",
service_type: "source-nat",
flavor: null,
service_scaling: true
},
href: "http://nodec2:8082/service-template/7e60c09c-acd0-434a-b711-23f4f5186fa9",
id_perms: {
enable: true,
uuid: {
uuid_mslong: 9106490225689904000,
uuid_lslong: 13191364318535905000
},
created: "2014-08-08T06:23:06.172942",
description: null,
last_modified: "2014-08-08T06:23:06.183575",
permissions: {
owner: "cloud-admin",
owner_access: 7,
other_access: 7,
group: "cloud-admin-group",
group_access: 7
}
},
service_instance_back_refs: [
{
to: [
"default-domain",
"demo",
"si_d259e159-88cd-4bb6-975e-fc3301a6bc1c"
],
href: "http://nodec2:8082/service-instance/fe59cf78-143e-4058-b770-26f17fe7617b",
attr: null,
uuid: "fe59cf78-143e-4058-b770-26f17fe7617b"
}
],
name: "netns-snat-template"
}
}

Service Instance
=================
{
service-instance: {
virtual_machine_back_refs: [
{
to: [
"default-domain__demo__si_d259e159-88cd-4bb6-975e-fc3301a6bc1c_1"
],
href: "http://nodec2:8082/virtual-machine/bcfc8c95-bf08-428f-a15d-617986d2623e",
attr: null,
uuid: "bcfc8c95-bf08-428f-a15d-617986d2623e"
}
],
fq_name: [
"default-domain",
"demo",
"si_d259e159-88cd-4bb6-975e-fc3301a6bc1c"
],
uuid: "fe59cf78-143e-4058-b770-26f17fe7617b",
parent_type: "project",
parent_uuid: "38b65570-b6f5-414d-b5a9-e2aa60a44b5f",
parent_href: "http://nodec2:8082/project/38b65570-b6f5-414d-b5a9-e2aa60a44b5f",
service_instance_properties: {
right_virtual_network: "default-domain:demo:public",
left_ip_address: null,
availability_zone: null,
management_virtual_network: null,
auto_policy: true,
interface_list: [ ],
right_ip_address: null,
left_virtual_network: "default-domain:demo:svc_snat_si_d259e159-88cd-4bb6-975e-fc3301a6bc1c",
scale_out: {
auto_scale: true,
max_instances: 1
}
},
href: "http://nodec2:8082/service-instance/fe59cf78-143e-4058-b770-26f17fe7617b",
id_perms: {
enable: true,
uuid: {
uuid_mslong: 18327908273203593000,
uuid_lslong: 13218107725007250000
},
created: "2014-08-08T08:47:09.904507",
description: null,
last_modified: "2014-08-08T08:47:10.231990",
permissions: {
owner: "cloud-admin",
owner_access: 7,
other_access: 7,
group: "cloud-admin-group",
group_access: 7
}
},
service_template_refs: [
{
to: [
"default-domain",
"netns-snat-template"
],
href: "http://nodec2:8082/service-template/7e60c09c-acd0-434a-b711-23f4f5186fa9",
attr: null,
uuid: "7e60c09c-acd0-434a-b711-23f4f5186fa9"
}
],
name: "si_d259e159-88cd-4bb6-975e-fc3301a6bc1c"
}
}

Rahul (rahuls)
Changed in juniperopenstack:
assignee: nobody → Sachin Bansal (sbansal)
Sachin Bansal (sbansal)
Changed in juniperopenstack:
assignee: Sachin Bansal (sbansal) → Rudra Rugge (rudrarugge)
information type: Proprietary → Public
Rahul (rahuls)
tags: added: blocker
Changed in juniperopenstack:
milestone: r1.10-fcs → none
Revision history for this message
Rudra Rugge (rrugge) wrote :
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.