[Openstack] BadRequest: Can not find requested image (HTTP 400)

Vaze, Mandar Mandar.Vaze at nttdata.com
Fri May 18 13:09:51 UTC 2012


Milind,

Nova boot command takes Image and Flavor IDs, not names
Can you try "nova boot -image  057f5695-7af5-4d42-ab17-2f0f36f99ee2 " instead ?
Similarly, you may need to use -flavor 2 instead of --flavor m1.small

If you are interested in looking at code, see "def do_boot" in novaclient/v1_1/shell.py under python-novaclient repo.

nova help boot
usage: nova boot [--flavor <flavor>] [--image <image>] [--meta <key=value>]
                 [--file <dst-path=src-path>] [--key_name <key_name>]
                 [--user_data <user-data>]
                 [--availability_zone <availability-zone>]
                 [--security_groups <security_groups>]
                 [--block_device_mapping <dev_name=mapping>]
                 [--hint <key=value>]
                 [--nic <net-id=net-uuid,v4-fixed-ip=ip-addr>]
                 [--config-drive <value>] [--poll]
                 <name>

Boot a new server.

Positional arguments:
  <name>                Name for the new server

Optional arguments:
  --flavor <flavor>     Flavor ID (see 'nova flavor-list').
  --image <image>       Image ID (see 'nova image-list').

Hope this helps.

-Mandar

From: openstack-bounces+mandar.vaze=nttdata.com at lists.launchpad.net [mailto:openstack-bounces+mandar.vaze=nttdata.com at lists.launchpad.net] On Behalf Of Milind
Sent: Friday, May 18, 2012 5:16 PM
To: openstack at lists.launchpad.net
Subject: [Openstack] BadRequest: Can not find requested image (HTTP 400)

Hi,

I am getting error while executing following command.

root at ucmaster:/home/milindx/mil# nova boot --image tty-linux --flavor m1.small --key_name test my-first-server
ERROR: Can not find requested image (HTTP 400)

Following information will help

root at ucmaster:/home/milindx/mil# cat /etc/nova/nova.conf | grep glance
--image_service=nova.image.glance.GlanceImageService
--glance_api_servers=10.253.59.152:9292<http://10.253.59.152:9292>

root at ucmaster:/home/milindx/mil# nova image-list
+--------------------------------------+------------------+--------+--------+
|                  ID                  |       Name       | Status | Server |
+--------------------------------------+------------------+--------+--------+
| 057f5695-7af5-4d42-ab17-2f0f36f99ee2 | tty-linux        | ACTIVE |        |
| 1cfd638b-1187-4f35-a0dd-76352742b762 | tty-kernel       | ACTIVE |        |
| 40c6e4ec-9b49-4f5c-989d-57cd2691fa12 | tty-linuxkernel  | ACTIVE |        |
| a726d350-c187-401b-823c-7bb1527aaa1d | tty-linuxramdisk | ACTIVE |        |
| b1c79ba2-aef0-4dfc-8e0f-f1f223bea1f1 | tty              | ACTIVE |        |
| b3240f79-5b6f-450c-beff-5c8ecdabcf00 | tty-ramdisk      | ACTIVE |        |
+--------------------------------------+------------------+--------+--------+
root at ucmaster:/home/milindx/mil#

root at ucmaster:/home/milindx/mil# nova-manage service list
2012-05-18 17:15:30 DEBUG nova.utils [req-0997c625-ef9c-45ab-96a9-77a211d87459 None None] backend <module 'nova.db.sqlalchemy.api' from '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.pyc'> from (pid=15253) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658
Binary           Host                                 Zone             Status     State Updated_At
nova-scheduler   ucmaster                             nova             enabled    :-)   2012-05-18 11:45:25
nova-volume      ucmaster                             nova             enabled    :-)   2012-05-18 11:45:25
nova-compute     ucmaster                             nova             enabled    :-)   2012-05-18 11:45:21
nova-cert        ucmaster                             nova             enabled    :-)   2012-05-18 11:45:25
nova-consoleauth ucmaster                             nova             enabled    :-)   2012-05-18 11:45:25
nova-network     ucmaster                             nova             enabled    :-)   2012-05-18 11:45:25

I have deleted and added images using glance still problem persists, any one know what could be problem.

Regards,
Milind


______________________________________________________________________
Disclaimer:This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data.  If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120518/a974b2e3/attachment.html>


More information about the Openstack mailing list