)]}'
{"specs/approved/support-rolling-upgrade.rst":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"b37538bf5f2237a9d142c72c4f36b00843992da8","unresolved":false,"context_lines":[{"line_number":336,"context_line":""},{"line_number":337,"context_line":"* add a new method ``IronicObject.convert_to_version(self, target_version)``."},{"line_number":338,"context_line":"  This method will convert the object into the target version. The target"},{"line_number":339,"context_line":"  version may be a newer or older version that the existing version of the"},{"line_number":340,"context_line":"  object. The bulk of the work will be done in the new helper method"},{"line_number":341,"context_line":"  ``IronicObject._convert_to_version(self, target_version)``. Subclasses that"},{"line_number":342,"context_line":"  have new versions should redefine this to perform the actual conversions."}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f231b9d_9f5394e2","line":339,"range":{"start_line":339,"start_character":19,"end_line":339,"end_character":24},"updated":"2017-06-16 16:21:04.000000000","message":"can it be newer?","commit_id":"5370fd3878c86622a389c236c87c7a2ac6ea4903"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"b37538bf5f2237a9d142c72c4f36b00843992da8","unresolved":false,"context_lines":[{"line_number":336,"context_line":""},{"line_number":337,"context_line":"* add a new method ``IronicObject.convert_to_version(self, target_version)``."},{"line_number":338,"context_line":"  This method will convert the object into the target version. The target"},{"line_number":339,"context_line":"  version may be a newer or older version that the existing version of the"},{"line_number":340,"context_line":"  object. The bulk of the work will be done in the new helper method"},{"line_number":341,"context_line":"  ``IronicObject._convert_to_version(self, target_version)``. Subclasses that"},{"line_number":342,"context_line":"  have new versions should redefine this to perform the actual conversions."}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f231b9d_7f4e7838","line":339,"range":{"start_line":339,"start_character":42,"end_line":339,"end_character":46},"updated":"2017-06-16 16:21:04.000000000","message":"than?","commit_id":"5370fd3878c86622a389c236c87c7a2ac6ea4903"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"e4713db75513b2cbd4f6534e616160e3f47c9766","unresolved":false,"context_lines":[{"line_number":336,"context_line":""},{"line_number":337,"context_line":"* add a new method ``IronicObject.convert_to_version(self, target_version)``."},{"line_number":338,"context_line":"  This method will convert the object into the target version. The target"},{"line_number":339,"context_line":"  version may be a newer or older version that the existing version of the"},{"line_number":340,"context_line":"  object. The bulk of the work will be done in the new helper method"},{"line_number":341,"context_line":"  ``IronicObject._convert_to_version(self, target_version)``. Subclasses that"},{"line_number":342,"context_line":"  have new versions should redefine this to perform the actual conversions."}],"source_content_type":"text/x-rst","patch_set":2,"id":"5f201791_a1ac6234","line":339,"range":{"start_line":339,"start_character":19,"end_line":339,"end_character":24},"in_reply_to":"7f231b9d_9f5394e2","updated":"2017-06-23 04:15:22.000000000","message":"Yes, it can be newer. Eg, if an older version of the object is stored in the DB. When the conductor gets that object from the DB, this is called to convert it to the latest version.","commit_id":"5370fd3878c86622a389c236c87c7a2ac6ea4903"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"b37538bf5f2237a9d142c72c4f36b00843992da8","unresolved":false,"context_lines":[{"line_number":412,"context_line":"An interesting situation can occur when the services are as described in step"},{"line_number":413,"context_line":"6.1. It is possible for an IronicObject to be saved in a newer version and"},{"line_number":414,"context_line":"subsequently get saved in an older version. For example, a ``ToVer`` unpinned"},{"line_number":415,"context_line":"conductor might save a node in version 1.5. A subsequent request may cause a"},{"line_number":416,"context_line":"``ToVer`` pinned conductor to replace and save the same node in version 1.4!"},{"line_number":417,"context_line":""},{"line_number":418,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f231b9d_3f0c80a3","line":415,"range":{"start_line":415,"start_character":41,"end_line":415,"end_character":42},"updated":"2017-06-16 16:21:04.000000000","message":"15","commit_id":"5370fd3878c86622a389c236c87c7a2ac6ea4903"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"e4713db75513b2cbd4f6534e616160e3f47c9766","unresolved":false,"context_lines":[{"line_number":412,"context_line":"An interesting situation can occur when the services are as described in step"},{"line_number":413,"context_line":"6.1. It is possible for an IronicObject to be saved in a newer version and"},{"line_number":414,"context_line":"subsequently get saved in an older version. For example, a ``ToVer`` unpinned"},{"line_number":415,"context_line":"conductor might save a node in version 1.5. A subsequent request may cause a"},{"line_number":416,"context_line":"``ToVer`` pinned conductor to replace and save the same node in version 1.4!"},{"line_number":417,"context_line":""},{"line_number":418,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"5f201791_db09c2dd","line":415,"range":{"start_line":415,"start_character":41,"end_line":415,"end_character":42},"in_reply_to":"7f231b9d_3f0c80a3","updated":"2017-06-23 04:15:22.000000000","message":"oops","commit_id":"5370fd3878c86622a389c236c87c7a2ac6ea4903"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"b37538bf5f2237a9d142c72c4f36b00843992da8","unresolved":false,"context_lines":[{"line_number":413,"context_line":"6.1. It is possible for an IronicObject to be saved in a newer version and"},{"line_number":414,"context_line":"subsequently get saved in an older version. For example, a ``ToVer`` unpinned"},{"line_number":415,"context_line":"conductor might save a node in version 1.5. A subsequent request may cause a"},{"line_number":416,"context_line":"``ToVer`` pinned conductor to replace and save the same node in version 1.4!"},{"line_number":417,"context_line":""},{"line_number":418,"context_line":""},{"line_number":419,"context_line":"Sending objects via RPC (API/conductor -\u003e RPC)"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f231b9d_1fff8467","line":416,"range":{"start_line":416,"start_character":74,"end_line":416,"end_character":75},"updated":"2017-06-16 16:21:04.000000000","message":"14","commit_id":"5370fd3878c86622a389c236c87c7a2ac6ea4903"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"e4713db75513b2cbd4f6534e616160e3f47c9766","unresolved":false,"context_lines":[{"line_number":413,"context_line":"6.1. It is possible for an IronicObject to be saved in a newer version and"},{"line_number":414,"context_line":"subsequently get saved in an older version. For example, a ``ToVer`` unpinned"},{"line_number":415,"context_line":"conductor might save a node in version 1.5. A subsequent request may cause a"},{"line_number":416,"context_line":"``ToVer`` pinned conductor to replace and save the same node in version 1.4!"},{"line_number":417,"context_line":""},{"line_number":418,"context_line":""},{"line_number":419,"context_line":"Sending objects via RPC (API/conductor -\u003e RPC)"}],"source_content_type":"text/x-rst","patch_set":2,"id":"5f201791_bb0e06e3","line":416,"range":{"start_line":416,"start_character":74,"end_line":416,"end_character":75},"in_reply_to":"7f231b9d_1fff8467","updated":"2017-06-23 04:15:22.000000000","message":"oops","commit_id":"5370fd3878c86622a389c236c87c7a2ac6ea4903"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"b37538bf5f2237a9d142c72c4f36b00843992da8","unresolved":false,"context_lines":[{"line_number":429,"context_line":"* for a pinned service, the object will be serialized in its pinned version."},{"line_number":430,"context_line":"  Since objects are always in their latest version, the object will need to be"},{"line_number":431,"context_line":"  converted to the pinned version before being serialized. The converted object"},{"line_number":432,"context_line":"  will include changes that resulted from the conversion; this is needed so"},{"line_number":433,"context_line":"  that the service at the other end of the RPC request has the necessary"},{"line_number":434,"context_line":"  information if that object will be saved to the database."},{"line_number":435,"context_line":""},{"line_number":436,"context_line":"The ``IronicObjectSerializer.serialize_entity()`` method will be modified to do"},{"line_number":437,"context_line":"any IronicObject conversions."}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f231b9d_7fc31858","line":434,"range":{"start_line":432,"start_character":58,"end_line":434,"end_character":59},"updated":"2017-06-16 16:21:04.000000000","message":"I\u0027m not sure I get why do we need the changes set here. I mean the changes resulted from the conversion. Why do we need them?","commit_id":"5370fd3878c86622a389c236c87c7a2ac6ea4903"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"e4713db75513b2cbd4f6534e616160e3f47c9766","unresolved":false,"context_lines":[{"line_number":429,"context_line":"* for a pinned service, the object will be serialized in its pinned version."},{"line_number":430,"context_line":"  Since objects are always in their latest version, the object will need to be"},{"line_number":431,"context_line":"  converted to the pinned version before being serialized. The converted object"},{"line_number":432,"context_line":"  will include changes that resulted from the conversion; this is needed so"},{"line_number":433,"context_line":"  that the service at the other end of the RPC request has the necessary"},{"line_number":434,"context_line":"  information if that object will be saved to the database."},{"line_number":435,"context_line":""},{"line_number":436,"context_line":"The ``IronicObjectSerializer.serialize_entity()`` method will be modified to do"},{"line_number":437,"context_line":"any IronicObject conversions."}],"source_content_type":"text/x-rst","patch_set":2,"id":"5f201791_0171d6e0","line":434,"range":{"start_line":432,"start_character":58,"end_line":434,"end_character":59},"in_reply_to":"7f231b9d_7fc31858","updated":"2017-06-23 04:15:22.000000000","message":"I was thinking about your question(s). I have changed the design related to serialization/deserialization.","commit_id":"5370fd3878c86622a389c236c87c7a2ac6ea4903"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"b37538bf5f2237a9d142c72c4f36b00843992da8","unresolved":false,"context_lines":[{"line_number":456,"context_line":"convert the IronicObject to its latest version."},{"line_number":457,"context_line":""},{"line_number":458,"context_line":"For example, a ``FromVer`` ironic-api could issue an update_node() RPC request"},{"line_number":459,"context_line":"with a node in version 1.4, where node.extra was changed (so"},{"line_number":460,"context_line":"node._changed_fields \u003d [\u0027extra\u0027]). This node will be serialized in version 1.4."},{"line_number":461,"context_line":"The receiving ``ToVer`` pinned ironic-conductor deserializes it and converts"},{"line_number":462,"context_line":"it to version 1.5. The resulting node will have node.meta set (to the changed"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f231b9d_bff7708b","line":459,"range":{"start_line":459,"start_character":25,"end_line":459,"end_character":26},"updated":"2017-06-16 16:21:04.000000000","message":"14","commit_id":"5370fd3878c86622a389c236c87c7a2ac6ea4903"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"b37538bf5f2237a9d142c72c4f36b00843992da8","unresolved":false,"context_lines":[{"line_number":457,"context_line":""},{"line_number":458,"context_line":"For example, a ``FromVer`` ironic-api could issue an update_node() RPC request"},{"line_number":459,"context_line":"with a node in version 1.4, where node.extra was changed (so"},{"line_number":460,"context_line":"node._changed_fields \u003d [\u0027extra\u0027]). This node will be serialized in version 1.4."},{"line_number":461,"context_line":"The receiving ``ToVer`` pinned ironic-conductor deserializes it and converts"},{"line_number":462,"context_line":"it to version 1.5. The resulting node will have node.meta set (to the changed"},{"line_number":463,"context_line":"value from node.extra in v1.4), node.extra \u003d None, and node._changed_fields \u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f231b9d_9ff27499","line":460,"range":{"start_line":460,"start_character":77,"end_line":460,"end_character":78},"updated":"2017-06-16 16:21:04.000000000","message":"14","commit_id":"5370fd3878c86622a389c236c87c7a2ac6ea4903"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"b37538bf5f2237a9d142c72c4f36b00843992da8","unresolved":false,"context_lines":[{"line_number":459,"context_line":"with a node in version 1.4, where node.extra was changed (so"},{"line_number":460,"context_line":"node._changed_fields \u003d [\u0027extra\u0027]). This node will be serialized in version 1.4."},{"line_number":461,"context_line":"The receiving ``ToVer`` pinned ironic-conductor deserializes it and converts"},{"line_number":462,"context_line":"it to version 1.5. The resulting node will have node.meta set (to the changed"},{"line_number":463,"context_line":"value from node.extra in v1.4), node.extra \u003d None, and node._changed_fields \u003d"},{"line_number":464,"context_line":"[\u0027meta\u0027, \u0027extra\u0027]."},{"line_number":465,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f231b9d_ff360851","line":462,"range":{"start_line":462,"start_character":16,"end_line":462,"end_character":17},"updated":"2017-06-16 16:21:04.000000000","message":"15","commit_id":"5370fd3878c86622a389c236c87c7a2ac6ea4903"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"b37538bf5f2237a9d142c72c4f36b00843992da8","unresolved":false,"context_lines":[{"line_number":460,"context_line":"node._changed_fields \u003d [\u0027extra\u0027]). This node will be serialized in version 1.4."},{"line_number":461,"context_line":"The receiving ``ToVer`` pinned ironic-conductor deserializes it and converts"},{"line_number":462,"context_line":"it to version 1.5. The resulting node will have node.meta set (to the changed"},{"line_number":463,"context_line":"value from node.extra in v1.4), node.extra \u003d None, and node._changed_fields \u003d"},{"line_number":464,"context_line":"[\u0027meta\u0027, \u0027extra\u0027]."},{"line_number":465,"context_line":""},{"line_number":466,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f231b9d_df410cab","line":463,"range":{"start_line":463,"start_character":28,"end_line":463,"end_character":29},"updated":"2017-06-16 16:21:04.000000000","message":"14","commit_id":"5370fd3878c86622a389c236c87c7a2ac6ea4903"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"b37538bf5f2237a9d142c72c4f36b00843992da8","unresolved":false,"context_lines":[{"line_number":460,"context_line":"node._changed_fields \u003d [\u0027extra\u0027]). This node will be serialized in version 1.4."},{"line_number":461,"context_line":"The receiving ``ToVer`` pinned ironic-conductor deserializes it and converts"},{"line_number":462,"context_line":"it to version 1.5. The resulting node will have node.meta set (to the changed"},{"line_number":463,"context_line":"value from node.extra in v1.4), node.extra \u003d None, and node._changed_fields \u003d"},{"line_number":464,"context_line":"[\u0027meta\u0027, \u0027extra\u0027]."},{"line_number":465,"context_line":""},{"line_number":466,"context_line":"Alternatives"},{"line_number":467,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f231b9d_9f75d4fc","line":464,"range":{"start_line":463,"start_character":32,"end_line":464,"end_character":18},"updated":"2017-06-16 16:21:04.000000000","message":"And then, during write to the DB, it will be converted back to 1.14 right? So what\u0027s the point of having the info that meta was changed?","commit_id":"5370fd3878c86622a389c236c87c7a2ac6ea4903"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"e4713db75513b2cbd4f6534e616160e3f47c9766","unresolved":false,"context_lines":[{"line_number":460,"context_line":"node._changed_fields \u003d [\u0027extra\u0027]). This node will be serialized in version 1.4."},{"line_number":461,"context_line":"The receiving ``ToVer`` pinned ironic-conductor deserializes it and converts"},{"line_number":462,"context_line":"it to version 1.5. The resulting node will have node.meta set (to the changed"},{"line_number":463,"context_line":"value from node.extra in v1.4), node.extra \u003d None, and node._changed_fields \u003d"},{"line_number":464,"context_line":"[\u0027meta\u0027, \u0027extra\u0027]."},{"line_number":465,"context_line":""},{"line_number":466,"context_line":"Alternatives"},{"line_number":467,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"5f201791_41358ef6","line":464,"range":{"start_line":463,"start_character":32,"end_line":464,"end_character":18},"in_reply_to":"7f231b9d_9f75d4fc","updated":"2017-06-23 04:15:22.000000000","message":"Hmm, I need to think about this; I think I wanted to err on the side of not missing any changes, vs optimizing for it.","commit_id":"5370fd3878c86622a389c236c87c7a2ac6ea4903"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"b37538bf5f2237a9d142c72c4f36b00843992da8","unresolved":false,"context_lines":[{"line_number":469,"context_line":"A cold upgrade can be done, but it means the ironic services will not be"},{"line_number":470,"context_line":"available during the upgrade, which may be time consuming."},{"line_number":471,"context_line":""},{"line_number":472,"context_line":"Instead of having the services always treat objects in their latest versions,"},{"line_number":473,"context_line":"a different design could be used, for example, where pinned services treat"},{"line_number":474,"context_line":"their objects in their pinned versions. However, after some experimentation,"},{"line_number":475,"context_line":"this proved to have more (corner) cases to consider and was more difficult"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f231b9d_df06ac52","line":472,"updated":"2017-06-16 16:21:04.000000000","message":"there was a discussion with jcook on the original spec, it might be also possible to use only the information in the version column without pin config option at all.","commit_id":"5370fd3878c86622a389c236c87c7a2ac6ea4903"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"e4713db75513b2cbd4f6534e616160e3f47c9766","unresolved":false,"context_lines":[{"line_number":469,"context_line":"A cold upgrade can be done, but it means the ironic services will not be"},{"line_number":470,"context_line":"available during the upgrade, which may be time consuming."},{"line_number":471,"context_line":""},{"line_number":472,"context_line":"Instead of having the services always treat objects in their latest versions,"},{"line_number":473,"context_line":"a different design could be used, for example, where pinned services treat"},{"line_number":474,"context_line":"their objects in their pinned versions. However, after some experimentation,"},{"line_number":475,"context_line":"this proved to have more (corner) cases to consider and was more difficult"}],"source_content_type":"text/x-rst","patch_set":2,"id":"5f201791_3b77963d","line":472,"in_reply_to":"7f231b9d_df06ac52","updated":"2017-06-23 04:15:22.000000000","message":"Oh, I missed (or forgot) that discussion, do you have a pointer to it? Was it on irc? I looked at the original spec patch and don\u0027t see any comments from him.\n\nAlthough I\u0027m not convinced you can only use the version column info -- the question becomes when can you save an object in its latest version if you are running services with both old and new code. We need *something* to indicate that a rolling upgrade is happening, and we use the config for that. It is also possible to put some flag/value in the DB that is cleared after the upgrade is done, and I suspect there are lots of other ways as well :-)\n\nI think the idea is that we were trying to leverage (and take a similar approach) to other openstack projects...","commit_id":"5370fd3878c86622a389c236c87c7a2ac6ea4903"}]}
