It returned RESP:202 even if NoValidHost exception raised when run nova resize

Bug #1314015 reported by Wang Bo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Wang Bo

Bug Description

When I run "nova --debug resize instanceid flavorid", nova scheduler will raise NoValidHost exception If there is no enough resource available on any computer node for the flavor requested. Then nova conductor will catch the exception and report Warning messages as follows:
WARNING nova.scheduler.utils [req-c0d5f130-c5a9-41b7-8fe4-4d08be4cc774 9ed1534f040c43e98293f6bc6b632e96 bd5848810607480d968b6d1ca9a36637] Failed to compute_task_migrate_server: No valid host was found.

However, nova api does not catch exception but response 202. I think this is bug that nova resize failed but return 202 which is Normal Response Code.

By the way, one question is why "CoreFilter" isn't default in "scheduler_default_filters"? That cause scheduler do not check the vcpu resource when run nova resize.
cfg.ListOpt('scheduler_default_filters',
                default=[
                  'RetryFilter',
                  'AvailabilityZoneFilter',
                  'RamFilter',
                  'ComputeFilter',
                  'ComputeCapabilitiesFilter',
                  'ImagePropertiesFilter'
                  ],

Wang Bo (chestack)
Changed in nova:
assignee: nobody → Wang Bo (chrische)
Wang Bo (chestack)
description: updated
Wang Bo (chestack)
description: updated
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/90970

Changed in nova:
status: New → In Progress
Revision history for this message
Tracy Jones (tjones-i) wrote :

this has not been touched in a long time and the patches are abandoned. Please set back to in progress if you start to work on it

Changed in nova:
status: In Progress → Triaged
Revision history for this message
Wang Bo (chestack) wrote :

Patches are abandoned because it's duplicated with https://review.openstack.org/#/c/83423/

Revision history for this message
Wang Bo (chestack) wrote :
Changed in nova:
status: Triaged → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-3 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.