)]}'
{"specs/liberty/object-compatibility-mode.rst":[{"author":{"_account_id":13161,"name":"Kamil Rykowski","email":"kamil.rykowski@gmail.com","username":"krykowski"},"change_message_id":"9f7d75edb2ae8b18351a967610301ddb9646d9ff","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":"Right now, when a new milestone is released, it can take quite a while to"},{"line_number":27,"context_line":"upgrade all the services within an OpenStack cloud to the latest release."},{"line_number":28,"context_line":"Upgrade involves synching the database to the latest schema and updating each"},{"line_number":29,"context_line":"distributed Heat service. This process can take down the whole service for a"},{"line_number":30,"context_line":"significant time duration. Operators want to reduce the down time for their"},{"line_number":31,"context_line":"cloud when upgrading to the next release."}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba3cc151_99589a58","line":28,"updated":"2015-06-29 14:23:40.000000000","message":"s/synching/syncing","commit_id":"51d090b60970ec2c84365335789c540df9e0371a"},{"author":{"_account_id":13161,"name":"Kamil Rykowski","email":"kamil.rykowski@gmail.com","username":"krykowski"},"change_message_id":"9f7d75edb2ae8b18351a967610301ddb9646d9ff","unresolved":false,"context_lines":[{"line_number":27,"context_line":"upgrade all the services within an OpenStack cloud to the latest release."},{"line_number":28,"context_line":"Upgrade involves synching the database to the latest schema and updating each"},{"line_number":29,"context_line":"distributed Heat service. This process can take down the whole service for a"},{"line_number":30,"context_line":"significant time duration. Operators want to reduce the down time for their"},{"line_number":31,"context_line":"cloud when upgrading to the next release."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"See also some Versioned Objects background in the original proposal:"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba3cc151_3c0e1c35","line":30,"updated":"2015-06-29 14:23:40.000000000","message":"s/down time/downtime","commit_id":"51d090b60970ec2c84365335789c540df9e0371a"},{"author":{"_account_id":13161,"name":"Kamil Rykowski","email":"kamil.rykowski@gmail.com","username":"krykowski"},"change_message_id":"9f7d75edb2ae8b18351a967610301ddb9646d9ff","unresolved":false,"context_lines":[{"line_number":43,"context_line":"2. The RPC interface itself can change, i.e. new keyword arguments."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"To address these problems, the content can be made backwards compatible using"},{"line_number":46,"context_line":"oslo.versionedobject, and the RPC interface can be pinned to a specific"},{"line_number":47,"context_line":"version until all components within Heat are upgraded."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"Any new changes to the RPC interface would have to add to the backwards"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba3cc151_1cf3180c","line":46,"updated":"2015-06-29 14:23:40.000000000","message":"oslo.versionedobjects","commit_id":"51d090b60970ec2c84365335789c540df9e0371a"},{"author":{"_account_id":13161,"name":"Kamil Rykowski","email":"kamil.rykowski@gmail.com","username":"krykowski"},"change_message_id":"9f7d75edb2ae8b18351a967610301ddb9646d9ff","unresolved":false,"context_lines":[{"line_number":84,"context_line":"previous version."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"The compatibility mode version will be cached in memory. A command should be"},{"line_number":87,"context_line":"provided to re-read the configuration or to set the compatibility mode version."},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"Each service\u0027s rpcapi.py, will set the correct keyword arguments for a given"},{"line_number":90,"context_line":"RPC version. Versioned objects sent through RPC will set the correct"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba3cc151_fcd8b4f1","line":87,"updated":"2015-06-29 14:23:40.000000000","message":"1. Should this new command re-read the whole Heat configuration, or only this single flag?\n\n2. Do you want to provide a command which will somehow automatically put the compatibility_mode into config, e.g. `heat-manage compatibility-set 1.11`?","commit_id":"51d090b60970ec2c84365335789c540df9e0371a"},{"author":{"_account_id":14250,"name":"Grzegorz Grasza","email":"xek@redhat.com","username":"xek"},"change_message_id":"90103750e80727260e98f3a31887a4484d046cc5","unresolved":false,"context_lines":[{"line_number":84,"context_line":"previous version."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"The compatibility mode version will be cached in memory. A command should be"},{"line_number":87,"context_line":"provided to re-read the configuration or to set the compatibility mode version."},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"Each service\u0027s rpcapi.py, will set the correct keyword arguments for a given"},{"line_number":90,"context_line":"RPC version. Versioned objects sent through RPC will set the correct"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba3cc151_66ea7111","line":87,"in_reply_to":"ba3cc151_fcd8b4f1","updated":"2015-07-01 09:02:02.000000000","message":"1. re-reading the whole Heat configuration could be implemented, but if that poses problems, setting only the compatibility mode is good enough.\n\n2. I don\u0027t plan on implementing any mechanisms to put this setting into the configuration file - configuration should be set by some other administration tool (which is already in place for large deployments anyway).","commit_id":"51d090b60970ec2c84365335789c540df9e0371a"},{"author":{"_account_id":13161,"name":"Kamil Rykowski","email":"kamil.rykowski@gmail.com","username":"krykowski"},"change_message_id":"9f7d75edb2ae8b18351a967610301ddb9646d9ff","unresolved":false,"context_lines":[{"line_number":103,"context_line":"should be limited to one or two releases backward. When a host/service is too"},{"line_number":104,"context_line":"old, it should raise an exception on startup and not be allowed to start."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"Aliases for openstack versions should be provided, to make the upgrade process"},{"line_number":107,"context_line":"the same as in nova:"},{"line_number":108,"context_line":"http://www.danplanet.com/blog/2015/06/26/upgrading-nova-to-kilo-with-minimal-downtime/"},{"line_number":109,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba3cc151_bca78c4e","line":106,"updated":"2015-06-29 14:23:40.000000000","message":"*OpenStack","commit_id":"51d090b60970ec2c84365335789c540df9e0371a"},{"author":{"_account_id":13161,"name":"Kamil Rykowski","email":"kamil.rykowski@gmail.com","username":"krykowski"},"change_message_id":"9f7d75edb2ae8b18351a967610301ddb9646d9ff","unresolved":false,"context_lines":[{"line_number":105,"context_line":""},{"line_number":106,"context_line":"Aliases for openstack versions should be provided, to make the upgrade process"},{"line_number":107,"context_line":"the same as in nova:"},{"line_number":108,"context_line":"http://www.danplanet.com/blog/2015/06/26/upgrading-nova-to-kilo-with-minimal-downtime/"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"Milestones"},{"line_number":111,"context_line":"----------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba3cc151_5c31a00a","line":108,"updated":"2015-06-29 14:23:40.000000000","message":"Will come back here after getting through the article :)","commit_id":"51d090b60970ec2c84365335789c540df9e0371a"},{"author":{"_account_id":4257,"name":"Zane Bitter","email":"zbitter@redhat.com","username":"zaneb"},"change_message_id":"998e1b85cd621a94450c1351ce075f5867a2a161","unresolved":false,"context_lines":[{"line_number":14,"context_line":"specifically, it allows Heat services to be updated one at a time in a running"},{"line_number":15,"context_line":"cluster - the cluster is operational while the upgrade is taking place."},{"line_number":16,"context_line":"It follows the rolling upgrade feature in nova, using oslo.versionedobjects,"},{"line_number":17,"context_line":"but is different in that there is no conductor, which takes on the role of"},{"line_number":18,"context_line":"backporting objects to a supported version. Instead, RPC versions"},{"line_number":19,"context_line":"and objects are going to be pinned to a backwards compatible version and"},{"line_number":20,"context_line":"later switched to the latest version when all services are upgraded."}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba3cc151_54a39e9e","line":17,"updated":"2015-07-06 16:18:01.000000000","message":"It\u0027s more different than that. We don\u0027t have a need to send DB objects over RPC at all, ever. Period.\n\nIn fact, we don\u0027t even have DB access at both ends of the RPC connection.","commit_id":"596829c38efcc0cf1c39e80e8f33b1f076985daf"},{"author":{"_account_id":4257,"name":"Zane Bitter","email":"zbitter@redhat.com","username":"zaneb"},"change_message_id":"6e6a19b86a5f240f6c82936a5a73139df6c297e7","unresolved":false,"context_lines":[{"line_number":14,"context_line":"specifically, it allows Heat services to be updated one at a time in a running"},{"line_number":15,"context_line":"cluster - the cluster is operational while the upgrade is taking place."},{"line_number":16,"context_line":"It follows the rolling upgrade feature in nova, using oslo.versionedobjects,"},{"line_number":17,"context_line":"but is different in that there is no conductor, which takes on the role of"},{"line_number":18,"context_line":"backporting objects to a supported version. Instead, RPC versions"},{"line_number":19,"context_line":"and objects are going to be pinned to a backwards compatible version and"},{"line_number":20,"context_line":"later switched to the latest version when all services are upgraded."}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_8ace8e2c","line":17,"in_reply_to":"1a4dcd0f_0ecffb29","updated":"2015-08-05 21:50:02.000000000","message":"Sorry, I misspoke. The real difference is that you are sending messages in the other direction:\n\n  User \u003c-\u003e DB accessing component \u003c-\u003e Non-DB component\n\nvs Heat\u0027s:\n\n  User \u003c-\u003e ReST/RPC proxy \u003c-\u003e DB accessing component\n\nSo we are never sending DB data (or any internal data structure) deeper into the internals; the RPC is an explicit translation layer for the user interface, with its own API that is (very broadly) similar in concept to (and BTW predates) versioned objects:\n\nhttp://git.openstack.org/cgit/openstack/heat/tree/heat/engine/api.py","commit_id":"596829c38efcc0cf1c39e80e8f33b1f076985daf"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"098c2782f5c8a70ef30428b0cd2f145fc7098aeb","unresolved":false,"context_lines":[{"line_number":14,"context_line":"specifically, it allows Heat services to be updated one at a time in a running"},{"line_number":15,"context_line":"cluster - the cluster is operational while the upgrade is taking place."},{"line_number":16,"context_line":"It follows the rolling upgrade feature in nova, using oslo.versionedobjects,"},{"line_number":17,"context_line":"but is different in that there is no conductor, which takes on the role of"},{"line_number":18,"context_line":"backporting objects to a supported version. Instead, RPC versions"},{"line_number":19,"context_line":"and objects are going to be pinned to a backwards compatible version and"},{"line_number":20,"context_line":"later switched to the latest version when all services are upgraded."}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_0ecffb29","line":17,"in_reply_to":"ba3cc151_54a39e9e","updated":"2015-08-05 14:05:28.000000000","message":"Neither do we (have DB access on both sides), which is precisely why we need to send them over RPC FWIW.","commit_id":"596829c38efcc0cf1c39e80e8f33b1f076985daf"},{"author":{"_account_id":4257,"name":"Zane Bitter","email":"zbitter@redhat.com","username":"zaneb"},"change_message_id":"998e1b85cd621a94450c1351ce075f5867a2a161","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":"There are a couple of problems with upgrading a distributed service such as"},{"line_number":41,"context_line":"Heat:"},{"line_number":42,"context_line":"1. The content sent over RPC can change."},{"line_number":43,"context_line":"2. The RPC interface itself can change, i.e. new keyword arguments."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"To address these problems, the content can be made backwards compatible using"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba3cc151_b75c6cee","line":42,"updated":"2015-07-06 16:18:01.000000000","message":"There\u0027s no real issue with this. We just don\u0027t change the content, or if we do it\u0027s in an additive way.","commit_id":"596829c38efcc0cf1c39e80e8f33b1f076985daf"},{"author":{"_account_id":4257,"name":"Zane Bitter","email":"zbitter@redhat.com","username":"zaneb"},"change_message_id":"6e6a19b86a5f240f6c82936a5a73139df6c297e7","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":"There are a couple of problems with upgrading a distributed service such as"},{"line_number":41,"context_line":"Heat:"},{"line_number":42,"context_line":"1. The content sent over RPC can change."},{"line_number":43,"context_line":"2. The RPC interface itself can change, i.e. new keyword arguments."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"To address these problems, the content can be made backwards compatible using"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_f40e193a","line":42,"in_reply_to":"1a4dcd0f_f125d008","updated":"2015-08-05 21:50:02.000000000","message":"\u003e How do you ensure that you never change the format of something in an incompatible way?\n\nWith code review. (This is the same as for Versioned Objects, FWIW.)\n\n\u003e Like, let\u0027s say you have an enum-like thing\n\nBut why say that when it\u0027s an objective fact that we do NOT have any enum-like things?\n\n\u003e if it\u0027s a cast, then you never know.\n\nWe don\u0027t have any casts either.\n\n\u003e There are a million edge cases like this where someone changes something in a DB or API layer that end up with consequences to the RPC API which are obscure and extremely hard to track in an active project.\n\nThere really aren\u0027t, we haven\u0027t hit one in ~3 years of development. It\u0027s *impossible* for a change in the DB to affect the RPC API *in any way*. Changes in the ReST API have to be backward-compatible anyway, so the RPC API is the least of our concerns there. There are no obscure changes that are hard to track - they\u0027re actually extremely localised and very easy to spot in review (what we lack most is a policy for how to deal with it).\n\nHeat is not Nova. Heat does not use RPC the way Nova uses it. In fact it\u0027s not even remotely similar (no pun intended). So while I appreciate the input from folks who have experience in managing these kinds of problems, there is a lot of handwaving here that doesn\u0027t actually apply.","commit_id":"596829c38efcc0cf1c39e80e8f33b1f076985daf"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"098c2782f5c8a70ef30428b0cd2f145fc7098aeb","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":"There are a couple of problems with upgrading a distributed service such as"},{"line_number":41,"context_line":"Heat:"},{"line_number":42,"context_line":"1. The content sent over RPC can change."},{"line_number":43,"context_line":"2. The RPC interface itself can change, i.e. new keyword arguments."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"To address these problems, the content can be made backwards compatible using"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_f125d008","line":42,"in_reply_to":"ba3cc151_b75c6cee","updated":"2015-08-05 14:05:28.000000000","message":"How do you ensure that you never change the format of something in an incompatible way? Like, let\u0027s say you have an enum-like thing, and you send a call to an older node that doesn\u0027t support a new value for a given field. If it\u0027s a call, then it blows up in a strange way, and if it\u0027s a cast, then you never know.\n\nThere are a million edge cases like this where someone changes something in a DB or API layer that end up with consequences to the RPC API which are obscure and extremely hard to track in an active project. VersionedObjects doesn\u0027t really let you do anything other than \"do it in an additive way\", it just helps you track the changes that you\u0027re making, and potentially define rules for how you can go from version N to N-1 (or -2, or..) in structured ways.","commit_id":"596829c38efcc0cf1c39e80e8f33b1f076985daf"},{"author":{"_account_id":4257,"name":"Zane Bitter","email":"zbitter@redhat.com","username":"zaneb"},"change_message_id":"998e1b85cd621a94450c1351ce075f5867a2a161","unresolved":false,"context_lines":[{"line_number":40,"context_line":"There are a couple of problems with upgrading a distributed service such as"},{"line_number":41,"context_line":"Heat:"},{"line_number":42,"context_line":"1. The content sent over RPC can change."},{"line_number":43,"context_line":"2. The RPC interface itself can change, i.e. new keyword arguments."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"To address these problems, the content can be made backwards compatible using"},{"line_number":46,"context_line":"oslo.versionedobjects, and the RPC interface can be pinned to a specific"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba3cc151_176c389b","line":43,"updated":"2015-07-06 16:18:01.000000000","message":"This is a very real issue.","commit_id":"596829c38efcc0cf1c39e80e8f33b1f076985daf"},{"author":{"_account_id":4257,"name":"Zane Bitter","email":"zbitter@redhat.com","username":"zaneb"},"change_message_id":"998e1b85cd621a94450c1351ce075f5867a2a161","unresolved":false,"context_lines":[{"line_number":64,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"1. Define one version for every object we use, this means adding it in base"},{"line_number":68,"context_line":"object, for example:"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"class HeatObject:"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba3cc151_94afe67c","line":67,"updated":"2015-07-06 16:18:01.000000000","message":"We don\u0027t use any objects in our RPC messages though.","commit_id":"596829c38efcc0cf1c39e80e8f33b1f076985daf"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"098c2782f5c8a70ef30428b0cd2f145fc7098aeb","unresolved":false,"context_lines":[{"line_number":64,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"1. Define one version for every object we use, this means adding it in base"},{"line_number":68,"context_line":"object, for example:"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"class HeatObject:"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_3171f8a8","line":67,"in_reply_to":"ba3cc151_94afe67c","updated":"2015-08-05 14:05:28.000000000","message":"Presumably you use unversioned dicts at the moment. That\u0027s what he means by object: a dict object of data that could be replaced with an actual VersionedObject.","commit_id":"596829c38efcc0cf1c39e80e8f33b1f076985daf"},{"author":{"_account_id":13997,"name":"SHIGEMATSU Mitsuhiro","email":"shigematsu.mitsuhiro@lab.ntt.co.jp","username":"pshige"},"change_message_id":"3d21a46cb4664307098ed75cb49212353fe2eba5","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"2. We introduce new a config option in heat.conf"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"combatibility_mode \u003d 1.4"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"3. Implement a mechanism which will automatically backport each outgoing"},{"line_number":81,"context_line":"message to 1.4 as long as we have this configuration in place."}],"source_content_type":"text/x-rst","patch_set":2,"id":"da20952f_93452f70","line":78,"updated":"2015-09-06 10:49:53.000000000","message":"s/combatibility/compatibility/","commit_id":"596829c38efcc0cf1c39e80e8f33b1f076985daf"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"098c2782f5c8a70ef30428b0cd2f145fc7098aeb","unresolved":false,"context_lines":[{"line_number":78,"context_line":"combatibility_mode \u003d 1.4"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"3. Implement a mechanism which will automatically backport each outgoing"},{"line_number":81,"context_line":"message to 1.4 as long as we have this configuration in place."},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"As a result, the version of objects sent through RPC can be \"pinned\" to a"},{"line_number":84,"context_line":"previous version."}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_71d7804b","line":81,"updated":"2015-08-05 14:05:28.000000000","message":"Right, so if I was doing RPC in a project and I was going to stay away from conductor-like behavior in Nova, this is what I\u0027d do. I\u0027d replace my unversioned dicts of data that I send between components with VersionedObjects, and manually pin them at some version for compatibility during an upgrade process.","commit_id":"596829c38efcc0cf1c39e80e8f33b1f076985daf"},{"author":{"_account_id":4257,"name":"Zane Bitter","email":"zbitter@redhat.com","username":"zaneb"},"change_message_id":"998e1b85cd621a94450c1351ce075f5867a2a161","unresolved":false,"context_lines":[{"line_number":86,"context_line":"The compatibility mode version will be cached in memory. A command should be"},{"line_number":87,"context_line":"provided to re-read the configuration or to set the compatibility mode version."},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"Each service\u0027s rpcapi.py, will set the correct keyword arguments for a given"},{"line_number":90,"context_line":"RPC version. Versioned objects sent through RPC will set the correct"},{"line_number":91,"context_line":"attributes for a given target version by a a call to their"},{"line_number":92,"context_line":"obj_make_compatible() methods, which transform the object to a given target"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba3cc151_f7f2f46e","line":89,"updated":"2015-07-06 16:18:01.000000000","message":"This is the only interesting part; I\u0027d like to see much more detail on how this will work.","commit_id":"596829c38efcc0cf1c39e80e8f33b1f076985daf"},{"author":{"_account_id":7256,"name":"Randall Burt","email":"randall.burt@rackspace.com","username":"randall-burt"},"change_message_id":"cfbb5b32b6b5dc4cbcdf5267e0d761013e81b8fd","unresolved":false,"context_lines":[{"line_number":86,"context_line":"The compatibility mode version will be cached in memory. A command should be"},{"line_number":87,"context_line":"provided to re-read the configuration or to set the compatibility mode version."},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"Each service\u0027s rpcapi.py, will set the correct keyword arguments for a given"},{"line_number":90,"context_line":"RPC version. Versioned objects sent through RPC will set the correct"},{"line_number":91,"context_line":"attributes for a given target version by a a call to their"},{"line_number":92,"context_line":"obj_make_compatible() methods, which transform the object to a given target"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7a740942_f5755163","line":89,"in_reply_to":"1a4dcd0f_0dddb86e","updated":"2015-12-08 20:01:06.000000000","message":"If the RPC api is already versioned (and it is), is this strictly needed?","commit_id":"596829c38efcc0cf1c39e80e8f33b1f076985daf"},{"author":{"_account_id":4257,"name":"Zane Bitter","email":"zbitter@redhat.com","username":"zaneb"},"change_message_id":"6e6a19b86a5f240f6c82936a5a73139df6c297e7","unresolved":false,"context_lines":[{"line_number":86,"context_line":"The compatibility mode version will be cached in memory. A command should be"},{"line_number":87,"context_line":"provided to re-read the configuration or to set the compatibility mode version."},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"Each service\u0027s rpcapi.py, will set the correct keyword arguments for a given"},{"line_number":90,"context_line":"RPC version. Versioned objects sent through RPC will set the correct"},{"line_number":91,"context_line":"attributes for a given target version by a a call to their"},{"line_number":92,"context_line":"obj_make_compatible() methods, which transform the object to a given target"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_0dddb86e","line":89,"in_reply_to":"1a4dcd0f_718f802a","updated":"2015-08-05 21:50:02.000000000","message":"OK, I\u0027m looking at that example and seeing that this is essentially handled manually for each call, by someone writing the code to check the current RPC version and inserting only the valid arguments for that version.\n\n[Presumably for the arguments that are not valid the correct approach would be specific to the situation. If we could safely just ignore them then this could be trivially implemented on the receiving side by ignoring unknown arguments, but that probably not the best policy in some cases so I guess this is why it needs to be handled manually.]\n\nSo this seems like a good idea, and I think we should totally implement it, and I would love to see a spec for that. But afaict it\u0027s totally orthogonal to versioned objects. We can do this without implementing versioned objects, and implementing versioned objects doesn\u0027t help at all - we still have to manually write code to handle each case.","commit_id":"596829c38efcc0cf1c39e80e8f33b1f076985daf"},{"author":{"_account_id":7256,"name":"Randall Burt","email":"randall.burt@rackspace.com","username":"randall-burt"},"change_message_id":"f104409ad5a5f96fa9f5d217470a3b03339c7b1c","unresolved":false,"context_lines":[{"line_number":86,"context_line":"The compatibility mode version will be cached in memory. A command should be"},{"line_number":87,"context_line":"provided to re-read the configuration or to set the compatibility mode version."},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"Each service\u0027s rpcapi.py, will set the correct keyword arguments for a given"},{"line_number":90,"context_line":"RPC version. Versioned objects sent through RPC will set the correct"},{"line_number":91,"context_line":"attributes for a given target version by a a call to their"},{"line_number":92,"context_line":"obj_make_compatible() methods, which transform the object to a given target"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7a740942_10e1889a","line":89,"in_reply_to":"7a740942_f5755163","updated":"2015-12-10 20:11:51.000000000","message":"Sorry, I didn\u0027t mean to imply this was sufficient. The way we handle this in our deployment is that each version of Heat we deploy talks to its own virtual host so the \"old\" and \"new\" versions of Heat *can\u0027t* talk to each other via RPC.","commit_id":"596829c38efcc0cf1c39e80e8f33b1f076985daf"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"098c2782f5c8a70ef30428b0cd2f145fc7098aeb","unresolved":false,"context_lines":[{"line_number":86,"context_line":"The compatibility mode version will be cached in memory. A command should be"},{"line_number":87,"context_line":"provided to re-read the configuration or to set the compatibility mode version."},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"Each service\u0027s rpcapi.py, will set the correct keyword arguments for a given"},{"line_number":90,"context_line":"RPC version. Versioned objects sent through RPC will set the correct"},{"line_number":91,"context_line":"attributes for a given target version by a a call to their"},{"line_number":92,"context_line":"obj_make_compatible() methods, which transform the object to a given target"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_718f802a","line":89,"in_reply_to":"ba3cc151_f7f2f46e","updated":"2015-08-05 14:05:28.000000000","message":"See nova\u0027s rpcapi for example. The oslo.messaging stuff already has the ability to set a pin and provide you a way to remove things from a call that are newer than the pinned version.\n\nhttps://github.com/openstack/nova/blob/stable/kilo/nova/compute/rpcapi.py#L357-L364\n\nThat is a major version bump, so it\u0027s subtractive, but you get the idea.","commit_id":"596829c38efcc0cf1c39e80e8f33b1f076985daf"}]}
