From 6fcd918b8a2b5d76b21543dc58c9857019dd7b83 Mon Sep 17 00:00:00 2001 From: Drew Thorstensen Date: Mon, 12 Oct 2015 15:32:08 -0400 Subject: [PATCH] Increase logging in NPIV port mappings The NPIV port mapping code can be tricky to debug. This change provides a small, but significant logging change that enables easier debug. This may help with concurrency issues that may arise when deploying many Cinder volumes at once. Change-Id: I7d80848266bf83f1febfc3089e6e1e057df1ffa5 --- nova_powervm/virt/powervm/volume/npiv.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nova_powervm/virt/powervm/volume/npiv.py b/nova_powervm/virt/powervm/volume/npiv.py index 06d334e9..211e35d0 100644 --- a/nova_powervm/virt/powervm/volume/npiv.py +++ b/nova_powervm/virt/powervm/volume/npiv.py @@ -555,6 +555,11 @@ class NPIVVolumeAdapter(v_driver.FibreChannelVolumeAdapter): meta_elems.append(p_wwpn) meta_elems.extend(v_wwpn.split()) + LOG.info(_LI("Fabric %(fabric)s wwpn metadata will be set to " + "%(meta)s for instance %(inst)s"), + {'fabric': fabric, 'meta': ",".join(meta_elems), + 'inst': self.instance.name}) + fabric_id_iter = 1 meta_key = self._sys_meta_fabric_key(fabric) key_len = len(meta_key)