~renukaapte/nova/iscsi-refactor-minor

« back to all changes in this revision

Viewing changes to nova/virt/libvirt_conn.py

  • Committer: Tarmac
  • Author(s): Josh Kearney
  • Date: 2011-04-13 22:03:11 UTC
  • mfrom: (985.1.1 lp754983)
  • Revision ID: tarmac-20110413220311-meoz2icdaeqt4pyt
Try to be nicer to the DB when destroying a libvirt instance.

Show diffs side-by-side

added added

removed removed

Lines of Context:
372
372
                                      instance['id'], state)
373
373
                if state == power_state.SHUTOFF:
374
374
                    break
 
375
 
 
376
                # Let's not hammer on the DB
 
377
                time.sleep(1)
375
378
            except Exception as ex:
376
379
                msg = _("Error encountered when destroying instance '%(id)s': "
377
380
                        "%(ex)s") % {"id": instance["id"], "ex": ex}