libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [libcloud] 01/03: status RESIZE of node was not implemented
Date Fri, 26 Feb 2021 22:51:43 GMT
This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 3320c5b9bd3b433b7f78a0267524ad22bb9d2e1e
Author: Rob Juffermans <rob@maxmath.nl>
AuthorDate: Wed Feb 24 01:31:48 2021 +0100

    status RESIZE of node was not implemented
---
 libcloud/compute/drivers/openstack.py | 1 +
 libcloud/test/compute/test_ovh.py     | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/libcloud/compute/drivers/openstack.py b/libcloud/compute/drivers/openstack.py
index 9e5505c..2ab51d9 100644
--- a/libcloud/compute/drivers/openstack.py
+++ b/libcloud/compute/drivers/openstack.py
@@ -120,6 +120,7 @@ class OpenStackNodeDriver(NodeDriver, OpenStackDriverMixin):
         'PASSWORD': NodeState.PENDING,
         'RESCUE': NodeState.PENDING,
         'REBOOT': NodeState.REBOOTING,
+        'RESIZE': NodeState.MIGRATING,
         'HARD_REBOOT': NodeState.REBOOTING,
         'SHARE_IP': NodeState.PENDING,
         'SHARE_IP_NO_CONFIG': NodeState.PENDING,
diff --git a/libcloud/test/compute/test_ovh.py b/libcloud/test/compute/test_ovh.py
index f79c2b7..c8b7eae 100644
--- a/libcloud/test/compute/test_ovh.py
+++ b/libcloud/test/compute/test_ovh.py
@@ -231,6 +231,9 @@ class OvhTests(unittest.TestCase):
                                        location=location)
         self.assertEqual(node.name, 'test_vm')
 
+    def test_resizing_node(self):
+        assert self.driver.NODE_STATE_MAP['RESIZE']
+
     def test_destroy_node(self):
         node = self.driver.list_nodes()[0]
         self.driver.destroy_node(node)


Mime
View raw message