Build 2711 : contrail-discovery failed to come up due to the error "mim time to allow client to cache service information"

Bug #1543933 reported by Ankit Jain
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
New
Undecided
Deepinder Setia

Bug Description

On my setup, contrail-discovery failed to come up and throwing the following error in the logs:

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
  File "/usr/bin/contrail-discovery", line 9, in <module>
    load_entry_point('discovery==0.1dev', 'console_scripts', 'contrail-discovery')()
  File "/usr/lib/python2.7/dist-packages/discovery/disc_server.py", line 1400, in server_main
    main()
  File "/usr/lib/python2.7/dist-packages/discovery/disc_server.py", line 1392, in main
    args = parse_args(args_str)
  File "/usr/lib/python2.7/dist-packages/discovery/disc_server.py", line 1266, in parse_args
    config.read(args.conf_file)
  File "/usr/lib/python2.7/ConfigParser.py", line 305, in read
    self._read(fp, filename)
  File "/usr/lib/python2.7/ConfigParser.py", line 546, in _read
    raise e
ParsingError: File contains parsing errors: /etc/contrail/contrail-discovery.conf
        [line 14]: 'mim time to allow client to cache service information (seconds)\n'

<class 'ConfigParser.ParsingError'>
Python 2.7.6: /usr/bin/python
Wed Feb 10 12:11:42 2016

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

 /usr/bin/contrail-discovery in <module>()
    6
    7 if __name__ == '__main__':
    8 sys.exit(
    9 load_entry_point('discovery==0.1dev', 'console_scripts', 'contrail-discovery')()
   10 )
load_entry_point = <function load_entry_point>

 /usr/lib/python2.7/dist-packages/discovery/disc_server.py in server_main()
 1398 cgitb.enable(format='text')
 1399
 1400 main()
 1401 # end server_main
 1402
global main = <function main>

 /usr/lib/python2.7/dist-packages/discovery/disc_server.py in main(args_str='--conf_file /etc/contrail/contrail-discovery.conf --listen_port 9110 --worker_id
0')
 1390 if not args_str:
 1391 args_str = ' '.join(sys.argv[1:])
 1392 args = parse_args(args_str)
 1393 run_discovery_server(args)
 1394 # end main
args undefined
global parse_args = <function parse_args>
args_str = '--conf_file /etc/contrail/contrail-discovery.conf --listen_port 9110 --worker_id 0'

 /usr/lib/python2.7/dist-packages/discovery/disc_server.py in parse_args(args_str='--conf_file /etc/contrail/contrail-discovery.conf --listen_port 9110 --work
er_id 0')
 1264 if args.conf_file:
 1265 config = ConfigParser.SafeConfigParser()
 1266 config.read(args.conf_file)
 1267 defaults.update(cassandra_opts)
 1268 for section in config.sections():
config = <ConfigParser.SafeConfigParser instance>
config.read = <bound method SafeConfigParser.read of <ConfigParser.SafeConfigParser instance>>
args = Namespace(conf_file=['/etc/contrail/contrail-discovery.conf'])
args.conf_file = ['/etc/contrail/contrail-discovery.conf']

 /usr/lib/python2.7/ConfigParser.py in read(self=<ConfigParser.SafeConfigParser instance>, filenames=['/etc/contrail/contrail-discovery.conf'])
  303 except IOError:
  304 continue
  305 self._read(fp, filename)
  306 fp.close()
  307 read_ok.append(filename)
self = <ConfigParser.SafeConfigParser instance>
self._read = <bound method SafeConfigParser._read of <ConfigParser.SafeConfigParser instance>>
fp = <open file '/etc/contrail/contrail-discovery.conf', mode 'r'>
filename = '/etc/contrail/contrail-discovery.conf'

 /usr/lib/python2.7/ConfigParser.py in _read(self=<ConfigParser.SafeConfigParser instance>, fp=<open file '/etc/contrail/contrail-discovery.conf', mode 'r'>,
fpname='/etc/contrail/contrail-discovery.conf')
  544 # if any parsing errors occurred, raise an exception
  545 if e:
  546 raise e
  547
  548 # join the multi-line values collected while reading
e = File contains parsing errors: /etc/contrail/cont... client to cache service information (seconds)\n'
<class 'ConfigParser.ParsingError'>: File contains parsing errors: /etc/contrail/contrail-discovery.conf
        [line 14]: 'mim time to allow client to cache service information (seconds)\n'
    _Error__message = r"File contains parsing errors: /etc/contrail/cont... client to cache service information (seconds)\n'"
    __class__ = <class 'ConfigParser.ParsingError'>
    __delattr__ = <method-wrapper '__delattr__' of ParsingError object>
    __dict__ = {'_Error__message': r"File contains parsing errors: /etc/contrail/cont... client to cache service information (seconds)\n'", 'errors': [(14, r"
'mim time to allow client to cache service information (seconds)\n'")], 'filename': '/etc/contrail/contrail-discovery.conf'}
    __doc__ = 'Raised when a configuration file does not follow legal syntax.'
    __format__ = <built-in method __format__ of ParsingError object>
 546 raise e
  547
  548 # join the multi-line values collected while reading
e = File contains parsing errors: /etc/contrail/cont... client to cache service information (seconds)\n'
<class 'ConfigParser.ParsingError'>: File contains parsing errors: /etc/contrail/contrail-discovery.conf
        [line 14]: 'mim time to allow client to cache service information (seconds)\n'
    _Error__message = r"File contains parsing errors: /etc/contrail/cont... client to cache service information (seconds)\n'"
    __class__ = <class 'ConfigParser.ParsingError'>
    __delattr__ = <method-wrapper '__delattr__' of ParsingError object>
    __dict__ = {'_Error__message': r"File contains parsing errors: /etc/contrail/cont... client to cache service information (seconds)\n'", 'errors': [(14, r"
'mim time to allow client to cache service information (seconds)\n'")], 'filename': '/etc/contrail/contrail-discovery.conf'}
    __doc__ = 'Raised when a configuration file does not follow legal syntax.'
    __format__ = <built-in method __format__ of ParsingError object>
    __getattribute__ = <method-wrapper '__getattribute__' of ParsingError object>
    __getitem__ = <method-wrapper '__getitem__' of ParsingError object>
    __getslice__ = <method-wrapper '__getslice__' of ParsingError object>
    __hash__ = <method-wrapper '__hash__' of ParsingError object>
    __init__ = <bound method ParsingError.__init__ of File cont...client to cache service information (seconds)\n'>
    __module__ = 'ConfigParser'
    __new__ = <built-in method __new__ of type object>
    __reduce__ = <built-in method __reduce__ of ParsingError object>
    __reduce_ex__ = <built-in method __reduce_ex__ of ParsingError object>
    __repr__ = <bound method ParsingError.__repr__ of File cont...client to cache service information (seconds)\n'>
    __setattr__ = <method-wrapper '__setattr__' of ParsingError object>
    __setstate__ = <built-in method __setstate__ of ParsingError object>
    __sizeof__ = <built-in method __sizeof__ of ParsingError object>
    __str__ = <bound method ParsingError.__repr__ of File cont...client to cache service information (seconds)\n'>
    __subclasshook__ = <built-in method __subclasshook__ of type object>
    __unicode__ = <built-in method __unicode__ of ParsingError object>
    __weakref__ = None
    _get_message = <bound method ParsingError._get_message of File ...client to cache service information (seconds)\n'>
    _set_message = <bound method ParsingError._set_message of File ...client to cache service information (seconds)\n'>
    append = <bound method ParsingError.append of File contai...client to cache service information (seconds)\n'>
    args = ('/etc/contrail/contrail-discovery.conf',)
    errors = [(14, r"'mim time to allow client to cache service information (seconds)\n'")]
    filename = '/etc/contrail/contrail-discovery.conf'
    message = r"File contains parsing errors: /etc/contrail/cont... client to cache service information (seconds)\n'"

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
  File "/usr/bin/contrail-discovery", line 9, in <module>
    load_entry_point('discovery==0.1dev', 'console_scripts', 'contrail-discovery')()
  File "/usr/lib/python2.7/dist-packages/discovery/disc_server.py", line 1400, in server_main
    main()
  File "/usr/lib/python2.7/dist-packages/discovery/disc_server.py", line 1392, in main
    args = parse_args(args_str)
  File "/usr/lib/python2.7/dist-packages/discovery/disc_server.py", line 1266, in parse_args
    config.read(args.conf_file)
  File "/usr/lib/python2.7/ConfigParser.py", line 305, in read
    self._read(fp, filename)
  File "/usr/lib/python2.7/ConfigParser.py", line 546, in _read
    raise e
ParsingError: File contains parsing errors: /etc/contrail/contrail-discovery.conf
        [line 14]: 'mim time to allow client to cache service information (seconds)\n'

root@nodeh1:/var/log/contrail#
root@nodeh1:/var/log/contrail# contrail-status
== Contrail Control ==
supervisor-control: active
contrail-control active
contrail-control-nodemgr active
contrail-dns active
contrail-named active

== Contrail Analytics ==
supervisor-analytics: active
contrail-alarm-gen active
contrail-analytics-api active
contrail-analytics-nodemgr active
contrail-collector active
contrail-query-engine active
contrail-snmp-collector active
contrail-topology active

== Contrail Config ==
supervisor-config: active
contrail-api:0 active
contrail-config-nodemgr active
contrail-device-manager backup
contrail-discovery:0 failed
contrail-schema backup
contrail-svc-monitor backup
ifmap active

== Contrail Database ==
contrail-database: active
supervisor-database: active
contrail-database-nodemgr active
kafka active

== Contrail Support Services ==
supervisor-support-service: active
rabbitmq-server active

root@nodeh1:/var/log/contrail#

Copying the logs @mayamruga:/home/bhushana/Documents/technical/bugs/<bugId>
user name : Bhushana
password : bhu@123

Nipa (nipak)
Changed in juniperopenstack:
assignee: Nipa (nipak) → Deepinder Setia (dsetia)
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.