aboutsummaryrefslogtreecommitdiffstats
path: root/sfc/lib
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2018-10-26 17:00:41 +0200
committerManuel Buil <mbuil@suse.com>2018-10-26 17:17:11 +0200
commitfe7d96a708927b299ddb939f854b09b3452c5304 (patch)
tree7edbf2542da085571fb18631c4942bb1cb66cde5 /sfc/lib
parent471a2422aa270ebcee562ee7389adffa868f872f (diff)
Add a bit more data to the logging message
In case of failures, it is hard to understand for what vnf the port pair was being created when things went wrong Change-Id: I1cfa2553318d910535d45910b2a46d75b2f7926a Signed-off-by: Manuel Buil <mbuil@suse.com>
Diffstat (limited to 'sfc/lib')
-rw-r--r--sfc/lib/openstack_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfc/lib/openstack_utils.py b/sfc/lib/openstack_utils.py
index dbb217d6..7915e77d 100644
--- a/sfc/lib/openstack_utils.py
+++ b/sfc/lib/openstack_utils.py
@@ -293,7 +293,7 @@ class OpenStackSFC:
'''
Creates a networking-sfc port pair and group
'''
- logger.info("Creating the port pairs...")
+ logger.info("Creating the port pairs for %s" % vm_instance.name)
port_pair = dict()
port_pair['name'] = vm_instance.name + '-connection-points'
port_pair['description'] = 'port pair for ' + vm_instance.name
@@ -316,7 +316,7 @@ class OpenStackSFC:
{'vnf': vm_instance.name})
return None
- logger.info("Creating the port pair groups...")
+ logger.info("Creating the port pair groups for %s" % vm_instance.name)
port_pair_group = {}
port_pair_group['name'] = vm_instance.name + '-port-pair-group'
port_pair_group['description'] = \