3.0.3-69:DM doesn't change policy-options after Neutron router is deleted
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.0 |
Invalid
|
High
|
Sandeep Sridhar | |||
R3.1 |
Invalid
|
High
|
Sandeep Sridhar | |||
R3.2 |
Invalid
|
Medium
|
Sandeep Sridhar | |||
Trunk |
Invalid
|
High
|
Sandeep Sridhar |
Bug Description
Contrail - 3.0.3-69
MX - 14.2
I created two virtual networks and extended it to the physical router. DM pushed the following to the prouter:
+ policy-options {
+ policy-statement _contrail_
+ term t1 {
+ then {
+ community add target_
+ accept;
+ }
+ }
+ }
+ policy-statement _contrail_
+ term t1 {
+ from community target_
+ then accept;
+ }
+ then reject;
+ }
+ policy-statement _contrail_
+ term t1 {
+ then {
+ community add target_
+ accept;
+ }
+ }
+ }
+ policy-statement _contrail_
+ term t1 {
+ from community target_
+ then accept;
+ }
+ then reject;
+ }
+ policy-statement _contrail_
+ term t1 {
+ then {
+ community add target_
+ accept;
+ }
+ }
+ }
+ policy-statement _contrail_
+ term t1 {
+ from community target_
+ then accept;
+ }
+ then reject;
+ }
+ policy-statement _contrail_
+ term t1 {
+ then {
+ community add target_
+ accept;
+ }
+ }
+ }
+ policy-statement _contrail_
+ term t1 {
+ from community target_
+ then accept;
+ }
+ then reject;
+ }
+ community target_
+ community target_
+ }
+ routing-instances {
+ _contrail_
+ vtep-source-
+ instance-type virtual-switch;
+ vrf-import _contrail_
+ vrf-export _contrail_
+ protocols {
+ evpn {
+ encapsulation vxlan;
+ extended-vni-list all;
+ }
+ }
+ bridge-domains {
+ bd-10 {
+ vlan-id none;
+ routing-interface irb.10;
+ vxlan {
+ vni 10;
+ }
+ }
+ }
+ }
+ _contrail_
+ instance-type vrf;
+ interface irb.10;
+ vrf-import _contrail_
+ vrf-export _contrail_
+ vrf-table-label;
+ routing-options {
+ static {
+ route 192.168.1.0/24 discard;
+ }
+ auto-export {
+ family inet {
+ unicast;
+ }
+ }
+ }
+ }
+ _contrail_
+ vtep-source-
+ instance-type virtual-switch;
+ vrf-import _contrail_
+ vrf-export _contrail_
+ protocols {
+ evpn {
+ encapsulation vxlan;
+ extended-vni-list all;
+ }
+ }
+ bridge-domains {
+ bd-11 {
+ vlan-id none;
+ routing-interface irb.11;
+ vxlan {
+ vni 11;
+ }
+ }
+ }
+ }
+ _contrail_
+ instance-type vrf;
+ interface irb.11;
+ vrf-import _contrail_
+ vrf-export _contrail_
+ vrf-table-label;
+ routing-options {
+ static {
+ route 10.0.0.0/24 discard;
+ }
+ auto-export {
+ family inet {
+ unicast;
+ }
+ }
+ }
+ }
+ }
+ }
Post this, a neutron router was created and the networks created before were tagged to it. DM changed the config as below: (target:
+ policy-options {
+ policy-statement _contrail_
+ term t1 {
+ then {
+ community add target_
+ community add target_
+ accept;
+ }
+ }
+ }
+ policy-statement _contrail_
+ term t1 {
+ from community [ target_
+ then accept;
+ }
+ then reject;
+ }
+ policy-statement _contrail_
+ term t1 {
+ then {
+ community add target_
+ community add target_
+ accept;
+ }
+ }
+ }
+ policy-statement _contrail_
+ term t1 {
+ from community [ target_
+ then accept;
+ }
+ then reject;
+ }
+ policy-statement _contrail_
+ term t1 {
+ then {
+ community add target_
+ community add target_
+ accept;
+ }
+ }
+ }
+ policy-statement _contrail_
+ term t1 {
+ from community [ target_
+ then accept;
+ }
+ then reject;
+ }
+ policy-statement _contrail_
+ term t1 {
+ then {
+ community add target_
+ community add target_
+ accept;
+ }
+ }
+ }
+ policy-statement _contrail_
+ term t1 {
+ from community [ target_
+ then accept;
+ }
+ then reject;
+ }
+ community target_
+ community target_
+ community target_
+ }
+ routing-instances {
+ _contrail_
+ vtep-source-
+ instance-type virtual-switch;
+ vrf-import _contrail_
+ vrf-export _contrail_
+ protocols {
+ evpn {
+ encapsulation vxlan;
+ extended-vni-list all;
+ }
+ }
+ bridge-domains {
+ bd-10 {
+ vlan-id none;
+ routing-interface irb.10;
+ vxlan {
+ vni 10;
+ }
+ }
+ }
+ }
+ _contrail_
+ instance-type vrf;
+ interface irb.10;
+ vrf-import _contrail_
+ vrf-export _contrail_
+ vrf-table-label;
+ routing-options {
+ static {
+ route 192.168.1.0/24 discard;
+ }
+ auto-export {
+ family inet {
+ unicast;
+ }
+ }
+ }
+ }
+ _contrail_
+ vtep-source-
+ instance-type virtual-switch;
+ vrf-import _contrail_
+ vrf-export _contrail_
+ protocols {
+ evpn {
+ encapsulation vxlan;
+ extended-vni-list all;
+ }
+ }
+ bridge-domains {
+ bd-11 {
+ vlan-id none;
+ routing-interface irb.11;
+ vxlan {
+ vni 11;
+ }
+ }
+ }
+ }
+ _contrail_
+ instance-type vrf;
+ interface irb.11;
+ vrf-import _contrail_
+ vrf-export _contrail_
+ vrf-table-label;
+ routing-options {
+ static {
+ route 10.0.0.0/24 discard;
+ }
+ auto-export {
+ family inet {
+ unicast;
+ }
+ }
+ }
+ }
+ }
+ }
The problem here is, post deleting the neutron router, the above config doesn't go away from Junos. This has to be fixed.
The same works fine if i just add an additional RT on the VN that is extended and delete it from Contrail.
tags: | added: device-manager |
Changed in juniperopenstack: | |
assignee: | nobody → Suresh Balineni (sbalineni) |
information type: | Proprietary → Public |
Not re-producible in 3.1:
1) VN extended to PR, following config pushed to MX:
root@custmx# show groups __contrail__ policy-options l2_6_test- dm1-export {
community add target_ 64512_8000003; l2_6_test- dm1-import { 64512_8000003; l3_6_test- dm1-export {
community add target_ 64512_8000003; l3_6_test- dm1-import { 64512_8000003;
policy-statement _contrail_
term t1 {
then {
accept;
}
}
}
policy-statement _contrail_
term t1 {
from community target_
then accept;
}
then reject;
}
policy-statement _contrail_
term t1 {
then {
accept;
}
}
}
policy-statement _contrail_
term t1 {
from community target_
then accept;
}
then reject;
}
...
2) This is what the config generated when Router is associated to VN (still VNs are extended to PR) : 64512_8000005;
>> RT for LR is community add target_
root@custmx# show groups __contrail__ policy-options l2_6_test- dm1-export {
community add target_ 64512_8000005;
community add target_ 64512_8000003; l2_6_test- dm1-import { 64512_8000005 target_ 64512_8000003 ]; l3_6_test- dm1-export {
community add target_ 64512_8000005;
community add target_ 64512_8000003; l3_6_test- dm1-import { 64512_8000005 target_ 64512_8000003 ];
policy-statement _contrail_
term t1 {
then {
accept;
}
}
}
policy-statement _contrail_
term t1 {
from community [ target_
then accept;
}
then reject;
}
policy-statement _contrail_
term t1 {
then {
accept;
}
}
}
policy-statement _contrail_
term t1 {
from community [ target_
then accept;
}
then reject;
}
..
3) Now Logged on to Horizon, deleted Router.
Config pushed to mx :
root@custmx# show groups __contrail__ policy-options l2_6_test- dm1-export {
community add target_ 64512_8000003; l2_6_test- dm1-import { 64512_8000003; l3_6_test- dm1-export {
community add target_ 64512_8000003; l3_6_test- dm1-import { 64512_8000003;
policy-statement _contrail_
term t1 {
then {
accept;
}
}
}
policy-statement _contrail_
term t1 {
from community target_
then accept;
}
then reject;
}
policy-statement _contrail_
term t1 {
then {
accept;
}
}
}
policy-statement _contrail_
term t1 {
from community target_
then accept;
}
then reject;
}
...