libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erjohnso <...@git.apache.org>
Subject [GitHub] libcloud pull request: [google compute] Add node stop/start suppor...
Date Fri, 30 Jan 2015 22:36:02 GMT
GitHub user erjohnso opened a pull request:

    https://github.com/apache/libcloud/pull/442

    [google compute] Add node stop/start support

    GCE now supports node (instance) stop/start.  This PR adds the two new driver methods
and supporting tests to include these new features.  Note that these methods only return a
boolean, so the node object must be queried again to get the new status.  For example,
    
    ```python
    >>> node = gce_driver.ex_get_node('foo', 'us-central1-f')
    >>> print node.extra['status']
    u'RUNNING'
    >>> gce_driver.stop_node(node)
    >>> node = gce_driver.ex_get_node('foo', 'us-central1-f')
    >>> print node.extra['status']
    u'TERMINATED'
    ```
    
    Note that the correct state for a stopped node is TERMINATED.
    
    Upstream docs are at:
    https://cloud.google.com/compute/docs/instances#stopping_an_instance
    https://cloud.google.com/compute/docs/instances#restarting_a_stopped_instance
    
    /cc @Kami - I'd like to get this into the next release if you're OK with that.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/erjohnso/libcloud gce_stop_start

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/libcloud/pull/442.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #442
    
----
commit 17bee44769ece6c58d69ee83473a5b8d9ea96b7f
Author: Eric Johnson <erjohnso@google.com>
Date:   2015-01-30T22:29:54Z

    [google compute] Add node stop/start support

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message