why i am getting empty image in server details while calling compute api?
when i am calling in compute server details using openstack CLI is given all server details but image datils is given empty
API Calling :
curl -s -H "X-Auth-Token: token" http://ipaddress:8774/v2.1/servers/a4f503ce-a7f6-441c-abce-a5d195181968 | python -mjson.tool
Response :
t_destinations\n return self.queryclient.select_destinations(context, spec_obj)\n File \"/opt/stack/nova/nova/scheduler/client/__init__.py\", line 37, in __run_method\n return getattr(self.instance, __name)(*args, **kwargs)\n File \"/opt/stack/nova/nova/scheduler/client/query.py\", line 32, in select_destinations\n return self.scheduler_rpcapi.select_destinations(context, spec_obj)\n File \"/opt/stack/nova/nova/scheduler/rpcapi.py\", line 127, in select_destinations\n return cctxt.call(ctxt, 'select_destinations', **msg_args)\n File \"/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py\", line 169, in call\n retry=self.retry)\n File \"/usr/local/lib/python2.7/dist-packages/oslo_messaging/transport.py\", line 97, in _send\n timeout=timeout, retry=retry)\n File \"/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py\", line 458, in send\n retry=retry)\n File \"/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py\", line 449, in _send\n raise result\n",
"message": "No valid host was found. There are not enough hosts available."
},
"flavor": {
"id": "1",
"links": [
{
"href": "http://ipaddress:8774/flavors/1",
"rel": "bookmark"
}
]
},
"hostId": "",
"id": "a4f503ce-a7f6-441c-abce-a5d195181968",
"image": ""
,
"key_name": null,
"links": [
{
"href": "http://ipaddress8774/v2.1/servers/a4f503ce-a7f6-441c-abce-a5d195181968",
"rel": "self"
},
{
"href": "http://ipaddress:8774/servers/a4f503ce-a7f6-441c-abce-a5d195181968",
"rel": "bookmark"
}
],
"metadata": {},
"name": "locuz-firstvolume",
"os-extended-volumes:volumes_attached": [],
"status": "ERROR",
"tenant_id": "8289d8d34ee446b98dd84081e9163341",
"updated": "2016-12-20T09:20:47Z",
"user_id": "f039a36712594e84bb247e4bed259a43"
}
}
please explain why is showing image empty details .