)]}'
{"specs/approved/tooling-for-recorvering-nodes.rst":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8d679bbe636819f0fd9c4d0324782b8e3924163c","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1580931"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This sepc is intended to provide a tool to recovery nodes stuck in -ING states."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Problem description"},{"line_number":16,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bab6814e_3ba527b5","line":13,"updated":"2016-05-24 12:10:20.000000000","message":"typo: spec","commit_id":"0cf1d042793ab6070dda973d71d561f33d5cf10f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8d679bbe636819f0fd9c4d0324782b8e3924163c","unresolved":false,"context_lines":[{"line_number":28,"context_line":"without accessing DB."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Currently Ironic support ``abort`` nodes in ``clean wait`` state and"},{"line_number":31,"context_line":"``delete`` nodes in ``deploy wait`` state. So this sepc is focus on how to"},{"line_number":32,"context_line":"recover nodes in -ING states."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bab6814e_9baa5384","line":31,"updated":"2016-05-24 12:10:20.000000000","message":"typo: spec","commit_id":"0cf1d042793ab6070dda973d71d561f33d5cf10f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8d679bbe636819f0fd9c4d0324782b8e3924163c","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Currently Ironic support ``abort`` nodes in ``clean wait`` state and"},{"line_number":31,"context_line":"``delete`` nodes in ``deploy wait`` state. So this sepc is focus on how to"},{"line_number":32,"context_line":"recover nodes in -ING states."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Proposed change"},{"line_number":35,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bab6814e_7bafaf94","line":32,"updated":"2016-05-24 12:10:20.000000000","message":"Please provide examples of how a node can get stuck in an -ING state (and why we can\u0027t fix it)","commit_id":"0cf1d042793ab6070dda973d71d561f33d5cf10f"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"d79c3a5c36bd94f29d54a0d55a76f52b2078d654","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Currently Ironic support ``abort`` nodes in ``clean wait`` state and"},{"line_number":31,"context_line":"``delete`` nodes in ``deploy wait`` state. So this sepc is focus on how to"},{"line_number":32,"context_line":"recover nodes in -ING states."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Proposed change"},{"line_number":35,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bab6814e_c8206cfa","line":32,"in_reply_to":"bab6814e_7bafaf94","updated":"2016-05-25 02:34:54.000000000","message":"An simple example is when a node in deploying state but the corresponding conductor was broken, then the node get stuck in this state. Any operation to the node will get reject because of it was still reserved by the dead conductor. At the moment, we can either restart the conductor or wait until _check_deploying_states() have an effect. So this spec provide an alternative.","commit_id":"0cf1d042793ab6070dda973d71d561f33d5cf10f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"bac96fb503cd69d527023b607cdc6321135aeb94","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Currently Ironic support ``abort`` nodes in ``clean wait`` state and"},{"line_number":31,"context_line":"``delete`` nodes in ``deploy wait`` state. So this sepc is focus on how to"},{"line_number":32,"context_line":"recover nodes in -ING states."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Proposed change"},{"line_number":35,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bab6814e_040ff188","line":32,"in_reply_to":"bab6814e_c8206cfa","updated":"2016-05-25 09:01:05.000000000","message":"\u003e At the moment, we can either restart the conductor or wait until _check_deploying_states() have an effect\n\nWhich is maximum 2 minutes (1 minutes before conductor considered dead, 1 minutes is _check_deploying_status periodic interval). I don\u0027t think waiting up to 2 minutes is a huge deal.","commit_id":"0cf1d042793ab6070dda973d71d561f33d5cf10f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8d679bbe636819f0fd9c4d0324782b8e3924163c","unresolved":false,"context_lines":[{"line_number":34,"context_line":"Proposed change"},{"line_number":35,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Create a new Command line tool to recover nodes. This tool will accept a list"},{"line_number":38,"context_line":"of ``node_uuid`` and access DB. The value of ``provision_state`` will be"},{"line_number":39,"context_line":"overridden by a corresponding fail state (for example, deploying-\u003e deployfail)"},{"line_number":40,"context_line":"and ``reservation`` and ``target_provisioning_state`` will be cleared."}],"source_content_type":"text/x-rst","patch_set":2,"id":"bab6814e_db94db45","line":37,"updated":"2016-05-24 12:10:20.000000000","message":"nit: command","commit_id":"0cf1d042793ab6070dda973d71d561f33d5cf10f"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"689d31d66de697c4b6cd9d6c1906aba19a935a53","unresolved":false,"context_lines":[{"line_number":37,"context_line":"Create a new Command line tool to recover nodes. This tool will accept a list"},{"line_number":38,"context_line":"of ``node_uuid`` and access DB. The value of ``provision_state`` will be"},{"line_number":39,"context_line":"overridden by a corresponding fail state (for example, deploying-\u003e deployfail)"},{"line_number":40,"context_line":"and ``reservation`` and ``target_provisioning_state`` will be cleared."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Alternatives"},{"line_number":43,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bab6814e_ff130f63","line":40,"range":{"start_line":40,"start_character":4,"end_line":40,"end_character":19},"updated":"2016-05-26 11:52:49.000000000","message":"I think clear reservation should be optionally and not recommended to user.","commit_id":"0cf1d042793ab6070dda973d71d561f33d5cf10f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8d679bbe636819f0fd9c4d0324782b8e3924163c","unresolved":false,"context_lines":[{"line_number":37,"context_line":"Create a new Command line tool to recover nodes. This tool will accept a list"},{"line_number":38,"context_line":"of ``node_uuid`` and access DB. The value of ``provision_state`` will be"},{"line_number":39,"context_line":"overridden by a corresponding fail state (for example, deploying-\u003e deployfail)"},{"line_number":40,"context_line":"and ``reservation`` and ``target_provisioning_state`` will be cleared."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Alternatives"},{"line_number":43,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bab6814e_bb911755","line":40,"updated":"2016-05-24 12:10:20.000000000","message":"how will this tool ensure that a lock is not held on a node?","commit_id":"0cf1d042793ab6070dda973d71d561f33d5cf10f"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"d79c3a5c36bd94f29d54a0d55a76f52b2078d654","unresolved":false,"context_lines":[{"line_number":37,"context_line":"Create a new Command line tool to recover nodes. This tool will accept a list"},{"line_number":38,"context_line":"of ``node_uuid`` and access DB. The value of ``provision_state`` will be"},{"line_number":39,"context_line":"overridden by a corresponding fail state (for example, deploying-\u003e deployfail)"},{"line_number":40,"context_line":"and ``reservation`` and ``target_provisioning_state`` will be cleared."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Alternatives"},{"line_number":43,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bab6814e_084a7483","line":40,"in_reply_to":"bab6814e_bb911755","updated":"2016-05-25 02:34:54.000000000","message":"It will forcibly clear lock if there is one.","commit_id":"0cf1d042793ab6070dda973d71d561f33d5cf10f"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"730cb39803a2a2be2b5cd99f7e420e4ccdb19ba3","unresolved":false,"context_lines":[{"line_number":37,"context_line":"Create a new Command line tool to recover nodes. This tool will accept a list"},{"line_number":38,"context_line":"of ``node_uuid`` and access DB. The value of ``provision_state`` will be"},{"line_number":39,"context_line":"overridden by a corresponding fail state (for example, deploying-\u003e deployfail)"},{"line_number":40,"context_line":"and ``reservation`` and ``target_provisioning_state`` will be cleared."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Alternatives"},{"line_number":43,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bab6814e_e2b4ef82","line":40,"range":{"start_line":40,"start_character":4,"end_line":40,"end_character":19},"in_reply_to":"bab6814e_ff130f63","updated":"2016-05-27 02:51:03.000000000","message":"But the clear reservation is the key point per my understanding. Otherwise, even if the node is in deployfail state, user can not manipulate it because of the lock.","commit_id":"0cf1d042793ab6070dda973d71d561f33d5cf10f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8d679bbe636819f0fd9c4d0324782b8e3924163c","unresolved":false,"context_lines":[{"line_number":42,"context_line":"Alternatives"},{"line_number":43,"context_line":"------------"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Another possible solution is let users update DB records manually."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Data model impact"},{"line_number":48,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bab6814e_1b9f8360","line":45,"updated":"2016-05-24 12:10:20.000000000","message":"the actualy alternative is to make sure -ING states don\u0027t get stuck. they actually should not - they are not waiting on anything external (unlike -WAIT states). Why can\u0027t we figure out where we can get stuck on -ING states?","commit_id":"0cf1d042793ab6070dda973d71d561f33d5cf10f"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"d79c3a5c36bd94f29d54a0d55a76f52b2078d654","unresolved":false,"context_lines":[{"line_number":42,"context_line":"Alternatives"},{"line_number":43,"context_line":"------------"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Another possible solution is let users update DB records manually."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Data model impact"},{"line_number":48,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bab6814e_e3f111cf","line":45,"in_reply_to":"bab6814e_1b9f8360","updated":"2016-05-25 02:34:54.000000000","message":"Per my understanding, the stuck is because of the node is reserved by a dead conductor (the exclusive lock was not released), ironic do have some ways to clear the lock like restart the dead conductor or _check_deploying_states() but people still used to update DB records manually. So let\u0027s provide a better choice if they want.","commit_id":"0cf1d042793ab6070dda973d71d561f33d5cf10f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"bc4adcf5f2ab9610bbd236dbf4f2c68b745940bd","unresolved":false,"context_lines":[{"line_number":42,"context_line":"Alternatives"},{"line_number":43,"context_line":"------------"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Another possible solution is let users update DB records manually."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Data model impact"},{"line_number":48,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9abb7d3a_aeb6c5d9","line":45,"in_reply_to":"bab6814e_e3f111cf","updated":"2016-05-30 12:16:25.000000000","message":"People should do neither really. It\u0027s only 2 minutes wait, as IIRC I already wrote","commit_id":"0cf1d042793ab6070dda973d71d561f33d5cf10f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8d679bbe636819f0fd9c4d0324782b8e3924163c","unresolved":false,"context_lines":[{"line_number":107,"context_line":"------------------"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"This tool will forcibly clear lock on target nodes and potentially lead"},{"line_number":110,"context_line":"nodes to wrong states."},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"Other deployer impact"},{"line_number":113,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bab6814e_fb9b9f70","line":110,"updated":"2016-05-24 12:10:20.000000000","message":"I don\u0027t agree with a tool overriding locks, to be honest.","commit_id":"0cf1d042793ab6070dda973d71d561f33d5cf10f"}]}
