Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix OpenStack Alpha No Longer Returning Node Data on Server Create #40
WHY THIS HAD TO BE DONE
OpenStack Alpha at http://alpha.auth.api.rackspacecloud.com:5000/v2.0/ has started conforming to the spec and not returning any node data back except for new password on node create.
"Note that when creating a server only the server ID, its links, and the admin password are guaranteed to be returned in the request. Additional attributes may be retrieved by performing subsequent GETs on the server."
Specifically the OpenStack 1.1 node driver was failing on create_node as it was attempting to fill the information to create a libcloud node from the server response (which is not just returning ID and admin password).
The implementation I took here was to do the follow-up GET to get the node information. There is enough information returned there to make a libcloud node object, though some of it won't be filled in until the server has gone from BUILD to ACTIVE (for example, ip addresses).
I changed some of the create_node test data to match the existing asserts.
Yeah, that's an acceptable solution. We do a similar thing in some other drivers.
Merged in r1208595 - http://svn.apache.org/viewvc?view=revision&revision=1208595.