)]}'
{"specs/mitaka/ha-aa-manager_locks.rst":[{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"cba6a032716ed4f0d01f8d8e043983098dffea6f","unresolved":false,"context_lines":[{"line_number":56,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"We will modify these 4 locks in 2 different ways. On one hand we have locks"},{"line_number":59,"context_line":"that are used to prevent deletion from resources that are being used as the"},{"line_number":60,"context_line":"source of a volume creation and on the other we have locks to prevent"},{"line_number":61,"context_line":"concurrent operations that need to be queued."},{"line_number":62,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a29b11f_1ce4240b","line":59,"updated":"2015-10-20 19:01:46.000000000","message":"s/\"deletion from\"/\"deletion of\" ?","commit_id":"5d6569db3edff0466a1aba12ab3ef4845e531444"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"cba6a032716ed4f0d01f8d8e043983098dffea6f","unresolved":false,"context_lines":[{"line_number":61,"context_line":"concurrent operations that need to be queued."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"Locks that prevent deletion of the source of a volume creation (they are"},{"line_number":64,"context_line":"created by ``create_volume`` method:"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"- *${VOL_UUID}-delete_volume*  -  Used in ``delete_volume``"},{"line_number":67,"context_line":"- *${SNAPSHOT_UUID}-delete_snapshot*  -  Used in ``delete_snapshot``"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a29b11f_dc9b0c71","line":64,"updated":"2015-10-20 19:01:46.000000000","message":"Missing )","commit_id":"5d6569db3edff0466a1aba12ab3ef4845e531444"},{"author":{"_account_id":7173,"name":"Scott DAngelo","email":"scott.dangelo@gmail.com","username":"scottda"},"change_message_id":"08e3ccf9541c287566217e3784b14b42fde0c184","unresolved":false,"context_lines":[{"line_number":69,"context_line":"For these 2 methods we will add a filter to the conditional update -the one"},{"line_number":70,"context_line":"being used to prevent `API Races`_- that will prevent us from deleting a volume"},{"line_number":71,"context_line":"or a snapshot that is being used as the source for a volume.  We will also add"},{"line_number":72,"context_line":"the appropriate response error when we try to delete such a volume/snapshot."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"Locks that prevent concurrent operations on the same resource:"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a29b11f_c819067b","line":72,"updated":"2015-10-20 20:31:29.000000000","message":"One problem that DuncanT has pointed out is that this amounts to an API change. With existing code, the 2nd request to delete is queued up by the lock until the first request (to clone, for example) is completing. The caller does not get an error.\nIf we change this to return an error, that will break clients that are not expecting this.\nPersonally, I\u0027d like to investigate if such API \"changes\" are permitted but frowned upon, or just outright banned in OpenStack. We also could query the operators ML for whom this might break. Hopefully, we could make this change without a major version API bump (this would suck!) or a long deprecation cycle.\n\nIt also might be possible to figure out some type of queuing to mimic what is happening now using local locks. I think DuncanT was looking at using some type of DB queueing. More promising, Avishay has advocated for some type of asynchronous delete, which could complete when the blocking operation has completed.","commit_id":"5d6569db3edff0466a1aba12ab3ef4845e531444"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"e7c0bc6a4596aeaeb5bff8b5125bdde873f93030","unresolved":false,"context_lines":[{"line_number":69,"context_line":"For these 2 methods we will add a filter to the conditional update -the one"},{"line_number":70,"context_line":"being used to prevent `API Races`_- that will prevent us from deleting a volume"},{"line_number":71,"context_line":"or a snapshot that is being used as the source for a volume.  We will also add"},{"line_number":72,"context_line":"the appropriate response error when we try to delete such a volume/snapshot."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"Locks that prevent concurrent operations on the same resource:"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a29b11f_7f0f3188","line":72,"in_reply_to":"3a29b11f_164e2a3b","updated":"2015-10-21 09:35:22.000000000","message":"I *like* filtering solution more. Question is - how \"strict\" our API contract is.","commit_id":"5d6569db3edff0466a1aba12ab3ef4845e531444"},{"author":{"_account_id":9535,"name":"Gorka Eguileor","email":"geguileo@redhat.com","username":"Gorka"},"change_message_id":"77560c50ba2a4cdff829f8a4d7be797c7acfd1c7","unresolved":false,"context_lines":[{"line_number":69,"context_line":"For these 2 methods we will add a filter to the conditional update -the one"},{"line_number":70,"context_line":"being used to prevent `API Races`_- that will prevent us from deleting a volume"},{"line_number":71,"context_line":"or a snapshot that is being used as the source for a volume.  We will also add"},{"line_number":72,"context_line":"the appropriate response error when we try to delete such a volume/snapshot."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"Locks that prevent concurrent operations on the same resource:"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a29b11f_459dc608","line":72,"in_reply_to":"3a29b11f_7f0f3188","updated":"2015-10-21 10:12:02.000000000","message":"Our contract is implicit, so it is not really strict, but since we can preserve functionality it doesn\u0027t make much sense (even if we like it more) not to do it.  So I switched proposed and alternative solutions like you guys suggested.","commit_id":"5d6569db3edff0466a1aba12ab3ef4845e531444"},{"author":{"_account_id":9535,"name":"Gorka Eguileor","email":"geguileo@redhat.com","username":"Gorka"},"change_message_id":"d48a68fdd6ea89efbbd12113071dfb8eaa49de75","unresolved":false,"context_lines":[{"line_number":69,"context_line":"For these 2 methods we will add a filter to the conditional update -the one"},{"line_number":70,"context_line":"being used to prevent `API Races`_- that will prevent us from deleting a volume"},{"line_number":71,"context_line":"or a snapshot that is being used as the source for a volume.  We will also add"},{"line_number":72,"context_line":"the appropriate response error when we try to delete such a volume/snapshot."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"Locks that prevent concurrent operations on the same resource:"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a29b11f_164e2a3b","line":72,"in_reply_to":"3a29b11f_baa87e21","updated":"2015-10-21 08:31:59.000000000","message":"I remember the discussion regarding the implicit API contract, but I still liked the filter solution better. I guess I\u0027m the only one, so I\u0027ll change proposed change with alternative.  :\u0027\u0027-(","commit_id":"5d6569db3edff0466a1aba12ab3ef4845e531444"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"9f9dff85800424ff6d575bd198f72df1b7df4d99","unresolved":false,"context_lines":[{"line_number":69,"context_line":"For these 2 methods we will add a filter to the conditional update -the one"},{"line_number":70,"context_line":"being used to prevent `API Races`_- that will prevent us from deleting a volume"},{"line_number":71,"context_line":"or a snapshot that is being used as the source for a volume.  We will also add"},{"line_number":72,"context_line":"the appropriate response error when we try to delete such a volume/snapshot."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"Locks that prevent concurrent operations on the same resource:"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a29b11f_baa87e21","line":72,"in_reply_to":"3a29b11f_c819067b","updated":"2015-10-21 07:23:20.000000000","message":"Take a look at lines 113-115. Maybe we should make that approach primary instead of alternative?","commit_id":"5d6569db3edff0466a1aba12ab3ef4845e531444"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"cba6a032716ed4f0d01f8d8e043983098dffea6f","unresolved":false,"context_lines":[{"line_number":86,"context_line":"locking."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"On ``detach_volume`` and ``attach_volume`` we will add a retry mechanism -same"},{"line_number":89,"context_line":"mechanism as locks are using today- and we will retry if the DB already has a"},{"line_number":90,"context_line":"record on the DB for the given resource with the current operation.  This means"},{"line_number":91,"context_line":"that we will only proceed to attach a volume if there is no DB entry for the"},{"line_number":92,"context_line":"volume ID with operation ``volume_attach``, and the same will hold true for"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a29b11f_bc4f30bc","line":89,"updated":"2015-10-20 19:01:46.000000000","message":"Are we going to retry forever until the node that won the race condition stops processing?","commit_id":"5d6569db3edff0466a1aba12ab3ef4845e531444"},{"author":{"_account_id":7173,"name":"Scott DAngelo","email":"scott.dangelo@gmail.com","username":"scottda"},"change_message_id":"08e3ccf9541c287566217e3784b14b42fde0c184","unresolved":false,"context_lines":[{"line_number":86,"context_line":"locking."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"On ``detach_volume`` and ``attach_volume`` we will add a retry mechanism -same"},{"line_number":89,"context_line":"mechanism as locks are using today- and we will retry if the DB already has a"},{"line_number":90,"context_line":"record on the DB for the given resource with the current operation.  This means"},{"line_number":91,"context_line":"that we will only proceed to attach a volume if there is no DB entry for the"},{"line_number":92,"context_line":"volume ID with operation ``volume_attach``, and the same will hold true for"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a29b11f_c8b58631","line":89,"in_reply_to":"3a29b11f_bc4f30bc","updated":"2015-10-20 20:31:29.000000000","message":"I think the RPC will time out at some point (2 minutes is the common default, I think), and the caller will get an exception at that point.\nThis situation occurs today on a heavily loaded system, so I\u0027d hope that it would not be considered a breaking API change.","commit_id":"5d6569db3edff0466a1aba12ab3ef4845e531444"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"9f9dff85800424ff6d575bd198f72df1b7df4d99","unresolved":false,"context_lines":[{"line_number":86,"context_line":"locking."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"On ``detach_volume`` and ``attach_volume`` we will add a retry mechanism -same"},{"line_number":89,"context_line":"mechanism as locks are using today- and we will retry if the DB already has a"},{"line_number":90,"context_line":"record on the DB for the given resource with the current operation.  This means"},{"line_number":91,"context_line":"that we will only proceed to attach a volume if there is no DB entry for the"},{"line_number":92,"context_line":"volume ID with operation ``volume_attach``, and the same will hold true for"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a29b11f_daf77a57","line":89,"in_reply_to":"3a29b11f_c8b58631","updated":"2015-10-21 07:23:20.000000000","message":"Ah, attach and detach are RPC calls, not cast. You\u0027re right. Caller is getting a timeout, but what about the receiver (c-vol\u0027s manager)? Does it notice that, or the greenthread serving the call stays there forever?","commit_id":"5d6569db3edff0466a1aba12ab3ef4845e531444"},{"author":{"_account_id":9535,"name":"Gorka Eguileor","email":"geguileo@redhat.com","username":"Gorka"},"change_message_id":"d48a68fdd6ea89efbbd12113071dfb8eaa49de75","unresolved":false,"context_lines":[{"line_number":86,"context_line":"locking."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"On ``detach_volume`` and ``attach_volume`` we will add a retry mechanism -same"},{"line_number":89,"context_line":"mechanism as locks are using today- and we will retry if the DB already has a"},{"line_number":90,"context_line":"record on the DB for the given resource with the current operation.  This means"},{"line_number":91,"context_line":"that we will only proceed to attach a volume if there is no DB entry for the"},{"line_number":92,"context_line":"volume ID with operation ``volume_attach``, and the same will hold true for"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a29b11f_566ca2cf","line":89,"in_reply_to":"3a29b11f_daf77a57","updated":"2015-10-21 08:31:59.000000000","message":"Behavior will be exactly as it is today with file locks (only difference are the timeouts), if the call takes longer than the RPC call timeout then the caller will consider it a failure while the called method still waits for the lock until it is released and then proceeds to execute the operation.","commit_id":"5d6569db3edff0466a1aba12ab3ef4845e531444"},{"author":{"_account_id":7173,"name":"Scott DAngelo","email":"scott.dangelo@gmail.com","username":"scottda"},"change_message_id":"08e3ccf9541c287566217e3784b14b42fde0c184","unresolved":false,"context_lines":[{"line_number":90,"context_line":"record on the DB for the given resource with the current operation.  This means"},{"line_number":91,"context_line":"that we will only proceed to attach a volume if there is no DB entry for the"},{"line_number":92,"context_line":"volume ID with operation ``volume_attach``, and the same will hold true for"},{"line_number":93,"context_line":"detaching."},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"To make this atomic, we are using it for mutual exclusion, we will insert the"},{"line_number":96,"context_line":"row in the same way we are doing the conditional updates, adding a condition on"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a29b11f_48ce56b5","line":93,"updated":"2015-10-20 20:31:29.000000000","message":"This is actually quite clever. Why not do this for the locks on delete described above? This would also prevent the breaking API change?","commit_id":"5d6569db3edff0466a1aba12ab3ef4845e531444"},{"author":{"_account_id":9535,"name":"Gorka Eguileor","email":"geguileo@redhat.com","username":"Gorka"},"change_message_id":"d48a68fdd6ea89efbbd12113071dfb8eaa49de75","unresolved":false,"context_lines":[{"line_number":90,"context_line":"record on the DB for the given resource with the current operation.  This means"},{"line_number":91,"context_line":"that we will only proceed to attach a volume if there is no DB entry for the"},{"line_number":92,"context_line":"volume ID with operation ``volume_attach``, and the same will hold true for"},{"line_number":93,"context_line":"detaching."},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"To make this atomic, we are using it for mutual exclusion, we will insert the"},{"line_number":96,"context_line":"row in the same way we are doing the conditional updates, adding a condition on"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a29b11f_969d5abe","line":93,"in_reply_to":"3a29b11f_48ce56b5","updated":"2015-10-21 08:31:59.000000000","message":"That was proposed alternative, I didn\u0027t specify that one as the primary solution because I like the filters better.","commit_id":"5d6569db3edff0466a1aba12ab3ef4845e531444"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"cba6a032716ed4f0d01f8d8e043983098dffea6f","unresolved":false,"context_lines":[{"line_number":97,"context_line":"the insert query to make sure that it only succeeds if no other entry already"},{"line_number":98,"context_line":"exists."},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"It is important to notice that timeouts for these new locks will be handled by"},{"line_number":101,"context_line":"the cleanup process itself, as rows are removed from the DB when heartbeats are"},{"line_number":102,"context_line":"no longer being received, thus releasing the locks and preventing a resource"},{"line_number":103,"context_line":"from being stuck."}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a29b11f_7c7af8f2","line":100,"updated":"2015-10-20 19:01:46.000000000","message":"That\u0027s my face when I understood that: http://i.imgur.com/lpPRkCW.jpg","commit_id":"5d6569db3edff0466a1aba12ab3ef4845e531444"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"cba6a032716ed4f0d01f8d8e043983098dffea6f","unresolved":false,"context_lines":[{"line_number":110,"context_line":"drivers don\u0027t require locks to operate on Active/Active cluster configurations"},{"line_number":111,"context_line":"and would not benefit from it."},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"We could also use a similar locking mechanism to the one we are using for"},{"line_number":114,"context_line":"attach/detach, using ``workers`` table, to prevent resource deletion instead of"},{"line_number":115,"context_line":"adding filters."},{"line_number":116,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a29b11f_3ce9e080","line":113,"updated":"2015-10-20 19:01:46.000000000","message":"This may be actually a good idea - right now locks queue delete operations until volume/snapshot is ready. Doing locks using workers table would work in a similar way and we wouldn\u0027t change the API behavior.","commit_id":"5d6569db3edff0466a1aba12ab3ef4845e531444"}],"specs/newton/ha-aa-manager_locks.rst":[{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"32e13c3362c6a15af15cdff5580c3bc54adb43ad","unresolved":false,"context_lines":[{"line_number":201,"context_line":"Performance Impact"},{"line_number":202,"context_line":"------------------"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"Small, but necessary, performance impact from changing local file locks to DB"},{"line_number":205,"context_line":"calls."},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"Other deployer impact"},{"line_number":208,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a122d0e_f9810ffd","line":205,"range":{"start_line":204,"start_character":0,"end_line":205,"end_character":6},"updated":"2016-04-15 10:12:50.000000000","message":"Can we have lock acquire retry backoff configurable? This way operator would be able to tweak performance impact for his own DB deployment","commit_id":"1f9ddb7692580dde4eafc2ae752997520b0b5064"},{"author":{"_account_id":12924,"name":"Patrick East","email":"east.patrick@gmail.com","username":"patrick.east"},"change_message_id":"00bfd2a984890eff19559fc7b614e1d475158b7f","unresolved":false,"context_lines":[{"line_number":201,"context_line":"Performance Impact"},{"line_number":202,"context_line":"------------------"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"Small, but necessary, performance impact from changing local file locks to DB"},{"line_number":205,"context_line":"calls."},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"Other deployer impact"},{"line_number":208,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a122d0e_8d932bfa","line":205,"range":{"start_line":204,"start_character":0,"end_line":205,"end_character":6},"in_reply_to":"1a122d0e_f9810ffd","updated":"2016-04-22 21:56:13.000000000","message":"Yea that might be nice, not required IMO though.","commit_id":"1f9ddb7692580dde4eafc2ae752997520b0b5064"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"32e13c3362c6a15af15cdff5580c3bc54adb43ad","unresolved":false,"context_lines":[{"line_number":253,"context_line":"Documentation Impact"},{"line_number":254,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":255,"context_line":""},{"line_number":256,"context_line":"This needs to be properly documented, as this locking mechanism will *not* be"},{"line_number":257,"context_line":"appropriate for all drivers."},{"line_number":258,"context_line":""},{"line_number":259,"context_line":""},{"line_number":260,"context_line":"References"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a122d0e_99be1bd3","line":257,"range":{"start_line":256,"start_character":0,"end_line":257,"end_character":28},"updated":"2016-04-15 10:12:50.000000000","message":"Is this for drivers?","commit_id":"1f9ddb7692580dde4eafc2ae752997520b0b5064"},{"author":{"_account_id":12924,"name":"Patrick East","email":"east.patrick@gmail.com","username":"patrick.east"},"change_message_id":"00bfd2a984890eff19559fc7b614e1d475158b7f","unresolved":false,"context_lines":[{"line_number":253,"context_line":"Documentation Impact"},{"line_number":254,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":255,"context_line":""},{"line_number":256,"context_line":"This needs to be properly documented, as this locking mechanism will *not* be"},{"line_number":257,"context_line":"appropriate for all drivers."},{"line_number":258,"context_line":""},{"line_number":259,"context_line":""},{"line_number":260,"context_line":"References"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a122d0e_cd9403ea","line":257,"range":{"start_line":256,"start_character":0,"end_line":257,"end_character":28},"in_reply_to":"1a122d0e_99be1bd3","updated":"2016-04-22 21:56:13.000000000","message":"Seems like it might be sufficient for some of the driver locks... for me personally I\u0027m thinking it would probably be just fine for what we need in the Pure drivers right now. May not be the case for all the driver locks.","commit_id":"1f9ddb7692580dde4eafc2ae752997520b0b5064"}]}
