← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1533083] Re: useless HTTP info in the error info for creating existing flavor

 

Thank you very much. Marking invalid for nova, adding python-novaclient
as affects.

** Also affects: python-novaclient
   Importance: Undecided
       Status: New

** Changed in: nova
       Status: New => Invalid

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

Title:
  useless HTTP info in the error info for creating existing flavor

Status in OpenStack Compute (nova):
  Invalid
Status in python-novaclient:
  New

Bug description:
  [Summary]
  useless HTTP info in the error info for creating existing flavor
  [Topo]
  devstack all-in-one node

  [Description and expect result]
  no useless HTTP info in the error info for creating existing flavor

  [Reproduceable or not]
  reproduceable 

  [Recreate Steps]
  1) create an existing flavor:
  root@45-59:/opt/stack/devstack# nova flavor-create --is-public
   false f1 13 1024 1 1
  ERROR (Conflict): Flavor with name f1 already exists. (HTTP 409) 
  (Request-ID: req-3769491c-5f82-4064-8b45-ef1a3442957d)
  root@45-59:/opt/stack/devstack# 

  ISSUE: For a cli user, the info "ERROR (Conflict): Flavor with name
   f1 already exists." is enough, it let user know what happened. 
  But the info "HTTP 409" is useless

  2) same issue when remove a non-existing flavor-access:
  root@45-59:/opt/stack/devstack# nova  flavor-access-remove 13 adminm
  ERROR (NotFound): Flavor access not found for 13 / adminm combination.
   (HTTP 404) (Request-ID: req-2eeb9656-72a9-45d8-bbe0-48536c8e0b5d)
  root@45-59:/opt/stack/devstack# 

  3)Below is the error info when remove a non-existing flavor for reference:
  root@45-59:/opt/stack/devstack# nova flavor-delete aa
  ERROR (CommandError): No flavor with a name or ID of 'aa' exists.
  root@45-59:/opt/stack/devstack# 


  [Configration]
  reproduceable bug, no need

  [logs]
  reproduceable bug, no need

  [Root cause anlyze or debug inf]
  reproduceable bug

  [Attachment]
  None

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


References