-
Notifications
You must be signed in to change notification settings - Fork 364
Description
I cannot create new HostAggregate.......
openstack version L.
openstack4j version 2.0.9
my code:
HostAggregate hostAggregate = osClient.compute().hostAggregates()
.create(name,availabilityZone);
Getting the following error:
1 > POST http://192.168.10.36:8774/v2.1/7564acb691704aaca2b2653229959c71/os-aggregates
1 > Accept: application/json
1 > Content-Type: application/json
1 > User-Agent: OpenStack4j / OpenStack Client
1 > X-Auth-Token: fad14589e5b143c1b84b50b56afe95a0
{
"aggregate" : {
"deleted" : false,
"name" : "test",
"avaiablityZone" : "test",
"availability_zone" : "test"
}
}
< 400
2 < Connection: keep-alive
2 < Content-Length: 279
2 < Content-Type: application/json; charset=UTF-8
2 < Date: Tue, 15 Mar 2016 03:01:58 GMT
2 < Vary: X-OpenStack-Nova-API-Version
2 < X-Compute-Request-Id: req-8e9a942f-7534-4328-9843-af9b016416ad
2 < X-Openstack-Nova-Api-Version: 2.1
{"badRequest": {"message": "Invalid input for field/attribute aggregate. Value: {u'deleted': False, u'name': u'test', u'avaiablityZone': u'test', u'availability_zone': u'test'}. Additional properties are not allowed (u'deleted', u'avaiablityZone' were unexpected)", "code": 400}}