You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by GitBox <gi...@apache.org> on 2019/10/09 19:34:44 UTC

[GitHub] [libcloud] zimventures opened a new issue #1356: GCE node deletion times out - allow an async option

zimventures opened a new issue #1356: GCE node deletion times out - allow an async option
URL: https://github.com/apache/libcloud/issues/1356
 
 
   ## Feature Request
   Currently the GCE `node_delete()` function uses the `async_request()` call (which ironically isn't actually async). Deleting a basic n1-standard-1 node running Centos in us-central times out every time. This isn't an uncommon occurrence. Searching the intertubes there are other references of other projects having the same issue:
   
   https://github.com/kubevirt/cloud-image-builder/issues/72
   https://github.com/ansible/ansible/issues/29597
   
   The current way to avoid the timeout is to use the `ex_destroy_multiple_nodes()` function with a gigantic timeout value. An option, for sure, but not flexible enough. 
   
   An easy solution in this case would be to offer both a sync and async option for deletion. Applications can poll, if desired. Thankfully, the async option is fairly straightforward, defaulting to the current sync mode of operation:
   
   ```python
           if sync:
               self.connection.async_request(request, method='DELETE')
           else:
               self.connection.request(request, method='DELETE')
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services