← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1221527] Re: Exception message that is different from the expected

 

** Changed in: nova
       Status: Fix Committed => Fix Released

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

Title:
  Exception message that is different from the expected

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  When an exception ProjectUserQuotaNotFound occurs, the message "Quota
  could not be found" was obtained.  I think that expecting "Quota for
  user XXX in project YYY could not be found." as follows.

  Traceback (most recent call last):
    File "/opt/stack/nova/nova/tests/test_quota.py", line 480, in test_get_by_project_and_user_with_wrong_resource
      'fake_user', 'wrong_resource')
    File "/opt/stack/nova/nova/quota.py", line 1066, in get_by_project_and_user
      user_id, resource)
    File "/opt/stack/nova/nova/tests/test_quota.py", line 247, in get_by_project_and_user
      user_id=user_id)
  ProjectUserQuotaNotFound: Quota for user fake_user in project test_project could not be found.

  
  As a similar problem, when an exception ConsoleTypeUnavailable occurs,
  the message "Unacceptable parameters." was obtained.  I think that
  expecting "Unavailable console type XXX." as follows.

  Traceback (most recent call last):
    File "/opt/stack/nova/nova/tests/virt/libvirt/test_libvirt.py", line 5020, in test_get_spice_console_unavailable
      conn.get_spice_console(instance_ref)
    File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2155, in get_spice_console
      ports = get_spice_ports_for_instance(instance['name'])
    File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2153, in get_spice_ports_for_instance
      raise exception.ConsoleTypeUnavailable(console_type='spice')
  ConsoleTypeUnavailable: Unavailable console type spice.

  Traceback (most recent call last):
    File "/opt/stack/nova/nova/tests/virt/libvirt/test_libvirt.py", line 4979, in test_get_vnc_console_unavailable
      conn.get_vnc_console(instance_ref)
    File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2135, in get_vnc_console
      port = get_vnc_port_for_instance(instance['name'])
    File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2133, in get_vnc_port_for_instance
      raise exception.ConsoleTypeUnavailable(console_type='vnc')
  ConsoleTypeUnavailable: Unavailable console type vnc.

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