)]}'
{"doc/source/contributor/code-contribution-guide.rst":[{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"978e628684171640deb998485cb797547da1e78f","unresolved":false,"context_lines":[{"line_number":141,"context_line":""},{"line_number":142,"context_line":"Live Upgrade Related Concerns"},{"line_number":143,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":144,"context_line":"Ironic implements rolling upgrades described in the `Upgrade Guide \u003cdeploy/upgrade-guide\u003e`_. The upgrade procedure can be summarized in the following steps:"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"#. Install the new release in a separate virtualenv (or VM or container) and"},{"line_number":147,"context_line":"   upgrade DB schema by running :command:`ironic-dbsync upgrade` on it."}],"source_content_type":"text/x-rst","patch_set":15,"id":"df3967d1_2f78188e","line":144,"range":{"start_line":144,"start_character":67,"end_line":144,"end_character":89},"updated":"2017-08-03 05:03:20.000000000","message":"the link is broken","commit_id":"19bd469469396f039f2f6a6a073d3ffc149bd7b0"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"978e628684171640deb998485cb797547da1e78f","unresolved":false,"context_lines":[{"line_number":166,"context_line":"are run at different versions simultaneously). It is forbidden to remove these"},{"line_number":167,"context_line":"database resources when they may still be used by the previous named release."},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"When creating new Alembic migrations (decribed in the `FAQ \u003cdev/faq\u003e`_) which"},{"line_number":170,"context_line":"modify existing models make sure that the new columns default to NULL."},{"line_number":171,"context_line":"Test the migration out on a non-empty database to make sure that any new"},{"line_number":172,"context_line":"constraints don\u0027t cause the database to be locked out for normal operations."}],"source_content_type":"text/x-rst","patch_set":15,"id":"df3967d1_6fb62041","line":169,"range":{"start_line":169,"start_character":58,"end_line":169,"end_character":68},"updated":"2017-08-03 05:03:20.000000000","message":"ditto","commit_id":"19bd469469396f039f2f6a6a073d3ffc149bd7b0"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"978e628684171640deb998485cb797547da1e78f","unresolved":false,"context_lines":[{"line_number":167,"context_line":"database resources when they may still be used by the previous named release."},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"When creating new Alembic migrations (decribed in the `FAQ \u003cdev/faq\u003e`_) which"},{"line_number":170,"context_line":"modify existing models make sure that the new columns default to NULL."},{"line_number":171,"context_line":"Test the migration out on a non-empty database to make sure that any new"},{"line_number":172,"context_line":"constraints don\u0027t cause the database to be locked out for normal operations."},{"line_number":173,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"df3967d1_8f96e492","line":170,"range":{"start_line":170,"start_character":16,"end_line":170,"end_character":22},"updated":"2017-08-03 05:03:20.000000000","message":"s/models/models,/","commit_id":"19bd469469396f039f2f6a6a073d3ffc149bd7b0"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"978e628684171640deb998485cb797547da1e78f","unresolved":false,"context_lines":[{"line_number":213,"context_line":"   if the version of the request is compatible with the version cap of RPC"},{"line_number":214,"context_line":"   Client, otherwise the request needs to be created to work with a previous"},{"line_number":215,"context_line":"   version that is supported."},{"line_number":216,"context_line":" - New RPC methods are not be available when the service is pinned to the older"},{"line_number":217,"context_line":"   release version. The new HTTP API functions should return a server error or"},{"line_number":218,"context_line":"   implement alternative behaviours depending on the ``version_cap``."},{"line_number":219,"context_line":" - Server-side should tolerate the older version of requests in order to keep"}],"source_content_type":"text/x-rst","patch_set":15,"id":"df3967d1_afb0878b","line":216,"range":{"start_line":216,"start_character":27,"end_line":216,"end_character":30},"updated":"2017-08-03 05:03:20.000000000","message":"nit s/be//","commit_id":"19bd469469396f039f2f6a6a073d3ffc149bd7b0"}],"doc/source/contributor/rolling-upgrades.rst":[{"author":{"_account_id":18320,"name":"Dao Cong Tien","email":"tiendc@vn.fujitsu.com","username":"TienDC"},"change_message_id":"fb738e524a7b35efb961334c64ff7d1eed148bae","unresolved":false,"context_lines":[{"line_number":22,"context_line":"development cycle like Pike."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"In addition, ironic follows the `standard deprecation policy"},{"line_number":25,"context_line":"\u003chttp://governance.openstack.org/reference/tags/assert_follows-standard-deprecation.html\u003e`_, which says that the deprecation period must be at least three"},{"line_number":26,"context_line":"months and a cycle boundary. This means that there will never be anything that"},{"line_number":27,"context_line":"is both deprecated *and* removed between two named releases."},{"line_number":28,"context_line":""}],"source_content_type":"text/x-rst","patch_set":18,"id":"7f515b1d_90c83522","line":25,"range":{"start_line":25,"start_character":93,"end_line":25,"end_character":154},"updated":"2017-09-28 10:03:36.000000000","message":"nit: please move this to next line","commit_id":"292e45f4a4399fcaed94abc7ef244d2a270c7180"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"9905c8f67707b83043a483a911f5afca8cd5840c","unresolved":false,"context_lines":[{"line_number":22,"context_line":"development cycle like Pike."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"In addition, ironic follows the `standard deprecation policy"},{"line_number":25,"context_line":"\u003chttp://governance.openstack.org/reference/tags/assert_follows-standard-deprecation.html\u003e`_, which says that the deprecation period must be at least three"},{"line_number":26,"context_line":"months and a cycle boundary. This means that there will never be anything that"},{"line_number":27,"context_line":"is both deprecated *and* removed between two named releases."},{"line_number":28,"context_line":""}],"source_content_type":"text/x-rst","patch_set":18,"id":"7f515b1d_ef8c1cd8","line":25,"range":{"start_line":25,"start_character":93,"end_line":25,"end_character":154},"in_reply_to":"7f515b1d_90c83522","updated":"2017-09-28 17:29:39.000000000","message":"whoops!","commit_id":"292e45f4a4399fcaed94abc7ef244d2a270c7180"},{"author":{"_account_id":18320,"name":"Dao Cong Tien","email":"tiendc@vn.fujitsu.com","username":"TienDC"},"change_message_id":"fb738e524a7b35efb961334c64ff7d1eed148bae","unresolved":false,"context_lines":[{"line_number":106,"context_line":"  to rename a column, add the new column in release N, then remove the old"},{"line_number":107,"context_line":"  column in release N+1."},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"* some implementations of SQL\u0027s ``ALTER TABLE``, such as adding foreign keys in"},{"line_number":110,"context_line":"  PostgreSQL, may impose table locks and cause downtime. If the change cannot"},{"line_number":111,"context_line":"  be avoided and the impact is significant (e.g. the table can be frequently"},{"line_number":112,"context_line":"  accessed and/or store a large dataset), these cases must be mentioned in the"}],"source_content_type":"text/x-rst","patch_set":18,"id":"7f515b1d_8b000603","line":109,"range":{"start_line":109,"start_character":2,"end_line":109,"end_character":3},"updated":"2017-09-28 10:03:36.000000000","message":"nit: s/s/S/","commit_id":"292e45f4a4399fcaed94abc7ef244d2a270c7180"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"9905c8f67707b83043a483a911f5afca8cd5840c","unresolved":false,"context_lines":[{"line_number":106,"context_line":"  to rename a column, add the new column in release N, then remove the old"},{"line_number":107,"context_line":"  column in release N+1."},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"* some implementations of SQL\u0027s ``ALTER TABLE``, such as adding foreign keys in"},{"line_number":110,"context_line":"  PostgreSQL, may impose table locks and cause downtime. If the change cannot"},{"line_number":111,"context_line":"  be avoided and the impact is significant (e.g. the table can be frequently"},{"line_number":112,"context_line":"  accessed and/or store a large dataset), these cases must be mentioned in the"}],"source_content_type":"text/x-rst","patch_set":18,"id":"7f515b1d_52575759","line":109,"range":{"start_line":109,"start_character":2,"end_line":109,"end_character":3},"in_reply_to":"7f515b1d_8b000603","updated":"2017-09-28 17:29:39.000000000","message":"Done","commit_id":"292e45f4a4399fcaed94abc7ef244d2a270c7180"},{"author":{"_account_id":18320,"name":"Dao Cong Tien","email":"tiendc@vn.fujitsu.com","username":"TienDC"},"change_message_id":"fb738e524a7b35efb961334c64ff7d1eed148bae","unresolved":false,"context_lines":[{"line_number":361,"context_line":""},{"line_number":362,"context_line":"- Any change of fields or change in signature of remotable methods needs a bump"},{"line_number":363,"context_line":"  of the object version. The object versions are also maintained in"},{"line_number":364,"context_line":"  ``ironic/common/release_mapping.py``."},{"line_number":365,"context_line":"- New objects must be added to ``ironic/common/release_mapping.py``."},{"line_number":366,"context_line":"- The arguments of remotable methods (methods which are remoted to the"},{"line_number":367,"context_line":"  conductor via RPC) can only be added as optional; they cannot be removed or"}],"source_content_type":"text/x-rst","patch_set":18,"id":"7f515b1d_0bfbf678","line":364,"range":{"start_line":364,"start_character":26,"end_line":364,"end_character":33},"updated":"2017-09-28 10:03:36.000000000","message":"s/mapping/mappings/","commit_id":"292e45f4a4399fcaed94abc7ef244d2a270c7180"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"9905c8f67707b83043a483a911f5afca8cd5840c","unresolved":false,"context_lines":[{"line_number":361,"context_line":""},{"line_number":362,"context_line":"- Any change of fields or change in signature of remotable methods needs a bump"},{"line_number":363,"context_line":"  of the object version. The object versions are also maintained in"},{"line_number":364,"context_line":"  ``ironic/common/release_mapping.py``."},{"line_number":365,"context_line":"- New objects must be added to ``ironic/common/release_mapping.py``."},{"line_number":366,"context_line":"- The arguments of remotable methods (methods which are remoted to the"},{"line_number":367,"context_line":"  conductor via RPC) can only be added as optional; they cannot be removed or"}],"source_content_type":"text/x-rst","patch_set":18,"id":"7f515b1d_92594f8f","line":364,"range":{"start_line":364,"start_character":26,"end_line":364,"end_character":33},"in_reply_to":"7f515b1d_0bfbf678","updated":"2017-09-28 17:29:39.000000000","message":"Done","commit_id":"292e45f4a4399fcaed94abc7ef244d2a270c7180"},{"author":{"_account_id":18320,"name":"Dao Cong Tien","email":"tiendc@vn.fujitsu.com","username":"TienDC"},"change_message_id":"fb738e524a7b35efb961334c64ff7d1eed148bae","unresolved":false,"context_lines":[{"line_number":362,"context_line":"- Any change of fields or change in signature of remotable methods needs a bump"},{"line_number":363,"context_line":"  of the object version. The object versions are also maintained in"},{"line_number":364,"context_line":"  ``ironic/common/release_mapping.py``."},{"line_number":365,"context_line":"- New objects must be added to ``ironic/common/release_mapping.py``."},{"line_number":366,"context_line":"- The arguments of remotable methods (methods which are remoted to the"},{"line_number":367,"context_line":"  conductor via RPC) can only be added as optional; they cannot be removed or"},{"line_number":368,"context_line":"  changed in an incompatible way (to the previous release)."}],"source_content_type":"text/x-rst","patch_set":18,"id":"7f515b1d_8b2c8602","line":365,"range":{"start_line":365,"start_character":55,"end_line":365,"end_character":62},"updated":"2017-09-28 10:03:36.000000000","message":"ditto","commit_id":"292e45f4a4399fcaed94abc7ef244d2a270c7180"},{"author":{"_account_id":19741,"name":"Hieu LE","email":"hieulq2@viettel.com.vn","username":"hieulq"},"change_message_id":"17a141f6db135fa189e7fd856bde1a439ae9277b","unresolved":false,"context_lines":[{"line_number":47,"context_line":"-----------------------"},{"line_number":48,"context_line":"Ironic supports rolling upgrades as described in the"},{"line_number":49,"context_line":":doc:`upgrade guide \u003c../admin/upgrade-guide\u003e`."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"The upgrade process will cause the ironic services to be running the ``FromVer``"},{"line_number":52,"context_line":"and ``ToVer`` releases in this order:"},{"line_number":53,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"7f515b1d_18a45507","line":50,"updated":"2017-09-29 06:26:46.000000000","message":"In Denver PTG, some one told that if Nova was upgraded before Ironic, Ironic could be broken. Should we mention here this issue for development environment?","commit_id":"a5b0de1a68fecae26d23ec809673ea01104522ec"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"86384c73cce085a1ece4e5de47e0472f3e91f631","unresolved":false,"context_lines":[{"line_number":47,"context_line":"-----------------------"},{"line_number":48,"context_line":"Ironic supports rolling upgrades as described in the"},{"line_number":49,"context_line":":doc:`upgrade guide \u003c../admin/upgrade-guide\u003e`."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"The upgrade process will cause the ironic services to be running the ``FromVer``"},{"line_number":52,"context_line":"and ``ToVer`` releases in this order:"},{"line_number":53,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"7f515b1d_9f1928d8","line":50,"in_reply_to":"7f515b1d_18a45507","updated":"2017-10-02 12:55:30.000000000","message":"That some one could have been me, since I know that I mentioned it :-)\n\nIt is mentioned in https://docs.openstack.org/ironic/latest/admin/upgrade-guide.html#plan-your-upgrade, and I think that wrt development, it could be mentioned if we had a dev doc wrt nova \u0026 ironic. I don\u0027t think it belongs here, this page is already too long and it isn\u0027t specific to rolling upgrades, just upgrades in general.\n\nAlso, the plan is to change that dependency, either in Queens or Rocky.","commit_id":"a5b0de1a68fecae26d23ec809673ea01104522ec"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"999e6bea6e257c8e0d958dc4131b8ef2df3c1a80","unresolved":false,"context_lines":[{"line_number":130,"context_line":"releases, named (e.g. ``ocata``) or sem-versioned (e.g. ``7.0``)."},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"Internally, in `common/release_mappings.py"},{"line_number":133,"context_line":"\u003chttps://github.com/openstack/ironic/blob/master/ironic/common/release_mappings.py\u003e`_,"},{"line_number":134,"context_line":"ironic maintains a mapping that indicates the RPC and"},{"line_number":135,"context_line":"IronicObject versions associated with each release. This mapping is"},{"line_number":136,"context_line":"maintained manually."}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f4b6375_5a49d3b4","line":133,"updated":"2017-11-02 16:04:43.000000000","message":"we tend to prefer git openstack org links, but it\u0027s a nit","commit_id":"38ee7fa16ae36fdfe69885cdc8848e5378c64ded"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b3febef61dd8af5cb4368a48e648673ffa58be2a","unresolved":false,"context_lines":[{"line_number":130,"context_line":"releases, named (e.g. ``ocata``) or sem-versioned (e.g. ``7.0``)."},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"Internally, in `common/release_mappings.py"},{"line_number":133,"context_line":"\u003chttps://github.com/openstack/ironic/blob/master/ironic/common/release_mappings.py\u003e`_,"},{"line_number":134,"context_line":"ironic maintains a mapping that indicates the RPC and"},{"line_number":135,"context_line":"IronicObject versions associated with each release. This mapping is"},{"line_number":136,"context_line":"maintained manually."}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f4b6375_fcf4f4f2","line":133,"in_reply_to":"3f4b6375_5a49d3b4","updated":"2017-11-02 20:02:22.000000000","message":"True. Line numbers aren\u0027t highlighted there, but whatever.","commit_id":"38ee7fa16ae36fdfe69885cdc8848e5378c64ded"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"999e6bea6e257c8e0d958dc4131b8ef2df3c1a80","unresolved":false,"context_lines":[{"line_number":151,"context_line":"variable is then used to determine the maximum requested message version that"},{"line_number":152,"context_line":"the ``RPCClient`` can send."},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"Each RPC call can customize the request according to this ``version_cap``."},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"Handling IronicObject versions"},{"line_number":157,"context_line":"------------------------------"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f4b6375_3af1776c","line":154,"updated":"2017-11-02 16:04:43.000000000","message":"... which is described below","commit_id":"38ee7fa16ae36fdfe69885cdc8848e5378c64ded"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b3febef61dd8af5cb4368a48e648673ffa58be2a","unresolved":false,"context_lines":[{"line_number":151,"context_line":"variable is then used to determine the maximum requested message version that"},{"line_number":152,"context_line":"the ``RPCClient`` can send."},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"Each RPC call can customize the request according to this ``version_cap``."},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"Handling IronicObject versions"},{"line_number":157,"context_line":"------------------------------"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f4b6375_dcddb870","line":154,"in_reply_to":"3f4b6375_3af1776c","updated":"2017-11-02 20:02:22.000000000","message":"+1","commit_id":"38ee7fa16ae36fdfe69885cdc8848e5378c64ded"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"999e6bea6e257c8e0d958dc4131b8ef2df3c1a80","unresolved":false,"context_lines":[{"line_number":252,"context_line":"3.1. It is possible for an IronicObject to be saved in a newer version and"},{"line_number":253,"context_line":"subsequently get saved in an older version. For example, a ``ToVer`` unpinned"},{"line_number":254,"context_line":"conductor might save a node in version 1.5. A subsequent request may cause a"},{"line_number":255,"context_line":"``ToVer`` pinned conductor to replace and save the same node in version 1.4!"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"Sending objects via RPC (API/conductor -\u003e RPC)"},{"line_number":258,"context_line":"::::::::::::::::::::::::::::::::::::::::::::::"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3f4b6375_555d2413","line":255,"updated":"2017-11-02 16:04:43.000000000","message":"++ good to have this written down","commit_id":"38ee7fa16ae36fdfe69885cdc8848e5378c64ded"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"9ab60b452377df34bb68abcc3ca1b35efce4d1e3","unresolved":false,"context_lines":[{"line_number":326,"context_line":"    \"new_field\" field was added to Node, any requests pertaining to"},{"line_number":327,"context_line":"    Node.new_field should not be processed."},{"line_number":328,"context_line":""},{"line_number":329,"context_line":"Ironic API RPC versions"},{"line_number":330,"context_line":"-----------------------"},{"line_number":331,"context_line":"When the signature (arguments) of an RPC method is changed or new methods are"},{"line_number":332,"context_line":"added, the following needs to be considered:"}],"source_content_type":"text/x-rst","patch_set":21,"id":"3f4b6375_a9662eba","line":329,"range":{"start_line":329,"start_character":7,"end_line":329,"end_character":14},"updated":"2017-11-03 12:23:25.000000000","message":"hrm, I thought it is generally RPC API","commit_id":"662d0595c1e297768fffd9bdac4bad59d9202f1e"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"fe993ca22e15c352c10272884dd662c677b3abad","unresolved":false,"context_lines":[{"line_number":326,"context_line":"    \"new_field\" field was added to Node, any requests pertaining to"},{"line_number":327,"context_line":"    Node.new_field should not be processed."},{"line_number":328,"context_line":""},{"line_number":329,"context_line":"Ironic API RPC versions"},{"line_number":330,"context_line":"-----------------------"},{"line_number":331,"context_line":"When the signature (arguments) of an RPC method is changed or new methods are"},{"line_number":332,"context_line":"added, the following needs to be considered:"}],"source_content_type":"text/x-rst","patch_set":21,"id":"3f4b6375_983b9036","line":329,"range":{"start_line":329,"start_character":7,"end_line":329,"end_character":14},"in_reply_to":"3f4b6375_a9662eba","updated":"2017-11-06 16:32:01.000000000","message":"That was initially there. Now that I think of it, I\u0027m going to remove API -- it is overloaded with different meanings.","commit_id":"662d0595c1e297768fffd9bdac4bad59d9202f1e"}],"doc/source/dev/code-contribution-guide.rst":[{"author":{"_account_id":19935,"name":"Anh Tran","email":"anhtt@vn.fujitsu.com","username":"trananhkma"},"change_message_id":"34e0122533c163eaa5600bc2d5fe41dcdf38a77e","unresolved":false,"context_lines":[{"line_number":143,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":144,"context_line":"Ironic implements rolling upgrades described in the `Upgrade Guide \u003cdeploy/upgrade-guide\u003e`_. The upgrade procedure can be summarized in the following steps:"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"#. Upgrade DB schema via :command:`ironic-dbsync upgrade`."},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"#. Pin RPC and IronicObject versions to the old release for both"},{"line_number":149,"context_line":"   ironic-api and ironic-conductor services, with the"}],"source_content_type":"text/x-rst","patch_set":1,"id":"7a3c09a3_982c5aad","line":146,"range":{"start_line":146,"start_character":0,"end_line":146,"end_character":58},"updated":"2017-01-13 01:48:03.000000000","message":"How can we upgrade schema before upgrading source code? Should we move \u0027upgrade source code\u0027 to the first step?","commit_id":"91227c3d30babf743a8921af25de5870f17dc15d"},{"author":{"_account_id":14250,"name":"Grzegorz Grasza","email":"xek@redhat.com","username":"xek"},"change_message_id":"702e05ccc4ba09116a91dbd2254f47d813976725","unresolved":false,"context_lines":[{"line_number":143,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":144,"context_line":"Ironic implements rolling upgrades described in the `Upgrade Guide \u003cdeploy/upgrade-guide\u003e`_. The upgrade procedure can be summarized in the following steps:"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"#. Upgrade DB schema via :command:`ironic-dbsync upgrade`."},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"#. Pin RPC and IronicObject versions to the old release for both"},{"line_number":149,"context_line":"   ironic-api and ironic-conductor services, with the"}],"source_content_type":"text/x-rst","patch_set":1,"id":"7a3c09a3_7f74edce","line":146,"range":{"start_line":146,"start_character":0,"end_line":146,"end_character":58},"in_reply_to":"7a3c09a3_982c5aad","updated":"2017-01-13 07:26:06.000000000","message":"We should, but only on the box/vm/container on which we are running this command... I\u0027ll update this step.","commit_id":"91227c3d30babf743a8921af25de5870f17dc15d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"27fc2d11a829baa9fce3ead315671da35d4c3656","unresolved":false,"context_lines":[{"line_number":151,"context_line":"   ``[DEFAULT]/pin_release_version`` configuration option."},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"#. Upgrade code and restart services, one at a time. Start with"},{"line_number":154,"context_line":"   ironic-conductor services, following with ironic-api."},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"#. Unpin RPC and object versions so that the services can now use the latest"},{"line_number":157,"context_line":"   versions, then restart the services in the same order as above."}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a3c09a3_53bdf6b5","line":154,"updated":"2017-01-16 22:12:38.000000000","message":"nit s/following with/followed by/","commit_id":"9224aa2f67054a3d97a0b4f62e617d455870dac5"},{"author":{"_account_id":14250,"name":"Grzegorz Grasza","email":"xek@redhat.com","username":"xek"},"change_message_id":"c39c6377e345063a4f432a247efea503604b7850","unresolved":false,"context_lines":[{"line_number":151,"context_line":"   ``[DEFAULT]/pin_release_version`` configuration option."},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"#. Upgrade code and restart services, one at a time. Start with"},{"line_number":154,"context_line":"   ironic-conductor services, following with ironic-api."},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"#. Unpin RPC and object versions so that the services can now use the latest"},{"line_number":157,"context_line":"   versions, then restart the services in the same order as above."}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a3c09a3_b0e6e612","line":154,"in_reply_to":"7a3c09a3_53bdf6b5","updated":"2017-01-17 16:19:42.000000000","message":"Done","commit_id":"9224aa2f67054a3d97a0b4f62e617d455870dac5"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"27fc2d11a829baa9fce3ead315671da35d4c3656","unresolved":false,"context_lines":[{"line_number":157,"context_line":"   versions, then restart the services in the same order as above."},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"#. Run :command:`ironic-dbsync online_data_migration` to ensure"},{"line_number":160,"context_line":"   that all DB records are \"upgraded\" to the new data version."},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"Online data migrations"},{"line_number":163,"context_line":"----------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a3c09a3_13c0ce29","line":160,"updated":"2017-01-16 22:12:38.000000000","message":"nit s/version/versions/","commit_id":"9224aa2f67054a3d97a0b4f62e617d455870dac5"},{"author":{"_account_id":14250,"name":"Grzegorz Grasza","email":"xek@redhat.com","username":"xek"},"change_message_id":"c39c6377e345063a4f432a247efea503604b7850","unresolved":false,"context_lines":[{"line_number":157,"context_line":"   versions, then restart the services in the same order as above."},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"#. Run :command:`ironic-dbsync online_data_migration` to ensure"},{"line_number":160,"context_line":"   that all DB records are \"upgraded\" to the new data version."},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"Online data migrations"},{"line_number":163,"context_line":"----------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a3c09a3_f0eceef4","line":160,"in_reply_to":"7a3c09a3_13c0ce29","updated":"2017-01-17 16:19:42.000000000","message":"Done","commit_id":"9224aa2f67054a3d97a0b4f62e617d455870dac5"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"27fc2d11a829baa9fce3ead315671da35d4c3656","unresolved":false,"context_lines":[{"line_number":167,"context_line":"database resources when they may still be used by the previous named release."},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"When creating new Alembic migrations (decribed in the `FAQ \u003cdev/faq\u003e`_) which"},{"line_number":170,"context_line":"modify existing models make sure that the new columns are default to NULL."},{"line_number":171,"context_line":"Test the migration out on a non-empty database to make sure that any new"},{"line_number":172,"context_line":"constraints don\u0027t cause the database to be locked out for normal operations."},{"line_number":173,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a3c09a3_3306aa86","line":170,"updated":"2017-01-16 22:12:38.000000000","message":"s/are default/default/","commit_id":"9224aa2f67054a3d97a0b4f62e617d455870dac5"},{"author":{"_account_id":14250,"name":"Grzegorz Grasza","email":"xek@redhat.com","username":"xek"},"change_message_id":"c39c6377e345063a4f432a247efea503604b7850","unresolved":false,"context_lines":[{"line_number":167,"context_line":"database resources when they may still be used by the previous named release."},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"When creating new Alembic migrations (decribed in the `FAQ \u003cdev/faq\u003e`_) which"},{"line_number":170,"context_line":"modify existing models make sure that the new columns are default to NULL."},{"line_number":171,"context_line":"Test the migration out on a non-empty database to make sure that any new"},{"line_number":172,"context_line":"constraints don\u0027t cause the database to be locked out for normal operations."},{"line_number":173,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a3c09a3_b0cd0687","line":170,"in_reply_to":"7a3c09a3_3306aa86","updated":"2017-01-17 16:19:42.000000000","message":"Done","commit_id":"9224aa2f67054a3d97a0b4f62e617d455870dac5"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"27fc2d11a829baa9fce3ead315671da35d4c3656","unresolved":false,"context_lines":[{"line_number":173,"context_line":""},{"line_number":174,"context_line":"You can find an overview on what DDL operations may cause downtime in"},{"line_number":175,"context_line":"https://dev.mysql.com/doc/refman/5.7/en/innodb-create-index-overview.html"},{"line_number":176,"context_line":"(you should also check older, widely delpoyed InnoDB versions for issues)."},{"line_number":177,"context_line":"In case of PostgreSQL, adding a foreign key may lock a whole table for writes."},{"line_number":178,"context_line":"Make sure to add a release note if there are any downtime related concerns."},{"line_number":179,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a3c09a3_7333d262","line":176,"updated":"2017-01-16 22:12:38.000000000","message":"s/delpoyed/deployed/","commit_id":"9224aa2f67054a3d97a0b4f62e617d455870dac5"},{"author":{"_account_id":14250,"name":"Grzegorz Grasza","email":"xek@redhat.com","username":"xek"},"change_message_id":"c39c6377e345063a4f432a247efea503604b7850","unresolved":false,"context_lines":[{"line_number":173,"context_line":""},{"line_number":174,"context_line":"You can find an overview on what DDL operations may cause downtime in"},{"line_number":175,"context_line":"https://dev.mysql.com/doc/refman/5.7/en/innodb-create-index-overview.html"},{"line_number":176,"context_line":"(you should also check older, widely delpoyed InnoDB versions for issues)."},{"line_number":177,"context_line":"In case of PostgreSQL, adding a foreign key may lock a whole table for writes."},{"line_number":178,"context_line":"Make sure to add a release note if there are any downtime related concerns."},{"line_number":179,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a3c09a3_50b22207","line":176,"in_reply_to":"7a3c09a3_7333d262","updated":"2017-01-17 16:19:42.000000000","message":"Done","commit_id":"9224aa2f67054a3d97a0b4f62e617d455870dac5"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"27fc2d11a829baa9fce3ead315671da35d4c3656","unresolved":false,"context_lines":[{"line_number":181,"context_line":"must be implemented inside an online migration script. A script is a normal"},{"line_number":182,"context_line":"database API method, it accepts a max_count parameter (which you should use"},{"line_number":183,"context_line":"to limit the query) and returns a two-tuple with the total amount of objects"},{"line_number":184,"context_line":"to migrate at the start of the procedure, and the amount migrated. It should"},{"line_number":185,"context_line":"be added to the list of ``ONLINE_MIGRATIONS`` in ``ironic/cmd/dbsync.py``."},{"line_number":186,"context_line":"Use the version column to select and update old objects."},{"line_number":187,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a3c09a3_739d9209","line":184,"updated":"2017-01-16 22:12:38.000000000","message":"I wonder if we should mention that the code for these scripts/methods are typically added to ironic/db/api.py and ironic/db/sqlalchemy/api.py.\n\nand that the \u0027It\u0027 in \u0027It should\u0027 is the method name (not the code!)","commit_id":"9224aa2f67054a3d97a0b4f62e617d455870dac5"},{"author":{"_account_id":14250,"name":"Grzegorz Grasza","email":"xek@redhat.com","username":"xek"},"change_message_id":"c39c6377e345063a4f432a247efea503604b7850","unresolved":false,"context_lines":[{"line_number":181,"context_line":"must be implemented inside an online migration script. A script is a normal"},{"line_number":182,"context_line":"database API method, it accepts a max_count parameter (which you should use"},{"line_number":183,"context_line":"to limit the query) and returns a two-tuple with the total amount of objects"},{"line_number":184,"context_line":"to migrate at the start of the procedure, and the amount migrated. It should"},{"line_number":185,"context_line":"be added to the list of ``ONLINE_MIGRATIONS`` in ``ironic/cmd/dbsync.py``."},{"line_number":186,"context_line":"Use the version column to select and update old objects."},{"line_number":187,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a3c09a3_50a9428f","line":184,"in_reply_to":"7a3c09a3_739d9209","updated":"2017-01-17 16:19:42.000000000","message":"Done","commit_id":"9224aa2f67054a3d97a0b4f62e617d455870dac5"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"27fc2d11a829baa9fce3ead315671da35d4c3656","unresolved":false,"context_lines":[{"line_number":183,"context_line":"to limit the query) and returns a two-tuple with the total amount of objects"},{"line_number":184,"context_line":"to migrate at the start of the procedure, and the amount migrated. It should"},{"line_number":185,"context_line":"be added to the list of ``ONLINE_MIGRATIONS`` in ``ironic/cmd/dbsync.py``."},{"line_number":186,"context_line":"Use the version column to select and update old objects."},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"After online data migrations are run and SQLAlchemy models no longer contain"},{"line_number":189,"context_line":"old fields, old columns can be removed from the database. This takes at least"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a3c09a3_b379baca","line":186,"updated":"2017-01-16 22:12:38.000000000","message":"The \u0027version\u0027 column in the DB tables, right? Maybe mention this part before L185.","commit_id":"9224aa2f67054a3d97a0b4f62e617d455870dac5"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"27fc2d11a829baa9fce3ead315671da35d4c3656","unresolved":false,"context_lines":[{"line_number":185,"context_line":"be added to the list of ``ONLINE_MIGRATIONS`` in ``ironic/cmd/dbsync.py``."},{"line_number":186,"context_line":"Use the version column to select and update old objects."},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"After online data migrations are run and SQLAlchemy models no longer contain"},{"line_number":189,"context_line":"old fields, old columns can be removed from the database. This takes at least"},{"line_number":190,"context_line":"3 releases, since we have to wait until the previous named release no longer"},{"line_number":191,"context_line":"contains references to the old schema. Before removing any resources from the"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a3c09a3_53517635","line":188,"updated":"2017-01-16 22:12:38.000000000","message":"s/are run/have completed/ ?","commit_id":"9224aa2f67054a3d97a0b4f62e617d455870dac5"},{"author":{"_account_id":14250,"name":"Grzegorz Grasza","email":"xek@redhat.com","username":"xek"},"change_message_id":"c39c6377e345063a4f432a247efea503604b7850","unresolved":false,"context_lines":[{"line_number":185,"context_line":"be added to the list of ``ONLINE_MIGRATIONS`` in ``ironic/cmd/dbsync.py``."},{"line_number":186,"context_line":"Use the version column to select and update old objects."},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"After online data migrations are run and SQLAlchemy models no longer contain"},{"line_number":189,"context_line":"old fields, old columns can be removed from the database. This takes at least"},{"line_number":190,"context_line":"3 releases, since we have to wait until the previous named release no longer"},{"line_number":191,"context_line":"contains references to the old schema. Before removing any resources from the"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a3c09a3_70b39ee9","line":188,"in_reply_to":"7a3c09a3_53517635","updated":"2017-01-17 16:19:42.000000000","message":"Done","commit_id":"9224aa2f67054a3d97a0b4f62e617d455870dac5"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"27fc2d11a829baa9fce3ead315671da35d4c3656","unresolved":false,"context_lines":[{"line_number":189,"context_line":"old fields, old columns can be removed from the database. This takes at least"},{"line_number":190,"context_line":"3 releases, since we have to wait until the previous named release no longer"},{"line_number":191,"context_line":"contains references to the old schema. Before removing any resources from the"},{"line_number":192,"context_line":"database by modifying the schema, make sure that all objects in the subjected"},{"line_number":193,"context_line":"tables have been migrated by checking the version column."},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"Ironic API RPC Versions"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a3c09a3_4501a904","line":192,"updated":"2017-01-16 22:12:38.000000000","message":"maybe s/subjected/affected/? (Seems like there is a better word than that even but can\u0027t think of it.)","commit_id":"9224aa2f67054a3d97a0b4f62e617d455870dac5"},{"author":{"_account_id":14250,"name":"Grzegorz Grasza","email":"xek@redhat.com","username":"xek"},"change_message_id":"c39c6377e345063a4f432a247efea503604b7850","unresolved":false,"context_lines":[{"line_number":189,"context_line":"old fields, old columns can be removed from the database. This takes at least"},{"line_number":190,"context_line":"3 releases, since we have to wait until the previous named release no longer"},{"line_number":191,"context_line":"contains references to the old schema. Before removing any resources from the"},{"line_number":192,"context_line":"database by modifying the schema, make sure that all objects in the subjected"},{"line_number":193,"context_line":"tables have been migrated by checking the version column."},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"Ironic API RPC Versions"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a3c09a3_b3127055","line":192,"in_reply_to":"7a3c09a3_4501a904","updated":"2017-01-17 16:19:42.000000000","message":"Done","commit_id":"9224aa2f67054a3d97a0b4f62e617d455870dac5"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"27fc2d11a829baa9fce3ead315671da35d4c3656","unresolved":false,"context_lines":[{"line_number":190,"context_line":"3 releases, since we have to wait until the previous named release no longer"},{"line_number":191,"context_line":"contains references to the old schema. Before removing any resources from the"},{"line_number":192,"context_line":"database by modifying the schema, make sure that all objects in the subjected"},{"line_number":193,"context_line":"tables have been migrated by checking the version column."},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"Ironic API RPC Versions"},{"line_number":196,"context_line":"-----------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a3c09a3_a5a88ddc","line":193,"updated":"2017-01-16 22:12:38.000000000","message":"by this, do you mean that there should be code that does this check? Didn\u0027t you make the change in ironic-dbsync, so that an \u0027ironic-dbsync upgrade\u0027 checks first, that the previous online_db_migrations has been done? Which does what you describe above? (Or am I missing something?)","commit_id":"9224aa2f67054a3d97a0b4f62e617d455870dac5"},{"author":{"_account_id":14250,"name":"Grzegorz Grasza","email":"xek@redhat.com","username":"xek"},"change_message_id":"c39c6377e345063a4f432a247efea503604b7850","unresolved":false,"context_lines":[{"line_number":190,"context_line":"3 releases, since we have to wait until the previous named release no longer"},{"line_number":191,"context_line":"contains references to the old schema. Before removing any resources from the"},{"line_number":192,"context_line":"database by modifying the schema, make sure that all objects in the subjected"},{"line_number":193,"context_line":"tables have been migrated by checking the version column."},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"Ironic API RPC Versions"},{"line_number":196,"context_line":"-----------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a3c09a3_7312c80a","line":193,"in_reply_to":"7a3c09a3_a5a88ddc","updated":"2017-01-17 16:19:42.000000000","message":"Yes, I added an additional check, but it\u0027s more for making sure that the operator has some additional feedback on what to do. The schema must be updated before we can run any other sql commands using the SQLAlchemy models, so the schema update must finish first and it should check if it isn\u0027t removing not migrated data during the process.\n\n(The check actually runs after the schema update.)","commit_id":"9224aa2f67054a3d97a0b4f62e617d455870dac5"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"27fc2d11a829baa9fce3ead315671da35d4c3656","unresolved":false,"context_lines":[{"line_number":240,"context_line":"   after the target version. Note that in ironic, objects are used to version"},{"line_number":241,"context_line":"   objects stored in the database, so the obj_make_compatible() method may"},{"line_number":242,"context_line":"   receive only a subset of fields which are used in the SQL update operation."},{"line_number":243,"context_line":" - The object fingerprint in unit tests should only be updated with a version"},{"line_number":244,"context_line":"   bump."},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"Driver Internal Info"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a3c09a3_855631cc","line":243,"updated":"2017-01-16 22:12:38.000000000","message":"there\u0027s just that one unit test (described in original version), or are you adding more?","commit_id":"9224aa2f67054a3d97a0b4f62e617d455870dac5"},{"author":{"_account_id":14250,"name":"Grzegorz Grasza","email":"xek@redhat.com","username":"xek"},"change_message_id":"c39c6377e345063a4f432a247efea503604b7850","unresolved":false,"context_lines":[{"line_number":240,"context_line":"   after the target version. Note that in ironic, objects are used to version"},{"line_number":241,"context_line":"   objects stored in the database, so the obj_make_compatible() method may"},{"line_number":242,"context_line":"   receive only a subset of fields which are used in the SQL update operation."},{"line_number":243,"context_line":" - The object fingerprint in unit tests should only be updated with a version"},{"line_number":244,"context_line":"   bump."},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"Driver Internal Info"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a3c09a3_1306e485","line":243,"in_reply_to":"7a3c09a3_855631cc","updated":"2017-01-17 16:19:42.000000000","message":"It\u0027s the same unit test, I shortened this sentence a bit, to make it a shorter read for a newcomer.","commit_id":"9224aa2f67054a3d97a0b4f62e617d455870dac5"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"b76ead3bb096fe0a5f7bb2bd58509f3fbc1e10ae","unresolved":false,"context_lines":[{"line_number":141,"context_line":""},{"line_number":142,"context_line":"Live Upgrade Related Concerns"},{"line_number":143,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":144,"context_line":"Ironic implements rolling upgrades described in the `Upgrade Guide \u003cdeploy/upgrade-guide\u003e`_. The upgrade procedure can be summarized in the following steps:"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"#. Install the new release in a separate virtualenv (or VM or container) and"},{"line_number":147,"context_line":"   upgrade DB schema by running :command:`ironic-dbsync upgrade` on it."}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_0bc0d6df","line":144,"updated":"2017-01-26 18:11:21.000000000","message":"nit: wrap this line into two lines.","commit_id":"ab3ab649c0c4f9abb7a4b12942b66f1f14893e3f"}]}
