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

cannot create server #660

Closed
wumingcheng opened this issue May 12, 2016 · 1 comment
Closed

cannot create server #660

wumingcheng opened this issue May 12, 2016 · 1 comment

Comments

@wumingcheng
Copy link

OSClient os = oSClientService.getV2OSClientAdmin(token, tenant);//auth
List<? extends Server> serverList = os.compute().servers().list();
//org.openstack4j.api.exceptions.ClientResponseException: Server name is not defined

//request
{
"name": "wumingcheng-server",
"imageRef": "3937832b-f780-4181-a9ee-8615bfe3e358",
"flavorRef": "337fe28b-5505-4f0d-8042-117f0c2af186",
"networks": [
{
"uuid": "828dad7c-ece5-42b0-9ac1-18393cbe3c73",
"port": "6045009a-9b25-470b-b685-a9e763ce0f77",
"fixed_ip": "192.168.0.2"
}
]
}

Why the server name need to define, I just create a server?

@vinodborole
Copy link
Contributor

Name is required to create a server

http://developer.openstack.org/api-ref-compute-v2.1.html

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

No branches or pull requests

2 participants