From 562990a0fab03594715c68a5eaa3374f79c98492 Mon Sep 17 00:00:00 2001 From: dwarcher Date: Wed, 15 Apr 2015 13:14:05 -0700 Subject: [PATCH] Add xags=STORAGE to physical wwpn query Because of recent pypowervm changes to default group = None the vios.py method get_physical_wwpns must be updated to provide xags=STORAGE. Change-Id: I37bdc14b57536eeedb606b5b4fe6c1051ee5a888 --- nova_powervm/virt/powervm/vios.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nova_powervm/virt/powervm/vios.py b/nova_powervm/virt/powervm/vios.py index 71feba1a..d6172a2e 100644 --- a/nova_powervm/virt/powervm/vios.py +++ b/nova_powervm/virt/powervm/vios.py @@ -47,7 +47,8 @@ def get_vios_name_map(adapter, host_uuid): def get_physical_wwpns(adapter, ms_uuid): """Returns the WWPNs of the FC adapters across all VIOSes on system.""" resp = adapter.read(pvm_ms.System.schema_type, root_id=ms_uuid, - child_type=pvm_vios.VIOS.schema_type) + child_type=pvm_vios.VIOS.schema_type, + xag=[pvm_vios.VIOS.xags.STORAGE]) vios_feed = pvm_vios.VIOS.wrap(resp) wwpn_list = [] for vios in vios_feed: