)]}'
{"specs/kilo/store-capabilities.rst":[{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"30a44002410c7e0203f46f0c796607ee88a168ac","unresolved":false,"context_lines":[{"line_number":26,"context_line":"The capabilities of store driver can be impact by some factors, includes the"},{"line_number":27,"context_line":"status of connected backend storage, or the configuration in a particular"},{"line_number":28,"context_line":"deployment, or current design and implementation of driver with a featured"},{"line_number":29,"context_line":"release, technically ones of them are static and ones are dynamic."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"But currently glance_store and glance didn\u0027t care about these capabilities,"},{"line_number":32,"context_line":"actually, in lower layer a driver doesn\u0027t have a way to exposes its available"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_411e52bc","line":29,"updated":"2014-12-12 05:33:36.000000000","message":"This is the second time you\u0027ve mentioned dynamic capabilities.  Can you explain how your proposal addresses them?  I looked at the patch you have up at https://review.openstack.org/#/c/137416/1 , and as far as I can tell the capability check is done on the capabilities the store declares when it\u0027s loaded.   So for example, if something happened to the store and it wasn\u0027t allowing write operations for the glance user right now, your code wouldn\u0027t detect that, would it?  I\u0027m just wondering what dynamic capabilities you\u0027re talking about here.","commit_id":"882a06cd104d0b5e0746376220444204c78de411"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"e773d110880f8f1bf5c8afc8a212b363e424a5aa","unresolved":false,"context_lines":[{"line_number":26,"context_line":"The capabilities of store driver can be impact by some factors, includes the"},{"line_number":27,"context_line":"status of connected backend storage, or the configuration in a particular"},{"line_number":28,"context_line":"deployment, or current design and implementation of driver with a featured"},{"line_number":29,"context_line":"release, technically ones of them are static and ones are dynamic."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"But currently glance_store and glance didn\u0027t care about these capabilities,"},{"line_number":32,"context_line":"actually, in lower layer a driver doesn\u0027t have a way to exposes its available"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_806f5ffb","line":29,"in_reply_to":"3a961159_211f2ab9","updated":"2014-12-22 10:59:29.000000000","message":"OK, overall there are three points a driver can handle/update dynamic capabilities IMO: 1. When driver get initialized, it means a driver gets proper capabilities and setup it in \u0027configure()\u0027. 2. Like above example, a driver disables necessary capabilities when an exception raised up in an operation, e.g. in \u0027add()\u0027 code disables WRITE_ACCESS . 3. A callback to trigger a update operation to (re-)enable or (re-)disable relevant capabilities to store. I think point #3 covers you above concerns, so some details for discussion/clarification as following:\n\nFundamentally, I personally like callback method more then polling, with an kind of interval option, it\u0027s more efficient then polling due to update will be triggered only when a related operation happened instead of periodic test, and the results for both way are same from the perspective of client side (for human\u0027s end2end case, or Glance app): get exception if updating didn\u0027t happen on time, or increasing the latency of request/operation when it hits the updating routine.\n\nAnd regarding to the question of \"Is that even possible with the current driver design?\" I think answer is yes for both callback and polling ways.\n\nAnd for \"How important is it to your overall work that you be able to handle dynamic capabilities?\", I think it\u0027s important, and thanks for you raising this worth point up here! overall, under my design, above point #1 was used to allow store initialize it\u0027s capabilities at start based on current operator configuration, #2 was designed to allow driver to disables relevant capabilities when backend storage losts something unexpectedly. #3 was used to allow store to update capabilities actively based on backend storage status then, as a callback the routine will be triggered only for these active stores when a minimal internal passed, instead of do the test for all instances periodically.","commit_id":"882a06cd104d0b5e0746376220444204c78de411"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"29d352f7ba3772e7ca1bd80019d4ed83626884b7","unresolved":false,"context_lines":[{"line_number":26,"context_line":"The capabilities of store driver can be impact by some factors, includes the"},{"line_number":27,"context_line":"status of connected backend storage, or the configuration in a particular"},{"line_number":28,"context_line":"deployment, or current design and implementation of driver with a featured"},{"line_number":29,"context_line":"release, technically ones of them are static and ones are dynamic."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"But currently glance_store and glance didn\u0027t care about these capabilities,"},{"line_number":32,"context_line":"actually, in lower layer a driver doesn\u0027t have a way to exposes its available"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_bc15349d","line":29,"in_reply_to":"3a961159_411e52bc","updated":"2014-12-13 15:54:36.000000000","message":"\u003e\u003e  the capability check is done on the capabilities the store declares when it\u0027s loaded\n\nI think it\u0027s not true, the checker will do the necessary capability checks on every calls when upper layer request comes in. In the change #137416, I added a decorator to \u0027add\u0027, \u0027get\u0027, \u0027delete\u0027 operations currently, as a hook checker will be triggered each time, so it will detect that improper request.\n\n\u003e\u003e  Can you explain how your proposal addresses them?\n\nIMO, in the store driver, when the situation changed, e.g. as your example mentioned the driver wasn\u0027t allowing write operations for the glance user right now, or some case was detected in \u0027driver.configure()\u0027 for the particular session with remote storage, it need to call \u0027self.unset_capabilities(capabilites.WRITE_ACCESS)\u0027. Then when the next \u0027add\u0027 or \u0027delete\u0027 operation comes in, checker, the hook of these operations, will raises \u0027StoreAddDisabled\u0027 or \u0027StoreDeleteNotSupported\u0027 exception out to upper layer.\n\nAny more thoughts pls let me know if have.","commit_id":"882a06cd104d0b5e0746376220444204c78de411"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"a14dfcfffc3eccdf65ebbe418af89092ba4e5404","unresolved":false,"context_lines":[{"line_number":26,"context_line":"The capabilities of store driver can be impact by some factors, includes the"},{"line_number":27,"context_line":"status of connected backend storage, or the configuration in a particular"},{"line_number":28,"context_line":"deployment, or current design and implementation of driver with a featured"},{"line_number":29,"context_line":"release, technically ones of them are static and ones are dynamic."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"But currently glance_store and glance didn\u0027t care about these capabilities,"},{"line_number":32,"context_line":"actually, in lower layer a driver doesn\u0027t have a way to exposes its available"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_cd14304f","line":29,"in_reply_to":"3a961159_806f5ffb","updated":"2014-12-22 11:24:32.000000000","message":"I\u0027m a bit worried about interoperability across multiple stores and clouds.\n\nI think we need to clarify how this will work from a user perspective. For example:\n\n1. What happens if a user has some code that reads using random access and it ends up reading an image data from a store that lacks of support for it? Will we fail? Will we fallback to full read? Will we fallback to a store that does support it but with a possibly out-of-date image data?\n\n2. What happens if a user tries to write data to a store that doesn\u0027t support `WRITE_OFFSET` ?\n\nI believe it\u0027s common for cloud providers to have more than one store deployed but even if they don\u0027t, I believe we should strive for interoperability across clouds.\n\nSomething we\u0027ve done in Zaqar is to required stores that live in the code base to fully support the API, all the other stores may live outside the code base. Is this something we may want to do here?\n\nI\u0027d like to see this point clarified in this spec.","commit_id":"882a06cd104d0b5e0746376220444204c78de411"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"ce5576edd577a1286f5b8238b99cabe8cb8c9502","unresolved":false,"context_lines":[{"line_number":26,"context_line":"The capabilities of store driver can be impact by some factors, includes the"},{"line_number":27,"context_line":"status of connected backend storage, or the configuration in a particular"},{"line_number":28,"context_line":"deployment, or current design and implementation of driver with a featured"},{"line_number":29,"context_line":"release, technically ones of them are static and ones are dynamic."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"But currently glance_store and glance didn\u0027t care about these capabilities,"},{"line_number":32,"context_line":"actually, in lower layer a driver doesn\u0027t have a way to exposes its available"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_9177283b","line":29,"in_reply_to":"3a961159_9feca3f5","updated":"2014-12-30 04:33:31.000000000","message":"Hey flaper87,\n\nThanks for your example and elaboration, I think I understand it more.\n\nI *think* the capabilities of store is a hard limitation, if some operations couldn\u0027t be handled by backend, glance can only fail the request and ask client know it, e.g. by http 406 code for your example. So would you mind let me know your idea about how to make glance or glanceclient handle this kind of fallback responsibility? I appreciate it.","commit_id":"882a06cd104d0b5e0746376220444204c78de411"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"3c7e958a0a33d9778c98982c757c2ccc35d70a41","unresolved":false,"context_lines":[{"line_number":26,"context_line":"The capabilities of store driver can be impact by some factors, includes the"},{"line_number":27,"context_line":"status of connected backend storage, or the configuration in a particular"},{"line_number":28,"context_line":"deployment, or current design and implementation of driver with a featured"},{"line_number":29,"context_line":"release, technically ones of them are static and ones are dynamic."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"But currently glance_store and glance didn\u0027t care about these capabilities,"},{"line_number":32,"context_line":"actually, in lower layer a driver doesn\u0027t have a way to exposes its available"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_211f2ab9","line":29,"in_reply_to":"3a961159_bc15349d","updated":"2014-12-19 21:23:07.000000000","message":"OK, so someone could write code in the driver so that when it\u0027s doing a write and catches an exception from the backend store, it calls unset_capabilities for WRITE_ACCESS.  But how would it ever turn WRITE_ACCESS back on?  Your design is going to prevent any write requests from even making it to the driver.  So there\u0027s nothing to trigger a check by the driver to see if the write capability has become available again. I guess you\u0027d have to build some kind of periodic test into the driver so that it would occasionally check?  Is that even possible with the current driver design?\n\nAll I\u0027m saying is that it\u0027s not obvious that this design can really handle dynamic capabilities changes.  How important is it to your overall work that you be able to handle dynamic capabilities?","commit_id":"882a06cd104d0b5e0746376220444204c78de411"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"4a0f65ebe0e783453835f72cb7aa9e5ac961110f","unresolved":false,"context_lines":[{"line_number":26,"context_line":"The capabilities of store driver can be impact by some factors, includes the"},{"line_number":27,"context_line":"status of connected backend storage, or the configuration in a particular"},{"line_number":28,"context_line":"deployment, or current design and implementation of driver with a featured"},{"line_number":29,"context_line":"release, technically ones of them are static and ones are dynamic."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"But currently glance_store and glance didn\u0027t care about these capabilities,"},{"line_number":32,"context_line":"actually, in lower layer a driver doesn\u0027t have a way to exposes its available"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_cfcc0f38","line":29,"in_reply_to":"3a961159_cd14304f","updated":"2014-12-24 07:07:50.000000000","message":"First, let me answer three concrete questions.\n\n\u003e\u003e 1. What happens if a user has some code that reads using random access and it ends up reading an image data from a store that lacks of support for it?\n\nIMO, from glance_store\u0027s perspective, the operation on store should returns a proper exception, and from glance/end user\u0027s perspecitve, I think api/response should follow the rfs spec[0], in this case, end user will get 406 (Requested range not satisfiable), so in short: we will fail - glance_store failed by exception, glance-api failed by http response. I think for glance-api stuff, we can use [1] cover.\n\n\u003e\u003e 2. What happens if a user tries to write data to a store that doesn\u0027t support `WRITE_OFFSET` ?\n\nIMO, from glance_store\u0027s perspective, the operation on store should returns a proper exception, and from glance/end user\u0027s perspective, I\u0027m worried if http protocol support byte serving for upload request natively? from [0] I think \u0027Range\u0027 field of header only for request, and \u0027Content-Range\u0027 only used for response (so [2] is wrong in glance currently IMO)\n\n[0] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html\n[1] https://review.openstack.org/#/c/141825/\n[2] https://github.com/openstack/glance/blob/master/glance/common/wsgi.py#L564\n\n\u003e\u003e Something we\u0027ve done in Zaqar is to required stores that live in the code base to fully support the API, all the other stores may live outside the code base. Is this something we may want to do here?\n\nIIUC, I think we can\u0027t do it due to some capabilities will based on a special session with backend store or a configuration by a special deployment, so on code level we could know static capabilities based on implementation and to determine if it should be in-tree or not, but we can\u0027t know dynamic capabilities which could get only at runtime.\n\n\nSecond, let\u0027s talk about your concerns from higher level, based on my understanding of your idea.\n\nI think maybe I didn\u0027t fully understand \"interoperability across multiple stores and clouds\", but AFAIK this change will focus on glance_store first then glance/api, I think first we need to give a mechanism in glance_store to handle requested operation based on its capabilities, and provide correct result (include exception) to outside, e.g. glance. Then, we will change glance to implement policy to ensue api covered \"interoperability\" from end user\u0027s perspective, like  follow http protocol correctly and fully, including correct [2] and use [1] ask end user knows some improper request can\u0027t be handled.","commit_id":"882a06cd104d0b5e0746376220444204c78de411"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"cb3f4b0263fcfeffccb5e4f46e45e23807b91dad","unresolved":false,"context_lines":[{"line_number":26,"context_line":"The capabilities of store driver can be impact by some factors, includes the"},{"line_number":27,"context_line":"status of connected backend storage, or the configuration in a particular"},{"line_number":28,"context_line":"deployment, or current design and implementation of driver with a featured"},{"line_number":29,"context_line":"release, technically ones of them are static and ones are dynamic."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"But currently glance_store and glance didn\u0027t care about these capabilities,"},{"line_number":32,"context_line":"actually, in lower layer a driver doesn\u0027t have a way to exposes its available"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_9feca3f5","line":29,"in_reply_to":"3a961159_cfcc0f38","updated":"2014-12-29 09:59:48.000000000","message":"Hey zhiyan,\n\nThanks for answering my questions. Unfortunately, my concerns remain, although your answers are correct and aligned to what I\u0027d have expected.\n\nWhat I mean by interoperability is that the behavior across stores should be the same. At the very least, there should be a fallback logic. Let me give you an example, hoping it will help me make my point clear:\n\nThink about a user that has a script that reads from Glance. For the sake of this example, lets say the current default store in this Glance deployment is `file`. File has support for random access and the user\u0027s script has been written to take advantage of this. At some point, the location strategy changes in Glance and the store that is being picked for downloads is now http, which doesn\u0027t have support for random access. Unfortunately, at this point, the user\u0027s script will break and some kittens will die.\n\nThe above is what I\u0027m worried about. Raising an error is fine but this basically means we will have to push the fallback responsibility to the user *or* to glanceclient. The question is: Should this be attempted by Glance itself with the assumption that all the locations are up-to-date?","commit_id":"882a06cd104d0b5e0746376220444204c78de411"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"f13f03a53648a2d16e987b92bc5f7f0102abff48","unresolved":false,"context_lines":[{"line_number":37,"context_line":"So overall, at least, two kind of problems comes out without"},{"line_number":38,"context_line":"store-capabilities feature:"},{"line_number":39,"context_line":"* Some necessary applicability check on the operation related with store access"},{"line_number":40,"context_line":"are missing, which lows the usability of glance service and glance_store lib. "},{"line_number":41,"context_line":"* Hard to implement such check logic neatly, including common check routine on"},{"line_number":42,"context_line":"these generic operations of store driver, and the check for particular feature."},{"line_number":43,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"5a890539_792ee08d","line":40,"updated":"2014-12-02 10:33:45.000000000","message":"will remove that space in next ps.","commit_id":"882a06cd104d0b5e0746376220444204c78de411"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"29d352f7ba3772e7ca1bd80019d4ed83626884b7","unresolved":false,"context_lines":[{"line_number":37,"context_line":"So overall, at least, two kind of problems comes out without"},{"line_number":38,"context_line":"store-capabilities feature:"},{"line_number":39,"context_line":"* Some necessary applicability check on the operation related with store access"},{"line_number":40,"context_line":"are missing, which lows the usability of glance service and glance_store lib. "},{"line_number":41,"context_line":"* Hard to implement such check logic neatly, including common check routine on"},{"line_number":42,"context_line":"these generic operations of store driver, and the check for particular feature."},{"line_number":43,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_fcafbc7a","line":40,"in_reply_to":"5a890539_792ee08d","updated":"2014-12-13 15:54:36.000000000","message":"Done","commit_id":"882a06cd104d0b5e0746376220444204c78de411"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"d471235c778a5df6e96157306219a12cebedb3cb","unresolved":false,"context_lines":[{"line_number":105,"context_line":"Overall although some code is being added it does not affect the"},{"line_number":106,"context_line":"performance obviously. As a hook, a checker function will be triggered"},{"line_number":107,"context_line":"on each store operations, currently including \u0027get\u0027, \u0027delete\u0027 and \u0027add\u0027.   "},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"Other deployer impact"},{"line_number":110,"context_line":"---------------------"},{"line_number":111,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"3a961159_a134fa4a","line":108,"updated":"2014-12-16 05:03:32.000000000","message":"Maybe it has a positive impact if the drivers are reusable...\n\nextra space at end of line... to state the obvious.","commit_id":"39f6c37720600013b5cbb84a6fec8fc5df794252"},{"author":{"_account_id":2537,"name":"Nikhil Komawar","email":"nik.komawar@gmail.com","username":"nikhil-komawar"},"change_message_id":"240b13d6bf3ed6b7345c8cdfebaa0dc2261194bc","unresolved":false,"context_lines":[{"line_number":137,"context_line":"---------"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"Core reviewer(s):"},{"line_number":140,"context_line":"  Arnaud Legendre (arnaudleg)"},{"line_number":141,"context_line":"  Nikhil Komawar (nikhil-komawar)"},{"line_number":142,"context_line":"  Stuart McLaren (stuart-mcLaren)"},{"line_number":143,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a961159_7dc5a33b","line":140,"updated":"2015-01-15 23:20:57.000000000","message":"Do not know if Arnaud would be willing to review this.","commit_id":"fafa9fe5fc4b424717b060e1299812c1e0c64dc1"},{"author":{"_account_id":2537,"name":"Nikhil Komawar","email":"nik.komawar@gmail.com","username":"nikhil-komawar"},"change_message_id":"240b13d6bf3ed6b7345c8cdfebaa0dc2261194bc","unresolved":false,"context_lines":[{"line_number":140,"context_line":"  Arnaud Legendre (arnaudleg)"},{"line_number":141,"context_line":"  Nikhil Komawar (nikhil-komawar)"},{"line_number":142,"context_line":"  Stuart McLaren (stuart-mcLaren)"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"Work Items"},{"line_number":145,"context_line":"----------"},{"line_number":146,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a961159_9dc08f2c","line":143,"updated":"2015-01-15 23:20:57.000000000","message":"Can we add sabari from VMware on this review in the other reviewers list?","commit_id":"fafa9fe5fc4b424717b060e1299812c1e0c64dc1"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"0ab42f0f87c94f00f6f3dacf019ef9fc8f38b81c","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":8,"context_line":"Add capabilities to storage driver"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/glance/+spec/store-capabilities"},{"line_number":12,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_78c09a2a","line":9,"updated":"2015-01-23 17:01:57.000000000","message":"Nit: trim \u003ds by 2 around title.","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"0ab42f0f87c94f00f6f3dacf019ef9fc8f38b81c","unresolved":false,"context_lines":[{"line_number":14,"context_line":"instance based on it\u0027s implementation as well as the configuration. The runtime"},{"line_number":15,"context_line":"status of the backend storage will influence the capacity too."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Henceforth, glance_store library can do more proper operations on"},{"line_number":18,"context_line":"storage to support upper layer request, like to enable or disable image"},{"line_number":19,"context_line":"adding function to glance, or if allow glance reuse driver instance for all"},{"line_number":20,"context_line":"request according to whether the driver and/or the operation session of"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_5babd81c","line":17,"updated":"2015-01-23 17:01:57.000000000","message":"Editorial: \"Henceforth, ``glance_store`` library will only perform defined operations as requested by Glance. For example, the backing store can specify whether it supports adding images by enabling or disabling that capability. The store will also now recognize whether a driver can be reused for all requests it handles or if it has to be recreated for each request because it is not stateless.\"\n\nI could have misinterpreted what you meant to say here, but splitting this into multiple sentences makes it much easier to understand. Please update accordingly. :)","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"f3ba409b8159483e970675bcad0ca7e003d5287e","unresolved":false,"context_lines":[{"line_number":14,"context_line":"instance based on it\u0027s implementation as well as the configuration. The runtime"},{"line_number":15,"context_line":"status of the backend storage will influence the capacity too."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Henceforth, glance_store library can do more proper operations on"},{"line_number":18,"context_line":"storage to support upper layer request, like to enable or disable image"},{"line_number":19,"context_line":"adding function to glance, or if allow glance reuse driver instance for all"},{"line_number":20,"context_line":"request according to whether the driver and/or the operation session of"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_31c62d4a","line":17,"in_reply_to":"1a930d6b_5babd81c","updated":"2015-01-23 17:49:48.000000000","message":"Done","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"0ab42f0f87c94f00f6f3dacf019ef9fc8f38b81c","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    1. Status of a connected backend storage."},{"line_number":29,"context_line":"    2. The deployment configuration."},{"line_number":30,"context_line":"    3. State of the driver code."},{"line_number":31,"context_line":"    4. Technically one of them is static whereas the other is dynamic."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Currently glance_store and glance don\u0027t use these capabilities. At a lower"},{"line_number":34,"context_line":"layer of the code, the driver doesn\u0027t have a way to expose its capabilities."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_5b82f894","line":31,"updated":"2015-01-23 17:01:57.000000000","message":"\"one of them\" What is \"them\"?","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"f3ba409b8159483e970675bcad0ca7e003d5287e","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    1. Status of a connected backend storage."},{"line_number":29,"context_line":"    2. The deployment configuration."},{"line_number":30,"context_line":"    3. State of the driver code."},{"line_number":31,"context_line":"    4. Technically one of them is static whereas the other is dynamic."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Currently glance_store and glance don\u0027t use these capabilities. At a lower"},{"line_number":34,"context_line":"layer of the code, the driver doesn\u0027t have a way to expose its capabilities."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_d1e889b6","line":31,"in_reply_to":"1a930d6b_5b82f894","updated":"2015-01-23 17:49:48.000000000","message":"Capabilities. Done.","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"0ab42f0f87c94f00f6f3dacf019ef9fc8f38b81c","unresolved":false,"context_lines":[{"line_number":31,"context_line":"    4. Technically one of them is static whereas the other is dynamic."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Currently glance_store and glance don\u0027t use these capabilities. At a lower"},{"line_number":34,"context_line":"layer of the code, the driver doesn\u0027t have a way to expose its capabilities."},{"line_number":35,"context_line":"On the other hand in the upper layer of the code there is no common method to"},{"line_number":36,"context_line":"check these generic operations of the store drivers."},{"line_number":37,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_fb3f24d4","line":34,"updated":"2015-01-23 17:01:57.000000000","message":"Can we remove \"At a lower layer of the code, \"? Operators will probably read this as well and they aren\u0027t concerned with this detail.","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"f3ba409b8159483e970675bcad0ca7e003d5287e","unresolved":false,"context_lines":[{"line_number":31,"context_line":"    4. Technically one of them is static whereas the other is dynamic."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Currently glance_store and glance don\u0027t use these capabilities. At a lower"},{"line_number":34,"context_line":"layer of the code, the driver doesn\u0027t have a way to expose its capabilities."},{"line_number":35,"context_line":"On the other hand in the upper layer of the code there is no common method to"},{"line_number":36,"context_line":"check these generic operations of the store drivers."},{"line_number":37,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_71eef5b5","line":34,"in_reply_to":"1a930d6b_fb3f24d4","updated":"2015-01-23 17:49:48.000000000","message":"Done","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"0ab42f0f87c94f00f6f3dacf019ef9fc8f38b81c","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Currently glance_store and glance don\u0027t use these capabilities. At a lower"},{"line_number":34,"context_line":"layer of the code, the driver doesn\u0027t have a way to expose its capabilities."},{"line_number":35,"context_line":"On the other hand in the upper layer of the code there is no common method to"},{"line_number":36,"context_line":"check these generic operations of the store drivers."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"Currently we observe at least two kind of problems:"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_5b07581c","line":35,"updated":"2015-01-23 17:01:57.000000000","message":"Perhaps to remove the discussion of \"layers\", we should rephrase this to frame it as which upper layer would check the capabilities, e.g., the store\u0027s backend handler or glance-{api,registry}.","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"f3ba409b8159483e970675bcad0ca7e003d5287e","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Currently glance_store and glance don\u0027t use these capabilities. At a lower"},{"line_number":34,"context_line":"layer of the code, the driver doesn\u0027t have a way to expose its capabilities."},{"line_number":35,"context_line":"On the other hand in the upper layer of the code there is no common method to"},{"line_number":36,"context_line":"check these generic operations of the store drivers."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"Currently we observe at least two kind of problems:"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_b164dd49","line":35,"in_reply_to":"1a930d6b_5b07581c","updated":"2015-01-23 17:49:48.000000000","message":"Done","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"0ab42f0f87c94f00f6f3dacf019ef9fc8f38b81c","unresolved":false,"context_lines":[{"line_number":38,"context_line":"Currently we observe at least two kind of problems:"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    * Some necessary applicability check on the operation related with store access"},{"line_number":41,"context_line":"      are missing, which lows the usability of glance service and glance_store lib."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    * Hard to implement such check logic neatly, including common check routine on"},{"line_number":44,"context_line":"      these generic operations of store driver, and the check for particular"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_7630abe8","line":41,"updated":"2015-01-23 17:01:57.000000000","message":"What about \"which inhibits\" or \"which restricts\"?","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"f3ba409b8159483e970675bcad0ca7e003d5287e","unresolved":false,"context_lines":[{"line_number":38,"context_line":"Currently we observe at least two kind of problems:"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    * Some necessary applicability check on the operation related with store access"},{"line_number":41,"context_line":"      are missing, which lows the usability of glance service and glance_store lib."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    * Hard to implement such check logic neatly, including common check routine on"},{"line_number":44,"context_line":"      these generic operations of store driver, and the check for particular"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_f1d585b9","line":41,"in_reply_to":"1a930d6b_7630abe8","updated":"2015-01-23 17:49:48.000000000","message":"Inhibits. Done","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"0ab42f0f87c94f00f6f3dacf019ef9fc8f38b81c","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    * Some necessary applicability check on the operation related with store access"},{"line_number":41,"context_line":"      are missing, which lows the usability of glance service and glance_store lib."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    * Hard to implement such check logic neatly, including common check routine on"},{"line_number":44,"context_line":"      these generic operations of store driver, and the check for particular"},{"line_number":45,"context_line":"      feature."},{"line_number":46,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_7647cb4b","line":43,"updated":"2015-01-23 17:01:57.000000000","message":"What do you think about \"Developers implementing drivers currently have no commonly understood way of checking capabilities or representing them to the store.\" ?","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"f3ba409b8159483e970675bcad0ca7e003d5287e","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    * Some necessary applicability check on the operation related with store access"},{"line_number":41,"context_line":"      are missing, which lows the usability of glance service and glance_store lib."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    * Hard to implement such check logic neatly, including common check routine on"},{"line_number":44,"context_line":"      these generic operations of store driver, and the check for particular"},{"line_number":45,"context_line":"      feature."},{"line_number":46,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_d1a08945","line":43,"in_reply_to":"1a930d6b_7647cb4b","updated":"2015-01-23 17:49:48.000000000","message":"I think the original one is more proper for the meaning.","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"0ab42f0f87c94f00f6f3dacf019ef9fc8f38b81c","unresolved":false,"context_lines":[{"line_number":48,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"1. Existing drivers need to be updated to expose proper capabilities."},{"line_number":51,"context_line":"\ta) List of required store capabilities as needed currently."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"\tb) List of capabilities:"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_969c37c2","line":51,"updated":"2015-01-23 17:01:57.000000000","message":"This only needs to be indented to be underneath the \"E\" in \"Existing\". Please use spaces.","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"f3ba409b8159483e970675bcad0ca7e003d5287e","unresolved":false,"context_lines":[{"line_number":48,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"1. Existing drivers need to be updated to expose proper capabilities."},{"line_number":51,"context_line":"\ta) List of required store capabilities as needed currently."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"\tb) List of capabilities:"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_31ac6d35","line":51,"in_reply_to":"1a930d6b_969c37c2","updated":"2015-01-23 17:49:48.000000000","message":"Done","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"0ab42f0f87c94f00f6f3dacf019ef9fc8f38b81c","unresolved":false,"context_lines":[{"line_number":50,"context_line":"1. Existing drivers need to be updated to expose proper capabilities."},{"line_number":51,"context_line":"\ta) List of required store capabilities as needed currently."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"\tb) List of capabilities:"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        READ_ACCESS     # Generic read access"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_d6a6bf0f","line":53,"updated":"2015-01-23 17:01:57.000000000","message":"Same as above","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":2537,"name":"Nikhil Komawar","email":"nik.komawar@gmail.com","username":"nikhil-komawar"},"change_message_id":"b1738b7db33f84e5d6063d08f9c31e37bdbe06c7","unresolved":false,"context_lines":[{"line_number":50,"context_line":"1. Existing drivers need to be updated to expose proper capabilities."},{"line_number":51,"context_line":"\ta) List of required store capabilities as needed currently."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"\tb) List of capabilities:"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        READ_ACCESS     # Generic read access"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_1bfa30bd","line":53,"updated":"2015-01-23 16:41:31.000000000","message":"The table does not come out right in a rst view.","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"f3ba409b8159483e970675bcad0ca7e003d5287e","unresolved":false,"context_lines":[{"line_number":50,"context_line":"1. Existing drivers need to be updated to expose proper capabilities."},{"line_number":51,"context_line":"\ta) List of required store capabilities as needed currently."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"\tb) List of capabilities:"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        READ_ACCESS     # Generic read access"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_51abb91c","line":53,"in_reply_to":"1a930d6b_d6a6bf0f","updated":"2015-01-23 17:49:48.000000000","message":"Done","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"0ab42f0f87c94f00f6f3dacf019ef9fc8f38b81c","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"\tb) List of capabilities:"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        READ_ACCESS     # Generic read access"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"        WRITE_ACCESS    # Generic write access"},{"line_number":58,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_16de876d","line":55,"updated":"2015-01-23 17:01:57.000000000","message":"You can probably do something like\n\n\n    \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d     \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\n    Capability Name     Meaning\n    \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d     \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\n    ``READ_ACCESS``     Generic read access\n    # ...\n    \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d     \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\n\nIf you indent this so the first \u003d (and the start of each line in the table) is under neath the \"L\" in \"List\" then this should display as you expect.","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"f3ba409b8159483e970675bcad0ca7e003d5287e","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"\tb) List of capabilities:"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        READ_ACCESS     # Generic read access"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"        WRITE_ACCESS    # Generic write access"},{"line_number":58,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_f17105e1","line":55,"in_reply_to":"1a930d6b_16de876d","updated":"2015-01-23 17:49:48.000000000","message":"Done","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"0ab42f0f87c94f00f6f3dacf019ef9fc8f38b81c","unresolved":false,"context_lines":[{"line_number":123,"context_line":""},{"line_number":124,"context_line":"The reason being:"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"\tThere is a simple addition of a checker function being triggered in the"},{"line_number":127,"context_line":"\tform of a hook for each store operation, with current inclusion of the"},{"line_number":128,"context_line":"\t(\u0027get\u0027, \u0027delete\u0027, \u0027add\u0027) operations."},{"line_number":129,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_f6ce5bb3","line":126,"updated":"2015-01-23 17:01:57.000000000","message":"Does this need to be indented?","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"f3ba409b8159483e970675bcad0ca7e003d5287e","unresolved":false,"context_lines":[{"line_number":123,"context_line":""},{"line_number":124,"context_line":"The reason being:"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"\tThere is a simple addition of a checker function being triggered in the"},{"line_number":127,"context_line":"\tform of a hook for each store operation, with current inclusion of the"},{"line_number":128,"context_line":"\t(\u0027get\u0027, \u0027delete\u0027, \u0027add\u0027) operations."},{"line_number":129,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a930d6b_9132810e","line":126,"in_reply_to":"1a930d6b_f6ce5bb3","updated":"2015-01-23 17:49:48.000000000","message":"Removed.","commit_id":"31030dd3282a37fee19f0f5ac68e6f81aa75e22f"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"087c829ed67608a236d3a521bc8a3dd0c9d5f14a","unresolved":false,"context_lines":[{"line_number":159,"context_line":"  zhiyan (lzy-dev)"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"Other contributors:"},{"line_number":162,"context_line":"  \u003claunchpad-id or None\u003e"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"Reviewers"},{"line_number":165,"context_line":"---------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"1a930d6b_4cc96077","line":162,"updated":"2015-01-23 17:59:04.000000000","message":"We should remove the \"Other contributors:\" list here.","commit_id":"1f3a1bcd79b1f6f2e343f63fed9abede28c171c3"}]}
