← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1447039] [NEW] "No flavor with a name or ID of '' exists" reported when call "nova flavor-show {id}"

 

Public bug reported:

Create flavor by the following method:
flavors.create(name, memory, vcpus, root_gb,
                                       ephemeral_gb=ephemeral_gb,
                                       flavorid=flavorid, swap=swap,
                                       rxtx_factor=rxtx_factor,
                                       is_public=is_public)

Created succeeded:
# nova flavor-list
+------------------------------------------+---------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID                                       | Name          | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+------------------------------------------+---------------+-----------+------+-----------+------+-------+-------------+-----------+
| 1                                        | m1.tiny       | 512       | 1    | 0         |      | 1     | 1.0         | True      |
| 2                                        | m1.small      | 2048      | 20   | 0         |      | 1     | 1.0         | True      |
| 3                                        | m1.medium     | 4096      | 40   | 0         |      | 2     | 1.0         | True      |
| 4                                        | m1.large      | 8192      | 80   | 0         |      | 4     | 1.0         | True      |
| 5                                        | m1.xlarge     | 16384     | 160  | 0         |      | 8     | 1.0         | True      |
| TT-19e3e819-e68a-4ddf-ac2b-2f8636356603 | TT-Testnew2  | 1024      | 20   | 0         |      | 1     | 1.0         | True      |
+------------------------------------------+---------------+-----------+------+-----------+------+-------+-------------+-----------+

But failed to show this:
#nova flavor-show PVC-19e3e819-e68a-4ddf-ac2b-2f8636356603
ERROR (CommandError): No flavor with a name or ID of 'pvc-19e3e819-e68a-4ddf-ac2b-2f8636356603' exists.

This error also happend when boot vm, it shows cannot find the flavor, boot failed:
#  nova boot --flavor TT-Testnew  --image RHEL6.5 --nic net-id=3ccfc448-ee59-4b36-94c1-57b76fa84b26,v4-fixed-ip=192.168.2.201 sles-april21-jerry2
ERROR (CommandError): No flavor with a name or ID of 'tt-e835a885-e61c-48d7-af23-d4e5dbf04710' exists.

I think this is a critical issue, please help, thanks.

--------------------
1. version:
[root@controller ~]# rpm -aq | grep nova
openstack-nova-conductor-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-network-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-cells-2015.1-201504161438.ibm.el7.111.noarch
python-novaclient-2.23.0-1.ibm.el7.noarch
openstack-nova-scheduler-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-novncproxy-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-objectstore-2015.1-201504161438.ibm.el7.111.noarch
python-nova-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-api-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-console-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-compute-prereqs-2013.1-201503192011.ibm.2.ppc64
openstack-nova-compute-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-common-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-cert-2015.1-201504161438.ibm.el7.111.noarch
openstack-nova-2015.1-201504161438.ibm.el7.111.noarch

2. logs:
only this in nova-api.log
2015-04-22 04:24:03.051 28320 INFO nova.api.openstack.wsgi [req-09ce810d-fb83-4102-b137-42ea9d67c4dc 1cabd0c96f2c48599ca4220b9b9d3f8f 2a0dc745a17f4b3b9c3b99b3df95084e - - -] HTTP exception thrown: The resource could not be found.

3. 1) Create a flavor by the code above, then type the cmd as above.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1447039

Title:
  "No flavor with a name or ID of '' exists" reported when call "nova
  flavor-show {id}"

Status in OpenStack Compute (Nova):
  New

Bug description:
  Create flavor by the following method:
  flavors.create(name, memory, vcpus, root_gb,
                                         ephemeral_gb=ephemeral_gb,
                                         flavorid=flavorid, swap=swap,
                                         rxtx_factor=rxtx_factor,
                                         is_public=is_public)

  Created succeeded:
  # nova flavor-list
  +------------------------------------------+---------------+-----------+------+-----------+------+-------+-------------+-----------+
  | ID                                       | Name          | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
  +------------------------------------------+---------------+-----------+------+-----------+------+-------+-------------+-----------+
  | 1                                        | m1.tiny       | 512       | 1    | 0         |      | 1     | 1.0         | True      |
  | 2                                        | m1.small      | 2048      | 20   | 0         |      | 1     | 1.0         | True      |
  | 3                                        | m1.medium     | 4096      | 40   | 0         |      | 2     | 1.0         | True      |
  | 4                                        | m1.large      | 8192      | 80   | 0         |      | 4     | 1.0         | True      |
  | 5                                        | m1.xlarge     | 16384     | 160  | 0         |      | 8     | 1.0         | True      |
  | TT-19e3e819-e68a-4ddf-ac2b-2f8636356603 | TT-Testnew2  | 1024      | 20   | 0         |      | 1     | 1.0         | True      |
  +------------------------------------------+---------------+-----------+------+-----------+------+-------+-------------+-----------+

  But failed to show this:
  #nova flavor-show PVC-19e3e819-e68a-4ddf-ac2b-2f8636356603
  ERROR (CommandError): No flavor with a name or ID of 'pvc-19e3e819-e68a-4ddf-ac2b-2f8636356603' exists.

  This error also happend when boot vm, it shows cannot find the flavor, boot failed:
  #  nova boot --flavor TT-Testnew  --image RHEL6.5 --nic net-id=3ccfc448-ee59-4b36-94c1-57b76fa84b26,v4-fixed-ip=192.168.2.201 sles-april21-jerry2
  ERROR (CommandError): No flavor with a name or ID of 'tt-e835a885-e61c-48d7-af23-d4e5dbf04710' exists.

  I think this is a critical issue, please help, thanks.

  --------------------
  1. version:
  [root@controller ~]# rpm -aq | grep nova
  openstack-nova-conductor-2015.1-201504161438.ibm.el7.111.noarch
  openstack-nova-network-2015.1-201504161438.ibm.el7.111.noarch
  openstack-nova-cells-2015.1-201504161438.ibm.el7.111.noarch
  python-novaclient-2.23.0-1.ibm.el7.noarch
  openstack-nova-scheduler-2015.1-201504161438.ibm.el7.111.noarch
  openstack-nova-novncproxy-2015.1-201504161438.ibm.el7.111.noarch
  openstack-nova-objectstore-2015.1-201504161438.ibm.el7.111.noarch
  python-nova-2015.1-201504161438.ibm.el7.111.noarch
  openstack-nova-api-2015.1-201504161438.ibm.el7.111.noarch
  openstack-nova-console-2015.1-201504161438.ibm.el7.111.noarch
  openstack-nova-compute-prereqs-2013.1-201503192011.ibm.2.ppc64
  openstack-nova-compute-2015.1-201504161438.ibm.el7.111.noarch
  openstack-nova-common-2015.1-201504161438.ibm.el7.111.noarch
  openstack-nova-cert-2015.1-201504161438.ibm.el7.111.noarch
  openstack-nova-2015.1-201504161438.ibm.el7.111.noarch

  2. logs:
  only this in nova-api.log
  2015-04-22 04:24:03.051 28320 INFO nova.api.openstack.wsgi [req-09ce810d-fb83-4102-b137-42ea9d67c4dc 1cabd0c96f2c48599ca4220b9b9d3f8f 2a0dc745a17f4b3b9c3b99b3df95084e - - -] HTTP exception thrown: The resource could not be found.

  3. 1) Create a flavor by the code above, then type the cmd as above.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1447039/+subscriptions


Follow ups

References