R3.1 contrail-provisioning : Remove leading white spaces from contrail_control_conf template file

Bug #1628869 reported by Ankit Jain
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.1
Fix Committed
Medium
Ankit Jain
R3.2
Invalid
Medium
Ankit Jain
Trunk
Invalid
Medium
Ankit Jain

Bug Description

Remove leading white spaces from contrail_control_conf template file as openstack-config fails otherwise shown below throwing ConfigParser error

 openstack-config --set /etc/contrail/contrail-control.conf DEFAULT hostip 10.1.1.1
Traceback (most recent call last):
  File "/usr/bin/openstack-config", line 50, in <module>
    conf.readfp(open(cfgfile))
  File "/usr/lib/python2.7/dist-packages/iniparse/compat.py", line 111, in readfp
    self.data._readfp(fp)
  File "/usr/lib/python2.7/dist-packages/iniparse/ini.py", line 641, in _readfp
    raise exc
ConfigParser.ParsingError: File contains parsing errors: /etc/contrail/contrail-control.conf
 [line 11]: hostip=10.204.217.53 # Resolved IP of `hostname`

 [line 13]: hostname=nodeg13

Tags: provisioning
Ankit Jain (ankitja)
Changed in juniperopenstack:
assignee: nobody → Ankit Jain (ankitja)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/24563
Submitter: Ankit Jain (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/24563
Committed: http://github.org/Juniper/contrail-provisioning/commit/1a86aaa1a32f5567a3059c08cdaf56047864bb41
Submitter: Zuul
Branch: R3.1

commit 1a86aaa1a32f5567a3059c08cdaf56047864bb41
Author: Ankit Jain <email address hidden>
Date: Thu Sep 29 04:21:54 2016 -0700

Removing leading whitespaces from contrail_control_conf template file

This was causing openstack-config to fail
Closes-Bug: #1628869
Change-Id: I42e91ee379ff9aa4f89fcc7cb43138dfd1e84847

Jeba Paulaiyan (jebap)
Changed in juniperopenstack:
milestone: none → r3.2.0.0-fcs
importance: Undecided → Medium
Revision history for this message
Sudheendra Rao (sudheendra-k) wrote :

this problem is not there in R3.2 and mainline hence closing.

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.