Commit Graph

53440 Commits

Author SHA1 Message Date
Zuul a37a035c9d Merge "Remove placement from contributor doc" 2019-02-21 13:23:59 +00:00
Zuul 841f02cf1d Merge "Remove link to placement configuration from nova config docs" 2019-02-21 13:23:50 +00:00
Zuul 0235eca3ae Merge "Remove placement from nova install docs" 2019-02-21 13:23:40 +00:00
Zuul e905a69862 Merge "Update nova docs front page for placement removal" 2019-02-21 13:23:32 +00:00
Zuul 34e595f2a7 Merge "doc: fix and clarify --block-device usage in user docs" 2019-02-21 00:29:11 +00:00
Zuul b5a9eab559 Merge "API microversion 2.69: Handles Down Cells Documentation" 2019-02-21 00:29:01 +00:00
Zuul 59b598042f Merge "Fix typo in initial_disk_allocation_ratio release note" 2019-02-21 00:28:49 +00:00
Zuul 28979152b8 Merge "libvirt: Bump MIN_{LIBVIRT,QEMU}_VERSION for "Stein"" 2019-02-21 00:02:13 +00:00
Matt Riedemann 945e7cb2a4 Fix typo in initial_disk_allocation_ratio release note
Change-Id: Ib8becc39ce76847652d3538c3334cc3514ba7a33
Closes-Bug: #1816831
2019-02-20 14:35:01 -05:00
Surya Seetharaman 833af5c9bf API microversion 2.69: Handles Down Cells Documentation
This patch adds the documentation around the work regarding
handling down cells that was introduced in v2.69.

Related to blueprint handling-down-cell

Change-Id: I78ed924a802307a992ff90e61ae7ff07c2cc39d1
2019-02-20 10:10:50 -08:00
Zuul af78b13c24 Merge "Address nits from I9e30a24a4c0640f282f507d0a96640d3cdefe43c" 2019-02-20 16:26:31 +00:00
Zuul 3548cf5921 Merge "Drop the integrated-gate (py27) template" 2019-02-20 04:53:27 +00:00
Zuul bc6091423d Merge "Fix fake DELETE in PlacementFixture" 2019-02-19 20:28:32 +00:00
Zuul 3cb10395ac Merge "api-ref: mention policy defaults for aggregates" 2019-02-19 19:35:23 +00:00
Zuul f384b3b765 Merge "api-ref: warn about changing/unsetting AZ name with instances" 2019-02-19 19:19:52 +00:00
Adam Spiers 94d83e40e1 Fix fake DELETE in PlacementFixture
Currently functional tests cannot test the DELETE method on some API
endpoints, e.g.

    DELETE /placement/traits/{name}

This is because it is not setting the request headers to have the
right microversion API - this setting was added for GET / PUT / POST
in I681712ac37f732c7803c68f6c7d1eae9f2877d3d, but not for DELETE.
Therefore the microversion defaults to 1.0 which for some endpoints is
lower than the required version, e.g. the endpoint above requires a
minimum microversion of 1.6, which is when this API was introduced.

This results in any invocation of _fake_delete() receiving a 404
error, although this error has not been experienced so far because
nothing uses _fake_delete() yet.

In order to enable future functional tests which hit this API call,
set the request headers in a manner consistent with the other HTTP
methods for the same endpoint.

Change-Id: I2e2d9a9ae12404fe66eae64f8767e348012d7932
2019-02-19 00:49:15 +00:00
Zuul d2a87a4446 Merge "create_veth_pair is unused, remove it." 2019-02-18 17:28:48 +00:00
Kashyap Chamarthy 0b1548a988 libvirt: Bump MIN_{LIBVIRT,QEMU}_VERSION for "Stein"
In commit 28d337b[1], we advertized that the NEXT_MIN_LIBVIRT and
NEXT_MIN_QEMU_VERSION for "Stein" will be:

    libvirt 3.0.0 and QEMU 2.8.0

Now that we are in the development cycle for "Stein", bump the
MIN_{LIBVIRT,QEMU}_VERSION to the above agreed-upon versions.

As part of this clean-up:

  - Remove the _create_file_device() function and the calls to it; it is
    a "no-op" when 'virtlogd' is available.  As a result of this, in
    _create_consoles_s390x(), this patch entirely removes the "sclplm"
    serial console device — otherwise 'virtlogd', which is now always
    available, will create a duplicate 'pty' devices ("sclplm" and
    "sclp") pointing to the same log, which results in instance creation
    failure; we don't want that.

  - Remove the requirement for extra serial device (added in commit:
    1f65925: "libvirt: virtlogd: use virtlogd for char devices"), that
    "allows access to a Nova instance via `virsh console <guest>`" in
    _create_pty_device() — it is not required.  I also double-checked
    with libvirt and QEMU developer Daniel Berrangé, who said (slightly
    paraphrasing):

        "Nova should not allow `virsh console` to guests behind its back
        at all.  And especially it should not care about `virsh console`
        working with "tcp".  The point of using "tcp" consoles in Nova
        is that it provides tunneling via the Nova "serial console
        server".  You can only have 1 thing connected to a console at a
        time — so if the Nova serial console is present, `virsh console`
        can't be used anyway."

  - The unit test noise is largely mechanical: remove the superflous
    serial device, and lower the index of the devices by 1.

The following version constants (and corresponding tests), that are now
no longer required, will be removed in separate patches:

    MIN_LIBVIRT_PARALLELS_SET_ADMIN_PASSWD,
    MIN_LIBVIRT_POSTCOPY_VERSION, MIN_{LIBVIRT,QEMU}_LUKS_VERSION,
    MIN_QEMU_FILE_BACKED_VERSION, MIN_LIBVIRT_PERF_VERSION

[1] http://git.openstack.org/cgit/openstack/nova/commit/?id=28d337b --
    Pick next minimum libvirt / QEMU versions for "Stein"

Change-Id: I408baef12358a83921c4693b847a692f6c19e36f
Signed-off-by: Kashyap Chamarthy <kchamart@redhat.com>
2019-02-18 14:49:36 +01:00
Zuul e3c24da89a Merge "API microversion 2.69: Handles Down Cells" 2019-02-17 00:01:31 +00:00
Zuul f635e49493 Merge "Trim fake_deserialize_context in test_conductor" 2019-02-16 18:55:24 +00:00
Zuul 163b074982 Merge "Add context.target_cell() stub to DownCellFixture" 2019-02-16 05:56:40 +00:00
Zuul a2d3ca91c3 Merge "Plumbing required in servers ViewBuilder to construct partial results" 2019-02-16 05:56:32 +00:00
Zuul dd4991230a Merge "Cleanup inflight rpc messages between test cases" 2019-02-16 05:52:11 +00:00
Surya Seetharaman 983abb05d7 API microversion 2.69: Handles Down Cells
This patch introduces a new API microversion which will be
used to alter the responses of ``GET /servers``, ``GET /servers/detail``,
``GET /servers/{server_id}`` and ``GET /os-services`` when a cell is
down to return minimal constructs with missing keys.

Implements blueprint handling-down-cell

Change-Id: Id9f12532897912b39093f63e9286540d9029edeb
2019-02-15 14:39:20 -05:00
Surya Seetharaman 045d883772 Add context.target_cell() stub to DownCellFixture
This is to give the freedom to simulate down cells for each
individual cell targeted function calls.

Part of blueprint handling-down-cell

Change-Id: Ib5bfa1b6365fb78c7d3beb07c561c62ded5cb0e1
2019-02-15 14:39:20 -05:00
Surya Seetharaman 3a1b9abe39 Plumbing required in servers ViewBuilder to construct partial results
This patch specifically adds the returning of the partial
results in the ViewBuilder. Note that this will be enabled in
the microversion bump patch.

Related to blueprint handling-down-cell

Change-Id: Ie101678f8b9f0e624c84a355e6a7249dfe0530c4
2019-02-15 14:39:16 -05:00
Matt Riedemann 102679a1cf Trim fake_deserialize_context in test_conductor
The assertions on the user_id and project_id in the
fake_deserialize_context methods do not actually
cause tests to fail if they raise MismatchError
because oslo.messaging just swallows the exception
and logs the traceback. With enough of these getting
logged it will cause subunit parser failures in the
console output because the stream is too large.

This removes the fake method and just changes the
stub to be a lambda that returns self.context which
is what fake_deserialize_context was doing minus
the project_id/user_id assertions.

Change-Id: I26b201b410aa1d965dc7a6635c11c8b63b457a71
Partial-Bug: #1813147
2019-02-15 18:28:58 +01:00
Balazs Gibizer 6b844af57e Cleanup inflight rpc messages between test cases
The oslo_messaging._drivers.impl_fake.FakeExchangeManager._exchanges [1]
is a dict keyed by exchange name, "nova" for the nova services, and the
value is a FakeExchange that simulate a message bus for our tests.
It is basically a queue holding messages between FakeDriver instances
running in our rpc servers.

As FakeExchangeManager._exchanges is a class level variable it does not
get re-initialized between test cases that are running in the same
process.

So one test case can put an rpc message in the exchange that gets
delivered to the rpc server in a subsequent test case. This issue
made visible by the first patch set of the patch[2]

[1] https://github.com/openstack/oslo.messaging/blob/648ad56c8652d83d3b1cae745488bb8e0450febd/oslo_messaging/_drivers/impl_fake.py#L149
[2] https://review.openstack.org/#/c/635859/1

Change-Id: Ie60d783a970029371ec834aa26ca98252cdab83b
2019-02-15 18:28:58 +01:00
Zuul 880327cc31 Merge "Make VolumeAttachmentsSampleV249 test other methods" 2019-02-15 16:48:53 +00:00
Zuul d231a420d0 Merge "Libvirt: do not set MAC when unplugging macvtap VF" 2019-02-15 14:46:17 +00:00
Zuul 8e9fa1ad1e Merge "api-ref: Add descriptions for vol-backed snapshots" 2019-02-15 05:24:51 +00:00
Zuul 72273dec5f Merge "Remove get_config_vhostuser" 2019-02-15 04:34:23 +00:00
Zuul b25cc78ecb Merge "Fix deps for api-samples tox env" 2019-02-15 02:18:17 +00:00
Zuul c49d8eeae5 Merge "Default zero disk flavor to RULE_ADMIN_API in Stein" 2019-02-15 02:18:05 +00:00
Zuul 8c2dd6166f Merge "Change nova-next tempest test regex" 2019-02-15 02:05:43 +00:00
Zuul 505ff09233 Merge "Fix a missing policy in test policy data" 2019-02-15 01:56:16 +00:00
Zuul 3b3d0442e4 Merge "Remove deprecated 'os-flavor-manage' policy" 2019-02-15 01:56:08 +00:00
Zuul a4e6340bdc Merge "Lock detach_volume" 2019-02-14 21:46:53 +00:00
Zuul 3182721a85 Merge "Change sqlalchemy warnings filter to an error" 2019-02-14 21:46:37 +00:00
Zuul 5c18dc108e Merge "Change live_migration_wait_for_vif_plug=True by default" 2019-02-14 19:24:33 +00:00
Zuul 38cefd9ece Merge "Switch to using os-resource-classes" 2019-02-14 19:08:52 +00:00
Zuul 18d2f7f5b3 Merge "Replace glance command with openstack command" 2019-02-14 19:08:35 +00:00
Zuul ec884967bd Merge "Ensure config regexes match the entire string" 2019-02-14 19:08:21 +00:00
Zuul 4a92b338d9 Merge "Don't set bandwidth limits for vhostuser, hostdev interfaces" 2019-02-14 17:18:02 +00:00
Zuul 84682d8e7b Merge "Remove PLACEMENT_DB_ENABLED from nova-next job config" 2019-02-14 17:05:44 +00:00
Zuul 3505fde741 Merge "doc: specify --os-compute-api-version when setting flavor description" 2019-02-14 17:05:32 +00:00
Zuul ca197f3dbe Merge "Use math.gcd starting with python 3.5" 2019-02-14 17:05:22 +00:00
Matt Riedemann e3c089bf1d Make VolumeAttachmentsSampleV249 test other methods
The 2.49 microversion for the os-volume_attachments API
only changes the POST action to attach a volume with a tag.
But we should make sure 2.49 is backward compatible on the
GET, PUT and DELETE methods for the same API.

This makes VolumeAttachmentsSampleV249 extend
VolumeAttachmentsSample and also removes duplicate code
by adding the _get_vol_attachment_subs method.

In addition, VolumeAttachmentsSampleV249OldCinderFlow is
removed since it didn't really work properly (it was missing
a few stubs) and was redundant with the test_tagged_attach_volume
unit test found in nova.tests.unit.test_compute_api.

Change-Id: I757576d3474997c49c67745fb245122fc2c6decc
2019-02-14 10:52:21 -05:00
Matt Riedemann 6ae35e11b8 Fix deps for api-samples tox env
The api-samples tox target fails since it needs the
PlacementFixture which comes from the placement repo.
This fixes it by using the same deps trick as the other
functional test environments.

As a result, the shared environment is also removed.

Change-Id: I815b8b3cff5dcbb0fc4be5f1d85019111c2009e5
2019-02-14 10:51:15 -05:00
Takashi NATSUME 72028ff8b9 Fix a missing policy in test policy data
Add the 'os_compute_api:os-flavor-manage:update'
in the test policy data in nova/tests/unit/fake_policy.py.
It should have been added in
Ib16b0de82f9f9492f5cacf646dc3165a0849d75e.

TrivialFix
Change-Id: Ibbdcec1c9c5b897eb6dab993ece0535f307025ab
2019-02-14 15:01:03 +00:00