)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"773abdf2c7acf02dc10bbc4f2350ddd05efc544f","unresolved":false,"context_lines":[{"line_number":13,"context_line":"Co-Authored-By: Jay Faulkner \u003cjay@jvf.cc\u003e"},{"line_number":14,"context_line":"Co-Authored-By: Taku Izumi \u003cizumi.taku@jp.fujitsu.com\u003e"},{"line_number":15,"context_line":"Change-Id: I7898ff22800dedba73d7fbfb3801378867abe183"},{"line_number":16,"context_line":"Depends-On: I9b4c1278dc5fab7888fbfe586c15e31ed3958978"},{"line_number":17,"context_line":"Partial-Bug: 1526449"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":17,"id":"bff0334d_de78a0f9","line":16,"range":{"start_line":16,"start_character":0,"end_line":16,"end_character":53},"updated":"2017-04-06 03:29:10.000000000","message":"I think Ironic should be dependent on this change and not other way round.","commit_id":"3c7b48831267338ab7cc3a2fe65586dccb2e4a28"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"740c5878b4bf4a701678798498ee7339a6b4efc9","unresolved":false,"context_lines":[{"line_number":13,"context_line":"Co-Authored-By: Jay Faulkner \u003cjay@jvf.cc\u003e"},{"line_number":14,"context_line":"Co-Authored-By: Taku Izumi \u003cizumi.taku@jp.fujitsu.com\u003e"},{"line_number":15,"context_line":"Change-Id: I7898ff22800dedba73d7fbfb3801378867abe183"},{"line_number":16,"context_line":"Depends-On: I9b4c1278dc5fab7888fbfe586c15e31ed3958978"},{"line_number":17,"context_line":"Partial-Bug: 1526449"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":17,"id":"bff0334d_76c1ea53","line":16,"range":{"start_line":16,"start_character":0,"end_line":16,"end_character":53},"in_reply_to":"bff0334d_2b7bb48c","updated":"2017-04-12 19:25:49.000000000","message":"Shivanand\u0027s right - this should land first, or the ironic code will be useless without an out of tree ramdisk.\n\nI\u0027m temporarily adding a Depends-On linking this to the tempest tests so reviewers can see them passing soon.\n\nRight now the order is:\n\nironic code -\u003e client code -\u003e nova code -\u003e tempest -\u003e this patch\n\nso we can get a gate job passing with rescue.\n\nIn terms of landing order, I think it should be:\n\nthis patch -\u003e ironic code -\u003e client code -\u003e nova code -\u003e tempest\n\nAfter this has 2*+2, I will start switching the order.","commit_id":"3c7b48831267338ab7cc3a2fe65586dccb2e4a28"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"3fea47c203e3b7872bdcf7f420d6e713246456f3","unresolved":false,"context_lines":[{"line_number":13,"context_line":"Co-Authored-By: Jay Faulkner \u003cjay@jvf.cc\u003e"},{"line_number":14,"context_line":"Co-Authored-By: Taku Izumi \u003cizumi.taku@jp.fujitsu.com\u003e"},{"line_number":15,"context_line":"Change-Id: I7898ff22800dedba73d7fbfb3801378867abe183"},{"line_number":16,"context_line":"Depends-On: I9b4c1278dc5fab7888fbfe586c15e31ed3958978"},{"line_number":17,"context_line":"Partial-Bug: 1526449"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":17,"id":"bff0334d_2b7bb48c","line":16,"range":{"start_line":16,"start_character":0,"end_line":16,"end_character":53},"in_reply_to":"bff0334d_de78a0f9","updated":"2017-04-06 16:15:08.000000000","message":"No, the call to finalize_rescue comes from the above mentioned patch, and believe that\u0027s why it depends on that.","commit_id":"3c7b48831267338ab7cc3a2fe65586dccb2e4a28"}],"imagebuild/coreos/oem/cloud-config.yml":[{"author":{"_account_id":22931,"name":"Taku Izumi","email":"izumi.taku@jp.fujitsu.com","username":"izumi777"},"change_message_id":"0e2413a8a7e17d96a6481b964b52342ad5f64935","unresolved":false,"context_lines":[{"line_number":200,"context_line":"        [Service]"},{"line_number":201,"context_line":"        Type\u003doneshot"},{"line_number":202,"context_line":"        RemainAfterExit\u003dyes"},{"line_number":203,"context_line":"        ExecStart\u003dmkdir /etc/ipa-rescue-config \u0026\u0026 mkdir /opt/ironic-python-agent/etc/ipa-rescue-config"},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"    - name: opt-ironic\\x2dpython\\x2dagent-rescue.mount"},{"line_number":206,"context_line":"      command: start"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"5a3905b3_00dbbd1b","line":203,"range":{"start_line":203,"start_character":0,"end_line":203,"end_character":102},"updated":"2017-01-24 07:48:49.000000000","message":"The following should be better:\nExecStart\u003d/usr/bin/mkdir /etc/ipa-rescue-config\nExecStart\u003d/usr/bin/mkdir /opt/ironic-python-agent/etc/ipa-rescue-config\n\n- full-path (/usr/bin/mkdir) is required and \u0027\u0026\u0026\u0027 doesn\u0027t work well ?","commit_id":"3edc3ef8a4748b72e6a82bafd6416ea5a91fc7b3"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"89e15f29b49d5e3a36c94354bf5bd5b94f1352cf","unresolved":false,"context_lines":[{"line_number":200,"context_line":"        [Service]"},{"line_number":201,"context_line":"        Type\u003doneshot"},{"line_number":202,"context_line":"        RemainAfterExit\u003dyes"},{"line_number":203,"context_line":"        ExecStart\u003dmkdir /etc/ipa-rescue-config \u0026\u0026 mkdir /opt/ironic-python-agent/etc/ipa-rescue-config"},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"    - name: opt-ironic\\x2dpython\\x2dagent-rescue.mount"},{"line_number":206,"context_line":"      command: start"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"5a3905b3_e96cbed1","line":203,"range":{"start_line":203,"start_character":0,"end_line":203,"end_character":102},"in_reply_to":"5a3905b3_00dbbd1b","updated":"2017-01-24 17:04:17.000000000","message":"Done","commit_id":"3edc3ef8a4748b72e6a82bafd6416ea5a91fc7b3"},{"author":{"_account_id":22931,"name":"Taku Izumi","email":"izumi.taku@jp.fujitsu.com","username":"izumi777"},"change_message_id":"0e2413a8a7e17d96a6481b964b52342ad5f64935","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        RemainAfterExit\u003dyes"},{"line_number":203,"context_line":"        ExecStart\u003dmkdir /etc/ipa-rescue-config \u0026\u0026 mkdir /opt/ironic-python-agent/etc/ipa-rescue-config"},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"    - name: opt-ironic\\x2dpython\\x2dagent-rescue.mount"},{"line_number":206,"context_line":"      command: start"},{"line_number":207,"context_line":"      content: |"},{"line_number":208,"context_line":"        [Unit]"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"5a3905b3_f6803b8d","line":205,"range":{"start_line":205,"start_character":6,"end_line":205,"end_character":54},"updated":"2017-01-24 07:48:49.000000000","message":"Name must be opt-ironic\\x2dpython\\x2dagent-etc-ipa\\x2drescue\\x2dconfig.mount, otherwise mounting would fail.","commit_id":"3edc3ef8a4748b72e6a82bafd6416ea5a91fc7b3"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"89e15f29b49d5e3a36c94354bf5bd5b94f1352cf","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        RemainAfterExit\u003dyes"},{"line_number":203,"context_line":"        ExecStart\u003dmkdir /etc/ipa-rescue-config \u0026\u0026 mkdir /opt/ironic-python-agent/etc/ipa-rescue-config"},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"    - name: opt-ironic\\x2dpython\\x2dagent-rescue.mount"},{"line_number":206,"context_line":"      command: start"},{"line_number":207,"context_line":"      content: |"},{"line_number":208,"context_line":"        [Unit]"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"5a3905b3_09702aa3","line":205,"range":{"start_line":205,"start_character":6,"end_line":205,"end_character":54},"in_reply_to":"5a3905b3_f6803b8d","updated":"2017-01-24 17:04:17.000000000","message":"Done","commit_id":"3edc3ef8a4748b72e6a82bafd6416ea5a91fc7b3"},{"author":{"_account_id":22931,"name":"Taku Izumi","email":"izumi.taku@jp.fujitsu.com","username":"izumi777"},"change_message_id":"0e2413a8a7e17d96a6481b964b52342ad5f64935","unresolved":false,"context_lines":[{"line_number":238,"context_line":"        After\u003dopt-ironic\\x2dpython\\x2dagent-etc-resolvconf.service"},{"line_number":239,"context_line":"        After\u003dopt-ironic\\x2dpython\\x2dagent-run-log.mount"},{"line_number":240,"context_line":"        After\u003dsetup-rescue-directories.service"},{"line_number":241,"context_line":"        After\u003dopt-ironic\\x2dpython\\x2dagent-rescue.mount"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"        Requires\u003dironic-python-agent-container-creation.service"},{"line_number":244,"context_line":"        Requires\u003dopt-ironic\\x2dpython\\x2dagent-proc.mount"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"5a3905b3_b1987d79","line":241,"range":{"start_line":241,"start_character":8,"end_line":241,"end_character":56},"updated":"2017-01-24 07:48:49.000000000","message":"After\u003dopt-ironic\\x2dpython\\x2dagent-etc-ipa\\x2drescue\\x2dconfig.mount","commit_id":"3edc3ef8a4748b72e6a82bafd6416ea5a91fc7b3"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"89e15f29b49d5e3a36c94354bf5bd5b94f1352cf","unresolved":false,"context_lines":[{"line_number":238,"context_line":"        After\u003dopt-ironic\\x2dpython\\x2dagent-etc-resolvconf.service"},{"line_number":239,"context_line":"        After\u003dopt-ironic\\x2dpython\\x2dagent-run-log.mount"},{"line_number":240,"context_line":"        After\u003dsetup-rescue-directories.service"},{"line_number":241,"context_line":"        After\u003dopt-ironic\\x2dpython\\x2dagent-rescue.mount"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"        Requires\u003dironic-python-agent-container-creation.service"},{"line_number":244,"context_line":"        Requires\u003dopt-ironic\\x2dpython\\x2dagent-proc.mount"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"5a3905b3_895c1a1a","line":241,"range":{"start_line":241,"start_character":8,"end_line":241,"end_character":56},"in_reply_to":"5a3905b3_b1987d79","updated":"2017-01-24 17:04:17.000000000","message":"Done","commit_id":"3edc3ef8a4748b72e6a82bafd6416ea5a91fc7b3"},{"author":{"_account_id":22931,"name":"Taku Izumi","email":"izumi.taku@jp.fujitsu.com","username":"izumi777"},"change_message_id":"0e2413a8a7e17d96a6481b964b52342ad5f64935","unresolved":false,"context_lines":[{"line_number":250,"context_line":"        Requires\u003dopt-ironic\\x2dpython\\x2dagent-etc-resolvconf.service"},{"line_number":251,"context_line":"        Requires\u003dopt-ironic\\x2dpython\\x2dagent-run-log.mount"},{"line_number":252,"context_line":"        Requires\u003dsetup-rescue-directories.service"},{"line_number":253,"context_line":"        Requires\u003dopt-ironic\\x2dpython\\x2dagent-rescue.mount"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"        [Service]"},{"line_number":256,"context_line":"        ExecStartPre\u003d-/usr/sbin/modprobe ipmi_msghandler"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"5a3905b3_119a316e","line":253,"range":{"start_line":253,"start_character":8,"end_line":253,"end_character":59},"updated":"2017-01-24 07:48:49.000000000","message":"Requires\u003dopt-ironic\\x2dpython\\x2dagent-etc-ipa\\x2drescue\\x2dconfig.mount","commit_id":"3edc3ef8a4748b72e6a82bafd6416ea5a91fc7b3"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"89e15f29b49d5e3a36c94354bf5bd5b94f1352cf","unresolved":false,"context_lines":[{"line_number":250,"context_line":"        Requires\u003dopt-ironic\\x2dpython\\x2dagent-etc-resolvconf.service"},{"line_number":251,"context_line":"        Requires\u003dopt-ironic\\x2dpython\\x2dagent-run-log.mount"},{"line_number":252,"context_line":"        Requires\u003dsetup-rescue-directories.service"},{"line_number":253,"context_line":"        Requires\u003dopt-ironic\\x2dpython\\x2dagent-rescue.mount"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"        [Service]"},{"line_number":256,"context_line":"        ExecStartPre\u003d-/usr/sbin/modprobe ipmi_msghandler"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"5a3905b3_a99d56bd","line":253,"range":{"start_line":253,"start_character":8,"end_line":253,"end_character":59},"in_reply_to":"5a3905b3_119a316e","updated":"2017-01-24 17:04:17.000000000","message":"Done","commit_id":"3edc3ef8a4748b72e6a82bafd6416ea5a91fc7b3"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"912ea08bb326971c4fe4812f076161d8f0365107","unresolved":false,"context_lines":[{"line_number":260,"context_line":"        ExecStart\u003d/usr/bin/chroot /opt/ironic-python-agent \\"},{"line_number":261,"context_line":"                                  /usr/local/bin/ironic-python-agent"},{"line_number":262,"context_line":"        ExecStopPost\u003d/usr/share/oem/finalize_rescue.sh"},{"line_number":263,"context_line":"        Restart\u003don-failure"},{"line_number":264,"context_line":"        RestartSec\u003d30s"}],"source_content_type":"text/x-yaml","patch_set":26,"id":"ff346bd7_b8dcba46","line":263,"updated":"2017-07-24 12:12:29.000000000","message":"this won\u0027t work until we actually start indicating a failure - see below","commit_id":"efbadb1f42aeaad9a70b82193452f8dc81da2bb7"},{"author":{"_account_id":15074,"name":"Aparna","email":"aparnavtce@gmail.com","username":"Aparna"},"change_message_id":"029d11443ba9f8ddc445f6a8e7aa354dbcbd8cc9","unresolved":false,"context_lines":[{"line_number":260,"context_line":"        ExecStart\u003d/usr/bin/chroot /opt/ironic-python-agent \\"},{"line_number":261,"context_line":"                                  /usr/local/bin/ironic-python-agent"},{"line_number":262,"context_line":"        ExecStopPost\u003d/usr/share/oem/finalize_rescue.sh"},{"line_number":263,"context_line":"        Restart\u003don-failure"},{"line_number":264,"context_line":"        RestartSec\u003d30s"}],"source_content_type":"text/x-yaml","patch_set":26,"id":"ff346bd7_7ceed0b4","line":263,"in_reply_to":"ff346bd7_b8dcba46","updated":"2017-07-28 09:54:05.000000000","message":"Added the change to raise the exception in agent.py","commit_id":"efbadb1f42aeaad9a70b82193452f8dc81da2bb7"}],"imagebuild/coreos/oem/finalize_rescue.sh":[{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"937ba498b2bf49cff0975e85cb47cd2949f82093","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    # TODO(mariojv) What if ironic doesn\u0027t switch over to tenant DHCP net in"},{"line_number":26,"context_line":"    # time for this? Do we just add a sleep and hope for the best?"},{"line_number":27,"context_line":"    sudo systemctl restart systemd-networkd"},{"line_number":28,"context_line":"}"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"echo \"Attempting to start rescue mode configuration...\""}],"source_content_type":"text/x-sh","patch_set":5,"id":"5a3905b3_564aca56","line":27,"updated":"2017-01-24 18:09:47.000000000","message":"It\u0027s even worse than you think, I\u0027m not certain restarting networkd will remove existing network configs. I think we may have to do something more like killall dhcp, but we\u0027ll see how it comes out in testing.","commit_id":"eae82ad291c43f29cd3558dce307008893e98699"},{"author":{"_account_id":22931,"name":"Taku Izumi","email":"izumi.taku@jp.fujitsu.com","username":"izumi777"},"change_message_id":"6e91b8b9fdbcbf036f0d826fca5e0ec022910561","unresolved":false,"context_lines":[{"line_number":3,"context_line":"create_rescue_user() {"},{"line_number":4,"context_line":"    echo \"Adding rescue user with root privileges...\""},{"line_number":5,"context_line":"    crypted_pass\u003d$(\u003c/etc/ipa-rescue-password)"},{"line_number":6,"context_line":"    sudo useradd -m -G sudo -p $crypted_pass"},{"line_number":7,"context_line":"    sudo echo \"rescue ALL\u003d(ALL) NOPASSWD: ALL\" \u003e /etc/sudoers.d/rescue"},{"line_number":8,"context_line":"}"},{"line_number":9,"context_line":""}],"source_content_type":"text/x-sh","patch_set":8,"id":"5a3905b3_5a165656","line":6,"range":{"start_line":6,"start_character":17,"end_line":6,"end_character":19},"updated":"2017-01-25 05:45:02.000000000","message":"missing username \u0027rescue\u0027.\nsudo useradd -m rescue -G sudo -p $crypted_pass","commit_id":"99f63cc82d2c5f3b8b4ebe963f42296d0efa038a"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"1e803224b2a142e2e6931e359fbe29204f82bffd","unresolved":false,"context_lines":[{"line_number":3,"context_line":"create_rescue_user() {"},{"line_number":4,"context_line":"    echo \"Adding rescue user with root privileges...\""},{"line_number":5,"context_line":"    crypted_pass\u003d$(\u003c/etc/ipa-rescue-password)"},{"line_number":6,"context_line":"    sudo useradd -m -G sudo -p $crypted_pass"},{"line_number":7,"context_line":"    sudo echo \"rescue ALL\u003d(ALL) NOPASSWD: ALL\" \u003e /etc/sudoers.d/rescue"},{"line_number":8,"context_line":"}"},{"line_number":9,"context_line":""}],"source_content_type":"text/x-sh","patch_set":8,"id":"3a461143_61db7c1c","line":6,"range":{"start_line":6,"start_character":17,"end_line":6,"end_character":19},"in_reply_to":"5a3905b3_5a165656","updated":"2017-01-25 15:30:33.000000000","message":"Done","commit_id":"99f63cc82d2c5f3b8b4ebe963f42296d0efa038a"},{"author":{"_account_id":22931,"name":"Taku Izumi","email":"izumi.taku@jp.fujitsu.com","username":"izumi777"},"change_message_id":"6e91b8b9fdbcbf036f0d826fca5e0ec022910561","unresolved":false,"context_lines":[{"line_number":27,"context_line":"}"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"echo \"Attempting to start rescue mode configuration...\""},{"line_number":30,"context_line":"if [ -f /etc/ipa-rescue-password ]; then"},{"line_number":31,"context_line":"    create_rescue_user"},{"line_number":32,"context_line":"    # TODO(mariojv) Add configdrive support for static networks"},{"line_number":33,"context_line":"    setup_dhcp_network"}],"source_content_type":"text/x-sh","patch_set":8,"id":"5a3905b3_bd057415","line":30,"range":{"start_line":30,"start_character":7,"end_line":30,"end_character":32},"updated":"2017-01-25 05:45:02.000000000","message":"/etc/ipa-rescue-config/ipa-rescue-password","commit_id":"99f63cc82d2c5f3b8b4ebe963f42296d0efa038a"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"1e803224b2a142e2e6931e359fbe29204f82bffd","unresolved":false,"context_lines":[{"line_number":27,"context_line":"}"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"echo \"Attempting to start rescue mode configuration...\""},{"line_number":30,"context_line":"if [ -f /etc/ipa-rescue-password ]; then"},{"line_number":31,"context_line":"    create_rescue_user"},{"line_number":32,"context_line":"    # TODO(mariojv) Add configdrive support for static networks"},{"line_number":33,"context_line":"    setup_dhcp_network"}],"source_content_type":"text/x-sh","patch_set":8,"id":"3a461143_01039874","line":30,"range":{"start_line":30,"start_character":7,"end_line":30,"end_character":32},"in_reply_to":"5a3905b3_bd057415","updated":"2017-01-25 15:30:33.000000000","message":"Done","commit_id":"99f63cc82d2c5f3b8b4ebe963f42296d0efa038a"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"e8f77d1996061da3e0307fefc19e72bf12b24073","unresolved":false,"context_lines":[{"line_number":3,"context_line":"create_rescue_user() {"},{"line_number":4,"context_line":"    echo \"Adding rescue user with root privileges...\""},{"line_number":5,"context_line":"    crypted_pass\u003d$(\u003c/etc/ipa-rescue-config/ipa-rescue-password)"},{"line_number":6,"context_line":"    sudo useradd -m rescue -G sudo -p $crypted_pass"},{"line_number":7,"context_line":"    sudo echo \"rescue ALL\u003d(ALL) NOPASSWD: ALL\" \u003e /etc/sudoers.d/rescue"},{"line_number":8,"context_line":"}"},{"line_number":9,"context_line":""}],"source_content_type":"text/x-sh","patch_set":14,"id":"3a1ff146_811dcdbf","line":6,"updated":"2017-03-14 17:20:27.000000000","message":"For nova, I thought, this was always root user? Are we sure creating the rescue user is better than setting this password on root?","commit_id":"ba0049ebe4f409c00a2ede4082ec6a02a1e510df"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"32337ab01a37f999e530b562e1d6ce46c21b339d","unresolved":false,"context_lines":[{"line_number":3,"context_line":"create_rescue_user() {"},{"line_number":4,"context_line":"    echo \"Adding rescue user with root privileges...\""},{"line_number":5,"context_line":"    crypted_pass\u003d$(\u003c/etc/ipa-rescue-config/ipa-rescue-password)"},{"line_number":6,"context_line":"    sudo useradd -m rescue -G sudo -p $crypted_pass"},{"line_number":7,"context_line":"    sudo echo \"rescue ALL\u003d(ALL) NOPASSWD: ALL\" \u003e /etc/sudoers.d/rescue"},{"line_number":8,"context_line":"}"},{"line_number":9,"context_line":""}],"source_content_type":"text/x-sh","patch_set":14,"id":"dfeb2761_50ab511c","line":6,"in_reply_to":"3a1ff146_811dcdbf","updated":"2017-03-31 19:56:19.000000000","message":"There\u0027s apparently no standard for this /o\\","commit_id":"ba0049ebe4f409c00a2ede4082ec6a02a1e510df"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"f686acf292863051f683d967c1fe682a8beaa081","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    echo \"Adding rescue user with root privileges...\""},{"line_number":5,"context_line":"    crypted_pass\u003d$(\u003c/etc/ipa-rescue-config/ipa-rescue-password)"},{"line_number":6,"context_line":"    sudo useradd -m rescue -G sudo -p $crypted_pass"},{"line_number":7,"context_line":"    sudo echo \"rescue ALL\u003d(ALL) NOPASSWD: ALL\" \u003e /etc/sudoers.d/rescue"},{"line_number":8,"context_line":"}"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"setup_dhcp_network() {"}],"source_content_type":"text/x-sh","patch_set":14,"id":"1a1ced50_6a53a6e2","line":7,"range":{"start_line":7,"start_character":15,"end_line":7,"end_character":45},"updated":"2017-03-22 01:45:31.000000000","message":"Why is password required? Anyways rescue user is given all rights to run any command from anywhere without authentication?","commit_id":"ba0049ebe4f409c00a2ede4082ec6a02a1e510df"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"32337ab01a37f999e530b562e1d6ce46c21b339d","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    echo \"Adding rescue user with root privileges...\""},{"line_number":5,"context_line":"    crypted_pass\u003d$(\u003c/etc/ipa-rescue-config/ipa-rescue-password)"},{"line_number":6,"context_line":"    sudo useradd -m rescue -G sudo -p $crypted_pass"},{"line_number":7,"context_line":"    sudo echo \"rescue ALL\u003d(ALL) NOPASSWD: ALL\" \u003e /etc/sudoers.d/rescue"},{"line_number":8,"context_line":"}"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"setup_dhcp_network() {"}],"source_content_type":"text/x-sh","patch_set":14,"id":"dfeb2761_da59c0fe","line":7,"range":{"start_line":7,"start_character":15,"end_line":7,"end_character":45},"in_reply_to":"1a1ced50_6a53a6e2","updated":"2017-03-31 19:56:19.000000000","message":"rescue user will need root in order to do anything useful in rescue.","commit_id":"ba0049ebe4f409c00a2ede4082ec6a02a1e510df"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"8e662b54e29e8b527e0cf83eaf39dcc8a6290bfb","unresolved":false,"context_lines":[{"line_number":3,"context_line":"create_rescue_user() {"},{"line_number":4,"context_line":"    echo \"Adding rescue user with root privileges...\""},{"line_number":5,"context_line":"    crypted_pass\u003d$(\u003c/etc/ipa-rescue-config/ipa-rescue-password)"},{"line_number":6,"context_line":"    sudo useradd -m rescue -G sudo -p $crypted_pass"},{"line_number":7,"context_line":"    sudo echo \"rescue ALL\u003d(ALL) NOPASSWD: ALL\" \u003e /etc/sudoers.d/rescue"},{"line_number":8,"context_line":"}"},{"line_number":9,"context_line":""}],"source_content_type":"text/x-sh","patch_set":15,"id":"dfeb2761_0ba118aa","line":6,"updated":"2017-03-31 20:11:15.000000000","message":"Should this be rescue? Root? There\u0027s no standard, it\u0027s usually dictated by the image, but since we\u0027re not letting the user choose the image we should make a sane choice here.","commit_id":"fc268c3d9a07630ff861d0ef65384e61c7d2b546"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"e03be6a37d6954a2ac23bf7d11dc015b336da8f5","unresolved":false,"context_lines":[{"line_number":3,"context_line":"create_rescue_user() {"},{"line_number":4,"context_line":"    echo \"Adding rescue user with root privileges...\""},{"line_number":5,"context_line":"    crypted_pass\u003d$(\u003c/etc/ipa-rescue-config/ipa-rescue-password)"},{"line_number":6,"context_line":"    sudo useradd -m rescue -G sudo -p $crypted_pass"},{"line_number":7,"context_line":"    sudo echo \"rescue ALL\u003d(ALL) NOPASSWD: ALL\" \u003e /etc/sudoers.d/rescue"},{"line_number":8,"context_line":"}"},{"line_number":9,"context_line":""}],"source_content_type":"text/x-sh","patch_set":18,"id":"bff0334d_9366b5ba","line":6,"range":{"start_line":6,"start_character":20,"end_line":6,"end_character":26},"updated":"2017-04-12 19:26:30.000000000","message":"this should likely change to root, but will keep this here for now until I see tempest passing","commit_id":"f070b9ce5e1115905a987a05cb177dea214a9b0a"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"13b39785ab247eb14bdf035731413f83942d0454","unresolved":false,"context_lines":[{"line_number":17,"context_line":"    echo \"Configuring all interfaces except loopback to DHCP...\""},{"line_number":18,"context_line":"    for interface in $(ls /sys/class/net) ; do"},{"line_number":19,"context_line":"        if [ $interface !\u003d \"lo\" ]; then"},{"line_number":20,"context_line":"            sudo sed \"s/RESCUE_NETWORK_INTERFACE/$interface/\" $DHCP_CONFIG_TEMPLATE \u003e /etc/systemd/network/50-$interface.network"},{"line_number":21,"context_line":"        fi"},{"line_number":22,"context_line":"    done"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"    sudo systemctl restart systemd-networkd"}],"source_content_type":"text/x-sh","patch_set":27,"id":"df3967d1_5d403e08","line":21,"range":{"start_line":20,"start_character":87,"end_line":21,"end_character":10},"updated":"2017-07-28 21:57:51.000000000","message":"i think we should handle if some error comes while writing/creating .network file","commit_id":"4daad929db35c859f58dec97a2a419ba7674b2fc"},{"author":{"_account_id":15074,"name":"Aparna","email":"aparnavtce@gmail.com","username":"Aparna"},"change_message_id":"024df05b8b3ea22915c3c05e886e703a3f7d44ce","unresolved":false,"context_lines":[{"line_number":17,"context_line":"    echo \"Configuring all interfaces except loopback to DHCP...\""},{"line_number":18,"context_line":"    for interface in $(ls /sys/class/net) ; do"},{"line_number":19,"context_line":"        if [ $interface !\u003d \"lo\" ]; then"},{"line_number":20,"context_line":"            sudo sed \"s/RESCUE_NETWORK_INTERFACE/$interface/\" $DHCP_CONFIG_TEMPLATE \u003e /etc/systemd/network/50-$interface.network"},{"line_number":21,"context_line":"        fi"},{"line_number":22,"context_line":"    done"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"    sudo systemctl restart systemd-networkd"}],"source_content_type":"text/x-sh","patch_set":27,"id":"df3967d1_32cc4e69","line":21,"range":{"start_line":20,"start_character":87,"end_line":21,"end_character":10},"in_reply_to":"df3967d1_5d403e08","updated":"2017-08-01 08:59:44.000000000","message":"Adding change to continue the loop if there is any error in this statement instead of failing. What do you think?","commit_id":"4daad929db35c859f58dec97a2a419ba7674b2fc"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"13b39785ab247eb14bdf035731413f83942d0454","unresolved":false,"context_lines":[{"line_number":25,"context_line":"}"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"echo \"Attempting to start rescue mode configuration...\""},{"line_number":28,"context_line":"if [ -f /etc/ipa-rescue-config/ipa-rescue-password ]; then"},{"line_number":29,"context_line":"    # NOTE(mariojv) An exit code of 0 is always forced here to avoid making IPA"},{"line_number":30,"context_line":"    # restart after something fails. IPA should not restart when this script"},{"line_number":31,"context_line":"    # executes to avoid exposing its API to a tenant network."}],"source_content_type":"text/x-sh","patch_set":27,"id":"df3967d1_daef94e7","line":28,"range":{"start_line":28,"start_character":5,"end_line":28,"end_character":7},"updated":"2017-07-28 21:57:51.000000000","message":"I think we should also add -w to see the file is writable?","commit_id":"4daad929db35c859f58dec97a2a419ba7674b2fc"},{"author":{"_account_id":15074,"name":"Aparna","email":"aparnavtce@gmail.com","username":"Aparna"},"change_message_id":"024df05b8b3ea22915c3c05e886e703a3f7d44ce","unresolved":false,"context_lines":[{"line_number":25,"context_line":"}"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"echo \"Attempting to start rescue mode configuration...\""},{"line_number":28,"context_line":"if [ -f /etc/ipa-rescue-config/ipa-rescue-password ]; then"},{"line_number":29,"context_line":"    # NOTE(mariojv) An exit code of 0 is always forced here to avoid making IPA"},{"line_number":30,"context_line":"    # restart after something fails. IPA should not restart when this script"},{"line_number":31,"context_line":"    # executes to avoid exposing its API to a tenant network."}],"source_content_type":"text/x-sh","patch_set":27,"id":"df3967d1_72b656fd","line":28,"range":{"start_line":28,"start_character":5,"end_line":28,"end_character":7},"in_reply_to":"df3967d1_daef94e7","updated":"2017-08-01 08:59:44.000000000","message":"As part of this step, we don\u0027t have to write anything to the ipa-rescue-password as the file is already created https://review.openstack.org/#/c/423521/27/ironic_python_agent/extensions/rescue.py@47. This script only reads the password from the file.","commit_id":"4daad929db35c859f58dec97a2a419ba7674b2fc"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"13b39785ab247eb14bdf035731413f83942d0454","unresolved":false,"context_lines":[{"line_number":31,"context_line":"    # executes to avoid exposing its API to a tenant network."},{"line_number":32,"context_line":"    create_rescue_user || exit 0"},{"line_number":33,"context_line":"    setup_dhcp_network || exit 0"},{"line_number":34,"context_line":"    # TODO(mariojv) Add support for configdrive and static networks"},{"line_number":35,"context_line":"else"},{"line_number":36,"context_line":"    echo \"One or more of the files needed for rescue mode does not exist, not rescuing.\""},{"line_number":37,"context_line":"fi"}],"source_content_type":"text/x-sh","patch_set":27,"id":"df3967d1_3ad0e050","line":34,"range":{"start_line":34,"start_character":4,"end_line":34,"end_character":67},"updated":"2017-07-28 21:57:51.000000000","message":"nit: This needs to be deleted","commit_id":"4daad929db35c859f58dec97a2a419ba7674b2fc"},{"author":{"_account_id":15074,"name":"Aparna","email":"aparnavtce@gmail.com","username":"Aparna"},"change_message_id":"024df05b8b3ea22915c3c05e886e703a3f7d44ce","unresolved":false,"context_lines":[{"line_number":31,"context_line":"    # executes to avoid exposing its API to a tenant network."},{"line_number":32,"context_line":"    create_rescue_user || exit 0"},{"line_number":33,"context_line":"    setup_dhcp_network || exit 0"},{"line_number":34,"context_line":"    # TODO(mariojv) Add support for configdrive and static networks"},{"line_number":35,"context_line":"else"},{"line_number":36,"context_line":"    echo \"One or more of the files needed for rescue mode does not exist, not rescuing.\""},{"line_number":37,"context_line":"fi"}],"source_content_type":"text/x-sh","patch_set":27,"id":"df3967d1_fe4a0d53","line":34,"range":{"start_line":34,"start_character":4,"end_line":34,"end_character":67},"in_reply_to":"df3967d1_3ad0e050","updated":"2017-08-01 08:59:44.000000000","message":"keeping it for now. Will remove it eventually.","commit_id":"4daad929db35c859f58dec97a2a419ba7674b2fc"}],"imagebuild/coreos/oem/rescue-dhcp-config.network":[{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"13b39785ab247eb14bdf035731413f83942d0454","unresolved":false,"context_lines":[{"line_number":1,"context_line":"[Match]"},{"line_number":2,"context_line":"Name\u003dRESCUE_NETWORK_INTERFACE"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"[Network]"},{"line_number":5,"context_line":"DHCP\u003dyes"}],"source_content_type":"application/octet-stream","patch_set":27,"id":"df3967d1_dd6c2e9e","line":2,"range":{"start_line":2,"start_character":0,"end_line":2,"end_character":29},"updated":"2017-07-28 21:57:51.000000000","message":"can we somewhere make a note that this match should never hardcoded with any interface as it may change after boots, just a thought?","commit_id":"4daad929db35c859f58dec97a2a419ba7674b2fc"},{"author":{"_account_id":15074,"name":"Aparna","email":"aparnavtce@gmail.com","username":"Aparna"},"change_message_id":"024df05b8b3ea22915c3c05e886e703a3f7d44ce","unresolved":false,"context_lines":[{"line_number":1,"context_line":"[Match]"},{"line_number":2,"context_line":"Name\u003dRESCUE_NETWORK_INTERFACE"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"[Network]"},{"line_number":5,"context_line":"DHCP\u003dyes"}],"source_content_type":"application/octet-stream","patch_set":27,"id":"df3967d1_d2ee22b3","line":2,"range":{"start_line":2,"start_character":0,"end_line":2,"end_character":29},"in_reply_to":"df3967d1_dd6c2e9e","updated":"2017-08-01 08:59:44.000000000","message":"Adding a note in this file won\u0027t be good since it is a template which is getting used for creating network file for different interfaces. Do you have any suggestions?","commit_id":"4daad929db35c859f58dec97a2a419ba7674b2fc"}],"ironic_python_agent/agent.py":[{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"0e6ee26125ed5f5bccbb3ac2ebba800ba556e4b2","unresolved":false,"context_lines":[{"line_number":337,"context_line":"            try:"},{"line_number":338,"context_line":"                server.handle_request()"},{"line_number":339,"context_line":"            except BaseException:"},{"line_number":340,"context_line":"                LOG.exception(\u0027shutting down\u0027)"},{"line_number":341,"context_line":"                self.serve_api \u003d False"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"    def run(self):"}],"source_content_type":"text/x-python","patch_set":17,"id":"bff0334d_e702940b","line":340,"updated":"2017-04-06 20:51:26.000000000","message":"Maybe this message should be outside of the while loop. Or have a message outside the while loop in addition to this.","commit_id":"3c7b48831267338ab7cc3a2fe65586dccb2e4a28"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"740c5878b4bf4a701678798498ee7339a6b4efc9","unresolved":false,"context_lines":[{"line_number":337,"context_line":"            try:"},{"line_number":338,"context_line":"                server.handle_request()"},{"line_number":339,"context_line":"            except BaseException:"},{"line_number":340,"context_line":"                LOG.exception(\u0027shutting down\u0027)"},{"line_number":341,"context_line":"                self.serve_api \u003d False"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"    def run(self):"}],"source_content_type":"text/x-python","patch_set":17,"id":"bff0334d_b68bf2bd","line":340,"in_reply_to":"bff0334d_e702940b","updated":"2017-04-12 19:25:49.000000000","message":"Done","commit_id":"3c7b48831267338ab7cc3a2fe65586dccb2e4a28"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"912ea08bb326971c4fe4812f076161d8f0365107","unresolved":false,"context_lines":[{"line_number":336,"context_line":"        while self.serve_api:"},{"line_number":337,"context_line":"            try:"},{"line_number":338,"context_line":"                server.handle_request()"},{"line_number":339,"context_line":"            except BaseException:"},{"line_number":340,"context_line":"                self.serve_api \u003d False"},{"line_number":341,"context_line":"        LOG.exception(\u0027shutting down\u0027)"},{"line_number":342,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"ff346bd7_581eee0c","line":339,"updated":"2017-07-24 12:12:29.000000000","message":"this needs LOG.exception.. actually, if you want to use restart\u003don-failure, you have to raise an exception here or otherwise return a non-success code to systemd","commit_id":"efbadb1f42aeaad9a70b82193452f8dc81da2bb7"},{"author":{"_account_id":15074,"name":"Aparna","email":"aparnavtce@gmail.com","username":"Aparna"},"change_message_id":"029d11443ba9f8ddc445f6a8e7aa354dbcbd8cc9","unresolved":false,"context_lines":[{"line_number":336,"context_line":"        while self.serve_api:"},{"line_number":337,"context_line":"            try:"},{"line_number":338,"context_line":"                server.handle_request()"},{"line_number":339,"context_line":"            except BaseException:"},{"line_number":340,"context_line":"                self.serve_api \u003d False"},{"line_number":341,"context_line":"        LOG.exception(\u0027shutting down\u0027)"},{"line_number":342,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"ff346bd7_9c33b4f6","line":339,"in_reply_to":"ff346bd7_581eee0c","updated":"2017-07-28 09:54:05.000000000","message":"Done. Raising an exception","commit_id":"efbadb1f42aeaad9a70b82193452f8dc81da2bb7"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"912ea08bb326971c4fe4812f076161d8f0365107","unresolved":false,"context_lines":[{"line_number":338,"context_line":"                server.handle_request()"},{"line_number":339,"context_line":"            except BaseException:"},{"line_number":340,"context_line":"                self.serve_api \u003d False"},{"line_number":341,"context_line":"        LOG.exception(\u0027shutting down\u0027)"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"    def run(self):"},{"line_number":344,"context_line":"        \"\"\"Run the Ironic Python Agent.\"\"\""}],"source_content_type":"text/x-python","patch_set":26,"id":"ff346bd7_381b2a1c","line":341,"updated":"2017-07-24 12:12:29.000000000","message":"here LOG.exception is useless, as the traceback is lost. please keep a LOG.info here","commit_id":"efbadb1f42aeaad9a70b82193452f8dc81da2bb7"},{"author":{"_account_id":15074,"name":"Aparna","email":"aparnavtce@gmail.com","username":"Aparna"},"change_message_id":"029d11443ba9f8ddc445f6a8e7aa354dbcbd8cc9","unresolved":false,"context_lines":[{"line_number":338,"context_line":"                server.handle_request()"},{"line_number":339,"context_line":"            except BaseException:"},{"line_number":340,"context_line":"                self.serve_api \u003d False"},{"line_number":341,"context_line":"        LOG.exception(\u0027shutting down\u0027)"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"    def run(self):"},{"line_number":344,"context_line":"        \"\"\"Run the Ironic Python Agent.\"\"\""}],"source_content_type":"text/x-python","patch_set":26,"id":"ff346bd7_3c54c8fe","line":341,"in_reply_to":"ff346bd7_381b2a1c","updated":"2017-07-28 09:54:05.000000000","message":"Done","commit_id":"efbadb1f42aeaad9a70b82193452f8dc81da2bb7"},{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"014b9c627ce140db52c487b0811c9ee23fc5006f","unresolved":false,"context_lines":[{"line_number":326,"context_line":"            simple_server.WSGIServer.address_family \u003d socket.AF_INET6"},{"line_number":327,"context_line":"        server \u003d simple_server.WSGIServer((self.listen_address.hostname,"},{"line_number":328,"context_line":"                                           self.listen_address.port),"},{"line_number":329,"context_line":"                                          simple_server.WSGIRequestHandler)"},{"line_number":330,"context_line":"        server.set_app(self.api)"},{"line_number":331,"context_line":""},{"line_number":332,"context_line":"        if not self.standalone and self.api_url:"}],"source_content_type":"text/x-python","patch_set":33,"id":"df87a7cf_88fe2eac","line":329,"updated":"2017-12-06 14:15:17.000000000","message":"According to the documentation[1], simple_server.make_server() is usually used. Is it necessary to change to call this constructor?\n\n[1] https://docs.python.org/3.6/library/wsgiref.html#module-wsgiref.simple_server","commit_id":"a659306272542dd38420cb118cc7b04b1e8cf377"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"b3470f1b3ea70c84a9ea1e77aadabf327ea07da8","unresolved":false,"context_lines":[{"line_number":326,"context_line":"            simple_server.WSGIServer.address_family \u003d socket.AF_INET6"},{"line_number":327,"context_line":"        server \u003d simple_server.WSGIServer((self.listen_address.hostname,"},{"line_number":328,"context_line":"                                           self.listen_address.port),"},{"line_number":329,"context_line":"                                          simple_server.WSGIRequestHandler)"},{"line_number":330,"context_line":"        server.set_app(self.api)"},{"line_number":331,"context_line":""},{"line_number":332,"context_line":"        if not self.standalone and self.api_url:"}],"source_content_type":"text/x-python","patch_set":33,"id":"5f93b717_5db805c7","line":329,"in_reply_to":"df87a7cf_88fe2eac","updated":"2018-01-27 12:34:46.000000000","message":"I think that was also possible.","commit_id":"a659306272542dd38420cb118cc7b04b1e8cf377"},{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"014b9c627ce140db52c487b0811c9ee23fc5006f","unresolved":false,"context_lines":[{"line_number":337,"context_line":"            try:"},{"line_number":338,"context_line":"                server.handle_request()"},{"line_number":339,"context_line":"            except BaseException as e:"},{"line_number":340,"context_line":"                msg \u003d \"Failed due to unknow exception. Error %s\" % e"},{"line_number":341,"context_line":"                LOG.exception(msg)"},{"line_number":342,"context_line":"                raise errors.IronicAPIError(msg)"},{"line_number":343,"context_line":"        LOG.info(\u0027shutting down\u0027)"}],"source_content_type":"text/x-python","patch_set":33,"id":"df87a7cf_286122aa","line":340,"range":{"start_line":340,"start_character":37,"end_line":340,"end_character":43},"updated":"2017-12-06 14:15:17.000000000","message":"nit: s/unknow/unknown/","commit_id":"a659306272542dd38420cb118cc7b04b1e8cf377"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"b3470f1b3ea70c84a9ea1e77aadabf327ea07da8","unresolved":false,"context_lines":[{"line_number":337,"context_line":"            try:"},{"line_number":338,"context_line":"                server.handle_request()"},{"line_number":339,"context_line":"            except BaseException as e:"},{"line_number":340,"context_line":"                msg \u003d \"Failed due to unknow exception. Error %s\" % e"},{"line_number":341,"context_line":"                LOG.exception(msg)"},{"line_number":342,"context_line":"                raise errors.IronicAPIError(msg)"},{"line_number":343,"context_line":"        LOG.info(\u0027shutting down\u0027)"}],"source_content_type":"text/x-python","patch_set":33,"id":"5f93b717_fd78f12b","line":340,"range":{"start_line":340,"start_character":37,"end_line":340,"end_character":43},"in_reply_to":"df87a7cf_286122aa","updated":"2018-01-27 12:34:46.000000000","message":"Done","commit_id":"a659306272542dd38420cb118cc7b04b1e8cf377"}],"ironic_python_agent/extensions/rescue.py":[{"author":{"_account_id":22931,"name":"Taku Izumi","email":"izumi.taku@jp.fujitsu.com","username":"izumi777"},"change_message_id":"6e91b8b9fdbcbf036f0d826fca5e0ec022910561","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    def write_rescue_password(self, rescue_password):"},{"line_number":38,"context_line":"        \"\"\"Write rescue password to a file for use after IPA exits.\"\"\""},{"line_number":39,"context_line":"        pass_file \u003d \u0027/etc/ipa-rescue-password\u0027"},{"line_number":40,"context_line":"        LOG.debug(\u0027Writing hashed rescue password to %s\u0027, pass_file)"},{"line_number":41,"context_line":"        salt \u003d self.make_salt()"},{"line_number":42,"context_line":"        hashed_password \u003d crypt.crypt(rescue_password, salt)"}],"source_content_type":"text/x-python","patch_set":8,"id":"5a3905b3_3a6d0acd","line":39,"range":{"start_line":39,"start_character":21,"end_line":39,"end_character":45},"updated":"2017-01-25 05:45:02.000000000","message":"/etc/ipa-rescue-config/ipa-rescue-password","commit_id":"99f63cc82d2c5f3b8b4ebe963f42296d0efa038a"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"1e803224b2a142e2e6931e359fbe29204f82bffd","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    def write_rescue_password(self, rescue_password):"},{"line_number":38,"context_line":"        \"\"\"Write rescue password to a file for use after IPA exits.\"\"\""},{"line_number":39,"context_line":"        pass_file \u003d \u0027/etc/ipa-rescue-password\u0027"},{"line_number":40,"context_line":"        LOG.debug(\u0027Writing hashed rescue password to %s\u0027, pass_file)"},{"line_number":41,"context_line":"        salt \u003d self.make_salt()"},{"line_number":42,"context_line":"        hashed_password \u003d crypt.crypt(rescue_password, salt)"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a461143_6120dcf8","line":39,"range":{"start_line":39,"start_character":21,"end_line":39,"end_character":45},"in_reply_to":"5a3905b3_3a6d0acd","updated":"2017-01-25 15:30:33.000000000","message":"Done","commit_id":"99f63cc82d2c5f3b8b4ebe963f42296d0efa038a"},{"author":{"_account_id":22931,"name":"Taku Izumi","email":"izumi.taku@jp.fujitsu.com","username":"izumi777"},"change_message_id":"6e91b8b9fdbcbf036f0d826fca5e0ec022910561","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    def write_configdrive(self, configdrive):"},{"line_number":47,"context_line":"        \"\"\"b64decode configdrive and write it to a file."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"           The configdrive gzip file must be gunzipped and mounted to the"},{"line_number":50,"context_line":"           appropriate location later."},{"line_number":51,"context_line":"        \"\"\""},{"line_number":52,"context_line":"        # TODO(mariojv) This is currently unused. Instead, DHCP configuration"}],"source_content_type":"text/x-python","patch_set":8,"id":"5a3905b3_fa80e24b","line":49,"range":{"start_line":49,"start_character":11,"end_line":49,"end_character":54},"updated":"2017-01-25 05:45:02.000000000","message":"Why not gunzipping configdrive in this function ?","commit_id":"99f63cc82d2c5f3b8b4ebe963f42296d0efa038a"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"1e803224b2a142e2e6931e359fbe29204f82bffd","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    def write_configdrive(self, configdrive):"},{"line_number":47,"context_line":"        \"\"\"b64decode configdrive and write it to a file."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"           The configdrive gzip file must be gunzipped and mounted to the"},{"line_number":50,"context_line":"           appropriate location later."},{"line_number":51,"context_line":"        \"\"\""},{"line_number":52,"context_line":"        # TODO(mariojv) This is currently unused. Instead, DHCP configuration"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a461143_c1c0b0e3","line":49,"range":{"start_line":49,"start_character":11,"end_line":49,"end_character":54},"in_reply_to":"5a3905b3_fa80e24b","updated":"2017-01-25 15:30:33.000000000","message":"In this patch, we\u0027re only supporting rescue with DHCP tenant networks. This is currently unused until we figure out how to apply the network_json from the configdrive in CoreOS without rebooting. Glean and coreos-cloudinit both have some issues right now that need to be worked out, so I\u0027m waiting until we have a strategy that works for DIB, tinyIPA, and CoreOS before proceeding with configdrive work. I\u0027ll switch to gunzip here if appropriate after that part is figured out.","commit_id":"99f63cc82d2c5f3b8b4ebe963f42296d0efa038a"},{"author":{"_account_id":22931,"name":"Taku Izumi","email":"izumi.taku@jp.fujitsu.com","username":"izumi777"},"change_message_id":"6e91b8b9fdbcbf036f0d826fca5e0ec022910561","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        # is enabled on all interfaces during rescue finalization, and this"},{"line_number":54,"context_line":"        # patch will only support rescue for when instances that have DHCP"},{"line_number":55,"context_line":"        # tenant networks."},{"line_number":56,"context_line":"        configdrive_file \u003d \u0027/etc/ipa-rescue-configdrive\u0027"},{"line_number":57,"context_line":"        LOG.debug(\u0027Decoding configdrive and writing to %s\u0027, configdrive_file)"},{"line_number":58,"context_line":"        decoded_cfgdrive \u003d base64.b64decode(configdrive)"},{"line_number":59,"context_line":"        with open(configdrive_file, \u0027w\u0027) as f:"}],"source_content_type":"text/x-python","patch_set":8,"id":"5a3905b3_1a9f6eb5","line":56,"range":{"start_line":56,"start_character":28,"end_line":56,"end_character":55},"updated":"2017-01-25 05:45:02.000000000","message":"/etc/ipa-rescue-config/ipa-rescue-configdrive","commit_id":"99f63cc82d2c5f3b8b4ebe963f42296d0efa038a"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"1e803224b2a142e2e6931e359fbe29204f82bffd","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        # is enabled on all interfaces during rescue finalization, and this"},{"line_number":54,"context_line":"        # patch will only support rescue for when instances that have DHCP"},{"line_number":55,"context_line":"        # tenant networks."},{"line_number":56,"context_line":"        configdrive_file \u003d \u0027/etc/ipa-rescue-configdrive\u0027"},{"line_number":57,"context_line":"        LOG.debug(\u0027Decoding configdrive and writing to %s\u0027, configdrive_file)"},{"line_number":58,"context_line":"        decoded_cfgdrive \u003d base64.b64decode(configdrive)"},{"line_number":59,"context_line":"        with open(configdrive_file, \u0027w\u0027) as f:"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a461143_811dc8bf","line":56,"range":{"start_line":56,"start_character":28,"end_line":56,"end_character":55},"in_reply_to":"5a3905b3_1a9f6eb5","updated":"2017-01-25 15:30:33.000000000","message":"Done","commit_id":"99f63cc82d2c5f3b8b4ebe963f42296d0efa038a"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"0d62c6d5e7411edc471dfe6b25feb5e1829be35b","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    def write_rescue_password(self, rescue_password):"},{"line_number":38,"context_line":"        \"\"\"Write rescue password to a file for use after IPA exits.\"\"\""},{"line_number":39,"context_line":"        pass_file \u003d \u0027/etc/ipa-rescue-config/ipa-rescue-password\u0027"},{"line_number":40,"context_line":"        LOG.debug(\u0027Writing hashed rescue password to %s\u0027, pass_file)"},{"line_number":41,"context_line":"        salt \u003d self.make_salt()"},{"line_number":42,"context_line":"        hashed_password \u003d crypt.crypt(rescue_password, salt)"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a1ff146_84e4fb3b","line":39,"updated":"2017-03-14 17:28:15.000000000","message":"This should create /etc/ipa-rescue-config if it doesn\u0027t exist -- for CoreOS it makes sense to precreate the directory because we need to mount it in, since it has to be mounted in -- I\u0027m not sure that\u0027s the best approach for other ram disks.","commit_id":"ba0049ebe4f409c00a2ede4082ec6a02a1e510df"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"32337ab01a37f999e530b562e1d6ce46c21b339d","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    def write_rescue_password(self, rescue_password):"},{"line_number":38,"context_line":"        \"\"\"Write rescue password to a file for use after IPA exits.\"\"\""},{"line_number":39,"context_line":"        pass_file \u003d \u0027/etc/ipa-rescue-config/ipa-rescue-password\u0027"},{"line_number":40,"context_line":"        LOG.debug(\u0027Writing hashed rescue password to %s\u0027, pass_file)"},{"line_number":41,"context_line":"        salt \u003d self.make_salt()"},{"line_number":42,"context_line":"        hashed_password \u003d crypt.crypt(rescue_password, salt)"}],"source_content_type":"text/x-python","patch_set":14,"id":"dfeb2761_b5a3af4f","line":39,"in_reply_to":"3a1ff146_84e4fb3b","updated":"2017-03-31 19:56:19.000000000","message":"Done","commit_id":"ba0049ebe4f409c00a2ede4082ec6a02a1e510df"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"7d15f6a737caac48522f0159e7383bb6893e4516","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        salt \u003d self.make_salt()"},{"line_number":42,"context_line":"        hashed_password \u003d crypt.crypt(rescue_password, salt)"},{"line_number":43,"context_line":"        with open(pass_file, \u0027w\u0027) as f:"},{"line_number":44,"context_line":"            f.write(hashed_password)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    def write_configdrive(self, configdrive):"},{"line_number":47,"context_line":"        \"\"\"b64decode configdrive and write it to a file."}],"source_content_type":"text/x-python","patch_set":14,"id":"9a30ddce_72ed65b6","line":44,"range":{"start_line":44,"start_character":12,"end_line":44,"end_character":36},"updated":"2017-03-10 06:55:48.000000000","message":"We would need to handle the exception here and generate appropriate new exception say RescueError by filling in the error message.","commit_id":"ba0049ebe4f409c00a2ede4082ec6a02a1e510df"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"7d15f6a737caac48522f0159e7383bb6893e4516","unresolved":false,"context_lines":[{"line_number":43,"context_line":"        with open(pass_file, \u0027w\u0027) as f:"},{"line_number":44,"context_line":"            f.write(hashed_password)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    def write_configdrive(self, configdrive):"},{"line_number":47,"context_line":"        \"\"\"b64decode configdrive and write it to a file."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"           The configdrive gzip file must be gunzipped and mounted to the"}],"source_content_type":"text/x-python","patch_set":14,"id":"9a30ddce_b23d1d91","line":46,"range":{"start_line":46,"start_character":4,"end_line":46,"end_character":45},"updated":"2017-03-10 06:55:48.000000000","message":"May be it would be better to add this functionality through another patch as its not relevant to rescue feature.","commit_id":"ba0049ebe4f409c00a2ede4082ec6a02a1e510df"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"32337ab01a37f999e530b562e1d6ce46c21b339d","unresolved":false,"context_lines":[{"line_number":43,"context_line":"        with open(pass_file, \u0027w\u0027) as f:"},{"line_number":44,"context_line":"            f.write(hashed_password)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    def write_configdrive(self, configdrive):"},{"line_number":47,"context_line":"        \"\"\"b64decode configdrive and write it to a file."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"           The configdrive gzip file must be gunzipped and mounted to the"}],"source_content_type":"text/x-python","patch_set":14,"id":"dfeb2761_758527ad","line":46,"range":{"start_line":46,"start_character":4,"end_line":46,"end_character":45},"in_reply_to":"9a30ddce_b23d1d91","updated":"2017-03-31 19:56:19.000000000","message":"Done","commit_id":"ba0049ebe4f409c00a2ede4082ec6a02a1e510df"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"7d15f6a737caac48522f0159e7383bb6893e4516","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        LOG.debug(\u0027Decoding configdrive and writing to %s\u0027, configdrive_file)"},{"line_number":59,"context_line":"        decoded_cfgdrive \u003d base64.b64decode(configdrive)"},{"line_number":60,"context_line":"        with open(configdrive_file, \u0027w\u0027) as f:"},{"line_number":61,"context_line":"            f.write(decoded_cfgdrive)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    @base.sync_command(\u0027finalize_rescue\u0027)"},{"line_number":64,"context_line":"    def finalize_rescue(self, rescue_password, configdrive\u003dNone):"}],"source_content_type":"text/x-python","patch_set":14,"id":"9a30ddce_32d04df6","line":61,"range":{"start_line":61,"start_character":12,"end_line":61,"end_character":37},"updated":"2017-03-10 06:55:48.000000000","message":"We would need to handle the exception here and generate appropriate new exception say RescueError by filling in the error message.","commit_id":"ba0049ebe4f409c00a2ede4082ec6a02a1e510df"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"32337ab01a37f999e530b562e1d6ce46c21b339d","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        LOG.debug(\u0027Decoding configdrive and writing to %s\u0027, configdrive_file)"},{"line_number":59,"context_line":"        decoded_cfgdrive \u003d base64.b64decode(configdrive)"},{"line_number":60,"context_line":"        with open(configdrive_file, \u0027w\u0027) as f:"},{"line_number":61,"context_line":"            f.write(decoded_cfgdrive)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    @base.sync_command(\u0027finalize_rescue\u0027)"},{"line_number":64,"context_line":"    def finalize_rescue(self, rescue_password, configdrive\u003dNone):"}],"source_content_type":"text/x-python","patch_set":14,"id":"dfeb2761_358f9fcd","line":61,"range":{"start_line":61,"start_character":12,"end_line":61,"end_character":37},"in_reply_to":"9a30ddce_32d04df6","updated":"2017-03-31 19:56:19.000000000","message":"now irrelevant, this code is removed","commit_id":"ba0049ebe4f409c00a2ede4082ec6a02a1e510df"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"773abdf2c7acf02dc10bbc4f2350ddd05efc544f","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        LOG.debug(\u0027Writing hashed rescue password to %s\u0027, pass_file)"},{"line_number":41,"context_line":"        salt \u003d self.make_salt()"},{"line_number":42,"context_line":"        hashed_password \u003d crypt.crypt(rescue_password, salt)"},{"line_number":43,"context_line":"        with open(pass_file, \u0027w\u0027) as f:"},{"line_number":44,"context_line":"            f.write(hashed_password)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    def write_configdrive(self, configdrive):"}],"source_content_type":"text/x-python","patch_set":17,"id":"bff0334d_de05407c","line":43,"range":{"start_line":43,"start_character":8,"end_line":43,"end_character":39},"updated":"2017-04-06 03:29:10.000000000","message":"Need to check and create /etc/ipa-rescue-config/ directory before opening file for writing.","commit_id":"3c7b48831267338ab7cc3a2fe65586dccb2e4a28"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"740c5878b4bf4a701678798498ee7339a6b4efc9","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        LOG.debug(\u0027Writing hashed rescue password to %s\u0027, pass_file)"},{"line_number":41,"context_line":"        salt \u003d self.make_salt()"},{"line_number":42,"context_line":"        hashed_password \u003d crypt.crypt(rescue_password, salt)"},{"line_number":43,"context_line":"        with open(pass_file, \u0027w\u0027) as f:"},{"line_number":44,"context_line":"            f.write(hashed_password)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    def write_configdrive(self, configdrive):"}],"source_content_type":"text/x-python","patch_set":17,"id":"bff0334d_f63bba34","line":43,"range":{"start_line":43,"start_character":8,"end_line":43,"end_character":39},"in_reply_to":"bff0334d_0e0fdee1","updated":"2017-04-12 19:25:49.000000000","message":"Yes, systemd will create the directories. See L192: https://review.openstack.org/#/c/423521/17/imagebuild/coreos/oem/cloud-config.yml\n\nThe error will be caught by the command execution caller and returned via API to ironic. I\u0027ve rewritten the error to be a bit more user-friendly for troubleshooting. What do you think?","commit_id":"3c7b48831267338ab7cc3a2fe65586dccb2e4a28"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"3fea47c203e3b7872bdcf7f420d6e713246456f3","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        LOG.debug(\u0027Writing hashed rescue password to %s\u0027, pass_file)"},{"line_number":41,"context_line":"        salt \u003d self.make_salt()"},{"line_number":42,"context_line":"        hashed_password \u003d crypt.crypt(rescue_password, salt)"},{"line_number":43,"context_line":"        with open(pass_file, \u0027w\u0027) as f:"},{"line_number":44,"context_line":"            f.write(hashed_password)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    def write_configdrive(self, configdrive):"}],"source_content_type":"text/x-python","patch_set":17,"id":"bff0334d_0e0fdee1","line":43,"range":{"start_line":43,"start_character":8,"end_line":43,"end_character":39},"in_reply_to":"bff0334d_de05407c","updated":"2017-04-06 16:15:08.000000000","message":"I think directories would be created from cloud-config, but a check whether they exist would good otherwise it will throw IOerror.","commit_id":"3c7b48831267338ab7cc3a2fe65586dccb2e4a28"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"99a2bce2b6696ce4a26e44dfd124cda4347aa251","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        # is enabled on all interfaces during rescue finalization, and IPA"},{"line_number":54,"context_line":"        # currently will only support rescue for when instances that have DHCP"},{"line_number":55,"context_line":"        # tenant networks. In the future, a configdrive can be used to setup"},{"line_number":56,"context_line":"        # network configuration."},{"line_number":57,"context_line":"        configdrive_file \u003d \u0027/etc/ipa-rescue-config/ipa-rescue-configdrive\u0027"},{"line_number":58,"context_line":"        LOG.debug(\u0027Decoding configdrive and writing to %s\u0027, configdrive_file)"},{"line_number":59,"context_line":"        decoded_cfgdrive \u003d base64.b64decode(configdrive)"}],"source_content_type":"text/x-python","patch_set":17,"id":"bff0334d_ec995b79","line":56,"updated":"2017-04-06 20:14:21.000000000","message":"We ought to add some basic test for this if this is  going to remain here, even if not actively used right now.","commit_id":"3c7b48831267338ab7cc3a2fe65586dccb2e4a28"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"740c5878b4bf4a701678798498ee7339a6b4efc9","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        # is enabled on all interfaces during rescue finalization, and IPA"},{"line_number":54,"context_line":"        # currently will only support rescue for when instances that have DHCP"},{"line_number":55,"context_line":"        # tenant networks. In the future, a configdrive can be used to setup"},{"line_number":56,"context_line":"        # network configuration."},{"line_number":57,"context_line":"        configdrive_file \u003d \u0027/etc/ipa-rescue-config/ipa-rescue-configdrive\u0027"},{"line_number":58,"context_line":"        LOG.debug(\u0027Decoding configdrive and writing to %s\u0027, configdrive_file)"},{"line_number":59,"context_line":"        decoded_cfgdrive \u003d base64.b64decode(configdrive)"}],"source_content_type":"text/x-python","patch_set":17,"id":"bff0334d_56b026dd","line":56,"in_reply_to":"bff0334d_ec995b79","updated":"2017-04-12 19:25:49.000000000","message":"This isn\u0027t going in ironic tree yet per reviewer request, so I\u0027ll just remove it for now.","commit_id":"3c7b48831267338ab7cc3a2fe65586dccb2e4a28"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"773abdf2c7acf02dc10bbc4f2350ddd05efc544f","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        configdrive_file \u003d \u0027/etc/ipa-rescue-config/ipa-rescue-configdrive\u0027"},{"line_number":58,"context_line":"        LOG.debug(\u0027Decoding configdrive and writing to %s\u0027, configdrive_file)"},{"line_number":59,"context_line":"        decoded_cfgdrive \u003d base64.b64decode(configdrive)"},{"line_number":60,"context_line":"        with open(configdrive_file, \u0027w\u0027) as f:"},{"line_number":61,"context_line":"            f.write(decoded_cfgdrive)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    @base.sync_command(\u0027finalize_rescue\u0027)"}],"source_content_type":"text/x-python","patch_set":17,"id":"bff0334d_be2f1cf5","line":60,"range":{"start_line":60,"start_character":8,"end_line":60,"end_character":46},"updated":"2017-04-06 03:29:10.000000000","message":"Need to check and create /etc/ipa-rescue-config/ directory before opening file for writing.","commit_id":"3c7b48831267338ab7cc3a2fe65586dccb2e4a28"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"740c5878b4bf4a701678798498ee7339a6b4efc9","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        configdrive_file \u003d \u0027/etc/ipa-rescue-config/ipa-rescue-configdrive\u0027"},{"line_number":58,"context_line":"        LOG.debug(\u0027Decoding configdrive and writing to %s\u0027, configdrive_file)"},{"line_number":59,"context_line":"        decoded_cfgdrive \u003d base64.b64decode(configdrive)"},{"line_number":60,"context_line":"        with open(configdrive_file, \u0027w\u0027) as f:"},{"line_number":61,"context_line":"            f.write(decoded_cfgdrive)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    @base.sync_command(\u0027finalize_rescue\u0027)"}],"source_content_type":"text/x-python","patch_set":17,"id":"bff0334d_f624da0e","line":60,"range":{"start_line":60,"start_character":8,"end_line":60,"end_character":46},"in_reply_to":"bff0334d_acbb53c2","updated":"2017-04-12 19:25:49.000000000","message":"+1 to what Julia said, but this is being removed now. Let me know what you think of the new error handling strategy. It\u0027ll be caught higher in the stack here: https://github.com/openstack/ironic-python-agent/blob/b1844d5ac24b44ef249fcc23cdf718f4bae80eea/ironic_python_agent/extensions/base.py#L266","commit_id":"3c7b48831267338ab7cc3a2fe65586dccb2e4a28"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"99a2bce2b6696ce4a26e44dfd124cda4347aa251","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        configdrive_file \u003d \u0027/etc/ipa-rescue-config/ipa-rescue-configdrive\u0027"},{"line_number":58,"context_line":"        LOG.debug(\u0027Decoding configdrive and writing to %s\u0027, configdrive_file)"},{"line_number":59,"context_line":"        decoded_cfgdrive \u003d base64.b64decode(configdrive)"},{"line_number":60,"context_line":"        with open(configdrive_file, \u0027w\u0027) as f:"},{"line_number":61,"context_line":"            f.write(decoded_cfgdrive)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    @base.sync_command(\u0027finalize_rescue\u0027)"}],"source_content_type":"text/x-python","patch_set":17,"id":"bff0334d_acbb53c2","line":60,"range":{"start_line":60,"start_character":8,"end_line":60,"end_character":46},"in_reply_to":"bff0334d_be2f1cf5","updated":"2017-04-06 20:14:21.000000000","message":"Directories should be checked in the calling method in this case since both the write_rescue_password and the write_configdrive methods leverage it.","commit_id":"3c7b48831267338ab7cc3a2fe65586dccb2e4a28"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"912ea08bb326971c4fe4812f076161d8f0365107","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"           :returns: a valid salt for use with crypt.crypt"},{"line_number":32,"context_line":"        \"\"\""},{"line_number":33,"context_line":"        allowed_chars \u003d \u0027\u0027.join([string.ascii_letters, string.digits])"},{"line_number":34,"context_line":"        return \u0027\u0027.join(random.choice(allowed_chars) for i in range(2))"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    def write_rescue_password(self, rescue_password):"}],"source_content_type":"text/x-python","patch_set":26,"id":"ff346bd7_1818661b","line":33,"updated":"2017-07-24 12:12:29.000000000","message":"this is simply string.ascii_letters + string.digits","commit_id":"efbadb1f42aeaad9a70b82193452f8dc81da2bb7"},{"author":{"_account_id":15074,"name":"Aparna","email":"aparnavtce@gmail.com","username":"Aparna"},"change_message_id":"029d11443ba9f8ddc445f6a8e7aa354dbcbd8cc9","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"           :returns: a valid salt for use with crypt.crypt"},{"line_number":32,"context_line":"        \"\"\""},{"line_number":33,"context_line":"        allowed_chars \u003d \u0027\u0027.join([string.ascii_letters, string.digits])"},{"line_number":34,"context_line":"        return \u0027\u0027.join(random.choice(allowed_chars) for i in range(2))"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    def write_rescue_password(self, rescue_password):"}],"source_content_type":"text/x-python","patch_set":26,"id":"ff346bd7_fce9a0b6","line":33,"in_reply_to":"ff346bd7_1818661b","updated":"2017-07-28 09:54:05.000000000","message":"Done","commit_id":"efbadb1f42aeaad9a70b82193452f8dc81da2bb7"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"912ea08bb326971c4fe4812f076161d8f0365107","unresolved":false,"context_lines":[{"line_number":31,"context_line":"           :returns: a valid salt for use with crypt.crypt"},{"line_number":32,"context_line":"        \"\"\""},{"line_number":33,"context_line":"        allowed_chars \u003d \u0027\u0027.join([string.ascii_letters, string.digits])"},{"line_number":34,"context_line":"        return \u0027\u0027.join(random.choice(allowed_chars) for i in range(2))"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    def write_rescue_password(self, rescue_password):"},{"line_number":37,"context_line":"        \"\"\"Write rescue password to a file for use after IPA exits.\"\"\""}],"source_content_type":"text/x-python","patch_set":26,"id":"ff346bd7_f8d24234","line":34,"updated":"2017-07-24 12:12:29.000000000","message":"join() is really nice, but I suspect contatenation of two calls would read simpler in this particular case","commit_id":"efbadb1f42aeaad9a70b82193452f8dc81da2bb7"},{"author":{"_account_id":15074,"name":"Aparna","email":"aparnavtce@gmail.com","username":"Aparna"},"change_message_id":"029d11443ba9f8ddc445f6a8e7aa354dbcbd8cc9","unresolved":false,"context_lines":[{"line_number":31,"context_line":"           :returns: a valid salt for use with crypt.crypt"},{"line_number":32,"context_line":"        \"\"\""},{"line_number":33,"context_line":"        allowed_chars \u003d \u0027\u0027.join([string.ascii_letters, string.digits])"},{"line_number":34,"context_line":"        return \u0027\u0027.join(random.choice(allowed_chars) for i in range(2))"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    def write_rescue_password(self, rescue_password):"},{"line_number":37,"context_line":"        \"\"\"Write rescue password to a file for use after IPA exits.\"\"\""}],"source_content_type":"text/x-python","patch_set":26,"id":"ff346bd7_3ce4c8e0","line":34,"in_reply_to":"ff346bd7_f8d24234","updated":"2017-07-28 09:54:05.000000000","message":"Done","commit_id":"efbadb1f42aeaad9a70b82193452f8dc81da2bb7"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"912ea08bb326971c4fe4812f076161d8f0365107","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                f.write(hashed_password)"},{"line_number":45,"context_line":"        except IOError:"},{"line_number":46,"context_line":"            # Rewrite error message to be more user friendly for debugging"},{"line_number":47,"context_line":"            raise IOError(\u0027Unable to write hashed rescue password\u0027)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    @base.sync_command(\u0027finalize_rescue\u0027)"},{"line_number":50,"context_line":"    def finalize_rescue(self, rescue_password):"}],"source_content_type":"text/x-python","patch_set":26,"id":"ff346bd7_d8d77e23","line":47,"updated":"2017-07-24 12:12:29.000000000","message":"please add the original message as well","commit_id":"efbadb1f42aeaad9a70b82193452f8dc81da2bb7"},{"author":{"_account_id":15074,"name":"Aparna","email":"aparnavtce@gmail.com","username":"Aparna"},"change_message_id":"029d11443ba9f8ddc445f6a8e7aa354dbcbd8cc9","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                f.write(hashed_password)"},{"line_number":45,"context_line":"        except IOError:"},{"line_number":46,"context_line":"            # Rewrite error message to be more user friendly for debugging"},{"line_number":47,"context_line":"            raise IOError(\u0027Unable to write hashed rescue password\u0027)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    @base.sync_command(\u0027finalize_rescue\u0027)"},{"line_number":50,"context_line":"    def finalize_rescue(self, rescue_password):"}],"source_content_type":"text/x-python","patch_set":26,"id":"ff346bd7_7cc0102b","line":47,"in_reply_to":"ff346bd7_d8d77e23","updated":"2017-07-28 09:54:05.000000000","message":"Done","commit_id":"efbadb1f42aeaad9a70b82193452f8dc81da2bb7"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"13b39785ab247eb14bdf035731413f83942d0454","unresolved":false,"context_lines":[{"line_number":47,"context_line":"            with open(PASSWORD_FILE, \u0027w\u0027) as f:"},{"line_number":48,"context_line":"                f.write(hashed_password)"},{"line_number":49,"context_line":"        except IOError as e:"},{"line_number":50,"context_line":"            msg \u003d (\"Rescue Operation failed when writing the hashed rescue \""},{"line_number":51,"context_line":"                   \"password to the password file. Error %s\") % e"},{"line_number":52,"context_line":"            raise IOError(msg)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    @base.sync_command(\u0027finalize_rescue\u0027)"}],"source_content_type":"text/x-python","patch_set":27,"id":"df3967d1_5daa7e85","line":51,"range":{"start_line":50,"start_character":12,"end_line":51,"end_character":65},"updated":"2017-07-28 21:57:51.000000000","message":"nit: translation needed because user facing","commit_id":"4daad929db35c859f58dec97a2a419ba7674b2fc"},{"author":{"_account_id":15074,"name":"Aparna","email":"aparnavtce@gmail.com","username":"Aparna"},"change_message_id":"024df05b8b3ea22915c3c05e886e703a3f7d44ce","unresolved":false,"context_lines":[{"line_number":47,"context_line":"            with open(PASSWORD_FILE, \u0027w\u0027) as f:"},{"line_number":48,"context_line":"                f.write(hashed_password)"},{"line_number":49,"context_line":"        except IOError as e:"},{"line_number":50,"context_line":"            msg \u003d (\"Rescue Operation failed when writing the hashed rescue \""},{"line_number":51,"context_line":"                   \"password to the password file. Error %s\") % e"},{"line_number":52,"context_line":"            raise IOError(msg)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    @base.sync_command(\u0027finalize_rescue\u0027)"}],"source_content_type":"text/x-python","patch_set":27,"id":"df3967d1_839f2a02","line":51,"range":{"start_line":50,"start_character":12,"end_line":51,"end_character":65},"in_reply_to":"df3967d1_5daa7e85","updated":"2017-08-01 08:59:44.000000000","message":"We usually don\u0027t do translation in IPA because it is not directly user facing. It is used by the Ironic","commit_id":"4daad929db35c859f58dec97a2a419ba7674b2fc"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"577bdde7fe67a6cc36ccb09563b989ff3c13a952","unresolved":false,"context_lines":[{"line_number":35,"context_line":"        allowed_chars \u003d string.ascii_letters + string.digits"},{"line_number":36,"context_line":"        return random.choice(allowed_chars) + random.choice(allowed_chars)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def write_rescue_password(self, rescue_password\u003dNone):"},{"line_number":39,"context_line":"        \"\"\"Write rescue password to a file for use after IPA exits."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"        :param rescue_password: Rescue password."}],"source_content_type":"text/x-python","patch_set":30,"id":"7f515b1d_a2963c3d","line":38,"range":{"start_line":38,"start_character":52,"end_line":38,"end_character":56},"updated":"2017-09-28 15:01:28.000000000","message":"Any reason we\u0027re defaulting to None when, as I understand it, it is a required parameter?","commit_id":"fe9443509fc130a7c39de04b91614dfe96d7a1b2"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"23c54ec68249bff5b1a4ff4d6bc51dea7f477081","unresolved":false,"context_lines":[{"line_number":35,"context_line":"        allowed_chars \u003d string.ascii_letters + string.digits"},{"line_number":36,"context_line":"        return random.choice(allowed_chars) + random.choice(allowed_chars)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def write_rescue_password(self, rescue_password\u003dNone):"},{"line_number":39,"context_line":"        \"\"\"Write rescue password to a file for use after IPA exits."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"        :param rescue_password: Rescue password."}],"source_content_type":"text/x-python","patch_set":30,"id":"7f515b1d_f9105859","line":38,"range":{"start_line":38,"start_character":52,"end_line":38,"end_character":56},"in_reply_to":"7f515b1d_a2963c3d","updated":"2017-09-29 14:16:56.000000000","message":"Done","commit_id":"fe9443509fc130a7c39de04b91614dfe96d7a1b2"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"577bdde7fe67a6cc36ccb09563b989ff3c13a952","unresolved":false,"context_lines":[{"line_number":42,"context_line":"        \"\"\""},{"line_number":43,"context_line":"        LOG.debug(\u0027Writing hashed rescue password to %s\u0027, PASSWORD_FILE)"},{"line_number":44,"context_line":"        salt \u003d self.make_salt()"},{"line_number":45,"context_line":"        hashed_password \u003d crypt.crypt(rescue_password, salt)"},{"line_number":46,"context_line":"        try:"},{"line_number":47,"context_line":"            with open(PASSWORD_FILE, \u0027w\u0027) as f:"},{"line_number":48,"context_line":"                f.write(hashed_password)"}],"source_content_type":"text/x-python","patch_set":30,"id":"7f515b1d_c20c98a6","line":45,"updated":"2017-09-28 15:01:28.000000000","message":"With the default of None, crypt.crypt raises an exception.\n\n  TypeError: must be string, not None","commit_id":"fe9443509fc130a7c39de04b91614dfe96d7a1b2"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"23c54ec68249bff5b1a4ff4d6bc51dea7f477081","unresolved":false,"context_lines":[{"line_number":42,"context_line":"        \"\"\""},{"line_number":43,"context_line":"        LOG.debug(\u0027Writing hashed rescue password to %s\u0027, PASSWORD_FILE)"},{"line_number":44,"context_line":"        salt \u003d self.make_salt()"},{"line_number":45,"context_line":"        hashed_password \u003d crypt.crypt(rescue_password, salt)"},{"line_number":46,"context_line":"        try:"},{"line_number":47,"context_line":"            with open(PASSWORD_FILE, \u0027w\u0027) as f:"},{"line_number":48,"context_line":"                f.write(hashed_password)"}],"source_content_type":"text/x-python","patch_set":30,"id":"7f515b1d_d90b5c27","line":45,"in_reply_to":"7f515b1d_c20c98a6","updated":"2017-09-29 14:16:56.000000000","message":"Done","commit_id":"fe9443509fc130a7c39de04b91614dfe96d7a1b2"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"577bdde7fe67a6cc36ccb09563b989ff3c13a952","unresolved":false,"context_lines":[{"line_number":53,"context_line":"            raise IOError(msg)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    @base.sync_command(\u0027finalize_rescue\u0027)"},{"line_number":56,"context_line":"    def finalize_rescue(self, rescue_password\u003dNone):"},{"line_number":57,"context_line":"        \"\"\"Sets the rescue password for the rescue user.\"\"\""},{"line_number":58,"context_line":"        self.write_rescue_password(rescue_password)"},{"line_number":59,"context_line":"        # IPA will terminate after the result of finalize_rescue is returned to"}],"source_content_type":"text/x-python","patch_set":30,"id":"7f515b1d_62a4c4a6","line":56,"range":{"start_line":56,"start_character":46,"end_line":56,"end_character":50},"updated":"2017-09-28 15:01:28.000000000","message":"Ditto","commit_id":"fe9443509fc130a7c39de04b91614dfe96d7a1b2"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"23c54ec68249bff5b1a4ff4d6bc51dea7f477081","unresolved":false,"context_lines":[{"line_number":53,"context_line":"            raise IOError(msg)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    @base.sync_command(\u0027finalize_rescue\u0027)"},{"line_number":56,"context_line":"    def finalize_rescue(self, rescue_password\u003dNone):"},{"line_number":57,"context_line":"        \"\"\"Sets the rescue password for the rescue user.\"\"\""},{"line_number":58,"context_line":"        self.write_rescue_password(rescue_password)"},{"line_number":59,"context_line":"        # IPA will terminate after the result of finalize_rescue is returned to"}],"source_content_type":"text/x-python","patch_set":30,"id":"7f515b1d_f415fd40","line":56,"range":{"start_line":56,"start_character":46,"end_line":56,"end_character":50},"in_reply_to":"7f515b1d_62a4c4a6","updated":"2017-09-29 14:16:56.000000000","message":"Done","commit_id":"fe9443509fc130a7c39de04b91614dfe96d7a1b2"}],"ironic_python_agent/tests/unit/extensions/test_rescue.py":[{"author":{"_account_id":20462,"name":"Annie Lezil","email":"annie.lezil@gmail.com","username":"alezil"},"change_message_id":"04af60809f5b2fac9c6aa53ae90f43fdae1decae","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        self.agent_extension.agent.serve_api \u003d True"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"        self.agent_extension.finalize_rescue(rescue_password\u003d\u0027password\u0027)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        mock_write_rescue_password.assert_called_once_with(\u0027password\u0027)"},{"line_number":63,"context_line":"        self.assertFalse(mock_write_configdrive.called)"},{"line_number":64,"context_line":"        self.assertFalse(self.agent_extension.agent.serve_api)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba2be162_b9e0b9fb","line":61,"updated":"2017-03-03 00:25:11.000000000","message":"test case with config drive is missing","commit_id":"ba0049ebe4f409c00a2ede4082ec6a02a1e510df"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"32337ab01a37f999e530b562e1d6ce46c21b339d","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        self.agent_extension.agent.serve_api \u003d True"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"        self.agent_extension.finalize_rescue(rescue_password\u003d\u0027password\u0027)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        mock_write_rescue_password.assert_called_once_with(\u0027password\u0027)"},{"line_number":63,"context_line":"        self.assertFalse(mock_write_configdrive.called)"},{"line_number":64,"context_line":"        self.assertFalse(self.agent_extension.agent.serve_api)"}],"source_content_type":"text/x-python","patch_set":14,"id":"dfeb2761_d53ab3e5","line":61,"in_reply_to":"ba2be162_b9e0b9fb","updated":"2017-03-31 19:56:19.000000000","message":"configdrive code removed per other comment","commit_id":"ba0049ebe4f409c00a2ede4082ec6a02a1e510df"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"13b39785ab247eb14bdf035731413f83942d0454","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    @mock.patch(\u0027ironic_python_agent.extensions.rescue.crypt.crypt\u0027)"},{"line_number":36,"context_line":"    @mock.patch(\u0027ironic_python_agent.extensions.rescue.RescueExtension.\u0027"},{"line_number":37,"context_line":"                \u0027make_salt\u0027)"},{"line_number":38,"context_line":"    def test_write_rescue_password(self, mock_salt, mock_crypt):"},{"line_number":39,"context_line":"        mock_salt.return_value \u003d \u002712\u0027"},{"line_number":40,"context_line":"        mock_crypt.return_value \u003d \u002712deadbeef\u0027"},{"line_number":41,"context_line":"        mock_open \u003d mock.mock_open()"}],"source_content_type":"text/x-python","patch_set":27,"id":"df3967d1_9da0e6a7","line":38,"range":{"start_line":38,"start_character":8,"end_line":38,"end_character":34},"updated":"2017-07-28 21:57:51.000000000","message":"may be a negative test to see for empty password","commit_id":"4daad929db35c859f58dec97a2a419ba7674b2fc"},{"author":{"_account_id":15074,"name":"Aparna","email":"aparnavtce@gmail.com","username":"Aparna"},"change_message_id":"024df05b8b3ea22915c3c05e886e703a3f7d44ce","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    @mock.patch(\u0027ironic_python_agent.extensions.rescue.crypt.crypt\u0027)"},{"line_number":36,"context_line":"    @mock.patch(\u0027ironic_python_agent.extensions.rescue.RescueExtension.\u0027"},{"line_number":37,"context_line":"                \u0027make_salt\u0027)"},{"line_number":38,"context_line":"    def test_write_rescue_password(self, mock_salt, mock_crypt):"},{"line_number":39,"context_line":"        mock_salt.return_value \u003d \u002712\u0027"},{"line_number":40,"context_line":"        mock_crypt.return_value \u003d \u002712deadbeef\u0027"},{"line_number":41,"context_line":"        mock_open \u003d mock.mock_open()"}],"source_content_type":"text/x-python","patch_set":27,"id":"df3967d1_03f45a85","line":38,"range":{"start_line":38,"start_character":8,"end_line":38,"end_character":34},"in_reply_to":"df3967d1_9da0e6a7","updated":"2017-08-01 08:59:44.000000000","message":"I am guessing empty password won\u0027t be a valid test case because ironic doesn\u0027t allow empty rescue password.","commit_id":"4daad929db35c859f58dec97a2a419ba7674b2fc"}],"ironic_python_agent/tests/unit/test_agent.py":[{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"c81286a186f2b14d53a609604018028ceed5702e","unresolved":false,"context_lines":[{"line_number":524,"context_line":""},{"line_number":525,"context_line":"        listen_addr \u003d agent.Host(\u0027192.0.2.1\u0027, 9999)"},{"line_number":526,"context_line":"        # TODO(mariojv) assert set_app called here and below, also assert"},{"line_number":527,"context_line":"        # handle_request is operating correctly"},{"line_number":528,"context_line":"        mock_make_server.assert_called_once_with("},{"line_number":529,"context_line":"            (listen_addr.hostname,"},{"line_number":530,"context_line":"             listen_addr.port),"}],"source_content_type":"text/x-python","patch_set":15,"id":"dfeb2761_abeb4cae","line":527,"updated":"2017-03-31 20:14:37.000000000","message":"We should do this.","commit_id":"fc268c3d9a07630ff861d0ef65384e61c7d2b546"},{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"014b9c627ce140db52c487b0811c9ee23fc5006f","unresolved":false,"context_lines":[{"line_number":244,"context_line":"        }"},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"        self.assertRaisesRegex(errors.IronicAPIError,"},{"line_number":247,"context_line":"                               \u0027Failed due to unknow exception.\u0027,"},{"line_number":248,"context_line":"                               self.agent.run)"},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"        self.assertTrue(mock_wait.called)"}],"source_content_type":"text/x-python","patch_set":33,"id":"df87a7cf_c3ddf842","line":247,"range":{"start_line":247,"start_character":46,"end_line":247,"end_character":52},"updated":"2017-12-06 14:15:17.000000000","message":"nit: s/unknow/unknown/","commit_id":"a659306272542dd38420cb118cc7b04b1e8cf377"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"b3470f1b3ea70c84a9ea1e77aadabf327ea07da8","unresolved":false,"context_lines":[{"line_number":244,"context_line":"        }"},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"        self.assertRaisesRegex(errors.IronicAPIError,"},{"line_number":247,"context_line":"                               \u0027Failed due to unknow exception.\u0027,"},{"line_number":248,"context_line":"                               self.agent.run)"},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"        self.assertTrue(mock_wait.called)"}],"source_content_type":"text/x-python","patch_set":33,"id":"5f93b717_1d84bd0b","line":247,"range":{"start_line":247,"start_character":46,"end_line":247,"end_character":52},"in_reply_to":"df87a7cf_c3ddf842","updated":"2018-01-27 12:34:46.000000000","message":"Done","commit_id":"a659306272542dd38420cb118cc7b04b1e8cf377"}],"releasenotes/notes/add-coreos-dhcp-rescue-support-1dd8e9d5ac9c7594.yaml":[{"author":{"_account_id":20462,"name":"Annie Lezil","email":"annie.lezil@gmail.com","username":"alezil"},"change_message_id":"04af60809f5b2fac9c6aa53ae90f43fdae1decae","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - An extension was added to support rescue mode for CoreOS agents using DHCP"},{"line_number":4,"context_line":"    for the tenant network. Future work will add this for tinyIPA and DIB"},{"line_number":5,"context_line":"    agents with support for tenant networks configured using configdrives."}],"source_content_type":"text/x-yaml","patch_set":14,"id":"ba2be162_d9972d46","line":2,"updated":"2017-03-03 00:25:11.000000000","message":"Does release note should be present tense not past tense?","commit_id":"ba0049ebe4f409c00a2ede4082ec6a02a1e510df"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"32337ab01a37f999e530b562e1d6ce46c21b339d","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - An extension was added to support rescue mode for CoreOS agents using DHCP"},{"line_number":4,"context_line":"    for the tenant network. Future work will add this for tinyIPA and DIB"},{"line_number":5,"context_line":"    agents with support for tenant networks configured using configdrives."}],"source_content_type":"text/x-yaml","patch_set":14,"id":"dfeb2761_95242bc8","line":2,"in_reply_to":"ba2be162_d9972d46","updated":"2017-03-31 19:56:19.000000000","message":"Reworded the whole thing.","commit_id":"ba0049ebe4f409c00a2ede4082ec6a02a1e510df"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"af72096e476f80e24e8d062049cf88202de1c76f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - An extension was added to support rescue mode for CoreOS agents using DHCP"},{"line_number":4,"context_line":"    for the tenant network. Future work will add this for tinyIPA and DIB"},{"line_number":5,"context_line":"    agents with support for tenant networks configured using configdrives."}],"source_content_type":"text/x-yaml","patch_set":28,"id":"7f515b1d_4fc13e2e","line":3,"updated":"2017-09-26 13:21:06.000000000","message":"s/An/Adds an/\ns/was added//","commit_id":"b0ac002bd625dfed88015b04dffd88e276b8f068"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"3f6fa593150b8a6a4c763895cc831d3ca95c1760","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - An extension was added to support rescue mode for CoreOS agents using DHCP"},{"line_number":4,"context_line":"    for the tenant network. Future work will add this for tinyIPA and DIB"},{"line_number":5,"context_line":"    agents with support for tenant networks configured using configdrives."}],"source_content_type":"text/x-yaml","patch_set":28,"id":"7f515b1d_d9df1138","line":3,"in_reply_to":"7f515b1d_4fc13e2e","updated":"2017-09-27 16:07:52.000000000","message":"Done","commit_id":"b0ac002bd625dfed88015b04dffd88e276b8f068"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"af72096e476f80e24e8d062049cf88202de1c76f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - An extension was added to support rescue mode for CoreOS agents using DHCP"},{"line_number":4,"context_line":"    for the tenant network. Future work will add this for tinyIPA and DIB"},{"line_number":5,"context_line":"    agents with support for tenant networks configured using configdrives."}],"source_content_type":"text/x-yaml","patch_set":28,"id":"7f515b1d_2f15e29c","line":5,"range":{"start_line":4,"start_character":28,"end_line":5,"end_character":74},"updated":"2017-09-26 13:21:06.000000000","message":"I\u0027m kind of iffy on this.  I think we should actually remove this.","commit_id":"b0ac002bd625dfed88015b04dffd88e276b8f068"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"3f6fa593150b8a6a4c763895cc831d3ca95c1760","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - An extension was added to support rescue mode for CoreOS agents using DHCP"},{"line_number":4,"context_line":"    for the tenant network. Future work will add this for tinyIPA and DIB"},{"line_number":5,"context_line":"    agents with support for tenant networks configured using configdrives."}],"source_content_type":"text/x-yaml","patch_set":28,"id":"7f515b1d_59eb21db","line":5,"range":{"start_line":4,"start_character":28,"end_line":5,"end_character":74},"in_reply_to":"7f515b1d_2f15e29c","updated":"2017-09-27 16:07:52.000000000","message":"Done","commit_id":"b0ac002bd625dfed88015b04dffd88e276b8f068"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"ef73d77b670b7920cfb2146e49e2ea850e9d28b4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Adds an extension to support rescue mode for CoreOS agents using DHCP"},{"line_number":4,"context_line":"    for the tenant network."}],"source_content_type":"text/x-yaml","patch_set":33,"id":"df87a7cf_8ca33900","line":4,"updated":"2017-12-11 13:08:47.000000000","message":"I\u0027d prefer this to be split into \u0027Adds an extension to support rescue mode.\" and \"Support rescue for CoreOS-based ramdisk.\"","commit_id":"a659306272542dd38420cb118cc7b04b1e8cf377"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"b3470f1b3ea70c84a9ea1e77aadabf327ea07da8","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Adds an extension to support rescue mode for CoreOS agents using DHCP"},{"line_number":4,"context_line":"    for the tenant network."}],"source_content_type":"text/x-yaml","patch_set":33,"id":"5f93b717_7dbb81c3","line":4,"in_reply_to":"df87a7cf_8ca33900","updated":"2018-01-27 12:34:46.000000000","message":"Done","commit_id":"a659306272542dd38420cb118cc7b04b1e8cf377"}]}
