Ask Your Question

why i am getting empty image in server details while calling compute api?

asked 2016-12-20 03:51:57 -0500

nagasiva.ramoju gravatar image

updated 2016-12-20 08:25:33 -0500

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/\", line 37, in __run_method\n    return getattr(self.instance, __name)(*args, **kwargs)\n  File \"/opt/stack/nova/nova/scheduler/client/\", line 32, in select_destinations\n    return self.scheduler_rpcapi.select_destinations(context, spec_obj)\n  File \"/opt/stack/nova/nova/scheduler/\", line 127, in select_destinations\n    return, 'select_destinations', **msg_args)\n  File \"/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/\", line 169, in call\n    retry=self.retry)\n  File \"/usr/local/lib/python2.7/dist-packages/oslo_messaging/\", line 97, in _send\n    timeout=timeout, retry=retry)\n  File \"/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/\", line 458, in send\n    retry=retry)\n  File \"/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/\", 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 .

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-12-20 08:24:42 -0500

Your instance is not running because no host to run it could be found. I would think that image information is not updated in this case.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-12-20 03:51:57 -0500

Seen: 323 times

Last updated: Dec 20 '16