This commit adds a newly added tempest test to the cells exclude list.
The test is always failing on cells and it's because it's doing
operations that don't work with cells turned on. So lets exclude it
for now. Ideally all this skip logic will be in the tempest config and
we don't have to do this anymore.
Closes-Bug: #1543253
Change-Id: Ic9db51a41f95b0d18f97745a0da7e99fdfa21e51
The version tests are slow. They account for 14 of the top 100 slow unit
tests:
http://paste.openstack.org/show/485806/
These tests create a bunch fake WSGI apps, each costing as much as 0.5
seconds. This patch reduces the cost of creating those fakes by using
the init_only option, and stubbing out extension loading. It also
reduces the number of fakes created (see ncalls).
$ tox -e py27 nova.tests.unit.api.openstack.compute.test_versions
Before:
total runtime: 27.5037 sec
ncalls tottime percall cumtime percall filename:lineno(function)
18 0.001 0.000 7.251 0.403 fakes.py:67(wsgi_app)
ncalls tottime percall cumtime percall filename:lineno(function)
14 0.001 0.000 7.399 0.529 fakes.py:90(wsgi_app_v21)
After:
total runtime: 1.3134 sec
ncalls tottime percall cumtime percall filename:lineno(function)
10 0.000 0.000 0.154 0.015 fakes.py:67(wsgi_app)
ncalls tottime percall cumtime percall filename:lineno(function)
14 0.001 0.000 0.192 0.014 fakes.py:89(wsgi_app_v21)
Change-Id: I2f659dd70af041ad32770e7b52a95af2b0f6ce74
These tests create a bunch fake WSGI apps. This patch reduces the cost
of creating those fakes by using the init_only option. It also reduces
the number of fakes created (see ncalls).
This patch also fixes a couple one item tuples that weren't actually
tuples because they were missing the comma.
$ tox -e py27 nova.tests.unit.api.openstack.compute.test_flavor
Before:
total runtime: 24.1443 sec
ncalls tottime percall cumtime percall filename:lineno(function)
43 0.002 0.000 1.058 0.025 fakes.py:89(wsgi_app_v21)
ncalls tottime percall cumtime percall filename:lineno(function)
43 0.001 0.000 6.196 0.144 fakes.py:67(wsgi_app)
After:
total runtime: 11.7713 sec
ncalls tottime percall cumtime percall filename:lineno(function)
14 0.001 0.000 0.280 0.020 fakes.py:89(wsgi_app_v21)
ncalls tottime percall cumtime percall filename:lineno(function)
14 0.000 0.000 0.178 0.013 fakes.py:67(wsgi_app)
Change-Id: Ibce0e009fc7348dbff4f8db994d0ba74dadcc5e9
There is a chunk of what turns out to be largely busy work in trying
to land a microversion by adjusting a set of tests to always have the
new max microversion. Many of these can be parametrized so that is not
needed (and reduces some nearly irrelevant changes to every
microversion patch).
This doesn't reduce any test coverage. The api_samples static docs
still need to get updated, so docs won't be missed. The intentionally
created merge conflicts on rest_api_version_history.rst will ensure
bumps are required.
Change-Id: I0765b4a6b33fed77b210f72dcd281eb6aad8f564
oslo.config is very specific about what is allowed to be overridden in
our flags method. When run as a whole, the functional tests import
enough stuff so that all the tests pass. But if you attempt to run
just the versions tests, they will fail with an import error. This is
because the api_samples_base references osapi_compute_link_prefix and
osapi_compute_extension in all cases.
Adding this to the base class makes these tests runnable on their own.
Change-Id: I6e9800fdfb7a3c8495de71220bfec0597e45da82
Add a microversion change to the os-instance-actions API so that we
mutate the context to set 'read_deleted="yes"' when looking up the
instance.
Blueprint: os-instance-actions-read-deleted-instances
Change-Id: I607a28bbe06e20e17ee47a283e06b1d42b5c0e84
When we do live migration with QEMU/KVM driver,
we use hostname of target compute node as the
target of live migration. So the RPC call and live
migration traffic will be in same network plane.
This patch adds a new option live_migration_inbound_addr
in configuration file, set None as default value.
When pre_live_migration() executes on destination host, set
the option into pre_migration_data, if it's not None.
When driver.live_migration() executes on source host,
if this option is present in pre_migration_data, the ip/hostname
address is used instead of CONF.libvirt.live_migration_uri
as the uri for live migration, if it's None, then the
mechanism remains as it is now.
This patch (BP) focuses only on the QEMU/KVM driver,
the implementations for other drivers should be done
in a separate blueprint.
DocImpact:new config option "live_migration_inbound_addr" will be added.
Change-Id: I81c783886497a844fb4b38d0f2a3d6c18a99831c
Co-Authored-By: Rui Chen <chenrui.momo@gmail.com>
Implements: blueprint split-network-plane-for-live-migration
The following test classes don't access the database, so make them
extend NoDBTestCase.
- CellsMessageClassesTestCase
- CellsBroadcastMethodsTestCase
- CellsPublicInterfacesTestCase
- CellsTargetedMethodsTestCase
Note: I moved the one test (out of 108) that accessed the database into
its own test class.
Change-Id: I72f87f7aca5a412d2dab472be722a6e76ea1481d