Minor cleanup for projects 95/1595/1
authorPhilip Joseph <philip.joseph@riftio.com>
Thu, 20 Apr 2017 12:49:08 +0000 (12:49 +0000)
committerPhilip Joseph <philip.joseph@riftio.com>
Thu, 20 Apr 2017 12:49:08 +0000 (12:49 +0000)
Change-Id: Ieb7e867b6cdef756cb438b230755e1ead52ee6c2
Signed-off-by: Philip Joseph <philip.joseph@riftio.com>
common/python/rift/mano/dts/subscriber/core.py
rwlaunchpad/plugins/rwnsm/rift/tasklets/rwnsmtasklet/rwnsmtasklet.py
rwlaunchpad/plugins/rwvnfm/rift/tasklets/rwvnfmtasklet/rwvnfmtasklet.py

index 7bf94f6..749b3bd 100644 (file)
@@ -117,8 +117,8 @@ class AbstractOpdataSubscriber(SubscriberDtsHandler):
             try:
                 xact_info.respond_xpath(rwdts.XactRspCode.ACK)
             except rift.tasklets.dts.ResponseError as e:
-                self._log.error("Reg handle is None during action {} for {}: {}".
-                                format(action, self.__class__, e))
+                self._log.warning("Reg handle is None during action {} for {}: {}".
+                                  format(action, self.__class__, e))
 
         reg_event = asyncio.Event(loop=self.loop)
 
@@ -205,7 +205,7 @@ class AbstractConfigSubscriber(SubscriberDtsHandler):
             try:
                 xact_info.respond_xpath(rwdts.XactRspCode.ACK)
             except rift.tasklets.dts.ResponseError as e:
-                self._log.error(
+                self._log.warning(
                     "Subscriber DTS prepare for project {}, action {} in class {} failed: {}".
                     format(self.project, xact_info.query_action, self.__class__, e))
 
index 907831a..d364dc2 100755 (executable)
@@ -3005,7 +3005,7 @@ class VnfdDtsHandler(object):
             try:
                 xact_info.respond_xpath(rwdts.XactRspCode.ACK)
             except rift.tasklets.dts.ResponseError as e:
-                self._log.error(
+                self._log.warning(
                     "VnfdDtsHandler in project {} with path {} for action {} failed: {}".
                     format(self._project, xpath, xact_info.query_action, e))
 
index 96ccaf8..f978cbc 100755 (executable)
@@ -2082,7 +2082,7 @@ class VnfdDtsHandler(object):
             try:
                 xact_info.respond_xpath(rwdts.XactRspCode.ACK)
             except rift.tasklets.dts.ResponseError as e:
-                self._log.error(
+                self._log.warning(
                     "VnfdDtsHandler in project {} with path {} for action {} failed: {}".
                     format(self._vnfm._project, xpath, xact_info.query_action, e))
 
@@ -2157,8 +2157,9 @@ class VnfrConsoleOperdataDtsHandler(object):
     @property
     def vnfr_vdu_console_xpath(self):
         """ path for resource-mgr"""
-        return self._project.add_project("D,/rw-vnfr:vnfr-console/rw-vnfr:vnfr[rw-vnfr:id='{}']" +
-                                         "/rw-vnfr:vdur[vnfr:id='{}']".format(self._vnfr_id,self._vdur_id))
+        return self._project.add_project(
+            "D,/rw-vnfr:vnfr-console/rw-vnfr:vnfr[rw-vnfr:id='{}']".format(self._vnfr_id) +
+            "/rw-vnfr:vdur[vnfr:id='{}']".format(self._vdur_id))
 
     def __init__(self, dts, log, loop, vnfm, vnfr_id, vdur_id, vdu_id):
         self._dts = dts