← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1410949] Re: nova.server.list() returns bad data

 

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

** No longer affects: nova

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

Title:
  nova.server.list() returns bad data

Status in Python client library for Nova:
  New

Bug description:
  Given a bank of instances:
  =====================

  ID | Server
  8cf19a86-c523-4155-9bce-f78837be8c7d | test1.example.com
  b15ef5bf-35c0-4c83-acd9-f8129fcc364b | test2.example.com
  e0787cd2-5781-4007-b42f-ebee6a0bf1ec | test3.example.com

  The following (simplified) code:
  =========================

  from novaclient.client import Client 
  ...
  nova = Client(2, session=sess)
  ...
  # intentionally take the first item returned in list
  server = nova.servers.list(detailed=True, search_opts={'id': 'FAKE-UUID'})[0]

  Expected:
  ========
  server.id = null  (because no server would be returned)

  Actual:
  ======
  server.id = '8cf19a86-c523-4155-9bce-f78837be8c7d'

  I am not sure if it is returning the next closest serer, the last
  server built, etc. All I know is I am not getting back the server I
  would have expected back.

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-novaclient/+bug/1410949/+subscriptions


References