Commit Graph

38695 Commits

Author SHA1 Message Date
Matthew Treinish 674531df15 Add new test_rebuild_instance_with_volume to cells exclude list
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
2016-02-08 19:10:52 +00:00
Jenkins f6e2c33271 Merge "Database not needed for most cells messaging tests" 2016-02-08 15:01:27 +00:00
Jenkins 527ba87ff0 Merge "Allow all api_samples tests to be run individually" 2016-02-08 14:50:12 +00:00
Jenkins 06690546e3 Merge "Imported Translations from Zanata" 2016-02-08 13:53:44 +00:00
Jenkins c47f9037e2 Merge "Database not needed for most nova manage tests" 2016-02-08 13:16:52 +00:00
Jenkins f9858f95e3 Merge "Database not needed for RPC serializer tests" 2016-02-08 13:16:09 +00:00
Jenkins ea9e12d176 Merge "Database not needed for test class: ConductorImportTest" 2016-02-08 13:15:18 +00:00
Jenkins 4e9a69ec6e Merge "Database not needed for test class: ConsoleAPITestCase" 2016-02-08 13:13:50 +00:00
Jenkins 7475ba0083 Merge "Database not needed for test class: PciGetInstanceDevs" 2016-02-08 13:12:55 +00:00
Jenkins 163d62d541 Merge "Top 100 slow tests: api.openstack.compute.test_versions" 2016-02-08 13:12:02 +00:00
Jenkins 0b161dcec5 Merge "Database not needed for most crypto tests" 2016-02-08 13:11:06 +00:00
Jenkins 9ee136a98c Merge "ebtables/libvirt workaround" 2016-02-08 13:10:20 +00:00
Jenkins fec6f9dae2 Merge "Top 100 slow tests: api.openstack.compute.test_flavor*" 2016-02-08 12:28:14 +00:00
OpenStack Proposal Bot 83be8a0dd9 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I5d1e41f461dbb8c9b15997d122ff222bdc2858f9
2016-02-08 07:01:33 +00:00
Jenkins 5c8edcc697 Merge "parametrize max_api_version in tests" 2016-02-08 05:36:59 +00:00
Diana Clarke b702787a4d Top 100 slow tests: api.openstack.compute.test_versions
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
2016-02-07 17:37:11 -05:00
Diana Clarke 9e29ba9afc Top 100 slow tests: api.openstack.compute.test_flavor*
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
2016-02-07 17:03:24 -05:00
Jenkins 197bd6dd12 Merge "libvirt: use osinfo when configuring the disk bus" 2016-02-07 04:08:55 +00:00
Jenkins 1ec0b56ec8 Merge "libvirt: use osinfo when configuring network model" 2016-02-06 21:03:28 +00:00
Jenkins 47c1e25606 Merge "Make os-instance-action read deleted instances." 2016-02-06 05:58:12 +00:00
Jenkins 796922db9e Merge "Optimize Instance.create() for optional extra fields" 2016-02-06 03:54:33 +00:00
Jenkins 559b8aaea8 Merge "Optimize servers path by pre-joining numa_topology" 2016-02-06 03:53:25 +00:00
Jenkins b31257359f Merge "Add test coverage to functional api tests _compare_result method" 2016-02-06 03:52:06 +00:00
Jenkins 4a941af1df Merge "enginefacade: test_db_api cleanup, missed decorators" 2016-02-06 03:51:03 +00:00
Jenkins 23471b00e8 Merge "Updated from global requirements" 2016-02-06 03:49:52 +00:00
Jenkins 9f7eebec2b Merge "Add a TODO to make ComputeNode.cpu_info non-nullable" 2016-02-06 03:48:44 +00:00
Jenkins ea3bc0b68c Merge "enginefacade: 'flavor'" 2016-02-06 00:50:29 +00:00
Sean Dague d359196c32 parametrize max_api_version in tests
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
2016-02-05 18:54:58 -05:00
Jenkins a3ed10753e Merge "Gracefully handle a deleting instance during rebuild" 2016-02-05 23:51:26 +00:00
Jenkins 6e1051b7ce Merge "virt: adjusting the osinfo tests to use fakelibosinfo" 2016-02-05 17:34:07 +00:00
Jenkins 1ad12fc5c1 Merge "Split-network-plane-for-live-migration" 2016-02-05 17:28:22 +00:00
Sean Dague 45474089b8 Allow all api_samples tests to be run individually
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
2016-02-05 08:11:03 -05:00
Mark Doffman 934a0e4ede Make os-instance-action read deleted instances.
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
2016-02-05 07:59:52 -05:00
Pavel Kholkin c85cd57c5c enginefacade: 'flavor'
Use enginefacade in 'flavor' section.

Implements: blueprint new-oslodb-enginefacade

Co-Authored-By: Sergey Nikitin <snikitin@mirantis.com>

Closes-Bug: #1528250

Change-Id: I2f57bb46d087948792e749905a0c060d009fbcf8
2016-02-05 12:16:47 +00:00
Jenkins 07573aff23 Merge "Remove all remaining references to Quantum" 2016-02-05 08:16:17 +00:00
Jenkins f696f18db4 Merge "Replace exit() by sys.exit()" 2016-02-05 07:37:40 +00:00
OpenStack Proposal Bot 15043e547e Updated from global requirements
Change-Id: Ib3f0d8dfae66f4692cab91932e285797f2d3dcc6
2016-02-05 05:11:04 +00:00
Jenkins 749cc08372 Merge "Enable volume operations for shelved instances" 2016-02-05 03:29:21 +00:00
Jenkins 355fc69029 Merge "Adding volume operations for shelved instances" 2016-02-05 03:28:18 +00:00
Jenkins 7ae444a96f Merge "Optimize the instance fetched by floating_ips API" 2016-02-05 02:47:07 +00:00
Kevin_Zheng af41accff9 Split-network-plane-for-live-migration
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
2016-02-05 09:13:05 +08:00
Jenkins 3c884ef792 Merge "Test that new tables don't use soft deletes" 2016-02-05 00:04:19 +00:00
Jenkins db56476843 Merge "No need to have ironicclient parameter in methods" 2016-02-04 20:24:25 +00:00
Jenkins 7ccf828285 Merge "config options: add hacking check for help text length" 2016-02-04 20:23:00 +00:00
Jenkins 075671533a Merge "config options: Centralise 'vnc' options" 2016-02-04 20:16:13 +00:00
Jenkins 6bb0d945b7 Merge "config options: Make noVNC proxy into vnc group" 2016-02-04 19:17:01 +00:00
Jenkins bd5eb572ae Merge "Switch to oslo.cache lib" 2016-02-04 19:14:30 +00:00
Jenkins 1d60f5b51b Merge "Return empty object list instead []" 2016-02-04 19:13:24 +00:00
Jenkins 45003ef03f Merge "Update the home-page" 2016-02-04 18:47:48 +00:00
Diana Clarke 7d438d2c0f Database not needed for most cells messaging tests
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
2016-02-04 12:00:12 -05:00