)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"28998c5b73ea4fdbc286b21136952067c5fb1387","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"One solution would be to clear out the system metadata on the detach."},{"line_number":22,"context_line":"But since one NPIV mapping exists for all the volumes, one would need to"},{"line_number":23,"context_line":"track if this is the \u0027last volume to be removed\u0027.  That is very"},{"line_number":24,"context_line":"challenging."},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"This change set instead detects on the add volume if the metadata is"},{"line_number":27,"context_line":"incorrect.  It will then rebuild the metadata accordingly and update the"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"bab6814e_4941b062","line":24,"range":{"start_line":23,"start_character":59,"end_line":24,"end_character":11},"updated":"2016-05-26 19:31:28.000000000","message":"Is it really?  Reference count in the volume driver?","commit_id":"4469f48fb4731279a28c5e57c9d4f21002ecbf51"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"5052a6c5578c0d6626c6212265a2c03fd654db8f","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"One solution would be to clear out the system metadata on the detach."},{"line_number":22,"context_line":"But since one NPIV mapping exists for all the volumes, one would need to"},{"line_number":23,"context_line":"track if this is the \u0027last volume to be removed\u0027.  That is very"},{"line_number":24,"context_line":"challenging."},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"This change set instead detects on the add volume if the metadata is"},{"line_number":27,"context_line":"incorrect.  It will then rebuild the metadata accordingly and update the"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"bab6814e_ba69788e","line":24,"range":{"start_line":23,"start_character":59,"end_line":24,"end_character":11},"in_reply_to":"bab6814e_4941b062","updated":"2016-05-26 20:15:11.000000000","message":"Yeah, cause the volume driver only knows about one BDM.  Not which BDM within the entire list.\n\nAnd there are certain ops where it won\u0027t ever know...like attach_volume.\n\nI\u0027d have to go get the BDM list from the DB which seems harsh.\n\nI like that this is self contained and doesn\u0027t expose (any more) NPIV-isms to the overall volume driver interface.","commit_id":"4469f48fb4731279a28c5e57c9d4f21002ecbf51"}],"nova_powervm/virt/powervm/volume/npiv.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"28998c5b73ea4fdbc286b21136952067c5fb1387","unresolved":false,"context_lines":[{"line_number":410,"context_line":"        # The return object needs to be a list for the volume connector."},{"line_number":411,"context_line":"        return resp_wwpns"},{"line_number":412,"context_line":""},{"line_number":413,"context_line":"    def _ensure_phys_ports_for_system(self, npiv_port_maps, vios_wraps,"},{"line_number":414,"context_line":"                                      fabric):"},{"line_number":415,"context_line":"        \"\"\"Ensures that the npiv_port_map is correct for the system."},{"line_number":416,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_e48d2932","line":413,"range":{"start_line":413,"start_character":8,"end_line":413,"end_character":37},"updated":"2016-05-26 19:31:28.000000000","message":"Where will this be called from?","commit_id":"4469f48fb4731279a28c5e57c9d4f21002ecbf51"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"5052a6c5578c0d6626c6212265a2c03fd654db8f","unresolved":false,"context_lines":[{"line_number":410,"context_line":"        # The return object needs to be a list for the volume connector."},{"line_number":411,"context_line":"        return resp_wwpns"},{"line_number":412,"context_line":""},{"line_number":413,"context_line":"    def _ensure_phys_ports_for_system(self, npiv_port_maps, vios_wraps,"},{"line_number":414,"context_line":"                                      fabric):"},{"line_number":415,"context_line":"        \"\"\"Ensures that the npiv_port_map is correct for the system."},{"line_number":416,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_7a69d0bd","line":413,"range":{"start_line":413,"start_character":8,"end_line":413,"end_character":37},"in_reply_to":"bab6814e_e48d2932","updated":"2016-05-26 20:15:11.000000000","message":"Done","commit_id":"4469f48fb4731279a28c5e57c9d4f21002ecbf51"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"28998c5b73ea4fdbc286b21136952067c5fb1387","unresolved":false,"context_lines":[{"line_number":428,"context_line":"        :return: The npiv_port_maps.  May be unchanged."},{"line_number":429,"context_line":"        \"\"\""},{"line_number":430,"context_line":"        # First pass, detect if we have correct WWPNs."},{"line_number":431,"context_line":"        bad \u003d 0"},{"line_number":432,"context_line":"        for npiv_port_map in npiv_port_maps:"},{"line_number":433,"context_line":"            vios_w \u003d pvm_vfcm.find_vios_for_port_map(vios_wraps, npiv_port_map)"},{"line_number":434,"context_line":"            if not vios_w:"},{"line_number":435,"context_line":"                bad +\u003d 1"},{"line_number":436,"context_line":""},{"line_number":437,"context_line":"        # If there were no \u0027bad\u0027 physical ports, just return the existing map"},{"line_number":438,"context_line":"        if bad \u003d\u003d 0:"},{"line_number":439,"context_line":"            return npiv_port_maps"},{"line_number":440,"context_line":""},{"line_number":441,"context_line":"        # If ANY of the VIOS ports were not there, rebuild the port maps"},{"line_number":442,"context_line":"        v_wwpns \u003d []"}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_445515c0","line":439,"range":{"start_line":431,"start_character":0,"end_line":439,"end_character":33},"updated":"2016-05-26 19:31:28.000000000","message":"Or more tersely:\n\n if any(pvm_vfcm.find_vios_for_port_map(vios_wraps, pm) for pm in npiv_port_maps):\n     return npiv_port_maps","commit_id":"4469f48fb4731279a28c5e57c9d4f21002ecbf51"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"5052a6c5578c0d6626c6212265a2c03fd654db8f","unresolved":false,"context_lines":[{"line_number":428,"context_line":"        :return: The npiv_port_maps.  May be unchanged."},{"line_number":429,"context_line":"        \"\"\""},{"line_number":430,"context_line":"        # First pass, detect if we have correct WWPNs."},{"line_number":431,"context_line":"        bad \u003d 0"},{"line_number":432,"context_line":"        for npiv_port_map in npiv_port_maps:"},{"line_number":433,"context_line":"            vios_w \u003d pvm_vfcm.find_vios_for_port_map(vios_wraps, npiv_port_map)"},{"line_number":434,"context_line":"            if not vios_w:"},{"line_number":435,"context_line":"                bad +\u003d 1"},{"line_number":436,"context_line":""},{"line_number":437,"context_line":"        # If there were no \u0027bad\u0027 physical ports, just return the existing map"},{"line_number":438,"context_line":"        if bad \u003d\u003d 0:"},{"line_number":439,"context_line":"            return npiv_port_maps"},{"line_number":440,"context_line":""},{"line_number":441,"context_line":"        # If ANY of the VIOS ports were not there, rebuild the port maps"},{"line_number":442,"context_line":"        v_wwpns \u003d []"}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_3aa2a8fc","line":439,"range":{"start_line":431,"start_character":0,"end_line":439,"end_character":33},"in_reply_to":"bab6814e_445515c0","updated":"2016-05-26 20:15:11.000000000","message":"Done","commit_id":"4469f48fb4731279a28c5e57c9d4f21002ecbf51"},{"author":{"_account_id":12802,"name":"Carl Pecinovsky","email":"csky@us.ibm.com","username":"carl-sky"},"change_message_id":"e7b2d431388c2a80db81ed539600a98e19264051","unresolved":false,"context_lines":[{"line_number":446,"context_line":"            vios_wraps, self._fabric_ports(fabric), v_wwpns)"},{"line_number":447,"context_line":"        self._set_fabric_meta(fabric, npiv_port_maps)"},{"line_number":448,"context_line":"        LOG.warning(_LW(\"Had to update the system metadata for the WWPNs on \""},{"line_number":449,"context_line":"                        \"instance %(inst)s due to improper physical WWPNs on \""},{"line_number":450,"context_line":"                        \"fabric %(fabric)s\"),"},{"line_number":451,"context_line":"                    {\u0027inst\u0027: self.instance.name, \u0027fabric\u0027: fabric})"},{"line_number":452,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_bf316aef","line":449,"updated":"2016-05-26 19:45:59.000000000","message":"\"improper or old\" ?","commit_id":"4469f48fb4731279a28c5e57c9d4f21002ecbf51"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"5052a6c5578c0d6626c6212265a2c03fd654db8f","unresolved":false,"context_lines":[{"line_number":446,"context_line":"            vios_wraps, self._fabric_ports(fabric), v_wwpns)"},{"line_number":447,"context_line":"        self._set_fabric_meta(fabric, npiv_port_maps)"},{"line_number":448,"context_line":"        LOG.warning(_LW(\"Had to update the system metadata for the WWPNs on \""},{"line_number":449,"context_line":"                        \"instance %(inst)s due to improper physical WWPNs on \""},{"line_number":450,"context_line":"                        \"fabric %(fabric)s\"),"},{"line_number":451,"context_line":"                    {\u0027inst\u0027: self.instance.name, \u0027fabric\u0027: fabric})"},{"line_number":452,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_5aadece7","line":449,"in_reply_to":"bab6814e_1a2244a3","updated":"2016-05-26 20:15:11.000000000","message":"I just made it \u0027incorrect\u0027.","commit_id":"4469f48fb4731279a28c5e57c9d4f21002ecbf51"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4e00bda30f066963d8c5f6342dbe01d7f927aaa8","unresolved":false,"context_lines":[{"line_number":446,"context_line":"            vios_wraps, self._fabric_ports(fabric), v_wwpns)"},{"line_number":447,"context_line":"        self._set_fabric_meta(fabric, npiv_port_maps)"},{"line_number":448,"context_line":"        LOG.warning(_LW(\"Had to update the system metadata for the WWPNs on \""},{"line_number":449,"context_line":"                        \"instance %(inst)s due to improper physical WWPNs on \""},{"line_number":450,"context_line":"                        \"fabric %(fabric)s\"),"},{"line_number":451,"context_line":"                    {\u0027inst\u0027: self.instance.name, \u0027fabric\u0027: fabric})"},{"line_number":452,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_1a2244a3","line":449,"in_reply_to":"bab6814e_bf316aef","updated":"2016-05-26 20:08:29.000000000","message":"Or at the risk of overloading the term, \"stale\"","commit_id":"4469f48fb4731279a28c5e57c9d4f21002ecbf51"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"28998c5b73ea4fdbc286b21136952067c5fb1387","unresolved":false,"context_lines":[{"line_number":451,"context_line":"                    {\u0027inst\u0027: self.instance.name, \u0027fabric\u0027: fabric})"},{"line_number":452,"context_line":""},{"line_number":453,"context_line":"        # Reverse the vioses, in case other fabrics are bad."},{"line_number":454,"context_line":"        vios_wraps.reverse()"},{"line_number":455,"context_line":""},{"line_number":456,"context_line":"        return npiv_port_maps"},{"line_number":457,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_a4c20151","line":454,"range":{"start_line":454,"start_character":8,"end_line":454,"end_character":28},"updated":"2016-05-26 19:31:28.000000000","message":"This doesn\u0027t make sense without context.  Assuming it\u0027s really needed, it should go in the calling code.","commit_id":"4469f48fb4731279a28c5e57c9d4f21002ecbf51"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"5052a6c5578c0d6626c6212265a2c03fd654db8f","unresolved":false,"context_lines":[{"line_number":451,"context_line":"                    {\u0027inst\u0027: self.instance.name, \u0027fabric\u0027: fabric})"},{"line_number":452,"context_line":""},{"line_number":453,"context_line":"        # Reverse the vioses, in case other fabrics are bad."},{"line_number":454,"context_line":"        vios_wraps.reverse()"},{"line_number":455,"context_line":""},{"line_number":456,"context_line":"        return npiv_port_maps"},{"line_number":457,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_9ae1142d","line":454,"range":{"start_line":454,"start_character":8,"end_line":454,"end_character":28},"in_reply_to":"bab6814e_a4c20151","updated":"2016-05-26 20:15:11.000000000","message":"Done","commit_id":"4469f48fb4731279a28c5e57c9d4f21002ecbf51"},{"author":{"_account_id":12802,"name":"Carl Pecinovsky","email":"csky@us.ibm.com","username":"carl-sky"},"change_message_id":"e7b2d431388c2a80db81ed539600a98e19264051","unresolved":false,"context_lines":[{"line_number":464,"context_line":"        :param vios_wraps: The pypowervm VIOS wrappers."},{"line_number":465,"context_line":"        \"\"\""},{"line_number":466,"context_line":"        npiv_port_maps \u003d self._get_fabric_meta(fabric)"},{"line_number":467,"context_line":"        volume_id \u003d self.connection_info[\u0027data\u0027][\u0027volume_id\u0027]"},{"line_number":468,"context_line":""},{"line_number":469,"context_line":"        # This loop adds the maps from the appropriate VIOS to the client VM"},{"line_number":470,"context_line":"        slot_ids \u003d copy.deepcopy(slot_mgr.build_map.get_vfc_slots("}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_df79ce94","line":467,"updated":"2016-05-26 19:45:59.000000000","message":"I\u0027m guessing the call to ensure the physical ports would be around here?","commit_id":"4469f48fb4731279a28c5e57c9d4f21002ecbf51"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"5052a6c5578c0d6626c6212265a2c03fd654db8f","unresolved":false,"context_lines":[{"line_number":464,"context_line":"        :param vios_wraps: The pypowervm VIOS wrappers."},{"line_number":465,"context_line":"        \"\"\""},{"line_number":466,"context_line":"        npiv_port_maps \u003d self._get_fabric_meta(fabric)"},{"line_number":467,"context_line":"        volume_id \u003d self.connection_info[\u0027data\u0027][\u0027volume_id\u0027]"},{"line_number":468,"context_line":""},{"line_number":469,"context_line":"        # This loop adds the maps from the appropriate VIOS to the client VM"},{"line_number":470,"context_line":"        slot_ids \u003d copy.deepcopy(slot_mgr.build_map.get_vfc_slots("}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_fad02055","line":467,"in_reply_to":"bab6814e_df79ce94","updated":"2016-05-26 20:15:11.000000000","message":"Done","commit_id":"4469f48fb4731279a28c5e57c9d4f21002ecbf51"},{"author":{"_account_id":12802,"name":"Carl Pecinovsky","email":"csky@us.ibm.com","username":"carl-sky"},"change_message_id":"33322b7530505a541056b6aa7a442ab65d3072e2","unresolved":false,"context_lines":[{"line_number":434,"context_line":"        :return: The npiv_port_maps.  May be unchanged."},{"line_number":435,"context_line":"        \"\"\""},{"line_number":436,"context_line":"        # If there were no \u0027bad\u0027 physical ports, just return the existing map"},{"line_number":437,"context_line":"        if any(pvm_vfcm.find_vios_for_port_map(vios_wraps, pm)"},{"line_number":438,"context_line":"               for pm in npiv_port_maps):"},{"line_number":439,"context_line":"            return npiv_port_maps"},{"line_number":440,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"9abb7d3a_d2b862e8","line":437,"updated":"2016-05-27 05:05:53.000000000","message":"Perhaps this to satisfy the comment semantic?:\n\n        if all(pvm_vfcm.find_vios_for_wwpn(vios_wraps, pm[0])[0]\n               for pm in npiv_port_maps):\n\nBecause find_vios_for_port_map first tries to find the vios based on v_wwpns rather than physical.","commit_id":"bdb19535fc68a34edff62fc4f823370ffb8d6ab2"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b5e04e9df14604e0f57a32b844c9e9887039b6fa","unresolved":false,"context_lines":[{"line_number":434,"context_line":"        :return: The npiv_port_maps.  May be unchanged."},{"line_number":435,"context_line":"        \"\"\""},{"line_number":436,"context_line":"        # If there were no \u0027bad\u0027 physical ports, just return the existing map"},{"line_number":437,"context_line":"        if any(pvm_vfcm.find_vios_for_port_map(vios_wraps, pm)"},{"line_number":438,"context_line":"               for pm in npiv_port_maps):"},{"line_number":439,"context_line":"            return npiv_port_maps"},{"line_number":440,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"9abb7d3a_b5c81676","line":437,"in_reply_to":"9abb7d3a_d2b862e8","updated":"2016-05-27 13:20:32.000000000","message":"The find_vios_for_wwpn should only return one element.  The port map should be like we have defined...\n\nI think I do need to change from any to all, but the pm[0] bit I don\u0027t think is needed.","commit_id":"bdb19535fc68a34edff62fc4f823370ffb8d6ab2"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"a08c8574ca3aab4559905af0165cfb9bbcb4bf2d","unresolved":false,"context_lines":[{"line_number":434,"context_line":"        :return: The npiv_port_maps.  May be unchanged."},{"line_number":435,"context_line":"        \"\"\""},{"line_number":436,"context_line":"        # If there were no \u0027bad\u0027 physical ports, just return the existing map"},{"line_number":437,"context_line":"        if all(pvm_vfcm.find_vios_for_port_map(vios_wraps, pm)"},{"line_number":438,"context_line":"               for pm in npiv_port_maps):"},{"line_number":439,"context_line":"            return npiv_port_maps"},{"line_number":440,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9abb7d3a_f0b90cee","line":437,"updated":"2016-05-27 13:33:26.000000000","message":"Yup, mahbad.","commit_id":"c0950cc13a51f1cbcdd587298fa6e7c51c091d92"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"8199140f367d689e6bc3e291ae2fca1099861d20","unresolved":false,"context_lines":[{"line_number":434,"context_line":"        :return: The npiv_port_maps.  May be unchanged."},{"line_number":435,"context_line":"        \"\"\""},{"line_number":436,"context_line":"        # If there were no \u0027bad\u0027 physical ports, just return the existing map"},{"line_number":437,"context_line":"        if all(pvm_vfcm.find_vios_for_port_map(vios_wraps, pm)"},{"line_number":438,"context_line":"               for pm in npiv_port_maps):"},{"line_number":439,"context_line":"            return npiv_port_maps"},{"line_number":440,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9abb7d3a_dff967ca","line":437,"in_reply_to":"9abb7d3a_235eabe9","updated":"2016-05-27 18:23:55.000000000","message":"I don\u0027t actually think its the right approach.\n\nThe problem occurred because we had a vFC map on the VM.  But by the time we live migrated it, there were no more volumes running through that vFC map.\n\nUltimately that means that the command that builds the live migration \u0027port map\u0027 override is never called...because there are no BDMs.\n\nThe system is OK with this actually.  It just lands on the target without a physical port at all.\n\nIn my next patch set, I handle this.  I think the easiest approach here is just to scrub those port maps right before an attach.","commit_id":"c0950cc13a51f1cbcdd587298fa6e7c51c091d92"},{"author":{"_account_id":12802,"name":"Carl Pecinovsky","email":"csky@us.ibm.com","username":"carl-sky"},"change_message_id":"5fdc20be2457b176be82b6f8eb57c4058b7d24de","unresolved":false,"context_lines":[{"line_number":434,"context_line":"        :return: The npiv_port_maps.  May be unchanged."},{"line_number":435,"context_line":"        \"\"\""},{"line_number":436,"context_line":"        # If there were no \u0027bad\u0027 physical ports, just return the existing map"},{"line_number":437,"context_line":"        if all(pvm_vfcm.find_vios_for_port_map(vios_wraps, pm)"},{"line_number":438,"context_line":"               for pm in npiv_port_maps):"},{"line_number":439,"context_line":"            return npiv_port_maps"},{"line_number":440,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9abb7d3a_235eabe9","line":437,"in_reply_to":"9abb7d3a_f0b90cee","updated":"2016-05-27 15:13:37.000000000","message":"My earlier comment was to use find_vios_for_wwpn(vios_wraps, port_map[0]) instead of the method being called here. Not sure if that is the right approach. But the reason why this does not work is that find_vios_for_port_map() call this first: find_vios_for_vfc_wwpns(). And that succeeds. The virtual wwpns() are still there.","commit_id":"c0950cc13a51f1cbcdd587298fa6e7c51c091d92"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"0dfd8ea84408a5eb55386788106a977a04c3c967","unresolved":false,"context_lines":[{"line_number":447,"context_line":"        for port_map in npiv_port_maps:"},{"line_number":448,"context_line":"            v_wwpns.extend(port_map[1].split())"},{"line_number":449,"context_line":"        self._set_fabric_state(fabric, FS_UNMAPPED)"},{"line_number":450,"context_line":"        new_fab_ports \u003d self._fabric_ports(fabric)"},{"line_number":451,"context_line":"        # Derive new maps and don\u0027t preserve existing maps"},{"line_number":452,"context_line":"        npiv_port_maps \u003d pvm_vfcm.derive_npiv_map("},{"line_number":453,"context_line":"            vios_wraps, new_fab_ports, v_wwpns, preserve\u003dFalse)"}],"source_content_type":"text/x-python","patch_set":6,"id":"1aa78d24_17950e32","line":450,"updated":"2016-07-12 13:43:32.000000000","message":"Can you add a new line before comments?","commit_id":"89e7a88cda5a2d2a41f8bf26580a48934c22e8c5"},{"author":{"_account_id":12802,"name":"Carl Pecinovsky","email":"csky@us.ibm.com","username":"carl-sky"},"change_message_id":"d609e278f6007e26825e9284cd799df52db0aff3","unresolved":false,"context_lines":[{"line_number":447,"context_line":"        for port_map in npiv_port_maps:"},{"line_number":448,"context_line":"            v_wwpns.extend(port_map[1].split())"},{"line_number":449,"context_line":"        self._set_fabric_state(fabric, FS_UNMAPPED)"},{"line_number":450,"context_line":"        new_fab_ports \u003d self._fabric_ports(fabric)"},{"line_number":451,"context_line":"        # Derive new maps and don\u0027t preserve existing maps"},{"line_number":452,"context_line":"        npiv_port_maps \u003d pvm_vfcm.derive_npiv_map("},{"line_number":453,"context_line":"            vios_wraps, new_fab_ports, v_wwpns, preserve\u003dFalse)"}],"source_content_type":"text/x-python","patch_set":6,"id":"1aa78d24_1d2d2846","line":450,"in_reply_to":"1aa78d24_17950e32","updated":"2016-07-12 15:35:52.000000000","message":"Done","commit_id":"89e7a88cda5a2d2a41f8bf26580a48934c22e8c5"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"0dfd8ea84408a5eb55386788106a977a04c3c967","unresolved":false,"context_lines":[{"line_number":450,"context_line":"        new_fab_ports \u003d self._fabric_ports(fabric)"},{"line_number":451,"context_line":"        # Derive new maps and don\u0027t preserve existing maps"},{"line_number":452,"context_line":"        npiv_port_maps \u003d pvm_vfcm.derive_npiv_map("},{"line_number":453,"context_line":"            vios_wraps, new_fab_ports, v_wwpns, preserve\u003dFalse)"},{"line_number":454,"context_line":"        LOG.debug(\"Rebuilt port maps: %s\" % npiv_port_maps)"},{"line_number":455,"context_line":"        self._set_fabric_meta(fabric, npiv_port_maps)"},{"line_number":456,"context_line":"        LOG.warning(_LW(\"Had to update the system metadata for the WWPNs on \""}],"source_content_type":"text/x-python","patch_set":6,"id":"1aa78d24_f7aa0270","line":453,"range":{"start_line":453,"start_character":24,"end_line":453,"end_character":37},"updated":"2016-07-12 13:43:32.000000000","message":"Could probably just make this self._fabric_port(fabric)","commit_id":"89e7a88cda5a2d2a41f8bf26580a48934c22e8c5"},{"author":{"_account_id":12802,"name":"Carl Pecinovsky","email":"csky@us.ibm.com","username":"carl-sky"},"change_message_id":"d609e278f6007e26825e9284cd799df52db0aff3","unresolved":false,"context_lines":[{"line_number":450,"context_line":"        new_fab_ports \u003d self._fabric_ports(fabric)"},{"line_number":451,"context_line":"        # Derive new maps and don\u0027t preserve existing maps"},{"line_number":452,"context_line":"        npiv_port_maps \u003d pvm_vfcm.derive_npiv_map("},{"line_number":453,"context_line":"            vios_wraps, new_fab_ports, v_wwpns, preserve\u003dFalse)"},{"line_number":454,"context_line":"        LOG.debug(\"Rebuilt port maps: %s\" % npiv_port_maps)"},{"line_number":455,"context_line":"        self._set_fabric_meta(fabric, npiv_port_maps)"},{"line_number":456,"context_line":"        LOG.warning(_LW(\"Had to update the system metadata for the WWPNs on \""}],"source_content_type":"text/x-python","patch_set":6,"id":"1aa78d24_7df70cd3","line":453,"range":{"start_line":453,"start_character":24,"end_line":453,"end_character":37},"in_reply_to":"1aa78d24_f7aa0270","updated":"2016-07-12 15:35:52.000000000","message":"Done","commit_id":"89e7a88cda5a2d2a41f8bf26580a48934c22e8c5"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"0dfd8ea84408a5eb55386788106a977a04c3c967","unresolved":false,"context_lines":[{"line_number":456,"context_line":"        LOG.warning(_LW(\"Had to update the system metadata for the WWPNs on \""},{"line_number":457,"context_line":"                        \"instance %(inst)s due to incorrect physical WWPNs on \""},{"line_number":458,"context_line":"                        \"fabric %(fabric)s\"),"},{"line_number":459,"context_line":"                    {\u0027inst\u0027: self.instance.name, \u0027fabric\u0027: fabric})"},{"line_number":460,"context_line":""},{"line_number":461,"context_line":"        return npiv_port_maps"},{"line_number":462,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1aa78d24_37a2caae","line":459,"updated":"2016-07-12 13:43:32.000000000","message":"I think you can do an instance\u003dself.instance, which leads to a better message.","commit_id":"89e7a88cda5a2d2a41f8bf26580a48934c22e8c5"},{"author":{"_account_id":12802,"name":"Carl Pecinovsky","email":"csky@us.ibm.com","username":"carl-sky"},"change_message_id":"d609e278f6007e26825e9284cd799df52db0aff3","unresolved":false,"context_lines":[{"line_number":456,"context_line":"        LOG.warning(_LW(\"Had to update the system metadata for the WWPNs on \""},{"line_number":457,"context_line":"                        \"instance %(inst)s due to incorrect physical WWPNs on \""},{"line_number":458,"context_line":"                        \"fabric %(fabric)s\"),"},{"line_number":459,"context_line":"                    {\u0027inst\u0027: self.instance.name, \u0027fabric\u0027: fabric})"},{"line_number":460,"context_line":""},{"line_number":461,"context_line":"        return npiv_port_maps"},{"line_number":462,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1aa78d24_9dfab8bb","line":459,"in_reply_to":"1aa78d24_37a2caae","updated":"2016-07-12 15:35:52.000000000","message":"Done","commit_id":"89e7a88cda5a2d2a41f8bf26580a48934c22e8c5"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"0dfd8ea84408a5eb55386788106a977a04c3c967","unresolved":false,"context_lines":[{"line_number":460,"context_line":""},{"line_number":461,"context_line":"        return npiv_port_maps"},{"line_number":462,"context_line":""},{"line_number":463,"context_line":"    def _add_maps_for_fabric(self, fabric, slot_mgr, vios_wraps):"},{"line_number":464,"context_line":"        \"\"\"Adds the vFC storage mappings to the VM for a given fabric."},{"line_number":465,"context_line":""},{"line_number":466,"context_line":"        :param fabric: The fabric to add the mappings to."}],"source_content_type":"text/x-python","patch_set":6,"id":"1aa78d24_37bbeae6","line":463,"range":{"start_line":463,"start_character":53,"end_line":463,"end_character":63},"updated":"2016-07-12 13:43:32.000000000","message":"This isn\u0027t needed?  You get this at line 471 already.","commit_id":"89e7a88cda5a2d2a41f8bf26580a48934c22e8c5"},{"author":{"_account_id":12802,"name":"Carl Pecinovsky","email":"csky@us.ibm.com","username":"carl-sky"},"change_message_id":"d609e278f6007e26825e9284cd799df52db0aff3","unresolved":false,"context_lines":[{"line_number":460,"context_line":""},{"line_number":461,"context_line":"        return npiv_port_maps"},{"line_number":462,"context_line":""},{"line_number":463,"context_line":"    def _add_maps_for_fabric(self, fabric, slot_mgr, vios_wraps):"},{"line_number":464,"context_line":"        \"\"\"Adds the vFC storage mappings to the VM for a given fabric."},{"line_number":465,"context_line":""},{"line_number":466,"context_line":"        :param fabric: The fabric to add the mappings to."}],"source_content_type":"text/x-python","patch_set":6,"id":"1aa78d24_1d06c8cd","line":463,"range":{"start_line":463,"start_character":53,"end_line":463,"end_character":63},"in_reply_to":"1aa78d24_37bbeae6","updated":"2016-07-12 15:35:52.000000000","message":"whoops, bad carry-over. Fixed","commit_id":"89e7a88cda5a2d2a41f8bf26580a48934c22e8c5"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"e74c646136daa2e7842d32673e2e34dec02cd370","unresolved":false,"context_lines":[{"line_number":446,"context_line":"            vios_wraps, self._fabric_ports(fabric), v_wwpns, preserve\u003dFalse)"},{"line_number":447,"context_line":"        LOG.debug(\"Rebuilt port maps: %s\" % npiv_port_maps)"},{"line_number":448,"context_line":"        self._set_fabric_meta(fabric, npiv_port_maps)"},{"line_number":449,"context_line":"        LOG.warning(_LW(\"Had to update the system metadata for the WWPNs on \""},{"line_number":450,"context_line":"                        \"instance\u003d%(inst)s due to incorrect physical WWPNs on \""},{"line_number":451,"context_line":"                        \"fabric %(fabric)s\"),"},{"line_number":452,"context_line":"                    {\u0027inst\u0027: self.instance, \u0027fabric\u0027: fabric})"},{"line_number":453,"context_line":""},{"line_number":454,"context_line":"        return npiv_port_maps"},{"line_number":455,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"1aa78d24_2f1078ff","line":452,"range":{"start_line":449,"start_character":0,"end_line":452,"end_character":62},"updated":"2016-07-13 12:51:22.000000000","message":"Sorry...I should have been more clear:\n\n        LOG.warning(_LW(\"Had to update the system metadata for the WWPNs \"\n                        \"due to incorrect physical WWPNs on fabric %(fabric)s\"),\n                    {\u0027fabric\u0027: fabric}, instance\u003dself.instance)","commit_id":"c702d3b7dd642d69345b1b2e4d79dba392b4b0e6"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"e74c646136daa2e7842d32673e2e34dec02cd370","unresolved":false,"context_lines":[{"line_number":459,"context_line":"        :param fabric: The fabric to add the mappings to."},{"line_number":460,"context_line":"        :param slot_mgr: A NovaSlotManager.  Used to store/retrieve the client"},{"line_number":461,"context_line":"                         slots used when a volume is attached to the VM"},{"line_number":462,"context_line":"        :param vios_wraps: The pypowervm VIOS wrappers."},{"line_number":463,"context_line":"        \"\"\""},{"line_number":464,"context_line":"        vios_wraps \u003d self.stg_ftsk.feed"},{"line_number":465,"context_line":"        # Ensure the physical ports in the metadata are not for a different"}],"source_content_type":"text/x-python","patch_set":7,"id":"1aa78d24_2f27d863","line":462,"range":{"start_line":462,"start_character":8,"end_line":462,"end_character":55},"updated":"2016-07-13 12:51:22.000000000","message":"This needs to be deleted.","commit_id":"c702d3b7dd642d69345b1b2e4d79dba392b4b0e6"}]}
