resource_common.py needs to import AmbiguousParentError from cfgm_common.exceptions

Bug #1670604 reported by Prashanth Nageshappa
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.2
Fix Committed
Undecided
Sahil Sabharwal
Trunk
Fix Committed
Undecided
Sahil Sabharwal

Bug Description

resource_common.py needs to import AmbiguousParentError from cfgm_common.exceptions

When we run test which results in AmbiguousParentError.. we get the following, indicating 'AmbiguousParentError' is not defined

root@csp-ucpe-bglr1:~# python struct_ss_data.py
Traceback (most recent call last):
  File "struct_ss_data.py", line 15, in <module>
    hostm = StructuredSyslogHostnameRecord(name='vsrx_app_1', structured_syslog_tenant="COKE", structured_syslog_location="CHN", structured_syslog_device="vSRX", structured_syslog_hostaddr="vsrx_app_1")
  File "/usr/lib/python2.7/dist-packages/vnc_api/gen/resource_client.py", line 376, in __init__
    super(StructuredSyslogHostnameRecord, self).__init__(name, parent_obj, structured_syslog_hostaddr, structured_syslog_tenant, structured_syslog_location, structured_syslog_device, id_perms, perms2, annotations, display_name, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/vnc_api/gen/resource_common.py", line 678, in __init__
    raise AmbiguousParentError("Ambiguous parents [u'global-analytics-config', 'project']")
NameError: global name 'AmbiguousParentError' is not defined

information type: Proprietary → Public
Jeba Paulaiyan (jebap)
tags: added: api
tags: added: config
Sachin Bansal (sbansal)
Changed in juniperopenstack:
assignee: nobody → Sahil Sabharwal (ssabharwal)
Jeba Paulaiyan (jebap)
Changed in juniperopenstack:
milestone: none → r4.0
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

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

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

Reviewed: https://review.opencontrail.org/29743
Committed: http://github.org/Juniper/contrail-generateDS/commit/31e5c1a9bc89f66f5c48ef5a0f2589d0370b3424
Submitter: Zuul (<email address hidden>)
Branch: master

commit 31e5c1a9bc89f66f5c48ef5a0f2589d0370b3424
Author: Sahil Sabharwal <email address hidden>
Date: Mon Mar 20 15:11:09 2017 -0700

Imported AmbiguousParentError

AmbiguousParentError is imported from cfgm_common.exceptions
in resource_common.py

Change-Id: I5fc4c41f384c89e39796d6da03bfcc4c9dabaa7c
Closes-Bug: 1670604

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

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

Jim Reilly (jpreilly)
tags: added: att-aic-contrail
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/42820
Committed: http://github.com/Juniper/contrail-generateDS/commit/706ac48789084ff3148c250e102842df46dae383
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit 706ac48789084ff3148c250e102842df46dae383
Author: Sahil Sabharwal <email address hidden>
Date: Mon Mar 20 15:11:09 2017 -0700

Imported AmbiguousParentError

AmbiguousParentError is imported from cfgm_common.exceptions
in resource_common.py

Change-Id: I5fc4c41f384c89e39796d6da03bfcc4c9dabaa7c
Closes-Bug: 1670604
(cherry picked from commit 31e5c1a9bc89f66f5c48ef5a0f2589d0370b3424)

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.