)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"f21cb8876a0ba89c701ff3fa9351f22cc37ee03e","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Use correct iscsi portal port in continue_deploy"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"We should set it to override value if it is present, and if not, use"},{"line_number":10,"context_line":"CONF.iscsi.portal_port value."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Closes-Bug: #1585731"},{"line_number":13,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"bab6814e_59188275","line":10,"range":{"start_line":9,"start_character":57,"end_line":10,"end_character":28},"updated":"2016-05-26 09:00:28.000000000","message":"Sorry, I don\u0027t think we should go through this type of approach.\n\nThe [iscsi]porta_port configuration option already defaults 3260, if the operator set another value for it, it makes me believe that he/she expect _that_ port number to be used. The operator may already had configure things like firewall and so on to actually deal with that new port number, and we are trying to change it under the hood. I think it\u0027s bad form.\n\nI understand it\u0027s unfortunate that new ironic can\u0027t work with old ramdisks at the moment. But, I suspect that as an operator, I would rather prefer Ironic failing and telling me that customizing the port number is not possible with old ramdisks than doing things I didn\u0027t told/configured it to do. Especially when I\u0027ve been explicit about which port number I want it to use.","commit_id":"57f94cfe452da5211e2c22116332d838bd6a324a"}],"ironic/drivers/modules/agent_client.py":[{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"1cf201b4f4d7db9724325cbe9bd593d980a7550c","unresolved":false,"context_lines":[{"line_number":170,"context_line":"            if result[\u0027command_status\u0027] !\u003d \u0027FAILED\u0027:"},{"line_number":171,"context_line":"                # Update node portal port to be used during deployment"},{"line_number":172,"context_line":"                d_int_info \u003d node.driver_internal_info"},{"line_number":173,"context_line":"                d_int_info[\u0027iscsi_portal_port_override\u0027] \u003d DEFAULT_PORTAL_PORT"},{"line_number":174,"context_line":"                node.driver_internal_info \u003d d_int_info"},{"line_number":175,"context_line":"                node.save()"},{"line_number":176,"context_line":"        return result"}],"source_content_type":"text/x-python","patch_set":2,"id":"bab6814e_7b90e843","line":173,"range":{"start_line":173,"start_character":59,"end_line":173,"end_character":78},"updated":"2016-05-26 02:54:32.000000000","message":"The name confused me, this value is because old ramdisk didn\u0027t accept a override port value from [iscsi]/portal_port, so keep use the default port value.","commit_id":"57f94cfe452da5211e2c22116332d838bd6a324a"}],"ironic/drivers/modules/iscsi_deploy.py":[{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"1cf201b4f4d7db9724325cbe9bd593d980a7550c","unresolved":false,"context_lines":[{"line_number":204,"context_line":"    # old override"},{"line_number":205,"context_line":"    iscsi_port \u003d d_int_info.pop(\u0027iscsi_portal_port_override\u0027,"},{"line_number":206,"context_line":"                                CONF.iscsi.portal_port)"},{"line_number":207,"context_line":"    node.driver_internal_info \u003d d_int_info"},{"line_number":208,"context_line":"    node.save()"},{"line_number":209,"context_line":""},{"line_number":210,"context_line":"    params \u003d {"},{"line_number":211,"context_line":"        \u0027address\u0027: kwargs.get(\u0027address\u0027),"}],"source_content_type":"text/x-python","patch_set":2,"id":"bab6814e_16d6d1f0","line":208,"range":{"start_line":207,"start_character":0,"end_line":208,"end_character":15},"updated":"2016-05-26 02:54:32.000000000","message":"1. So with latest ramdisk, the value of port should be CONF.iscsi.portal_port. This is only to keep backward compatible. We should deprecate it in the future release. So I think you can  add a deprecated note about this\n2. if there is no iscsi_portal_port_override in driver_internal_info which is the common case in the futuer, no need to run node.save()\n\nold_override\u003d d_int_info.pop(\u0027iscsi_portal_port_override\u0027)\nif old_override:\n   node.driver_internal_info \u003d d_int_info\n   node.save()\niscsi_port \u003d  old_override or CONF.iscsi.portal_port","commit_id":"57f94cfe452da5211e2c22116332d838bd6a324a"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"1f112df46a9f928be72b4f441de6e87ef17948f9","unresolved":false,"context_lines":[{"line_number":209,"context_line":""},{"line_number":210,"context_line":"    params \u003d {"},{"line_number":211,"context_line":"        \u0027address\u0027: kwargs.get(\u0027address\u0027),"},{"line_number":212,"context_line":"        \u0027port\u0027: kwargs.get(\u0027port\u0027, iscsi_port),"},{"line_number":213,"context_line":"        \u0027iqn\u0027: kwargs.get(\u0027iqn\u0027),"},{"line_number":214,"context_line":"        \u0027lun\u0027: kwargs.get(\u0027lun\u0027, \u00271\u0027),"},{"line_number":215,"context_line":"        \u0027image_path\u0027: _get_image_file_path(node.uuid),"}],"source_content_type":"text/x-python","patch_set":2,"id":"bab6814e_4738b73d","line":212,"updated":"2016-05-25 18:34:16.000000000","message":"Setting to \u00273260\u0027 was incorrect, it should depend on config option and on override that is being added in this patch, if present. Int here works fine, as it is used only with string substitutions.","commit_id":"57f94cfe452da5211e2c22116332d838bd6a324a"}],"ironic/tests/unit/drivers/modules/test_iscsi_deploy.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"a89cb93a8e3fd84f3c6617cec931583e76f08a57","unresolved":false,"context_lines":[{"line_number":501,"context_line":""},{"line_number":502,"context_line":"    def test_get_deploy_info_portal_port(self):"},{"line_number":503,"context_line":"        ret_val \u003d self._test_get_deploy_info()"},{"line_number":504,"context_line":"        self.assertEqual(CONF.iscsi.portal_port, ret_val[\u0027port\u0027])"},{"line_number":505,"context_line":""},{"line_number":506,"context_line":"    @mock.patch.object(iscsi_deploy, \u0027continue_deploy\u0027, autospec\u003dTrue)"},{"line_number":507,"context_line":"    @mock.patch.object(iscsi_deploy, \u0027build_deploy_ramdisk_options\u0027,"}],"source_content_type":"text/x-python","patch_set":3,"id":"bab6814e_7106241d","line":504,"updated":"2016-05-26 15:37:34.000000000","message":"you have to overwrite this configuration to something non-default, otherwise this test is not testing anything","commit_id":"89089f5ffb1bf6922edf963ae1831e4bb26fb8cc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"e711e57dfcb5761683828211a9c5950b76c6da30","unresolved":false,"context_lines":[{"line_number":501,"context_line":""},{"line_number":502,"context_line":"    def test_get_deploy_info_portal_port(self):"},{"line_number":503,"context_line":"        ret_val \u003d self._test_get_deploy_info()"},{"line_number":504,"context_line":"        self.assertEqual(CONF.iscsi.portal_port, ret_val[\u0027port\u0027])"},{"line_number":505,"context_line":""},{"line_number":506,"context_line":"    @mock.patch.object(iscsi_deploy, \u0027continue_deploy\u0027, autospec\u003dTrue)"},{"line_number":507,"context_line":"    @mock.patch.object(iscsi_deploy, \u0027build_deploy_ramdisk_options\u0027,"}],"source_content_type":"text/x-python","patch_set":3,"id":"bab6814e_f1c17430","line":504,"in_reply_to":"bab6814e_7106241d","updated":"2016-05-26 15:46:24.000000000","message":"Ugh, forgot to change.","commit_id":"89089f5ffb1bf6922edf963ae1831e4bb26fb8cc"}],"releasenotes/notes/fix-get-deploy-info-port.yaml":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"a89cb93a8e3fd84f3c6617cec931583e76f08a57","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"bab6814e_11051810","line":5,"updated":"2016-05-26 15:37:34.000000000","message":"nit: newline at end of file","commit_id":"89089f5ffb1bf6922edf963ae1831e4bb26fb8cc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"e711e57dfcb5761683828211a9c5950b76c6da30","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"bab6814e_51e960b6","line":5,"in_reply_to":"bab6814e_11051810","updated":"2016-05-26 15:46:24.000000000","message":"Done","commit_id":"89089f5ffb1bf6922edf963ae1831e4bb26fb8cc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"38482bc7048332a5aac109e6284c63388266413c","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Fixed the default value of \u0027port\u0027 in iscsi_deploy.get_deploy_info to be set"},{"line_number":4,"context_line":"    to [iscsi]/portal_port option value, instead of hardcoding it to \u00273260\u0027."}],"source_content_type":"text/x-yaml","patch_set":5,"id":"9abb7d3a_226497e2","line":4,"updated":"2016-05-30 19:30:33.000000000","message":"the default value of the config option is 3260, which might have been worth mentioning but too late...","commit_id":"cc54cea0605527723a3c67e64867b17cad8e8ada"}]}
