Can't create VM with fixed IP from Nova REST API in Juno

asked 2014-11-15 13:53:06 -0500

Sarbajit gravatar image

updated 2014-11-15 21:02:00 -0500

I am trying to launch a VM from Nova REST API with fixed_ip parameter in Juno single node devstack. My network has DHCP enabled. Here is my request

curl -i 'http://192.168.230.128:8774/v2/c44e78a2f80e4443ac7a47d8c256f4a4/servers' -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "X-Auth-Token: 7f7596562d7f427898f6e1cb28a304b3" -d '{"server": {"name": "test", "imageRef": "9b797c39-37c8-4cdc-b6d9-3976e318804a", "availability_zone": "nova", "flavorRef": "42", "max_count": 1, "min_count": 1, "networks": [{"fixed_ip": "10.0.0.13", "uuid": "d8a63a7d-6aeb-486d-81fb-fb2aeda3bcd0"}], "security_groups": [{"name": "default"}]}}'

Though the instance gets created, it always ends in Error state. The error trace shows

File "/opt/stack/nova/nova/conductor/manager.py", line 614, in build_instances request_spec, filter_properties) File "/opt/stack/nova/nova/scheduler/client/__init__.py", line 49, in select_destinations context, request_spec, filter_properties) File "/opt/stack/nova/nova/scheduler/client/__init__.py", line 35, in __run_method return getattr(self.instance, __name)(*args, **kwargs) File "/opt/stack/nova/nova/scheduler/client/query.py", line 34, in select_destinations context, request_spec, filter_properties) File "/opt/stack/nova/nova/scheduler/rpcapi.py", line 108, in select_destinations request_spec=request_spec, filter_properties=filter_properties) File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/client.py", line 152, in call retry=self.retry) File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/transport.py", line 90, in _send timeout=timeout, retry=retry) File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/_drivers/amqpdriver.py", line 408, in send retry=retry) File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/_drivers/amqpdriver.py", line 399, in _send raise result

What might be the problem?

edit retag flag offensive close merge delete