yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #62636
[Bug 1675607] Re: test_list_migrations_in_flavor_resize_situation fails with NoValidHost - AvailabilityZoneFilter returned 0 hosts
Reviewed: https://review.openstack.org/449640
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=8c3aa8df249f02b6e14079f073870f8f0b6816cb
Submitter: Jenkins
Branch: master
commit 8c3aa8df249f02b6e14079f073870f8f0b6816cb
Author: Dan Smith <dansmith@xxxxxxxxxx>
Date: Fri Mar 24 07:02:29 2017 -0700
Remove legacy regeneration of RequestSpec in MigrationTask
Previously we regenerated the RequestSpec from details in the Instance
before we had the full original object available to us. That is no
longer necessary and means we will not honor some of the original
request. Remove that now.
Change-Id: I195d389ac59574724a5e7202ba1a17d92c53a676
Closes-Bug: #1675607
** Changed in: nova
Status: In Progress => Fix Released
--
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/1675607
Title:
test_list_migrations_in_flavor_resize_situation fails with NoValidHost
- AvailabilityZoneFilter returned 0 hosts
Status in OpenStack Compute (nova):
Fix Released
Bug description:
Seen here:
http://logs.openstack.org/62/449362/1/check/gate-tempest-dsvm-py35
-ubuntu-xenial/ec959b4/console.html#_2017-03-24_00_27_47_508109
2017-03-24 00:27:47.508109 | tempest.api.compute.admin.test_migrations.MigrationsAdminTest.test_list_migrations_in_flavor_resize_situation[id-1b512062-8093-438e-b47a-37d2f597cd64]
2017-03-24 00:27:47.508149 | ------------------------------------------------------------------------------------------------------------------------------------------------------
2017-03-24 00:27:47.508155 |
2017-03-24 00:27:47.508165 | Captured traceback:
2017-03-24 00:27:47.508175 | ~~~~~~~~~~~~~~~~~~~
2017-03-24 00:27:47.508214 | b'Traceback (most recent call last):'
2017-03-24 00:27:47.508256 | b' File "/opt/stack/new/tempest/tempest/api/compute/admin/test_migrations.py", line 47, in test_list_migrations_in_flavor_resize_situation'
2017-03-24 00:27:47.508277 | b' self.resize_server(server_id, self.flavor_ref_alt)'
2017-03-24 00:27:47.508303 | b' File "/opt/stack/new/tempest/tempest/api/compute/base.py", line 364, in resize_server'
2017-03-24 00:27:47.508327 | b' cls.servers_client.resize_server(server_id, new_flavor_id, **kwargs)'
2017-03-24 00:27:47.508358 | b' File "/opt/stack/new/tempest/tempest/lib/services/compute/servers_client.py", line 279, in resize_server'
2017-03-24 00:27:47.508377 | b" return self.action(server_id, 'resize', **kwargs)"
2017-03-24 00:27:47.508405 | b' File "/opt/stack/new/tempest/tempest/lib/services/compute/servers_client.py", line 191, in action'
2017-03-24 00:27:47.508416 | b' post_body)'
2017-03-24 00:27:47.508442 | b' File "/opt/stack/new/tempest/tempest/lib/common/rest_client.py", line 277, in post'
2017-03-24 00:27:47.508466 | b" return self.request('POST', url, extra_headers, headers, body, chunked)"
2017-03-24 00:27:47.508496 | b' File "/opt/stack/new/tempest/tempest/lib/services/compute/base_compute_client.py", line 48, in request'
2017-03-24 00:27:47.508515 | b' method, url, extra_headers, headers, body, chunked)'
2017-03-24 00:27:47.508541 | b' File "/opt/stack/new/tempest/tempest/lib/common/rest_client.py", line 666, in request'
2017-03-24 00:27:47.508557 | b' self._error_checker(resp, resp_body)'
2017-03-24 00:27:47.508585 | b' File "/opt/stack/new/tempest/tempest/lib/common/rest_client.py", line 777, in _error_checker'
2017-03-24 00:27:47.508605 | b' raise exceptions.BadRequest(resp_body, resp=resp)'
2017-03-24 00:27:47.508622 | b'tempest.lib.exceptions.BadRequest: Bad request'
2017-03-24 00:27:47.508649 | b"Details: {'code': 400, 'message': 'No valid host was found. No valid host found for resize'}"
2017-03-24 00:27:47.508656 | b''
From the scheduler logs:
http://logs.openstack.org/62/449362/1/check/gate-tempest-dsvm-py35
-ubuntu-
xenial/ec959b4/logs/screen-n-sch.txt.gz#_2017-03-24_00_00_55_499
2017-03-24 00:00:55.498 24173 DEBUG nova.scheduler.filters.availability_zone_filter [req-5060a632-af41-477e-aa2c-bf991703f8db tempest-MigrationsAdminTest-780851299 tempest-MigrationsAdminTest-780851299] Availability Zone 'tempest-test_az-1317288057' requested. (ubuntu-xenial-ovh-bhs1-8052498, ubuntu-xenial-ovh-bhs1-8052498) ram: 6960MB disk: 50176MB io_ops: 5 instances: 5 has AZs: nova host_passes /opt/stack/new/nova/nova/scheduler/filters/availability_zone_filter.py:59
2017-03-24 00:00:55.499 24173 INFO nova.filters [req-5060a632-af41-477e-aa2c-bf991703f8db tempest-MigrationsAdminTest-780851299 tempest-MigrationsAdminTest-780851299] Filter AvailabilityZoneFilter returned 0 hosts
2017-03-24 00:00:55.499 24173 DEBUG nova.filters [req-5060a632-af41-477e-aa2c-bf991703f8db tempest-MigrationsAdminTest-780851299 tempest-MigrationsAdminTest-780851299] Filtering removed all hosts for the request with instance ID 'a0b65d74-e1c4-4c70-ae65-5ee577872919'. Filter results: [('RetryFilter', [('ubuntu-xenial-ovh-bhs1-8052498', 'ubuntu-xenial-ovh-bhs1-8052498')]), ('AvailabilityZoneFilter', None)] get_filtered_objects /opt/stack/new/nova/nova/filters.py:129
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1675607/+subscriptions
References