← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1314015] [NEW] It returned RESP:202 even if NoValidHost exception raised when run nova resize

 

Public bug reported:

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, it will return HTTP 202 response in the nova client log. I
think this is bug that nova resize failed but return 202 which is Normal
Response Code.

By the way, why "CoreFilter"(but RamFilter is there) isn't default in "scheduler_default_filters"?  If that scheduler will not check the vcpu resource when run nova resize.
cfg.ListOpt('scheduler_default_filters',
                default=[
                  'RetryFilter',
                  'AvailabilityZoneFilter',
                  'RamFilter',
                  'ComputeFilter',
                  'ComputeCapabilitiesFilter',
                  'ImagePropertiesFilter'
                  ],

** Affects: nova
     Importance: Undecided
         Status: New

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

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

Status in OpenStack Compute (Nova):
  New

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, it will return HTTP 202 response in the nova client log. I
  think this is bug that nova resize failed but return 202 which is
  Normal Response Code.

  By the way, why "CoreFilter"(but RamFilter is there) isn't default in "scheduler_default_filters"?  If that scheduler will not check the vcpu resource when run nova resize.
  cfg.ListOpt('scheduler_default_filters',
                  default=[
                    'RetryFilter',
                    'AvailabilityZoneFilter',
                    'RamFilter',
                    'ComputeFilter',
                    'ComputeCapabilitiesFilter',
                    'ImagePropertiesFilter'
                    ],

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


Follow ups

References