Commit Graph

39484 Commits

Author SHA1 Message Date
Nikola Dipanov 969a0c5a30 neutron: pci_request logic considers 'direct-physical' vnic type
Since the following change:

If1ab969c2002c649a3d51635ca2765c262e2d37f

Neutron supports this vnic type, which ties in with the work that
enabled PF passthrough.

This patch makes sure to properly translate the 'direct-physical'
vnic-type port from Neutron to a request for a PF.

Change-Id: I51af36fc2edca3404a8f9efb32462f3680944be1
Partially-Implements: sriov-pf-passthrough-neutron-port
2016-03-30 09:36:30 +01:00
Jenkins 281ed64d1a Merge "Cleanup the exception LiveMigrationWithOldNovaNotSafe" 2016-03-30 02:53:48 +00:00
Marcellin Fom Tchassem c52442a01f Cleanup the exception LiveMigrationWithOldNovaNotSafe
It has been reported that the exception LiveMigrationWithOldNovaNotSafe
is not useful since the change
I5651fb7ba95f38e2e2f8a48a98ff04072c6bb885.
This patch will cleanup the definition and the occurences of
that exception.

Change-Id: I7a5b677904d83104c4f5367b0245eebd422e2338
Closes-Bug: #1550282
2016-03-29 21:18:33 +00:00
Jenkins 4261013c83 Merge "libvirt: live_migration_flags/block_migration_flags default to 0" 2016-03-29 20:58:28 +00:00
Jenkins b7b2243541 Merge "Add a vnic type for PF passthrough and a new libvirt vif driver" 2016-03-29 20:56:41 +00:00
Jenkins 6b18b48269 Merge "Fix detach SR-IOV when using LibvirtConfigGuestHostdevPCI" 2016-03-29 18:11:28 +00:00
Jenkins ce018eccea Merge "Config options: centralize section "hyperv"" 2016-03-29 15:03:20 +00:00
Jenkins d63b366bf7 Merge "Fixup test_connection_switch functional test" 2016-03-29 15:01:58 +00:00
Jenkins af8d078d97 Merge "config options: centralize section: "rdp"" 2016-03-29 15:00:05 +00:00
Jenkins af213e89a5 Merge "<VMWare> Allocate free bus for new SCSI controller" 2016-03-29 14:58:30 +00:00
Jenkins 23e0e10a9a Merge "Reduce number of db calls during image cache manager periodic task" 2016-03-29 14:44:21 +00:00
Nikola Dipanov 32069c8f39 Add a vnic type for PF passthrough and a new libvirt vif driver
The new vnic type is defined by Neutron in the following change:

If1ab969c2002c649a3d51635ca2765c262e2d37f

We define it for Nova with this patch, and add a vif driver for plugging PFs -
it's really just a simple hostdev passthrough, which is already used so
we just abstract the code a bit.

The patch that same vif type to Neutron (it got overlooked by the
original work) is here:

https://review.openstack.org/262604

Change-Id: I1dc5601027ac97158d409d799b314a0c49968ce5
Related-blueprint: sriov-pf-passthrough-neutron-port
2016-03-29 13:38:43 +01:00
Sahid Orentino Ferdjaoui 443441af3b libvirt: live_migration_flags/block_migration_flags default to 0
'live_migration_flags' and 'block_migration_flags' are used for
bitwise arithmetic -- they should not default to 'None', but to '0'
instead.

Change-Id: I48e65b0dd977a3dbfdbdaa326d4fb654b4f0da12
2016-03-29 07:30:36 -04:00
Jenkins bc561be8bc Merge "Allow ironic driver to specify cafile" 2016-03-29 11:19:28 +00:00
Jenkins 1ade1760f0 Merge "Populate instance_mappings during boot" 2016-03-29 06:56:21 +00:00
Andrew Laski af7e83fef3 Populate instance_mappings during boot
We need to start populating the mappings of instance to cells. For now a
mapping with a null cell_mapping will indicate that the instance has not
yet been scheduled and that list/show requests should be honored using
the persisted RequestSpec/BuildRequest. That work will be a followup to
this one.

There's no need to leave instance_mappings loitering in the database if
there are no cells yet. So if a scheduled host does not belong to a cell
the instance_mapping will be removed. The instance will be mapped later
as part of the migration process to cellsv2.

Partially-implements: bp add-buildrequest-obj
Change-Id: I6f02e966d2cef85f98b4b64aedd8c352387af15d
2016-03-28 18:32:53 -04:00
Jenkins 2adeb47bf6 Merge "config options: centralize xenserver options" 2016-03-28 21:36:55 +00:00
Daniel P. Berrange 6896e72a8f libvirt: exercise vif driver 'plug' method in tests
The VIF tests currently directly call the VIF type
specific plug_xxx and unplug_xxx methods. Switch the
tests to call the generic plug / unplug methods so
that the tests exercise the dispatch code too.

Change-Id: I0f6c74fece5fe71a704bfc9ac66d810dbf9068ca
2016-03-28 15:30:57 +00:00
Hemanth Makkapati 1e7a3791f1 config options: centralize xenserver options
xenserver config options under 'xenserver' section of nova.conf are
centralized to "nova/conf/xenserver.py"

bp centralize-config-options-newton

Change-Id: I5e7b2fb0ff77ac16047189436e60b0faffbc7f97
2016-03-28 10:25:15 -05:00
Moshe Levi f15d9a9693 Fix detach SR-IOV when using LibvirtConfigGuestHostdevPCI
This patch fixes an issue which was introduced by this
change If3edc1965c01a077eb61984a442e0d778d870d75.
Usually the vif config is of type LibvirtConfigGuestInterface,
but some vif use LibvirtConfigGuestHostdevPCI config
(e.g.  the ib_hostdev). The difference is that
LibvirtConfigGuestInterface keeps the pci address in source_dev
while LibvirtConfigGuestHostdevPCI has domain, bus, slot and
function, instead of relying on the vif config type we can take the
pci address for the neutron port.

Closes-Bug: #1560860

Change-Id: I62a7ff16f1c9c5da923451520fbeeabb5cc0c5c6
2016-03-28 12:45:17 +03:00
Hans Lindgren 990eafe4c4 Reduce number of db calls during image cache manager periodic task
Make a single db call to get bdms for all instances instead of one
call per instance.

Change-Id: I74864b398f2d17a24b9ed676945183401e9872a0
Closes-Bug: #1484847
2016-03-28 10:57:56 +02:00
Jenkins b5e65b4356 Merge "Config options: Centralize ldapdns options" 2016-03-28 06:15:13 +00:00
Matt Riedemann e86b7fbb99 Update cells blacklist regex for test_server_basic_ops
Tempest change 9bee3b92f1559cb604c8bd74dcca57805a85a97a
renamed a test in our blacklist so update the filter to
handle the old and new name.

The Tempest team is hesitant to revert the change so we
should handle it ourselves and eventually move to using
test uuids for our blacklist, but there might need to
be work in devstack-gate for that first.

Change-Id: Ibab3958044c21568d7fbbe0a298bb40bbbc20df3
Closes-Bug: #1562323
2016-03-27 19:31:32 -04:00
Jenkins 8b520bec80 Merge "Enforce migration tests for api database" 2016-03-27 17:43:38 +00:00
Jenkins 143b287a2e Merge "Objectify test_flavors and test_flavors_extra_specs" 2016-03-25 21:22:21 +00:00
Sujitha fc9b005c4a Config options: Centralize ldapdns options
The config options in ldapdns.py got moved
to the new central location "nova/conf/network.py"

Implements: blueprint centralize-config-options-newton

Change-Id: I9436c523d0ad7be8ae5cd177d1ce16a7d73f1eca
2016-03-25 21:12:38 +00:00
Jenkins 0d8042df82 Merge "Add Newton sanity check migration" 2016-03-25 18:56:08 +00:00
Andrew Laski c27a9c0b7c Enforce migration tests for api database
This just copies over the check from the nova database which ensures
that any added migrations have a functional test, unless explicitly
added to a skiplist.

Change-Id: Ib1c483c6e52667d3d7616d5b273efb7b73333b76
2016-03-25 12:52:49 -04:00
Jenkins 49960020f9 Merge "Imported Translations from Zanata" 2016-03-25 16:51:57 +00:00
Jenkins c2d551e392 Merge "Move config options from nova/network/manager.py" 2016-03-25 16:49:37 +00:00
Jenkins 507e1a6f77 Merge "trivial: Fix alignment of wsgi options" 2016-03-25 16:48:21 +00:00
Jenkins 251f594963 Merge "config options: Centralise floating ip options" 2016-03-25 16:46:37 +00:00
Jenkins 8345a6a3bc Merge "config options: Remove 'wsgi_' prefix from opts" 2016-03-25 16:44:16 +00:00
Jenkins 712ca734c1 Merge "Stop providing force_hosts to the scheduler for move ops" 2016-03-25 16:36:00 +00:00
Jenkins c21d268547 Merge "config options: Use OptGroup for listing options" 2016-03-25 15:21:29 +00:00
Dan Smith e991ca196d Objectify test_flavors and test_flavors_extra_specs
This makes these tests use object mocks and methods instead of low-level DB
routines.

This also cleans up several unused stubs from test_flavors_extra_specs
which are useless because the tests are actually exercising the API
validation code, so they never get to the Flavor object or database.

Co-Authored-By: Matt Riedemann <mriedem@us.ibm.com>

Change-Id: I54150cf7cff37ca827dfd8a0290bfe97ed8b8df6
2016-03-25 11:20:54 -04:00
Devananda van der Veen 0230edd708 Allow ironic driver to specify cafile
This patch adds a config option to the [ironic] group, allowing the
operator to specify a cacert file with which to connect to the
ironic-api service.

This corresponds with the way encrypted connections to other OpenStack
services are configured.

Change-Id: Ice1d6c3f6fc911c4f35fe0283e3d1e9dd8b0e1a7
Closes-bug: #1561796
2016-03-25 14:15:07 +00:00
Stephen Finucane 62158db877 trivial: Fix alignment of wsgi options
We're not using Hungarian notation so there's no need to add an
'_opt' suffix on opts. Remove this.

Change-Id: I354d1398f1da30c0d9bb9739cfab74fe397bb042
2016-03-25 13:20:32 +00:00
Stephen Finucane 235864008b config options: Remove 'wsgi_' prefix from opts
Now that the WSGI opts have been added to a group, there's no longer
any reason to keep the 'wsgi_' prefix for some of these opts around.
Remove it, ensuring the old names are stored as deprecated names.

Change-Id: If39bed3ed2335b6f96455870f1a47cb868d21f39
2016-03-25 13:19:19 +00:00
Jenkins 8fccb6425c Merge "config options: Move wsgi options into a group" 2016-03-25 12:07:15 +00:00
Jenkins 9ad64ad7c2 Merge "Make flavor extra_specs operations work against the API DB" 2016-03-25 11:16:41 +00:00
OpenStack Proposal Bot 82f3dcf715 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I22893581040ec2f09d31a8f6309db8fdd2564446
2016-03-25 06:32:05 +00:00
Jenkins e80376e379 Merge "Include CellMapping in InstanceMapping object" 2016-03-25 00:29:06 +00:00
Jenkins b27b063adb Merge "Make Flavor access routines work against API database" 2016-03-24 22:14:10 +00:00
Sylvain Bauza 446d15568e Stop providing force_hosts to the scheduler for move ops
Since now we provide the original RequestSpec for move operations (unshelve,
live-migrate and evacuate), it can also provide the original force_hosts/nodes
to the scheduler.
In that case, it means that if an admin was asking to boot an instance forcing
to an host, a later move operation could then give again the forced value and
then wouldn't permit to get a different destination which is an issue.

TBH, that is not a problem for live-migrate and evacuate that do provide an
optional host value (which bypasses then the scheduler) but since unshelve
is not having this optional value, it would mean that we could only unshelve
an forced instance to the same host.

Change-Id: I03c22ff757d0ee1da9d69fa48cc4bdd036e6b13f
Closes-Bug: #1561357
2016-03-24 23:07:54 +01:00
Andrew Laski cabe2df804 Include CellMapping in InstanceMapping object
Right now InstanceMapping exposes the cell_mappings.id db field which is
just an implementation detail of the db relationship and should not be
exposed in the object. It is also useless as a way to look up the actual
CellMapping through that object interface. And InstanceMapping is only
looked up in order to find a CellMapping.

So the CellMapping should be joined during the db query and loaded on
the InstanceMapping object by default.

Change-Id: Ia8691b76bba310327bfe0995964525409794d1af
2016-03-24 15:05:46 -07:00
Dan Smith 3f3a88686b Make flavor extra_specs operations work against the API DB
We already had loading extra_specs working from the API DB, thanks
to the SQLA relationship. This makes saving them work against it
as well.

This adds a test_save_api() copy of the test_save method with the
appropriate changes, which also increases coverage over the access
changes from a previous patch now that we can run the whole save()
method against API. Later we'll just delete the old test method
when we drop compatibility for saving to the old database.

Further coverage for this will be increased in a later patch,
when we gain the ability to create flavors in the API DB natively,
which will let us try to run more functional tests against flavors
in both databases the way we'd expect in production.

Related to blueprint flavor-cell-api

Change-Id: I63706bde5eaaa9af3b864307b446ed0cf30d8a1b
2016-03-24 13:47:24 -07:00
Dan Smith f092207b9c Make Flavor access routines work against API database
This makes the access-related bits of the Flavor object work when the
flavor is in the API database instead of the main one. Included are
fixes for lazy-loading projects, add/remove access, and the projects
part of save(). In order to try to improve performance, this creates a
property on the object called "in_api" which will detect whether the
flavor is in the API database, caching the true case only so we can
stop checking. This is not a remotable field, which means it won't go
over RPC (and thus doesn't need a version bump), but since we only ever
do the access manipulation from the API, this is fine and we still get
the benefit.

Related to blueprint flavor-cell-api

Change-Id: I03a856235d653cf8831740a344072a897719bfa6
2016-03-24 06:53:51 -07:00
Sean Dague b63177470f Clarify the `use_neutron` option upgrade notes.
Change-Id: Id86021c684c98a8cc7ff81655f64c857a5115420
2016-03-24 13:53:44 +00:00
Jenkins caa8305030 Merge "Try to repopulate instance_group if it is None" 2016-03-24 03:07:20 +00:00