[Openstack] Liberty itemNotFound Flavor XXX could not be found

William Josefsson williamjosefsson at yahoo.com
Wed Jun 8 11:57:32 UTC 2016


Hi Everyone, I'm having a problem to boot images (Ubuntu and Cirros) with nova. I get the error below about missing flavor. I have checked that the flavor is among 'nova flavor-list'. The compute node is running on Virtualbox and soft-qemu.

I have tested flavors, m1.tiny, m1.small, m1.large, and m1.medium.

While running: 

$ nova service-list

I can see the following services enabled and up:
nova-conductor
nova-consoleauth
nova-scheduler
nova-cert
nova-compute
nova-console


nova list
+--------------------------------------+------------+--------+------------+-------------+----------+
| ID                                   | Name       | Status | Task State | Power State | Networks |
+--------------------------------------+------------+--------+------------+-------------+----------+
| 4eab3e70-8506-4ba6-b69b-80fc89e7aa08 | myinstance | ERROR | -          | NOSTATE     |          |
+--------------------------------------+------------+--------+------------+-------------+----------+


nova show myinstance
+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+
| Property                             | Value                                                                                                                         |
+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                                                                                                        |
| OS-EXT-AZ:availability_zone          |                                                                                                                               |
| OS-EXT-STS:power_state               | 0                                                                                                                             |
| OS-EXT-STS:task_state                | -                                                                                                                             |
| OS-EXT-STS:vm_state                  | error                                                                                                                         |
| OS-SRV-USG:launched_at               | -                                                                                                                             |
| OS-SRV-USG:terminated_at             | -                                                                                                                             |
| accessIPv4                           |                                                                                                                               |
| accessIPv6                           |                                                                                                                               |
| config_drive                         |                                                                                                                               |
| created                              | 2016-06-08T11:54:25Z                                                                                                          |
| fault                                | {"message": "No valid host was found. There are not enough hosts available.", "code": 500, "created": "2016-06-08T11:54:26Z"} |
| flavor                               | m1.medium (3)                                                                                                                 |
| hostId                               |                                                                                                                               |
| id                                   | 4eab3e70-8506-4ba6-b69b-80fc89e7aa08                                                                                          |
| image                                | trusty (e7566f0e-969c-4658-bce4-7cef7de43bff)                                                                                 |
| key_name                             | mykey                                                                                                                         |
| metadata                             | {}                                                                                                                            |
| name                                 | myinstance                                                                                                                    |
| os-extended-volumes:volumes_attached | []                                                                                                                            |
| status                               | ERROR                                                                                                                         |
| tenant_id                            | a0807f370ec64102be9ad2f837d9a462                                                                                              |
| updated                              | 2016-06-08T11:54:26Z                                                                                                          |
| user_id                              | 5c8c042ea39348e79ed4ef6aee0f49aa                                                                                              |
+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+


OS: CentOS7, and OpenStack Liberty


Here's when I provision the instance connected to a public net.

$ nova --debug boot --flavor m1.medium --image trusty --nic net-id=1ab828e5-405a-4442-9a5b-cdc682ff6d9e --security-group default --key-name mykey myinstance

DEBUG (session:215) RESP: [200] Date: Wed, 08 Jun 2016 07:42:52 GMT Connection: keep-alive Content-Type: application/json Content-Length: 683 X-Compute-Request-Id: req-f2b736f2-e56d-496d-b312-445509d42eba
RESP BODY: {"image": {"status": "ACTIVE", "updated": "2016-06-07T15:45:04Z", "links": [{"href": "http://xcontroller-1:8774/v2/a0807f370ec64102be9ad2f837d9a462/images/e7566f0e-969c-4658-bce4-7cef7de43bff", "rel": "self"}, {"href": "http://xcontroller-1:8774/a0807f370ec64102be9ad2f837d9a462/images/e7566f0e-969c-4658-bce4-7cef7de43bff", "rel": "bookmark"}, {"href": "http://xstorage-1:9292/images/e7566f0e-969c-4658-bce4-7cef7de43bff", "type": "application/vnd.openstack.image", "rel": "alternate"}], "id": "e7566f0e-969c-4658-bce4-7cef7de43bff", "OS-EXT-IMG-SIZE:size": 259785216, "name": "trusty", "created": "2016-06-07T15:45:01Z", "minDisk": 0, "progress": 100, "minRam": 0, "metadata": {}}}

DEBUG (session:198) REQ: curl -g -i -X GET http://xcontroller-1:8774/v2/a0807f370ec64102be9ad2f837d9a462/flavors/m1.medium -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}a81f09298f78dca6a1844e6382a53ee042a5565a"
DEBUG (connectionpool:393) "GET /v2/a0807f370ec64102be9ad2f837d9a462/flavors/m1.medium HTTP/1.1" 404 82
DEBUG (session:215) RESP: [404] Date: Wed, 08 Jun 2016 07:42:52 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 82 X-Compute-Request-Id: req-4af9de0a-a1ed-4905-a1c5-c2997f3ccd55
RESP BODY: {"itemNotFound": {"message": "Flavor m1.medium could not be found.", "code": 404}}
 
DEBUG (session:198) REQ: curl -g -i -X GET http://xcontroller-1:8774/v2/a0807f370ec64102be9ad2f837d9a462/flavors?is_public=None -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}a81f09298f78dca6a1844e6382a53ee042a5565a"
DEBUG (connectionpool:393) "GET /v2/a0807f370ec64102be9ad2f837d9a462/flavors?is_public=None HTTP/1.1" 200 1239
DEBUG (session:215) RESP: [200] Date: Wed, 08 Jun 2016 07:42:52 GMT Connection: keep-alive Content-Type: application/json Content-Length: 1239 X-Compute-Request-Id: req-0b1d6a81-e78d-4fe4-b7c1-32b3e6ee7bfd


I would appreciate any advice. thx! Will




More information about the Openstack mailing list