reading haproxy.conf failed on compute node, to launch netns for lbaasv2

Bug #1581154 reported by Vinoth Kannan Ganapathy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
High
Yuvaraja Mariappan
Trunk
Fix Committed
High
Yuvaraja Mariappan

Bug Description

While creating loadbalancer in lbaasv2 , on the compute node where the netns getting launched,
reading haproxy.conf failed. seeing the following traceback error

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 515, in main
    vrouter_netns.args.func()
  File "/usr/lib/python2.7/dist-packages/opencontrail_vrouter_netns/vrouter_netns.py", line 468, in create
    if (netns_mgr.set_lbaas() == False):
  File "/usr/lib/python2.7/dist-packages/opencontrail_vrouter_netns/vrouter_netns.py", line 178, in set_lbaas
    raise ValueError('LBAAS_TYPE does not exist %s' % self.cfg_file)
ValueError: LBAAS_TYPE does not exist /var/lib/contrail/e9b73816-669f-479b-8034-0512ea009bf5.conf

Tags: lbaasv2
Jeba Paulaiyan (jebap)
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/20261
Submitter: Yuvaraja Mariappan

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

Review in progress for https://review.opencontrail.org/20321
Submitter: Yuvaraja Mariappan

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

Reviewed: https://review.opencontrail.org/20261
Committed: http://github.org/Juniper/contrail-controller/commit/bd530b64c64000e718acd1d9967f9d510a0fe92e
Submitter: Zuul
Branch: R3.0

commit bd530b64c64000e718acd1d9967f9d510a0fe92e
Author: Yuvaraja Mariappan <email address hidden>
Date: Mon May 16 11:33:24 2016 -0700

SSL parameter setting in haproxy

1. lbaas_auth_conf param is added in agent which contains the
credentials to fetch the ssl certificates and private-keys.
if it is not mentioned, netns would use
/etc/contrail/contrail-lbaas-auth.conf as default
2. when two netns is launched by agent continosly [without any delay]
the second netns may report "LBAAS type is missing" if the first
netns moves the conf file to haproxy dir which is fixed
3. issue is fixed during the agent restart.

Change-Id: I511f21be1690364657f1bae3cb79608669cd5a18
Partial-Bug: 1569033
Closes-Bug: 1581154

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

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

commit 5a1ef608928f2e1b52622fbf89fef2a81930c90a
Author: Yuvaraja Mariappan <email address hidden>
Date: Mon May 16 11:33:24 2016 -0700

SSL parameter setting in haproxy

1. lbaas_auth_conf param is added in agent which contains the
credentials to fetch the ssl certificates and private-keys.
if it is not mentioned, netns would use
/etc/contrail/contrail-lbaas-auth.conf as default
2. when two netns is launched by agent continosly [without any delay]
the second netns may report "LBAAS type is missing" if the first
netns moves the conf file to haproxy dir which is fixed
3. issue is fixed during the agent restart.

Change-Id: I511f21be1690364657f1bae3cb79608669cd5a18
Partial-Bug: 1569033
Closes-Bug: 1581154

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.