Hello,

In the current SVN (r912389), the Rackspace driver doesn't seem to return a
NodeState - instead, it just returns the raw status string from Rackspace.
Attached is a patch that fixes the rackspace driver to work like the other
ones (EC2 and Linode, at least).

Cheers,
Tobias
-- 
Tobias McNulty
Caktus Consulting Group, LLC
P.O. Box 1454
Carrboro, NC 27510
(919) 951-0052
http://www.caktusgroup.com
Index: libcloud/drivers/rackspace.py
===================================================================
--- libcloud/drivers/rackspace.py	(revision 912389)
+++ libcloud/drivers/rackspace.py	(working copy)
@@ -264,10 +264,11 @@
         private_ip = get_ips(self._findall(el, 
                                           'addresses/private/ip'))
         metadata = get_meta_dict(self._findall(el, 'metadata/meta'))
-        
+        state = self.NODE_STATE_MAP.get(el.get('status'), NodeState.UNKNOWN)
+
         n = Node(id=el.get('id'),
                  name=el.get('name'),
-                 state=el.get('status'),
+                 state=state,
                  public_ip=public_ip,
                  private_ip=private_ip,
                  driver=self.connection.driver,

Reply via email to