SM provisioning JSON files to parse for Single-interface topology

Bug #1713592 reported by Sarath
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Committed
High
Nitish Krishna Kaveri
Trunk
Fix Committed
High
Nitish Krishna Kaveri

Bug Description

Version: 4.0.1.0-46-mitaka

Development Dheeraj debugged the setup and knows the problem.

Incase of Single-interface topology when 3 node HA both being contrail, Openstack
JSON should take "blank value for control/data interface and also for external VIP values"

currently, JSON forcing to have control/data interface specific and external VIP values otherwise provisioing aborted with exceptions as below,

"2017-08-28 14:45:45,350-ERROR-server_mgr_main.py:4748-log_trace(): *****TRACEBACK-START*****"
"2017-08-28 14:45:45,351-ERROR-server_mgr_main.py:4752-log_trace(): Traceback (most recent call last):
"
"2017-08-28 14:45:45,352-ERROR-server_mgr_main.py:4752-log_trace(): File "/opt/contrail/server_manager/server_mgr_main.py", line 6655, in provision_server
    self.prepare_provision(ret_data)
"
"2017-08-28 14:45:45,353-ERROR-server_mgr_main.py:4752-log_trace(): File "/opt/contrail/server_manager/server_mgr_main.py", line 6478, in prepare_provision
    self._smgr_validations.validate_vips(cluster_id, self._serverDb)
"
"2017-08-28 14:45:45,354-ERROR-server_mgr_main.py:4752-log_trace(): File "/opt/contrail/server_manager/server_mgr_validations.py", line 334, in validate_vips
    raise e
"
"2017-08-28 14:45:45,355-ERROR-server_mgr_main.py:4752-log_trace(): Exception: Both internal and external vips have to be configured
"
"2017-08-28 14:45:45,356-ERROR-server_mgr_main.py:4753-log_trace(): *****TRACEBACK-END******"

Sarath (nsarath)
description: updated
description: updated
Revision history for this message
Abhay Joshi (abhayj) wrote :

Simple workaround available :

In JSON, configure control data interface same as mgmt interface.

Revision history for this message
Abhay Joshi (abhayj) wrote :

Don't see this as critical. Moving to 4.0.2.

Revision history for this message
Sarath (nsarath) wrote :

Though, with workaround, provisioning validation succeeded and went through but later state of provisioning expect control-data network and fails.

Dheeraj knows the problem and debugging the setup for possible workaround/fix.

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

Review in progress for https://review.opencontrail.org/35058
Submitter: Nitish Krishna Kaveri (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/35060
Submitter: Nitish Krishna Kaveri (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/35058
Submitter: Nitish Krishna Kaveri (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/35060
Submitter: Nitish Krishna Kaveri (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/35058
Committed: http://github.com/Juniper/contrail-server-manager/commit/6c803ab0f8778a80a6d02ae49d59f7ff151d4d82
Submitter: Zuul (<email address hidden>)
Branch: master

commit 6c803ab0f8778a80a6d02ae49d59f7ff151d4d82
Author: nitishkrishna <email address hidden>
Date: Tue Aug 29 14:48:49 2017 -0700

Closes-Bug: #1713592 - Changing validations of Openstack HA - external VIP mandatory

Now the validations are:

Single interface:-

If more than one openstack node:
External vip is mandatory.
If internal vip is given, it should be same as external vip

Multiple interface:-

If more than one openstack node:
Both internal and external vips are mandatory.
They cannot be the same.

Patch 2:

In single interface, check case where internal vip also given

Change-Id: I04003bf4837b055557dce32a4e1e8ac653139a2c

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

Reviewed: https://review.opencontrail.org/35060
Committed: http://github.com/Juniper/contrail-server-manager/commit/3cbe90a4f1881456e3fbb7b49e6403642fe120a8
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit 3cbe90a4f1881456e3fbb7b49e6403642fe120a8
Author: nitishkrishna <email address hidden>
Date: Tue Aug 29 14:48:49 2017 -0700

Closes-Bug: #1713592 - Changing validations of Openstack HA - external VIP mandatory

Now the validations are:

Single interface:-

If more than one openstack node:
External vip is mandatory.
If internal vip is given, it should be same as external vip

Multiple interface:-

If more than one openstack node:
Both internal and external vips are mandatory.
They cannot be the same.

Patch 2:

In single interface, check case where internal vip also given

Change-Id: I04003bf4837b055557dce32a4e1e8ac653139a2c

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.