Provisioning:Problem with fab add_static_route

Bug #1456144 reported by Sandip Dey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
High
Senthilnathan Murugappan
Trunk
Fix Committed
High
Senthilnathan Murugappan

Bug Description

Hi Ignatious

Looks like there is a problem in fab addstaticroute.

For one interface , static route should be added with vlan 4001, but it was added with vlan 4000 .

Please see below.

#Inferface Bonding
bond= {
    host4 : { 'name': 'bond0', 'member': ['p1p2','p1p3'], 'mode': '802.3ad', 'xmit_hash_policy': 'layer3+4' },
    host5 : { 'name': 'bond0', 'member': ['p1p1','p1p2'], 'mode': '802.3ad', 'xmit_hash_policy': 'layer3+4' },
}

control_data = {
    host1 : { 'ip': '40.43.1.5/24', 'gw' : '40.43.1.1', 'device':'p1p2'},
    host2 : { 'ip': '40.43.1.6/24', 'gw' : '40.43.1.1', 'device':'p1p2' },
    host3 : { 'ip': '40.43.1.7/24', 'gw' : '40.43.1.1', 'device':'p1p2' },
    host4 : { 'ip': '40.41.1.5/24', 'gw' : '40.41.1.1', 'device':'bond0','vlan': '4001' },
    host5 : { 'ip': '40.40.40.5/24', 'gw' : '40.40.40.1', 'device':'bond0' ,'vlan': '4000'},
    host6 : { 'ip': '40.40.40.6/24','gw' : '40.40.40.1', 'device':'p1p1','vlan': '4000' },
}

static_route = {
    host1 : [{ 'ip': '40.40.0.0', 'netmask' : '255.248.0.0', 'gw':'40.43.1.1', 'intf': 'p1p2' }
    ],
    host2 : [{ 'ip': '40.40.0.0', 'netmask' : '255.248.0.0', 'gw':'40.43.1.1', 'intf': 'p1p2' }
    ],
    host3 : [{ 'ip': '40.40.0.0', 'netmask' : '255.248.0.0', 'gw':'40.43.1.1', 'intf': 'p1p2' }
    ],
    host4 : [{ 'ip': '40.40.0.0', 'netmask' : '255.248.0.0', 'gw':'40.41.1.1', 'intf': 'bond0' }
    ],
    host5 : [{ 'ip': '40.40.0.0', 'netmask' : '255.248.0.0', 'gw':'40.40.40.1', 'intf': 'bond0' }
    ],
    host6 : [{ 'ip': '40.40.0.0', 'netmask' : '255.248.0.0', 'gw':'40.40.40.1', 'intf': 'p1p1' }
    ],

2015-05-18 02:19:05:022157: [root@10.204.216.230] out: DHCPOFFER of 10.204.216.230 from 10.204.216.51
2015-05-18 02:19:05:022348: [root@10.204.216.230] out: DHCPACK of 10.204.216.230 from 10.204.216.51
2015-05-18 02:19:05:022740: [root@10.204.216.230] out: * Stopping NTP server ntpd
2015-05-18 02:19:05:022944: [root@10.204.216.230] out: ...done.
2015-05-18 02:19:05:023127: [root@10.204.216.230] out: * Starting NTP server ntpd
2015-05-18 02:19:07:028779: [root@10.204.216.230] out: ...done.
2015-05-18 02:19:07:029074: [root@10.204.216.230] out: bound to 10.204.216.230 -- renewal in 8300 seconds.
2015-05-18 02:19:07:037112: [root@10.204.216.230] out: Waiting for bond master bond0 to be ready
2015-05-18 02:19:07:169479: [root@10.204.216.230] out: Traceback (most recent call last):
2015-05-18 02:19:12:781464: [root@10.204.216.230] out: File "/usr/bin/setup-vnc-static-routes", line 9, in <module>
2015-05-18 02:19:12:781815: [root@10.204.216.230] out: load_entry_point('ContrailProvisioning==0.1dev', 'console_scripts', 'setup-vnc-static-routes')()
2015-05-18 02:19:12:782119: [root@10.204.216.230] out: File "/usr/local/lib/python2.7/dist-packages/contrail_provisioning/common/staticroute_setup.py", line 198, in main
2015-05-18 02:19:12:782325: [root@10.204.216.230] out: route.setup()
2015-05-18 02:19:12:782523: [root@10.204.216.230] out: File "/usr/local/lib/python2.7/dist-packages/contrail_provisioning/common/staticroute_setup.py", line 102, in setup
2015-05-18 02:19:12:782719: [root@10.204.216.230] out: self.post_config()
2015-05-18 02:19:12:782907: [root@10.204.216.230] out: File "/usr/local/lib/python2.7/dist-packages/contrail_provisioning/common/staticroute_setup.py", line 94, in post_config
2015-05-18 02:19:12:783093: [root@10.204.216.230] out: self.verify_route()
2015-05-18 02:19:12:783206: [root@10.204.216.230] out: File "/usr/local/lib/python2.7/dist-packages/contrail_provisioning/common/staticroute_setup.py", line 89, in verify_route
2015-05-18 02:19:12:783322: [root@10.204.216.230] out: raise RuntimeError('Seems Routes are not properly configured')
2015-05-18 02:19:12:783432: [root@10.204.216.230] out: RuntimeError: Seems Routes are not properly configured
2015-05-18 02:19:12:783544: [root@10.204.216.230] out:
2015-05-18 02:19:12:786066:

2015-05-18 02:19:12:793432: Fatal error: sudo() received nonzero return code 1 while executing!
2015-05-18 02:19:12:793432:
2015-05-18 02:19:12:793432: Requested: setup-vnc-static-routes --network 40.40.0.0 --gw 40.41.1.1 --netmask 255.248.0.0 --device bond0 --vlan 4000
2015-05-18 02:19:12:793432: Executed: sudo -S -p 'sudo password:' /bin/bash -l -c "cd /opt/contrail/bin && setup-vnc-static-routes --network 40.40.0.0 --gw 40.41.1.1 --netmask 255.248.0.0 --device bond0 --vlan 4000"

Regards
Sandip

Changed in juniperopenstack:
assignee: Ignatious Johnson Christopher (ijohnson-x) → Senthilnathan Murugappan (msenthil)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : master

Review in progress for https://review.opencontrail.org/10700
Submitter: Senthilnathan Murugappan (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/10701
Submitter: Senthilnathan Murugappan (<email address hidden>)

Changed in juniperopenstack:
importance: Undecided → High
status: New → In Progress
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/10700
Committed: http://github.org/Juniper/contrail-fabric-utils/commit/d327648ac6bad420f38e2ea9c48196b71d6f2036
Submitter: Zuul
Branch: master

commit d327648ac6bad420f38e2ea9c48196b71d6f2036
Author: msenthil <email address hidden>
Date: Fri May 22 03:11:45 2015 -0700

Dont assume vlan tag of control+data interface would be same across all nodes
Closes-Bug: #1456144

Change-Id: I303970b0d8fbb38fe3d64a9f038821cd5fd696da

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

Reviewed: https://review.opencontrail.org/10701
Committed: http://github.org/Juniper/contrail-fabric-utils/commit/c78eebf1e66392f0c19f335333d5ec2a1ca5f8ed
Submitter: Zuul
Branch: R2.20

commit c78eebf1e66392f0c19f335333d5ec2a1ca5f8ed
Author: msenthil <email address hidden>
Date: Fri May 22 03:11:45 2015 -0700

Dont assume vlan tag of control+data interface would be same across all nodes
Closes-Bug: #1456144

Change-Id: I303970b0d8fbb38fe3d64a9f038821cd5fd696da

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.