ImportError while running contrail-alarm-notify script

Bug #1562077 reported by Sundaresan Rajangam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
Medium
Sundaresan Rajangam
Trunk
Fix Committed
Medium
Sundaresan Rajangam

Bug Description

root@nodec39:~# contrail-alarm-notify
Traceback (most recent call last):
  File "/usr/bin/contrail-alarm-notify", line 9, in <module>
    load_entry_point('opserver==0.1dev', 'console_scripts', 'contrail-alarm-notify')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.7/dist-packages/opserver/alarm_notify.py", line 26, in <module>
    from opserver.sandesh.viz.constants import UVE_MAP
ImportError: No module named sandesh.viz.constants

The entry point for contrail-alarm-notify is opserver/alarm_notify.py
There is a module named opserver.py in opserver package. Therefore, the following statement looks for sandesh.viz.constants in opserver.py instead of the opserver package.
from opserver.sandesh.viz.constants import UVE_MAP

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

Review in progress for https://review.opencontrail.org/18766
Submitter: Sundaresan Rajangam (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/18767
Submitter: Sundaresan Rajangam (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/18767
Committed: http://github.org/Juniper/contrail-controller/commit/1787800edb6d0216fc9b237b692d6b6d885f8178
Submitter: Zuul
Branch: R3.0

commit 1787800edb6d0216fc9b237b692d6b6d885f8178
Author: Sundaresan Rajangam <email address hidden>
Date: Fri Mar 25 09:49:25 2016 -0700

Fix ImportError in contrail-alarm-notify

The entry point for contrail-alarm-notify is opserver/alarm_notify.py
There is a module named opserver.py in opserver package. Therefore, the
following statement looks for sandesh.viz.constants in opserver.py
instead of the opserver package.
from opserver.sandesh.viz.constants import UVE_MAP

Change-Id: Ie238fbae3a5195e47bde5edac5e3a6d5f619f17a
Closes-Bug: #1562077
(cherry picked from commit 89e583cdd3a490aeb503e408d9c0e87d80127a8b)

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

Reviewed: https://review.opencontrail.org/18766
Committed: http://github.org/Juniper/contrail-controller/commit/89e583cdd3a490aeb503e408d9c0e87d80127a8b
Submitter: Zuul
Branch: master

commit 89e583cdd3a490aeb503e408d9c0e87d80127a8b
Author: Sundaresan Rajangam <email address hidden>
Date: Fri Mar 25 09:49:25 2016 -0700

Fix ImportError in contrail-alarm-notify

The entry point for contrail-alarm-notify is opserver/alarm_notify.py
There is a module named opserver.py in opserver package. Therefore, the
following statement looks for sandesh.viz.constants in opserver.py
instead of the opserver package.
from opserver.sandesh.viz.constants import UVE_MAP

Change-Id: Ie238fbae3a5195e47bde5edac5e3a6d5f619f17a
Closes-Bug: #1562077

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.