← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1800508] Re: Missing exception handling mechanism in 'schedule_and_build_instances' for DBError at line 1180 of nova/conductor/manager.py

 

** Tags removed: fault
** Tags added: fault-injection

** Changed in: nova
       Status: Triaged => Opinion

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

Title:
  Missing exception handling mechanism in 'schedule_and_build_instances'
  for DBError at line 1180 of nova/conductor/manager.py

Status in OpenStack Compute (nova):
  Opinion

Bug description:
  Description
  ==============
  If an error occurs during instance creation, the user won't be able to know what exactly happened with the VM that remains always building. As usual, the workflow of creating a VM was interrupted by an exception in the method schedule_and_build_instances, so the result would be the VM is in 'error' state.

  Steps to reproduce
  =====================
  1) Create a VM;
  2) Inject an out-of-range value in "schedule_and_build_instances.args.build_requests->'nova_object.data'.instance.'nova_object.data'.instance_type_id", this will be enough to cause a DBError. For instance, it can be used the 1E+22 value.
  3) An exception will be thrown, but seems there no exist an appropriate action when this DBError happens.

  Expected result
  ==================
  The VM is put in 'error' state

  Actual result
  ================
  The VM is in 'build' state indeterminately, and the user never will know (without searching in the logs) what happened with the VM.

  Environment
  ==============
  Devstack/Stable/Queens.

  Logs & Configs
  =================
  Logs attached.

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


References