nova scheduler overwrites instance fault and masks underlying compute driver problems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Undecided
|
Guangya Liu (Jay Lau) |
Bug Description
Exceptions thrown from the driver are not being surfaced in the instance faults - e.g., when a failure occurs and you run [nova show <vm-name>], if there are some error occurred in nova scheduler, then you always see the nova scheduler exceptions of "No valid host." etc instead of the driver problems...which is especially important if/when the last compute node happens to fail. nova scheduler shouldn't be updating the instance fault in the case of when the driver was called and spawn through an error... Nova scheduler should only do this when it blocks requests prior to even invoking the driver.
From filter_scheduler.py in schedule_
Nova scheduler should not overwrite the instance exceptions from nova compute, this is very important for customer debugging.
for num, instance_uuid in enumerate(
request_
try:
try:
except IndexError:
raise exception.
except Exception as ex:
# NOTE(vish): we don't reraise the exception here to make sure
# that all instances in the request get set to
# error properly
# scrub retry host list in case we're scheduling multiple
# instances:
retry = filter_
retry[
Changed in nova: | |
status: | New → Confirmed |
Changed in nova: | |
assignee: | nobody → Jay Lau (jay-lau-513) |
Seems like duplicate with https:/ /bugs.launchpad .net/nova/ +bug/1161661 .