Schema-transformer is nonetype and want to acess instance's attributes

Bug #1677679 reported by Bruno Fernando
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Undecided
Bruno Fernando
OpenContrail
Fix Committed
Undecided
Bruno Fernando

Bug Description

I'm not able to reproduce the situation for now.

But I get the following traceback regarding the schema-transformer service:

Traceback (most recent call last):
  File "/usr/bin/contrail-schema", line 11, in <module>
    load_entry_point('schema-transformer==0.1.dev0', 'console_scripts', 'contrail-schema')()
  File "/usr/lib/python2.7/dist-packages/schema_transformer/to_bgp.py", line 708, in server_main
    main()
  File "/usr/lib/python2.7/dist-packages/schema_transformer/to_bgp.py", line 702, in main
    st_logger, args)
  File "/usr/lib/python2.7/dist-packages/cfgm_common/zkclient.py", line 346, in master_election
    self._election.run(func, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/kazoo/recipe/election.py", line 53, in run
    func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/schema_transformer/to_bgp.py", line 646, in run_schema_transformer
    transformer = SchemaTransformer(st_logger, args)
  File "/usr/lib/python2.7/dist-packages/schema_transformer/to_bgp.py", line 180, in __init__
    SchemaTransformer.destroy_instance()
  File "/usr/lib/python2.7/dist-packages/schema_transformer/to_bgp.py", line 384, in destroy_instance
    inst._vnc_amqp.close()
AttributeError: 'NoneType' object has no attribute '_vnc_amqp'

Tags: config schema
Changed in opencontrail:
assignee: nobody → Bruno Fernando (bfernando)
Changed in juniperopenstack:
assignee: nobody → Bruno Fernando (bfernando)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/30040
Submitter: Sachin Bansal (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/30040
Committed: http://github.org/Juniper/contrail-controller/commit/fee975468623239ea857aae0ab4340e0d4f40c16
Submitter: Zuul (<email address hidden>)
Branch: master

commit fee975468623239ea857aae0ab4340e0d4f40c16
Author: Sachin Bansal <email address hidden>
Date: Sat Apr 1 13:42:40 2017 -0700

Initialize class variable earlier

Change-Id: I7c912a1ad27802a949505bde4a16575ac8630cb7
Closes-Bug: 1677679

Sachin Bansal (sbansal)
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.