← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1284658] Re: VMware: refactor how we iterate result objects from vCenter

 

This is an automated cleanup. This bug report has been closed because it
is older than 18 months and there is no open code change to fix this.
After this time it is unlikely that the circumstances which lead to
the observed issue can be reproduced.

If you can reproduce the bug, please:
* reopen the bug report (set to status "New")
* AND add the detailed steps to reproduce the issue (if applicable)
* AND leave a comment "CONFIRMED FOR: <RELEASE_NAME>"
  Only still supported release names are valid (LIBERTY, MITAKA, OCATA, NEWTON).
  Valid example: CONFIRMED FOR: LIBERTY


** Changed in: nova
   Importance: Low => Undecided

** Changed in: nova
       Status: Confirmed => Expired

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

Title:
  VMware: refactor how we iterate result objects from vCenter

Status in OpenStack Compute (nova):
  Expired

Bug description:
  There is lot of duplicate code which does the following (pseudo code):

  result = session.get_objects_from_vcenter()
  while result:
      do_something(result)
      token = get_token(result)
      if token:
          result = session.continue_to_get_objects(token)
      else:
          break

  The part that retrieves more objects if token is returned is repeated
  over and over again. We need to come up with a common utility (e.g. an
  iterator) which abstracts this boilerplate and then have something
  like:

  for result in session.get_objects():
      do_something_with_result(result)

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


References