Public bug reported:

Description:
=====

Nova allow users to set free-form flavor extra-specs "hw:cpu_policy",
"hw:cpu_thread_policy". But  when boot an instance with that flavor,
nova will raise ValueError and result in HTTP 500.

Reproduce:
=====

# 1. create flavor 11 with an illegal extra_spec "hw:cpu_thread_policy=shared"
$ nova flavor-create test 11 128 1 3
$ nova flavor-key 11 set hw:cpu_policy=dedicated
$ nova flavor-key 11 set hw:cpu_thread_policy=shared

# 2. boot an instance from that malformed flavor 11
$ nova boot --image <image-id> --flavor 11 test

ERROR (ClientException): Unexpected API Error. Please report this at 
http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<type 'exceptions.ValueError'> (HTTP 500) (Request-ID: 
req-a26ad5f3-7982-4361-8817-0ab111ac9ab1)

** Affects: nova
     Importance: Undecided
         Status: New

** Description changed:

  Description:
  =====
  
  Nova allow users to set free-form flavor extra-specs "hw:cpu_policy",
  "hw:cpu_thread_policy". But  when boot an instance with that flavor,
  nova will raise ValueError and result in HTTP 500.
  
- 
  Reproduce:
  =====
  
  # 1. create flavor 11 with an illegal extra_spec "hw:cpu_thread_policy=shared"
  $ nova flavor-create test 11 128 1 3
  $ nova flavor-key 11 set hw:cpu_policy=dedicated
- $nova flavor-key 11 set hw:cpu_thread_policy=shared
+ $ nova flavor-key 11 set hw:cpu_thread_policy=shared
  
  # 2. boot an instance from that malformed flavor 11
- $nova boot --image <image-id> --flavor 11 test
+ $ nova boot --image <image-id> --flavor 11 test
  
  ERROR (ClientException): Unexpected API Error. Please report this at 
http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <type 'exceptions.ValueError'> (HTTP 500) (Request-ID: 
req-a26ad5f3-7982-4361-8817-0ab111ac9ab1)

** Summary changed:

- nova boot unexpected API error
+ nova boot has unexpected API error

-- 
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/1599400

Title:
  nova boot has unexpected API error

Status in OpenStack Compute (nova):
  New

Bug description:
  Description:
  =====

  Nova allow users to set free-form flavor extra-specs "hw:cpu_policy",
  "hw:cpu_thread_policy". But  when boot an instance with that flavor,
  nova will raise ValueError and result in HTTP 500.

  Reproduce:
  =====

  # 1. create flavor 11 with an illegal extra_spec "hw:cpu_thread_policy=shared"
  $ nova flavor-create test 11 128 1 3
  $ nova flavor-key 11 set hw:cpu_policy=dedicated
  $ nova flavor-key 11 set hw:cpu_thread_policy=shared

  # 2. boot an instance from that malformed flavor 11
  $ nova boot --image <image-id> --flavor 11 test

  ERROR (ClientException): Unexpected API Error. Please report this at 
http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <type 'exceptions.ValueError'> (HTTP 500) (Request-ID: 
req-a26ad5f3-7982-4361-8817-0ab111ac9ab1)

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to