)]}'
{"nova_powervm/tests/virt/powervm/volume/test_iscsi.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"73f269ada8bd1ae331117e8627ad3619da591979","unresolved":false,"context_lines":[{"line_number":56,"context_line":""},{"line_number":57,"context_line":"            con_info \u003d {"},{"line_number":58,"context_line":"                \u0027serial\u0027: \u0027f042c68a-c5a5-476a-ba34-2f6d43f4226c\u0027,"},{"line_number":59,"context_line":"                \u0027driver_volume_type\u0027: \u0027vol_type\u0027,"},{"line_number":60,"context_line":"                \u0027data\u0027: {"},{"line_number":61,"context_line":"                    \u0027target_iqn\u0027: \u0027iqn.2016-08.bar.foo:target\u0027,"},{"line_number":62,"context_line":"                    \u0027target_lun\u0027: \u00271\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a1ced50_42511762","line":59,"updated":"2017-03-16 20:45:13.000000000","message":"Somewhere in this file, there needs to be an assertion that discover_iscsi was called with transport_type\u003d\u0027vol_type\u0027.\n\nIf there\u0027s not already an assertion somewhere on how discover_iscsi was called (and there must not be, since tests are still passing), that\u0027s a miss that needs to be rectified.","commit_id":"e69bde47bf652aec5af6e3e64a2ae1a7c03ace10"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"14328b14cc0f5a59071358d6ecedf04c91295737","unresolved":false,"context_lines":[{"line_number":50,"context_line":"        @mock.patch(\u0027pypowervm.wrappers.virtual_io_server.VIOS.getter\u0027)"},{"line_number":51,"context_line":"        @mock.patch(\u0027nova_powervm.virt.powervm.vm.get_pvm_uuid\u0027)"},{"line_number":52,"context_line":"        @mock.patch(\u0027pypowervm.tasks.partition.get_mgmt_partition\u0027)"},{"line_number":53,"context_line":"        @mock.patch(\u0027pypowervm.tasks.hdisk.discover_iscsi_initiator\u0027)"},{"line_number":54,"context_line":"        def init_vol_adpt(mock_initiator, mock_mgmt_part, mock_pvm_uuid,"},{"line_number":55,"context_line":"                          mock_getter):"},{"line_number":56,"context_line":"            self.trans_type \u003d \u0027iscsi\u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a1ced50_260a4fd3","line":53,"range":{"start_line":53,"start_character":0,"end_line":53,"end_character":69},"updated":"2017-03-17 15:52:16.000000000","message":"Okay, so I was about to +2 this when I started thinking, \"Wait, why is this passing Jenkins if the REST \u0026 pypowervm changes aren\u0027t in yet?\"  The answer, of course, is that you\u0027re mocking the changed method, so you could really be testing any durn thing on it and it would work.  (I still expect CI to fail here, though.)\n\nIn the past, we would have shrugged, said it was fine, and moved on.  But a recent review comment from mriedem (https://review.openstack.org/#/c/438119/5/nova/tests/unit/virt/powervm/test_host.py@33) made me realize there\u0027s a better answer.  So moving forward, I\u0027m going to insist that we autospec stuff coming from pypowervm for exactly this reason.\n\nIn short, the action needed here is to add autospec\u003dTrue to all three of the pypowervm @mock.patch decorators.\n\nIn your local sandbox, you should be able to make tox *fail* by having the develop branch of pypowervm in your virtualenv (.tox/pyXX/src/pypowervm), and *pass* by having change set 4985 downloaded in same.\n\nOnce you post it to gerrit, it should fail jenkins and CI until 4985 merges.  Then we recheck and it should pass.","commit_id":"76fabfca0d616a1cfde6c969afccb6437c4e2c89"}],"nova_powervm/virt/powervm/volume/iscsi.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"73f269ada8bd1ae331117e8627ad3619da591979","unresolved":false,"context_lines":[{"line_number":99,"context_line":"        user \u003d self.connection_info[\"data\"][\"auth_username\"]"},{"line_number":100,"context_line":"        target_name \u003d \"ISCSI-\" + iqn.split(\":\")[1]"},{"line_number":101,"context_line":"        device_name, udid \u003d hdisk.discover_iscsi("},{"line_number":102,"context_line":"            self.adapter, host_ip, user, password, iqn, vios_w.uuid, vol_type)"},{"line_number":103,"context_line":"        slot, lua \u003d slot_mgr.build_map.get_vscsi_slot(vios_w, device_name)"},{"line_number":104,"context_line":"        if device_name is not None and udid is not None:"},{"line_number":105,"context_line":"            device_name \u003d \u0027/dev/\u0027 + device_name"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a1ced50_02d63fc5","line":102,"range":{"start_line":102,"start_character":69,"end_line":102,"end_character":77},"updated":"2017-03-16 20:45:13.000000000","message":"kwargs need to be named.","commit_id":"e69bde47bf652aec5af6e3e64a2ae1a7c03ace10"}]}
