svc_monitor get InvalidSessionID from ifmap when ifmap restarted

Bug #1375696 reported by Sylvain Afchain
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenContrail
Fix Committed
Undecided
Sylvain Afchain

Bug Description

Just after a restart of the ifmap process the svc_monitor gets InvalidSessionID errors from the recreated ifmap connection and flood the ifmap server.

below the traceback

the original traceback:

Traceback (most recent call last):
  File "/usr/local/bin/contrail-svc-monitor", line 9, in <module>
    load_entry_point('svc-monitor==0.1dev', 'console_scripts', 'contrail-svc-monitor')()
  File "/opt/stack/contrail/build/noarch/config/svc-monitor/svc_monitor/svc_monitor.py", line 899, in server_main
    main()
  File "/opt/stack/contrail/build/noarch/config/svc-monitor/svc_monitor/svc_monitor.py", line 894, in main
    run_svc_monitor, args)
  File "/usr/local/lib/python2.7/dist-packages/cfgm_common/zkclient.py", line 279, in master_election
    self._election.run(self._zk_election_callback, func, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/kazoo/recipe/election.py", line 53, in run
    func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/cfgm_common/zkclient.py", line 271, in _zk_election_callback
    func(*args, **kwargs)
  File "/opt/stack/contrail/build/noarch/config/svc-monitor/svc_monitor/svc_monitor.py", line 876, in run_svc_monitor
    gevent.joinall([ssrc_task, timer_task, cleanup_task])
  File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 400, in joinall
    wait(greenlets, timeout=timeout)
  File "/usr/local/lib/python2.7/dist-packages/gevent/hub.py", line 645, in wait
    return list(iwait(objects, timeout))
  File "/usr/local/lib/python2.7/dist-packages/gevent/hub.py", line 598, in iwait
    item = waiter.get()
  File "/usr/local/lib/python2.7/dist-packages/gevent/hub.py", line 568, in get
    return self.hub.switch()
  File "/usr/local/lib/python2.7/dist-packages/gevent/hub.py", line 331, in switch
    return greenlet.switch(self)
KeyboardInterrupt

safchain@opencontrail:/opt/stack/contrail/build/noarch/config/svc-monitor$ tail -f /var/log/contrail/svc-monitor.err
  File "/opt/stack/contrail/build/noarch/config/svc-monitor/svc_monitor/svc_monitor.py", line 610, in launch_arc
    monitor.process_poll_result(result)
  File "/opt/stack/contrail/build/noarch/config/svc-monitor/svc_monitor/svc_monitor.py", line 546, in process_poll_result
    result_list = parse_poll_result(poll_result_str)
  File "/usr/local/lib/python2.7/dist-packages/cfgm_common/imid.py", line 205, in parse_poll_result
    raise exceptions.InvalidSessionID(etree.tostring(error_results[0]))
InvalidSessionID: <errorResult xmlns:ns2="http://www.trustedcomputinggroup.org/2010/IFMAP/2" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope" errorCode="InvalidSessionID"><errorString>Session not found.</errorString></errorResult>

Tags: config
Changed in opencontrail:
assignee: nobody → Sylvain Afchain (sylvain-afchain)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

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

commit 3aa871fa29bdc251c207235867662ba1d02e966f
Author: Sylvain Afchain <email address hidden>
Date: Tue Sep 30 12:30:22 2014 +0200

Fixes InvalidSessionID when restarting ifmap

This patch fixes an issue when the ifmap server
is restarted. In that case the svc_monitor gets
InvalidSessionID error from the newly ifmap connection
and starts to flood the ifmap server.

Closes-bug #1375696

Change-Id: Ibec3f7e1fe253c3a0e81ed812f028b302b986f3c

tags: added: config
Changed in opencontrail:
status: New → Fix Committed
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.