vrouter snat script can fail on update an LBaaS NetNS

Bug #1466879 reported by Édouard Thuleau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R1.1
Won't Fix
Medium
Édouard Thuleau
R2.20
Fix Committed
Medium
Édouard Thuleau
Trunk
Fix Committed
Medium
Édouard Thuleau

Bug Description

vrouter snat script can fail on update an LBaaS NetNS if the Linux netns was not already created on the linux host:

Traceback (most recent call last):
  File "/usr/bin/opencontrail-vrouter-netns", line 9, in <module>
    load_entry_point('opencontrail-vrouter-netns==0.1', 'console_scripts', 'opencontrail-vrouter-netns')()
  File "/usr/lib/python2.7/dist-packages/opencontrail_vrouter_netns/vrouter_netns.py", line 446, in main
    vrouter_netns.args.func()
  File "/usr/lib/python2.7/dist-packages/opencontrail_vrouter_netns/vrouter_netns.py", line 410, in create
    netns_mgr.set_lbaas()
  File "/usr/lib/python2.7/dist-packages/opencontrail_vrouter_netns/vrouter_netns.py", line 131, in set_lbaas
    raise ValueError('Need to create the network namespace before set '
ValueError: Need to create the network namespace before set up the lbaas

Tags: vrouter
tags: added: vrouter
removed: ne
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/11846
Submitter: Édouard Thuleau (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/11849
Submitter: Édouard Thuleau (<email address hidden>)

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

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

commit cc61f98cdfd5f289ef3adeab4d3f756d1912fa0a
Author: Édouard Thuleau <email address hidden>
Date: Fri Jun 19 15:45:32 2015 +0200

[vrouter_netns] Create netns if it's not exist

If the script opencontrail-vrouter-netns is call with the '--uptae'
flag, the Linux network namespace is not initialized before it sets SNAT
or LBaaS stuff on it. So it fails. To resolve that, it create it if it's
not exist.

Change-Id: I74f87f3e7f1ebca1ac664d646d139a4f6eddbf98
Closes-Bug: #1466879

Changed in opencontrail:
assignee: nobody → Édouard Thuleau (ethuleau)
importance: Undecided → Medium
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20

Review in progress for https://review.opencontrail.org/13585
Submitter: ?douard Thuleau (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/13585
Committed: http://github.org/Juniper/contrail-controller/commit/2a36949c3caeac3f858cd6137fc75cc2982001c8
Submitter: Zuul
Branch: R2.20

commit 2a36949c3caeac3f858cd6137fc75cc2982001c8
Author: Édouard Thuleau <email address hidden>
Date: Fri Jun 19 15:45:32 2015 +0200

[vrouter_netns] Create netns if it's not exist

If the script opencontrail-vrouter-netns is call with the '--uptae'
flag, the Linux network namespace is not initialized before it sets SNAT
or LBaaS stuff on it. So it fails. To resolve that, it create it if it's
not exist.

Change-Id: I74f87f3e7f1ebca1ac664d646d139a4f6eddbf98
Closes-Bug: #1466879
(cherry picked from commit cc61f98cdfd5f289ef3adeab4d3f756d1912fa0a)

Sachin Bansal (sbansal)
no longer affects: opencontrail
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.