)]}'
{"specs/configurable-introspection-data-backends.rst":[{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"2173484d4ce4ec2ee929a7c58f969348c76eac3d","unresolved":false,"context_lines":[{"line_number":30,"context_line":"* Adds an inspector plugin named ``introspection_data`` which supports three"},{"line_number":31,"context_line":"  types of storage backend: ``none``, ``swift``, and ``database``."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"  Each type of storage backend exposes two interfaces::"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    def get(self, node_id, suffix\u003dNone):"},{"line_number":36,"context_line":"        pass"}],"source_content_type":"text/x-rst","patch_set":7,"id":"3f79a3b5_2b61fb38","line":33,"range":{"start_line":33,"start_character":39,"end_line":33,"end_character":53},"updated":"2018-11-22 12:46:59.000000000","message":"How do we signal the plugin to drop its data for a node? Or will the plugin manager wipe out the `data` cell?","commit_id":"524db1e9808a1cc61ced0fa795a8b6e71c22fc3e"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"df1aa3e518e20bbf8e260cf7aad4295f3602fa90","unresolved":false,"context_lines":[{"line_number":30,"context_line":"* Adds an inspector plugin named ``introspection_data`` which supports three"},{"line_number":31,"context_line":"  types of storage backend: ``none``, ``swift``, and ``database``."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"  Each type of storage backend exposes two interfaces::"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    def get(self, node_id, suffix\u003dNone):"},{"line_number":36,"context_line":"        pass"}],"source_content_type":"text/x-rst","patch_set":7,"id":"3f79a3b5_c883a34e","line":33,"range":{"start_line":33,"start_character":39,"end_line":33,"end_character":53},"in_reply_to":"3f79a3b5_2b61fb38","updated":"2018-11-23 01:33:18.000000000","message":"Currently we don\u0027t support remove the introspected data from API, but I believe it\u0027s a good feature, if there is external requirement to do so :)","commit_id":"524db1e9808a1cc61ced0fa795a8b6e71c22fc3e"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"2173484d4ce4ec2ee929a7c58f969348c76eac3d","unresolved":false,"context_lines":[{"line_number":69,"context_line":"     The Swift storage backend uses suffix as part of the object name:"},{"line_number":70,"context_line":"     ``inspector_data-\u003cuuid\u003e[-suffix]``."},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"* ``data``: JsonEncodedDict(), LONGTEXT for MySQL. This field is used as"},{"line_number":73,"context_line":"  the storage of introspected data."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"When a node is removed from the cache, the associated introspection data will"}],"source_content_type":"text/x-rst","patch_set":7,"id":"3f79a3b5_2b625b16","line":72,"range":{"start_line":72,"start_character":4,"end_line":72,"end_character":8},"updated":"2018-11-22 12:46:59.000000000","message":"In case of Swift, will this new column be used?\n\nWhat if some storage backend won\u0027t keep its data in ironic DB? Could some plugin choose to keep its data in some principally different DB for some reason?\n\nOn the other hand, the only sure way to wipe out stale data is to have it in ironic DB it seems....","commit_id":"524db1e9808a1cc61ced0fa795a8b6e71c22fc3e"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"df1aa3e518e20bbf8e260cf7aad4295f3602fa90","unresolved":false,"context_lines":[{"line_number":69,"context_line":"     The Swift storage backend uses suffix as part of the object name:"},{"line_number":70,"context_line":"     ``inspector_data-\u003cuuid\u003e[-suffix]``."},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"* ``data``: JsonEncodedDict(), LONGTEXT for MySQL. This field is used as"},{"line_number":73,"context_line":"  the storage of introspected data."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"When a node is removed from the cache, the associated introspection data will"}],"source_content_type":"text/x-rst","patch_set":7,"id":"3f79a3b5_28e81712","line":72,"range":{"start_line":72,"start_character":4,"end_line":72,"end_character":8},"in_reply_to":"3f79a3b5_2b625b16","updated":"2018-11-23 01:33:18.000000000","message":"No, database is not involved in the case of Swift, so the data model here only relates to the db backend.","commit_id":"524db1e9808a1cc61ced0fa795a8b6e71c22fc3e"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"2173484d4ce4ec2ee929a7c58f969348c76eac3d","unresolved":false,"context_lines":[{"line_number":72,"context_line":"* ``data``: JsonEncodedDict(), LONGTEXT for MySQL. This field is used as"},{"line_number":73,"context_line":"  the storage of introspected data."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"When a node is removed from the cache, the associated introspection data will"},{"line_number":76,"context_line":"be removed as well."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"HTTP API impact"}],"source_content_type":"text/x-rst","patch_set":7,"id":"3f79a3b5_2b2a5be5","line":75,"range":{"start_line":75,"start_character":23,"end_line":75,"end_character":37},"updated":"2018-11-22 12:46:59.000000000","message":"nit: cache sounds a bit confusing to be. Which cache? How do I know when this removal happens?\n\nIn case of Swift, does the data removal happens in-sync with node removal?","commit_id":"524db1e9808a1cc61ced0fa795a8b6e71c22fc3e"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"df1aa3e518e20bbf8e260cf7aad4295f3602fa90","unresolved":false,"context_lines":[{"line_number":72,"context_line":"* ``data``: JsonEncodedDict(), LONGTEXT for MySQL. This field is used as"},{"line_number":73,"context_line":"  the storage of introspected data."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"When a node is removed from the cache, the associated introspection data will"},{"line_number":76,"context_line":"be removed as well."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"HTTP API impact"}],"source_content_type":"text/x-rst","patch_set":7,"id":"3f79a3b5_086afb80","line":75,"range":{"start_line":75,"start_character":23,"end_line":75,"end_character":37},"in_reply_to":"3f79a3b5_2b2a5be5","updated":"2018-11-23 01:33:18.000000000","message":"Well, cache can be in many forms, the inspector uses database as node cache. There is a periodic task in the inspector to keep cache synced with ironic, when a node is deleted from ironic, it will be removed from the cache of inspector as well, in the case of db backend, we will remove the introspection data associated with the node.\n\nAs to the Swift, I think the answer is no. I am not sure if it can be called a bug, it appears we didn\u0027t support removing introspection data from the initial design. When we remove a node from the cache of inspector, the data stored in Swift will be left there.","commit_id":"524db1e9808a1cc61ced0fa795a8b6e71c22fc3e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0d34b94e7c8b06111a60ee1505334feb907a95b1","unresolved":false,"context_lines":[{"line_number":127,"context_line":".. code-block:: console"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"   $ ironic-inspector-migrate-data --from swift --to database"},{"line_number":130,"context_line":"   $ ironic-inspector-migrate-data --from database --to swift"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"Implementation"},{"line_number":133,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":7,"id":"3f79a3b5_2c9ff564","line":130,"updated":"2018-10-23 08:39:29.000000000","message":"do we need it to be that explicit? we are going to provide the configuration file anyway (for credentials), so we can detect the \"to\" part from the current configuration. I\u0027m not sure we can make an informed guess about --from though..","commit_id":"524db1e9808a1cc61ced0fa795a8b6e71c22fc3e"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"86899c11ea8cd65a24d681c5de3203a34a91193a","unresolved":false,"context_lines":[{"line_number":127,"context_line":".. code-block:: console"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"   $ ironic-inspector-migrate-data --from swift --to database"},{"line_number":130,"context_line":"   $ ironic-inspector-migrate-data --from database --to swift"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"Implementation"},{"line_number":133,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":7,"id":"3f79a3b5_ac7ea5bd","line":130,"in_reply_to":"3f79a3b5_2c9ff564","updated":"2018-10-23 09:00:24.000000000","message":"dunno, maybe some crazy user wants to do the migration before changing backend, as such we can\u0027t make assumptions..\n\nin the other side, maybe this user is not crazy at all, he just want to reduce the service breakdown time :)","commit_id":"524db1e9808a1cc61ced0fa795a8b6e71c22fc3e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"013e59e30ea5bd87b458b50889054c9e8bcdaaa6","unresolved":false,"context_lines":[{"line_number":127,"context_line":".. code-block:: console"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"   $ ironic-inspector-migrate-data --from swift --to database"},{"line_number":130,"context_line":"   $ ironic-inspector-migrate-data --from database --to swift"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"Implementation"},{"line_number":133,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":7,"id":"3f79a3b5_ec433d6a","line":130,"in_reply_to":"3f79a3b5_ac7ea5bd","updated":"2018-10-23 09:04:17.000000000","message":"fair enough, yeah","commit_id":"524db1e9808a1cc61ced0fa795a8b6e71c22fc3e"}],"specs/configurable-introspection-data-store.rst":[{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"747ef3cb7b7dbb971c5a5b09acb47e486a25d014","unresolved":false,"context_lines":[{"line_number":38,"context_line":"        pass"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"* Adds a plugin manager to dynamically load plugins according to configuration"},{"line_number":41,"context_line":"  option ``[processing]store_data``, in a way similar to rule manager."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"* Adds a new entry point to the setup.cfg::"},{"line_number":44,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_931a286d","line":41,"range":{"start_line":41,"start_character":23,"end_line":41,"end_character":33},"updated":"2018-08-30 07:12:39.000000000","message":"renamed to storage_backend","commit_id":"d6f0d215714c49c0069c7e8ee6ac7bf79d480984"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2845dbec7239de25c63f8873173bc398cc1d9553","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":"* Adds a new entry point to the setup.cfg::"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    ironic_inspector.introspection_data.store \u003d"},{"line_number":46,"context_line":"        none \u003d ironic_inspector.plugins.introspection_data:NoStore"},{"line_number":47,"context_line":"        swift \u003d ironic_inspector.plugins.introspection_data:SwiftStore"},{"line_number":48,"context_line":"        database \u003d ironic_inspector.plugins.introspection_data:DatabaseStore"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_4c69ea1e","line":45,"updated":"2018-08-11 10:49:46.000000000","message":"s/store/storage/ or even storage_backend","commit_id":"d6f0d215714c49c0069c7e8ee6ac7bf79d480984"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"747ef3cb7b7dbb971c5a5b09acb47e486a25d014","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":"* Adds a new entry point to the setup.cfg::"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    ironic_inspector.introspection_data.store \u003d"},{"line_number":46,"context_line":"        none \u003d ironic_inspector.plugins.introspection_data:NoStore"},{"line_number":47,"context_line":"        swift \u003d ironic_inspector.plugins.introspection_data:SwiftStore"},{"line_number":48,"context_line":"        database \u003d ironic_inspector.plugins.introspection_data:DatabaseStore"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_b34f2433","line":45,"in_reply_to":"3f79a3b5_4c69ea1e","updated":"2018-08-30 07:12:39.000000000","message":"Renamed to introspection.storage_backend\n\nThe \u0027_data\u0027 is omitted since storage has such implication (an effort to reduce the string length).","commit_id":"d6f0d215714c49c0069c7e8ee6ac7bf79d480984"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"ff06e801ef1a03f8826fb22bf5cee32f4503fffd","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":"* Adds a new entry point to the setup.cfg::"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    ironic_inspector.introspection_data.store \u003d"},{"line_number":46,"context_line":"        none \u003d ironic_inspector.plugins.introspection_data:NoStore"},{"line_number":47,"context_line":"        swift \u003d ironic_inspector.plugins.introspection_data:SwiftStore"},{"line_number":48,"context_line":"        database \u003d ironic_inspector.plugins.introspection_data:DatabaseStore"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_f728b6e2","line":45,"in_reply_to":"3f79a3b5_4c69ea1e","updated":"2018-08-13 01:47:24.000000000","message":"Will do, I like the storage_backend, though it make the whole string quite long, I wish there is an abbrev for it.","commit_id":"d6f0d215714c49c0069c7e8ee6ac7bf79d480984"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2845dbec7239de25c63f8873173bc398cc1d9553","unresolved":false,"context_lines":[{"line_number":111,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":112,"context_line":"------------------------------------"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"Database upgrade will be handled by ironic-inspector-dbsync."},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"Implementation"},{"line_number":117,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_ec59d68d","line":114,"updated":"2018-08-11 10:49:46.000000000","message":"Do we plan to migrate data? maybe create a tool to migrate to/from swift? it\u0027s not a requirement, just a suggestion/question.","commit_id":"d6f0d215714c49c0069c7e8ee6ac7bf79d480984"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"ff06e801ef1a03f8826fb22bf5cee32f4503fffd","unresolved":false,"context_lines":[{"line_number":111,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":112,"context_line":"------------------------------------"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"Database upgrade will be handled by ironic-inspector-dbsync."},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"Implementation"},{"line_number":117,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_772ca601","line":114,"in_reply_to":"3f79a3b5_ec59d68d","updated":"2018-08-13 01:47:24.000000000","message":"oO, haven\u0027t considered, it\u0027s a nice suggestion, I can take a look after the feature is done.\n\nI wonder how we ship this tool with regular release, or just upload to somewhere anyone can access? I remember there are discussions about migration tool from classic drivers to hardware types, that would be a good reference if it exists.","commit_id":"d6f0d215714c49c0069c7e8ee6ac7bf79d480984"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"a2b255dbd2beeedd36653321a359770ccebdeaf1","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://storyboard.openstack.org/#!/story/1726713"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This spec proposes a mechanism to load introspection data store according to"},{"line_number":14,"context_line":"configuration option, and additionally provides support to store introspection"},{"line_number":15,"context_line":"data to ironic inspector database."},{"line_number":16,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_b7bb09c2","line":13,"range":{"start_line":13,"start_character":31,"end_line":13,"end_character":73},"updated":"2018-09-19 06:52:00.000000000","message":"nit: `to use an alternative introspection data store` or `to load introspection data from configured data store`?","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"c181646a0972360c1cab2b160c100fed70722d3f","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://storyboard.openstack.org/#!/story/1726713"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This spec proposes a mechanism to load introspection data store according to"},{"line_number":14,"context_line":"configuration option, and additionally provides support to store introspection"},{"line_number":15,"context_line":"data to ironic inspector database."},{"line_number":16,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_656c54d0","line":13,"range":{"start_line":13,"start_character":31,"end_line":13,"end_character":73},"in_reply_to":"3f79a3b5_b7bb09c2","updated":"2018-09-26 07:06:44.000000000","message":"Done","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"a2b255dbd2beeedd36653321a359770ccebdeaf1","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This spec proposes a mechanism to load introspection data store according to"},{"line_number":14,"context_line":"configuration option, and additionally provides support to store introspection"},{"line_number":15,"context_line":"data to ironic inspector database."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Problem description"},{"line_number":18,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_77b1f1df","line":15,"range":{"start_line":15,"start_character":5,"end_line":15,"end_character":8},"updated":"2018-09-19 06:52:00.000000000","message":"nit: in ?","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"c181646a0972360c1cab2b160c100fed70722d3f","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This spec proposes a mechanism to load introspection data store according to"},{"line_number":14,"context_line":"configuration option, and additionally provides support to store introspection"},{"line_number":15,"context_line":"data to ironic inspector database."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Problem description"},{"line_number":18,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_25665cf0","line":15,"range":{"start_line":15,"start_character":5,"end_line":15,"end_character":8},"in_reply_to":"3f79a3b5_77b1f1df","updated":"2018-09-26 07:06:44.000000000","message":"Done","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"a2b255dbd2beeedd36653321a359770ccebdeaf1","unresolved":false,"context_lines":[{"line_number":17,"context_line":"Problem description"},{"line_number":18,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Currently introspection data can only be stored to Swift, there are no"},{"line_number":21,"context_line":"alternatives in an environment where Swift is not adopted. Also there is lack"},{"line_number":22,"context_line":"of mechanisms to support other stores by extending with plugins."},{"line_number":23,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_f7bc21b6","line":20,"range":{"start_line":20,"start_character":9,"end_line":20,"end_character":10},"updated":"2018-09-19 06:52:00.000000000","message":"nit: ,","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"a2b255dbd2beeedd36653321a359770ccebdeaf1","unresolved":false,"context_lines":[{"line_number":17,"context_line":"Problem description"},{"line_number":18,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Currently introspection data can only be stored to Swift, there are no"},{"line_number":21,"context_line":"alternatives in an environment where Swift is not adopted. Also there is lack"},{"line_number":22,"context_line":"of mechanisms to support other stores by extending with plugins."},{"line_number":23,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_37c7f947","line":20,"range":{"start_line":20,"start_character":48,"end_line":20,"end_character":50},"updated":"2018-09-19 06:52:00.000000000","message":"nit: in?","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"c181646a0972360c1cab2b160c100fed70722d3f","unresolved":false,"context_lines":[{"line_number":17,"context_line":"Problem description"},{"line_number":18,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Currently introspection data can only be stored to Swift, there are no"},{"line_number":21,"context_line":"alternatives in an environment where Swift is not adopted. Also there is lack"},{"line_number":22,"context_line":"of mechanisms to support other stores by extending with plugins."},{"line_number":23,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_e55f040d","line":20,"range":{"start_line":20,"start_character":48,"end_line":20,"end_character":50},"in_reply_to":"3f79a3b5_37c7f947","updated":"2018-09-26 07:06:44.000000000","message":"Done","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"c181646a0972360c1cab2b160c100fed70722d3f","unresolved":false,"context_lines":[{"line_number":17,"context_line":"Problem description"},{"line_number":18,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Currently introspection data can only be stored to Swift, there are no"},{"line_number":21,"context_line":"alternatives in an environment where Swift is not adopted. Also there is lack"},{"line_number":22,"context_line":"of mechanisms to support other stores by extending with plugins."},{"line_number":23,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_456118d4","line":20,"range":{"start_line":20,"start_character":9,"end_line":20,"end_character":10},"in_reply_to":"3f79a3b5_f7bc21b6","updated":"2018-09-26 07:06:44.000000000","message":"Done","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"a2b255dbd2beeedd36653321a359770ccebdeaf1","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Currently introspection data can only be stored to Swift, there are no"},{"line_number":21,"context_line":"alternatives in an environment where Swift is not adopted. Also there is lack"},{"line_number":22,"context_line":"of mechanisms to support other stores by extending with plugins."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Proposed change"},{"line_number":25,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_97db6d1f","line":22,"range":{"start_line":22,"start_character":31,"end_line":22,"end_character":37},"updated":"2018-09-19 06:52:00.000000000","message":"nit: data stores","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"a2b255dbd2beeedd36653321a359770ccebdeaf1","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Currently introspection data can only be stored to Swift, there are no"},{"line_number":21,"context_line":"alternatives in an environment where Swift is not adopted. Also there is lack"},{"line_number":22,"context_line":"of mechanisms to support other stores by extending with plugins."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Proposed change"},{"line_number":25,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_17cf5d57","line":22,"range":{"start_line":22,"start_character":51,"end_line":22,"end_character":55},"updated":"2018-09-19 06:52:00.000000000","message":"nit: ironic inspector via a plugin","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"3dcd839b95eaca82a0f8e47b544452cce7256fcc","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Currently introspection data can only be stored to Swift, there are no"},{"line_number":21,"context_line":"alternatives in an environment where Swift is not adopted. Also there is lack"},{"line_number":22,"context_line":"of mechanisms to support other stores by extending with plugins."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Proposed change"},{"line_number":25,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_3a236007","line":22,"range":{"start_line":22,"start_character":51,"end_line":22,"end_character":55},"in_reply_to":"3f79a3b5_17cf5d57","updated":"2018-09-19 07:51:58.000000000","message":"or \"by extending ironic inspector with plugins\"?","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"c181646a0972360c1cab2b160c100fed70722d3f","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Currently introspection data can only be stored to Swift, there are no"},{"line_number":21,"context_line":"alternatives in an environment where Swift is not adopted. Also there is lack"},{"line_number":22,"context_line":"of mechanisms to support other stores by extending with plugins."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Proposed change"},{"line_number":25,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_25abbcd7","line":22,"range":{"start_line":22,"start_character":31,"end_line":22,"end_character":37},"in_reply_to":"3f79a3b5_2a6d272e","updated":"2018-09-26 07:06:44.000000000","message":"Done","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"7678a1878b11d09ef2da8a7f61839e3993bdbd0a","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Currently introspection data can only be stored to Swift, there are no"},{"line_number":21,"context_line":"alternatives in an environment where Swift is not adopted. Also there is lack"},{"line_number":22,"context_line":"of mechanisms to support other stores by extending with plugins."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Proposed change"},{"line_number":25,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_ea640f4b","line":22,"range":{"start_line":22,"start_character":51,"end_line":22,"end_character":55},"in_reply_to":"3f79a3b5_3a236007","updated":"2018-09-20 21:21:11.000000000","message":"Makes sense!","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"7678a1878b11d09ef2da8a7f61839e3993bdbd0a","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Currently introspection data can only be stored to Swift, there are no"},{"line_number":21,"context_line":"alternatives in an environment where Swift is not adopted. Also there is lack"},{"line_number":22,"context_line":"of mechanisms to support other stores by extending with plugins."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Proposed change"},{"line_number":25,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_2a6d272e","line":22,"range":{"start_line":22,"start_character":31,"end_line":22,"end_character":37},"in_reply_to":"3f79a3b5_7a347849","updated":"2018-09-20 21:21:11.000000000","message":"That would make sense to me!","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"3dcd839b95eaca82a0f8e47b544452cce7256fcc","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Currently introspection data can only be stored to Swift, there are no"},{"line_number":21,"context_line":"alternatives in an environment where Swift is not adopted. Also there is lack"},{"line_number":22,"context_line":"of mechanisms to support other stores by extending with plugins."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Proposed change"},{"line_number":25,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_7a347849","line":22,"range":{"start_line":22,"start_character":31,"end_line":22,"end_character":37},"in_reply_to":"3f79a3b5_97db6d1f","updated":"2018-09-19 07:51:58.000000000","message":"This spec is not very consistent on the storage term, I guess I need to update those to \"storage backend\", are you good with that?","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"c181646a0972360c1cab2b160c100fed70722d3f","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Currently introspection data can only be stored to Swift, there are no"},{"line_number":21,"context_line":"alternatives in an environment where Swift is not adopted. Also there is lack"},{"line_number":22,"context_line":"of mechanisms to support other stores by extending with plugins."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Proposed change"},{"line_number":25,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_45a6f80f","line":22,"range":{"start_line":22,"start_character":51,"end_line":22,"end_character":55},"in_reply_to":"3f79a3b5_ea640f4b","updated":"2018-09-26 07:06:44.000000000","message":"Done","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"a2b255dbd2beeedd36653321a359770ccebdeaf1","unresolved":false,"context_lines":[{"line_number":24,"context_line":"Proposed change"},{"line_number":25,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"* Adds a table named ``introspection_data`` to store inspected data."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"* Adds a plugin named ``introspection_data`` which supports three types of"},{"line_number":30,"context_line":"  store: ``none``, ``swift``, and ``database``."}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_f7d181f9","line":27,"range":{"start_line":27,"start_character":53,"end_line":27,"end_character":62},"updated":"2018-09-19 06:52:00.000000000","message":"nit: introspection","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"c181646a0972360c1cab2b160c100fed70722d3f","unresolved":false,"context_lines":[{"line_number":24,"context_line":"Proposed change"},{"line_number":25,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"* Adds a table named ``introspection_data`` to store inspected data."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"* Adds a plugin named ``introspection_data`` which supports three types of"},{"line_number":30,"context_line":"  store: ``none``, ``swift``, and ``database``."}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_05b00040","line":27,"range":{"start_line":27,"start_character":53,"end_line":27,"end_character":62},"in_reply_to":"3f79a3b5_f7d181f9","updated":"2018-09-26 07:06:44.000000000","message":"Done","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"3dcd839b95eaca82a0f8e47b544452cce7256fcc","unresolved":false,"context_lines":[{"line_number":24,"context_line":"Proposed change"},{"line_number":25,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"* Adds a table named ``introspection_data`` to store inspected data."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"* Adds a plugin named ``introspection_data`` which supports three types of"},{"line_number":30,"context_line":"  store: ``none``, ``swift``, and ``database``."}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_9a04f47f","line":27,"range":{"start_line":27,"start_character":53,"end_line":27,"end_character":62},"in_reply_to":"3f79a3b5_f7d181f9","updated":"2018-09-19 07:51:58.000000000","message":"I think it\u0027s fine to use \"inspected\" here, \"introspection\" also works.","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"a2b255dbd2beeedd36653321a359770ccebdeaf1","unresolved":false,"context_lines":[{"line_number":26,"context_line":""},{"line_number":27,"context_line":"* Adds a table named ``introspection_data`` to store inspected data."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"* Adds a plugin named ``introspection_data`` which supports three types of"},{"line_number":30,"context_line":"  store: ``none``, ``swift``, and ``database``."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"  Each type of store exposes two interfaces::"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_b7654947","line":30,"range":{"start_line":29,"start_character":45,"end_line":30,"end_character":45},"updated":"2018-09-19 06:52:00.000000000","message":"Would it make things more modular and better extendible if there would be three independent plugins, one per distinct storage backend?\n\nIf we collapse all storage technologies into a single `introspection_data` plugin implementation, it may become messy and dependent on the third-party modules that may not be always used.\n\nWDYT?","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"7678a1878b11d09ef2da8a7f61839e3993bdbd0a","unresolved":false,"context_lines":[{"line_number":26,"context_line":""},{"line_number":27,"context_line":"* Adds a table named ``introspection_data`` to store inspected data."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"* Adds a plugin named ``introspection_data`` which supports three types of"},{"line_number":30,"context_line":"  store: ``none``, ``swift``, and ``database``."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"  Each type of store exposes two interfaces::"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_ea4e4f94","line":30,"range":{"start_line":29,"start_character":45,"end_line":30,"end_character":45},"in_reply_to":"3f79a3b5_5a997c1b","updated":"2018-09-20 21:21:11.000000000","message":"I am worrying about the dependencies...\n\nFor instance, if we have multiple different SQL storage backends supported, we probably could not pull in the dependencies automatically because that would mean installing libraries that are not actually needed or not even supported by the platform. So we would have to rely on the user to provide necessary dependencies manually.\n\nContrast this with independent plugins (all inheriting from some abstract API) - each plugin would depend only on the libraries it actually uses. That would let us enlist the dependencies and install them automatically as a side-effect of installing the plugin.\n\nWDYT?","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"8135adb31254593ff5dfb84568cc59b1614aa661","unresolved":false,"context_lines":[{"line_number":26,"context_line":""},{"line_number":27,"context_line":"* Adds a table named ``introspection_data`` to store inspected data."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"* Adds a plugin named ``introspection_data`` which supports three types of"},{"line_number":30,"context_line":"  store: ``none``, ``swift``, and ``database``."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"  Each type of store exposes two interfaces::"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_df1737ee","line":30,"range":{"start_line":29,"start_character":45,"end_line":30,"end_character":45},"in_reply_to":"3f79a3b5_61cc9d33","updated":"2018-09-26 03:54:10.000000000","message":"I\u0027m somewhat confused now, maybe the word plugin is broad, there are inspector plugins and stevedore extensions here, do we call stevedore extension as plugin too?","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"2d406ac53277527f471d8fed7287effc39a0fe5b","unresolved":false,"context_lines":[{"line_number":26,"context_line":""},{"line_number":27,"context_line":"* Adds a table named ``introspection_data`` to store inspected data."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"* Adds a plugin named ``introspection_data`` which supports three types of"},{"line_number":30,"context_line":"  store: ``none``, ``swift``, and ``database``."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"  Each type of store exposes two interfaces::"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_250d95e6","line":30,"range":{"start_line":29,"start_character":45,"end_line":30,"end_character":45},"in_reply_to":"3f79a3b5_61cc9d33","updated":"2018-10-01 11:37:41.000000000","message":"Possibly, but line #29 refers to a single plugin supporting all backends at once, perhaps depending on the configuration...","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"3dcd839b95eaca82a0f8e47b544452cce7256fcc","unresolved":false,"context_lines":[{"line_number":26,"context_line":""},{"line_number":27,"context_line":"* Adds a table named ``introspection_data`` to store inspected data."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"* Adds a plugin named ``introspection_data`` which supports three types of"},{"line_number":30,"context_line":"  store: ``none``, ``swift``, and ``database``."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"  Each type of store exposes two interfaces::"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_5a997c1b","line":30,"range":{"start_line":29,"start_character":45,"end_line":30,"end_character":45},"in_reply_to":"3f79a3b5_b7654947","updated":"2018-09-19 07:51:58.000000000","message":"\u003e Would it make things more modular and better extendible if there\n \u003e would be three independent plugins, one per distinct storage\n \u003e backend?\n\nindependent plugins suits for the case we want to use some of them instead of one of them, if there is no special requirement on this, I\u0027d prefer to use one plugin.\n\n \u003e If we collapse all storage technologies into a single\n \u003e `introspection_data` plugin implementation, it may become messy and\n \u003e dependent on the third-party modules that may not be always used.\n \u003e \n \u003e WDYT?\n\nI don\u0027t think so, one plugin didn\u0027t mean all codes go into one big file, we can still logically separate functionality by adjusting code structure. The plugin just provides a standard interface applies to all inherited implementations.","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"1db6b46204cc24871e489eccf5be872acad18c5d","unresolved":false,"context_lines":[{"line_number":26,"context_line":""},{"line_number":27,"context_line":"* Adds a table named ``introspection_data`` to store inspected data."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"* Adds a plugin named ``introspection_data`` which supports three types of"},{"line_number":30,"context_line":"  store: ``none``, ``swift``, and ``database``."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"  Each type of store exposes two interfaces::"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_61cc9d33","line":30,"range":{"start_line":29,"start_character":45,"end_line":30,"end_character":45},"in_reply_to":"3f79a3b5_ea4e4f94","updated":"2018-09-21 07:51:29.000000000","message":"I have a feeling you\u0027re talking about the same thing using different words.. Lines 40-48 seem to assume a separate plugin per storage backend.","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"8135adb31254593ff5dfb84568cc59b1614aa661","unresolved":false,"context_lines":[{"line_number":26,"context_line":""},{"line_number":27,"context_line":"* Adds a table named ``introspection_data`` to store inspected data."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"* Adds a plugin named ``introspection_data`` which supports three types of"},{"line_number":30,"context_line":"  store: ``none``, ``swift``, and ``database``."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"  Each type of store exposes two interfaces::"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_1ff5afcc","line":30,"range":{"start_line":29,"start_character":45,"end_line":30,"end_character":45},"in_reply_to":"3f79a3b5_ea4e4f94","updated":"2018-09-26 03:54:10.000000000","message":"Not sure I get it, but I am feeling you are talking about something like 3rd party plugins. I think we need to satisfy the requirement for upstream version, but other supplements need to address their own requirements. For this spec, there is no additional requirement introduced, maybe it would make things clear by referring to the code?\n\nhttps://review.openstack.org/#/q/topic:story/1726713+(status:open)+(project:openstack/ironic-inspector)","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"8135adb31254593ff5dfb84568cc59b1614aa661","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    def store_data(self, node_info, data, suffix\u003dNone):"},{"line_number":38,"context_line":"        pass"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"* Adds a plugin manager to dynamically load plugins according to configuration"},{"line_number":41,"context_line":"  option ``[processing]storage_backend``, in a way similar to rule manager."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"* Adds a new entry point to the setup.cfg::"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_7fdce344","line":40,"range":{"start_line":40,"start_character":44,"end_line":40,"end_character":51},"updated":"2018-09-26 03:54:10.000000000","message":"Maybe this is the word caused confusion? I guess I should change it to extensions.","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"2d406ac53277527f471d8fed7287effc39a0fe5b","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    def store_data(self, node_info, data, suffix\u003dNone):"},{"line_number":38,"context_line":"        pass"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"* Adds a plugin manager to dynamically load plugins according to configuration"},{"line_number":41,"context_line":"  option ``[processing]storage_backend``, in a way similar to rule manager."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"* Adds a new entry point to the setup.cfg::"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_85bee9ac","line":40,"range":{"start_line":40,"start_character":44,"end_line":40,"end_character":51},"in_reply_to":"3f79a3b5_7fdce344","updated":"2018-10-01 11:37:41.000000000","message":"Or may be explain what the word \"plugin\" means in the context of this spec?","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"00eeecb1f777515e162104f6cca8f250ca2a7921","unresolved":false,"context_lines":[{"line_number":38,"context_line":"        pass"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"* Adds a plugin manager to dynamically load plugins according to configuration"},{"line_number":41,"context_line":"  option ``[processing]storage_backend``, in a way similar to rule manager."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"* Adds a new entry point to the setup.cfg::"},{"line_number":44,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_85eca9bc","line":41,"range":{"start_line":41,"start_character":11,"end_line":41,"end_character":38},"updated":"2018-10-01 11:41:31.000000000","message":"What\u0027s the way for the user to figure out which plugin supports which way of storing data e.g. `[processing]store_data` value?","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"06ae277d0278f9319741b96146df5330986f548d","unresolved":false,"context_lines":[{"line_number":38,"context_line":"        pass"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"* Adds a plugin manager to dynamically load plugins according to configuration"},{"line_number":41,"context_line":"  option ``[processing]storage_backend``, in a way similar to rule manager."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"* Adds a new entry point to the setup.cfg::"},{"line_number":44,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_30146a4d","line":41,"range":{"start_line":41,"start_character":11,"end_line":41,"end_character":38},"in_reply_to":"3f79a3b5_85eca9bc","updated":"2018-10-08 06:11:27.000000000","message":"For extensions supported in the upstream, there are help messages for the configuration option.","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"a2b255dbd2beeedd36653321a359770ccebdeaf1","unresolved":false,"context_lines":[{"line_number":58,"context_line":"A new table named ``introspection_data`` will be created, with three fields:"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"* ``uuid``: String(36), foreign key to ``node.uuid``."},{"line_number":61,"context_line":"* ``suffix``: String(32), The store current suffix argument, which is either"},{"line_number":62,"context_line":"  ``None`` or ``UNPROCESSED``. When suffix is not specified, it will be"},{"line_number":63,"context_line":"  converted to string ``default``."},{"line_number":64,"context_line":"* ``data``: JsonEncodedDict(), LONGTEXT for mysql. This field is used to store"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_f7eae19d","line":61,"range":{"start_line":61,"start_character":26,"end_line":61,"end_character":59},"updated":"2018-09-19 06:52:00.000000000","message":"may be needs clarification or rewording?","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"c181646a0972360c1cab2b160c100fed70722d3f","unresolved":false,"context_lines":[{"line_number":58,"context_line":"A new table named ``introspection_data`` will be created, with three fields:"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"* ``uuid``: String(36), foreign key to ``node.uuid``."},{"line_number":61,"context_line":"* ``suffix``: String(32), The store current suffix argument, which is either"},{"line_number":62,"context_line":"  ``None`` or ``UNPROCESSED``. When suffix is not specified, it will be"},{"line_number":63,"context_line":"  converted to string ``default``."},{"line_number":64,"context_line":"* ``data``: JsonEncodedDict(), LONGTEXT for mysql. This field is used to store"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_25697c25","line":61,"range":{"start_line":61,"start_character":26,"end_line":61,"end_character":59},"in_reply_to":"3f79a3b5_f7eae19d","updated":"2018-09-26 07:06:44.000000000","message":"Done","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"3dcd839b95eaca82a0f8e47b544452cce7256fcc","unresolved":false,"context_lines":[{"line_number":58,"context_line":"A new table named ``introspection_data`` will be created, with three fields:"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"* ``uuid``: String(36), foreign key to ``node.uuid``."},{"line_number":61,"context_line":"* ``suffix``: String(32), The store current suffix argument, which is either"},{"line_number":62,"context_line":"  ``None`` or ``UNPROCESSED``. When suffix is not specified, it will be"},{"line_number":63,"context_line":"  converted to string ``default``."},{"line_number":64,"context_line":"* ``data``: JsonEncodedDict(), LONGTEXT for mysql. This field is used to store"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_bac1b0e6","line":61,"range":{"start_line":61,"start_character":26,"end_line":61,"end_character":59},"in_reply_to":"3f79a3b5_f7eae19d","updated":"2018-09-19 07:51:58.000000000","message":"will reword this.","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"3dcd839b95eaca82a0f8e47b544452cce7256fcc","unresolved":false,"context_lines":[{"line_number":60,"context_line":"* ``uuid``: String(36), foreign key to ``node.uuid``."},{"line_number":61,"context_line":"* ``suffix``: String(32), The store current suffix argument, which is either"},{"line_number":62,"context_line":"  ``None`` or ``UNPROCESSED``. When suffix is not specified, it will be"},{"line_number":63,"context_line":"  converted to string ``default``."},{"line_number":64,"context_line":"* ``data``: JsonEncodedDict(), LONGTEXT for mysql. This field is used to store"},{"line_number":65,"context_line":"  introspected data."},{"line_number":66,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_9a615414","line":63,"range":{"start_line":63,"start_character":24,"end_line":63,"end_character":31},"updated":"2018-09-19 07:51:58.000000000","message":"Compared with ``UNPROCESSED``, I wonder if ``PROCESSED`` is better here?","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"2d406ac53277527f471d8fed7287effc39a0fe5b","unresolved":false,"context_lines":[{"line_number":61,"context_line":"* ``suffix``: String(32), The store current suffix argument, which is either"},{"line_number":62,"context_line":"  ``None`` or ``UNPROCESSED``. When suffix is not specified, it will be"},{"line_number":63,"context_line":"  converted to string ``default``."},{"line_number":64,"context_line":"* ``data``: JsonEncodedDict(), LONGTEXT for mysql. This field is used to store"},{"line_number":65,"context_line":"  introspected data."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"When node is removed from the cache, or cleaned up by the periodic task,"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_c57aa123","line":64,"range":{"start_line":64,"start_character":44,"end_line":64,"end_character":49},"updated":"2018-10-01 11:37:41.000000000","message":"Is it justified to refer to proprietary SQL data types?","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"2d406ac53277527f471d8fed7287effc39a0fe5b","unresolved":false,"context_lines":[{"line_number":61,"context_line":"* ``suffix``: String(32), The store current suffix argument, which is either"},{"line_number":62,"context_line":"  ``None`` or ``UNPROCESSED``. When suffix is not specified, it will be"},{"line_number":63,"context_line":"  converted to string ``default``."},{"line_number":64,"context_line":"* ``data``: JsonEncodedDict(), LONGTEXT for mysql. This field is used to store"},{"line_number":65,"context_line":"  introspected data."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"When node is removed from the cache, or cleaned up by the periodic task,"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_45877113","line":64,"range":{"start_line":64,"start_character":44,"end_line":64,"end_character":49},"updated":"2018-10-01 11:37:41.000000000","message":"nit: MySQL?","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"06ae277d0278f9319741b96146df5330986f548d","unresolved":false,"context_lines":[{"line_number":61,"context_line":"* ``suffix``: String(32), The store current suffix argument, which is either"},{"line_number":62,"context_line":"  ``None`` or ``UNPROCESSED``. When suffix is not specified, it will be"},{"line_number":63,"context_line":"  converted to string ``default``."},{"line_number":64,"context_line":"* ``data``: JsonEncodedDict(), LONGTEXT for mysql. This field is used to store"},{"line_number":65,"context_line":"  introspected data."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"When node is removed from the cache, or cleaned up by the periodic task,"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_b0263acb","line":64,"range":{"start_line":64,"start_character":44,"end_line":64,"end_character":49},"in_reply_to":"3f79a3b5_45877113","updated":"2018-10-08 06:11:27.000000000","message":"Done","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"72ba3c5c2dc534eba62a993de9d9b39931d878a8","unresolved":false,"context_lines":[{"line_number":61,"context_line":"* ``suffix``: String(32), The store current suffix argument, which is either"},{"line_number":62,"context_line":"  ``None`` or ``UNPROCESSED``. When suffix is not specified, it will be"},{"line_number":63,"context_line":"  converted to string ``default``."},{"line_number":64,"context_line":"* ``data``: JsonEncodedDict(), LONGTEXT for mysql. This field is used to store"},{"line_number":65,"context_line":"  introspected data."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"When node is removed from the cache, or cleaned up by the periodic task,"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_a5d0c5f5","line":64,"range":{"start_line":64,"start_character":44,"end_line":64,"end_character":49},"in_reply_to":"3f79a3b5_c57aa123","updated":"2018-10-01 11:38:52.000000000","message":"yes, because forgetting about it will cause us problems - mysql defaults to very small TEXT fields..","commit_id":"1bca730bb11f6e7408dcc95291d3e8b4c52cc9b1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"c181646a0972360c1cab2b160c100fed70722d3f","unresolved":false,"context_lines":[{"line_number":63,"context_line":"* ``suffix``: String(32), a suffix to label introspected data. Currently"},{"line_number":64,"context_line":"  inspector uses ``UNPROCESSED`` for unprocessed data, ``None`` for processed"},{"line_number":65,"context_line":"  data. In the case of database storage backend, if the suffix is not"},{"line_number":66,"context_line":"  specified, a default string ``default`` will be used for this field."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"  .. note::"},{"line_number":69,"context_line":"     The Swift storage backend uses suffix as part of the object name:"}],"source_content_type":"text/x-rst","patch_set":3,"id":"3f79a3b5_e58e24d0","line":66,"range":{"start_line":66,"start_character":13,"end_line":66,"end_character":41},"updated":"2018-09-26 07:06:44.000000000","message":"I am a bit concerned with the default suffix, it may cause name conflicts in the future, maybe we just follow the way as swift storage backend, use suffix as part of the naming, so two db fields would be enough.\n\nopinions?","commit_id":"4ede6253a130b488b9fdc5748133bccab8952e01"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"f2b0bdeecdb99a370e8f9c35323e49851cdd81b5","unresolved":false,"context_lines":[{"line_number":63,"context_line":"* ``suffix``: String(32), a suffix to label introspected data. Currently"},{"line_number":64,"context_line":"  inspector uses ``UNPROCESSED`` for unprocessed data, ``None`` for processed"},{"line_number":65,"context_line":"  data. In the case of database storage backend, if the suffix is not"},{"line_number":66,"context_line":"  specified, a default string ``default`` will be used for this field."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"  .. note::"},{"line_number":69,"context_line":"     The Swift storage backend uses suffix as part of the object name:"}],"source_content_type":"text/x-rst","patch_set":3,"id":"3f79a3b5_bc679751","line":66,"range":{"start_line":66,"start_character":13,"end_line":66,"end_character":41},"in_reply_to":"3f79a3b5_40280aed","updated":"2018-09-29 06:22:13.000000000","message":"okay, I just thought too much of it, let\u0027s use the simpler form for now, who knows what happens in the future.","commit_id":"4ede6253a130b488b9fdc5748133bccab8952e01"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"1027f36cdfc8386a66654ca392d71fe8a5f892db","unresolved":false,"context_lines":[{"line_number":63,"context_line":"* ``suffix``: String(32), a suffix to label introspected data. Currently"},{"line_number":64,"context_line":"  inspector uses ``UNPROCESSED`` for unprocessed data, ``None`` for processed"},{"line_number":65,"context_line":"  data. In the case of database storage backend, if the suffix is not"},{"line_number":66,"context_line":"  specified, a default string ``default`` will be used for this field."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"  .. note::"},{"line_number":69,"context_line":"     The Swift storage backend uses suffix as part of the object name:"}],"source_content_type":"text/x-rst","patch_set":3,"id":"3f79a3b5_40280aed","line":66,"range":{"start_line":66,"start_character":13,"end_line":66,"end_character":41},"in_reply_to":"3f79a3b5_783aa4e6","updated":"2018-09-27 08:22:54.000000000","message":"I won\u0027t block any of these options, but I vote for #3.","commit_id":"4ede6253a130b488b9fdc5748133bccab8952e01"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"fc370415ac8b99c9f7d5039b737e13a270af99b9","unresolved":false,"context_lines":[{"line_number":63,"context_line":"* ``suffix``: String(32), a suffix to label introspected data. Currently"},{"line_number":64,"context_line":"  inspector uses ``UNPROCESSED`` for unprocessed data, ``None`` for processed"},{"line_number":65,"context_line":"  data. In the case of database storage backend, if the suffix is not"},{"line_number":66,"context_line":"  specified, a default string ``default`` will be used for this field."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"  .. note::"},{"line_number":69,"context_line":"     The Swift storage backend uses suffix as part of the object name:"}],"source_content_type":"text/x-rst","patch_set":3,"id":"3f79a3b5_783aa4e6","line":66,"range":{"start_line":66,"start_character":13,"end_line":66,"end_character":41},"in_reply_to":"3f79a3b5_960d2491","updated":"2018-09-27 02:11:12.000000000","message":"There is no need as far as I can see, I just don\u0027t want to block roads for other possibilities. From the view of arch design, I think a flexible bottom layer can better host changes in the upper layer.\n\nSo we need to decide which way to take:\n\n* unchanged\n* two fields, name + data (which is I preferred)\n* change \"suffix\" to a boolean field \"processed\"","commit_id":"4ede6253a130b488b9fdc5748133bccab8952e01"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"554129f9e3679e305f2cd41e0f0a926e3bc6b8d4","unresolved":false,"context_lines":[{"line_number":63,"context_line":"* ``suffix``: String(32), a suffix to label introspected data. Currently"},{"line_number":64,"context_line":"  inspector uses ``UNPROCESSED`` for unprocessed data, ``None`` for processed"},{"line_number":65,"context_line":"  data. In the case of database storage backend, if the suffix is not"},{"line_number":66,"context_line":"  specified, a default string ``default`` will be used for this field."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"  .. note::"},{"line_number":69,"context_line":"     The Swift storage backend uses suffix as part of the object name:"}],"source_content_type":"text/x-rst","patch_set":3,"id":"3f79a3b5_960d2491","line":66,"range":{"start_line":66,"start_character":13,"end_line":66,"end_character":41},"in_reply_to":"3f79a3b5_e58e24d0","updated":"2018-09-26 09:16:59.000000000","message":"Do we actually need to support various different suffixes? I wonder if we should change the calls to accept (processed\u003dTrue) and change this field to a boolean. The swift implementation would still use suffixes as part of the name.","commit_id":"4ede6253a130b488b9fdc5748133bccab8952e01"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"1a4d75936890d09508107643a9f4f879d91f33a0","unresolved":false,"context_lines":[{"line_number":119,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":120,"context_line":"------------------------------------"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"Database upgrade will be handled by ironic-inspector-dbsync."},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"Implementation"},{"line_number":125,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"3f79a3b5_3d2bacea","line":122,"updated":"2018-09-27 14:58:06.000000000","message":"I talked to TripleO folks (who are potential consumers of this spec), and they would highly prefer a migration path. What if we embed an optional migration procedure into the dbsync command? like\n\n ironic-inspector-dbsync migrate-data\n\n(will take swift creds from [swift] in inspector.conf and put stuff in database for known nodes). WDYT?","commit_id":"4ede6253a130b488b9fdc5748133bccab8952e01"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"42ffba0744fbb49bfbf3ea6320e8595b4d048b28","unresolved":false,"context_lines":[{"line_number":119,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":120,"context_line":"------------------------------------"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"Database upgrade will be handled by ironic-inspector-dbsync."},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"Implementation"},{"line_number":125,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"3f79a3b5_8dd63926","line":122,"in_reply_to":"3f79a3b5_0cb559d0","updated":"2018-09-28 13:25:12.000000000","message":"The problem with throwing something in \"tools\" (for example) is that such things are usually not packaged (and thus not delivered to end users). But I\u0027m not talking about a DB migration in a strict sense, but rather about a new command of ironic-inspector-dbsync.\n\nWe could even create a completely new command (maybe that\u0027s what you meant - then sorry for confusion), something like ironic-inspector-data-migrate. As long as we ship it as a script installed in $PREFIX/bin (rather than just something in the tarball), it\u0027s fine.","commit_id":"4ede6253a130b488b9fdc5748133bccab8952e01"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"6624c78c4bfc7c767c579949bead4857c3ecca68","unresolved":false,"context_lines":[{"line_number":119,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":120,"context_line":"------------------------------------"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"Database upgrade will be handled by ironic-inspector-dbsync."},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"Implementation"},{"line_number":125,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"3f79a3b5_0cb559d0","line":122,"in_reply_to":"3f79a3b5_3d2bacea","updated":"2018-09-28 01:37:01.000000000","message":"Thanks for bring it up, I lost this after PS1. This is something can do, but have you considered about a standalone script? I am just feeling a db migration depends on external resources sounds unfamiliar, not a typical case.\n\nI don\u0027t know, in my case there is no such migration (we only need to decouple with swift), so I accept any reasonable needs from potential users.","commit_id":"4ede6253a130b488b9fdc5748133bccab8952e01"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"f2b0bdeecdb99a370e8f9c35323e49851cdd81b5","unresolved":false,"context_lines":[{"line_number":119,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":120,"context_line":"------------------------------------"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"Database upgrade will be handled by ironic-inspector-dbsync."},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"Implementation"},{"line_number":125,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"3f79a3b5_bc50f75f","line":122,"in_reply_to":"3f79a3b5_8dd63926","updated":"2018-09-29 06:22:13.000000000","message":"Got it, the standalone I mentioned means functional independent, not something embedded into other command.\n\nAs to the packaging, we only need to add a console script in the setup.cfg, the suitable place for this script seems to be the cmd/ directory.","commit_id":"4ede6253a130b488b9fdc5748133bccab8952e01"},{"author":{"_account_id":26340,"name":"Ilya Etingof","email":"etingof@gmail.com","username":"etingof"},"change_message_id":"00eeecb1f777515e162104f6cca8f250ca2a7921","unresolved":false,"context_lines":[{"line_number":60,"context_line":"A new table named ``introspection_data`` will be created, with three fields:"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"* ``uuid``: String(36), foreign key to ``node.uuid``."},{"line_number":63,"context_line":"* ``processed``: Boolean, used to determin whether the introspection data is"},{"line_number":64,"context_line":"  processed or not. Currently, inspector uses suffix ``UNPROCESSED`` for"},{"line_number":65,"context_line":"  unprocessed data, ``None`` for processed data, This will be mapped to the"},{"line_number":66,"context_line":"  boolean field."}],"source_content_type":"text/x-rst","patch_set":5,"id":"3f79a3b5_a5e9a5ab","line":63,"range":{"start_line":63,"start_character":34,"end_line":63,"end_character":42},"updated":"2018-10-01 11:41:31.000000000","message":"nit: typo","commit_id":"acf23a55b2e70223286744a921961cdd1ecc68f5"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"06ae277d0278f9319741b96146df5330986f548d","unresolved":false,"context_lines":[{"line_number":60,"context_line":"A new table named ``introspection_data`` will be created, with three fields:"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"* ``uuid``: String(36), foreign key to ``node.uuid``."},{"line_number":63,"context_line":"* ``processed``: Boolean, used to determin whether the introspection data is"},{"line_number":64,"context_line":"  processed or not. Currently, inspector uses suffix ``UNPROCESSED`` for"},{"line_number":65,"context_line":"  unprocessed data, ``None`` for processed data, This will be mapped to the"},{"line_number":66,"context_line":"  boolean field."}],"source_content_type":"text/x-rst","patch_set":5,"id":"3f79a3b5_f0059216","line":63,"range":{"start_line":63,"start_character":34,"end_line":63,"end_character":42},"in_reply_to":"3f79a3b5_a5e9a5ab","updated":"2018-10-08 06:11:27.000000000","message":"Done","commit_id":"acf23a55b2e70223286744a921961cdd1ecc68f5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"5aad0948484b5380b01cedb8cc1380add37f35f8","unresolved":false,"context_lines":[{"line_number":126,"context_line":""},{"line_number":127,"context_line":".. code-block:: console"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"   $ ironic-inspector-migrate-data"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"Implementation"},{"line_number":132,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_29986065","line":129,"updated":"2018-10-22 10:00:13.000000000","message":"Just to clarify: will it also handle the reverse migration, when someone wants to change from database to swift? I think we should support both directions.","commit_id":"170eff469c2d61935cf22d661b41d55152b88391"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"1d7ec9491fa863bbdb403a4bb90e2d80be0b704d","unresolved":false,"context_lines":[{"line_number":126,"context_line":""},{"line_number":127,"context_line":".. code-block:: console"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"   $ ironic-inspector-migrate-data"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"Implementation"},{"line_number":132,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3f79a3b5_b2c60241","line":129,"in_reply_to":"3f79a3b5_29986065","updated":"2018-10-23 01:35:26.000000000","message":"Sure, since we provide backend configuration, it\u0027s reasonable to migrate data between backends.","commit_id":"170eff469c2d61935cf22d661b41d55152b88391"}]}
