Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OpenStack Alpha No Longer Returning Node Data on Server Create #40

Closed
wants to merge 1 commit into from
Closed

Fix OpenStack Alpha No Longer Returning Node Data on Server Create #40

wants to merge 1 commit into from

Conversation

tildedave
Copy link
Contributor

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.

See: http://docs.openstack.org/cactus/openstack-compute/developer/openstack-compute-api-1.1/content/CreateServers.html

"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).

WHAT

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.

…fter creating a node to get all of the necessary information (name, status, ip addresses, metadata)
@Kami
Copy link
Member

Kami commented Nov 30, 2011

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.

@tildedave
Copy link
Contributor Author

Thanks Kami!

@tildedave tildedave closed this Nov 30, 2011
asfgit pushed a commit that referenced this pull request Jul 31, 2023
…d..d499194be

d499194be README: prep 1.0.8
cf52d21d8 Remove pin on requests (fixes #41) (#42)
3ac8fed01 README: prep 1.0.7 (#40)
f7e969538 requirements: constrain requests below 2.30 (#39)
28aa5e1be New issue templates (#37)
1abec09c8 action: replace `internal-be-careful-debug` (#36)
75edeacda README: prep 1.0.6 (#34)
666b1b883 Check that output file exists before opening (#33)

git-subtree-dir: .github/actions/gh-action-pip-audit
git-subtree-split: d499194be74aeb3bc7dbed3a224a87e1831132c7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants