Commit Graph

51548 Commits

Author SHA1 Message Date
Zuul a976a6e2b1 Merge "Fix unbound local when saving an unchanged RequestSpec" 2018-07-04 15:28:12 +00:00
Zuul 07d3844123 Merge "libvirt: add qemu version check when configuring mtu for network" 2018-07-04 14:54:20 +00:00
Zuul 87e1951a1b Merge "Merge server create schema for security group extension" 2018-07-04 06:18:33 +00:00
Zuul ccc3062446 Merge "Remove unused DB API instance_group_member* methods" 2018-07-04 05:37:29 +00:00
Zuul ab4275fb21 Merge "Prevent updating an RP's parent to form a loop" 2018-07-04 05:20:02 +00:00
Zuul 8d994608b8 Merge "Add action initiator attribute to the instance payload" 2018-07-04 05:19:56 +00:00
Zuul 34956bea4b Merge "conf: Resolve Sphinx errors" 2018-07-03 19:02:52 +00:00
Zuul d7ae3f82df Merge "Remove mox in sec group test and functional tests" 2018-07-03 18:59:39 +00:00
Zuul 6a10534526 Merge "[doc] enhance admin/configuration/api.rst" 2018-07-03 18:59:32 +00:00
Zuul 7a57c472bc Merge "conf: Correct documentation for '[pci] passthrough_whitelist'" 2018-07-03 18:59:26 +00:00
shuangyang.qian 2bca6431e6 Add action initiator attribute to the instance payload
The instance action notifications contain the user id and the
project id of the owner of the instance. However an instance
action might be initiated by another user. It could be another
user from the same project or can be an admin from the admin project.
To be able to distinguish between the user who initiated the instance
action from the user owning the instance we need to add two new
fields to the instance action notifications, action_initiator_user
and action_initiator_project

Change-Id: I649d8a27baa8840bc1bb567fef027c749c663432
Closes-bug: #1744658
Blueprint: add-action-initiator-to-instance-action-notifications
2018-07-03 18:45:44 +00:00
Zuul df5c253b58 Merge "Merge server create schema for scheduler hint extension" 2018-07-03 18:11:56 +00:00
Zuul f9ef6eb6f4 Merge "Merge server create schema for multiple create extension" 2018-07-03 18:11:49 +00:00
Zuul 5d59bc6337 Merge "Update xenapi_disable_agent config option usage in docs" 2018-07-03 15:36:53 +00:00
Balazs Gibizer 08fb09e878 Fix unbound local when saving an unchanged RequestSpec
RequestSpec._get_update_primitives() tried to return the unitialized
db_updates field when the object has no changes. This patch initalizes
that local to None and handles that None in create() and save() where
the RequestSpec._get_update_primitives() is called.

Change-Id: Iad256079945bf8b5745ebdcc393c55115dbcab75
Closes-Bug: #1775863
2018-07-03 13:02:54 +00:00
Zuul ee7c39e441 Merge "Handle nested serialized json entries in assertJsonEqual" 2018-07-03 12:54:22 +00:00
Zuul ea06a3138e Merge "Merge server create schema for keypair extension" 2018-07-03 08:31:27 +00:00
Balazs Gibizer 00b13a2e2f Prevent updating an RP's parent to form a loop
Placement had RP loop detection for RP creation but if an RP is created
without a parent (e.g. root RP) then the parent can be set later with a
PUT /resource_providers/{uuid} request by providing the UUID of the
parent. In this code path the loop detection was missing from the
validation. Moreover there are different loop cases for create than for
set. For create the only possible loop is when the RP being created is
points to itself as a parent. However when the parent is provided later
in a PUT the RP being updated can have descendant RPs. Setting a parent
to a descendant also creates a loop.

This patch adds the missing check and returns HTTP 400 if loop is detected.

Closes-Bug: #1779635
Change-Id: I42c91f5f752f0a4fba8b1d95489fc3f87a1c5b6e
2018-07-03 10:08:04 +02:00
Zuul 9382b78542 Merge "Remove mox in unit/network/test_neutronv2.py (1)" 2018-07-02 23:11:09 +00:00
Zuul 499ec02cda Merge "Regression test for bug 1779635" 2018-07-02 21:28:43 +00:00
Zuul 84ebc21ea7 Merge "Request only instance_uuid in ironic node list" 2018-07-02 20:04:07 +00:00
Zuul d34543eb10 Merge "Remove unnecessary execute permissions of a file" 2018-07-02 18:00:31 +00:00
Zuul 90c0982a0b Merge "Fix missing versioned notification examples" 2018-07-02 16:53:51 +00:00
Matt Riedemann ac9acce283 Handle nested serialized json entries in assertJsonEqual
test_pre_live_migration_volume_backed* tests are comparing
primitive versions of LibvirtLiveMigrateData objects which
nest primitive LibvirtLiveMigrateBDMInfo which have
serialized connection_info_json fields in them, which can
have a random key order when comparing which makes the tests
fail. This changes assertJsonEqual to try and deserialize
nested json strings like it does for the top level expected
and observed variables, and updates the test to use
assertJsonEqual.

Change-Id: Ief1634f7e31c473b226e9f19240ecd21840ebdb3
Closes-Bug: #1779711
2018-07-02 12:28:39 -04:00
Sahid Orentino Ferdjaoui e2d7189f4f libvirt: add qemu version check when configuring mtu for network
This adds a QEMU check when configuring MTU for ethernet and bridge
interface types. When creating and configuring tap devices, libvirt is
setting MTU but also configures the virtio-net devices to let it
discovers the MTU used. This QEMU 'host_mtu' option is supported by
QEMU version 2.9 and more.

Closes-Bug: 1779626
Change-Id: I55cf259c715ba129fa8479d1e8a0d11ec15aaa43
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@redhat.com>
2018-07-02 17:47:16 +02:00
Zuul 0ef62de888 Merge "Simplify instance name generation" 2018-07-02 13:18:04 +00:00
Stephen Finucane e2b790e8e8 conf: Resolve Sphinx errors
This resolves all the warnings currently emitted by oslo.config for nova
and makes the output nicer looking to boot. There are still some issues
but these lie without other projects (osprofiler, oslo.db) and will be
resolved in a future update of those packages.

Change-Id: Ie4eddda36439e6746cb2d97e43b91f63d835877b
2018-07-02 14:00:12 +01:00
Zuul 1f91390c52 Merge "Update admin/flavors document" 2018-07-02 12:34:48 +00:00
Zuul 9fa29058c4 Merge "Fix regression when listing build_requests with marker and ip filter" 2018-07-02 12:34:36 +00:00
Zuul 503025873c Merge "Resource tracker: improve resource tracker periodic task" 2018-07-02 12:34:28 +00:00
Zuul c7197ce679 Merge "Clarify log in RT._update_usage_from_migration" 2018-07-02 11:05:25 +00:00
Zuul ccd254acd8 Merge "More config drive docs updates" 2018-07-02 11:04:51 +00:00
Zuul 1307141611 Merge "Use 'version2' when syncing placement db" 2018-07-02 11:04:44 +00:00
Takashi NATSUME 0083b58dc2 Remove unnecessary execute permissions of a file
TrivialFix
Change-Id: I7d014d62878e91b59bf9a52b0e1fe0f9c0c0cad0
2018-07-02 19:40:48 +09:00
Balazs Gibizer 16812e8979 Regression test for bug 1779635
This patch adds a test that shows that placement allows setting the
parent of an RP to itself.

Change-Id: Ie81de7bdd43bfdb2ba48996f79d41efc2d70c1cd
Related-Bug: #1779635
2018-07-02 12:13:56 +02:00
Takashi NATSUME 8f0aa1f35c Update admin/flavors document
Replace nova commands with openstack commands.
Add an example to create a private flavor.
Repopulate the "Modify a flavor" section.
Replace 'extra_spec' with 'extra_specs'.
Fix a wrong link.
Remove rxtx-factor in descriptions and command examples.

Change-Id: I14295dddc302a603a71f71ccb6fcc5745ca7826c
2018-07-02 15:17:52 +09:00
Takashi NATSUME 54d3e7096c Fix missing versioned notification examples
Python 3 is used in executing 'tox -e docs' by default currently.
When Python 3 is used, there are some missing notification examples.

In python 3, map function returns an iterator instead of a list,
and importlib.import_module is not executed in the document generation.
So it causes missing versioned notification examples in the nova docs.

This patch fixes it.

Change-Id: Ie4f3f9be0ca7f94ce00a14f3d825a067a807eb12
Closes-Bug: #1779606
2018-07-02 14:43:49 +09:00
jichen f44d28590b [doc] enhance admin/configuration/api.rst
enhance doc including remove 'nova-api' daemon which is deprecated
to use wsgi instead, and added some operations for password
response.

Change-Id: I4cb7ac55683951aa5900699ba587da03c22fb0a1
2018-07-02 04:24:59 +00:00
Zuul 4ea64cad3f Merge "manage: Remove dead code" 2018-07-02 00:42:58 +00:00
Zuul 54343e9c7e Merge "[placement] fix allocation handler docstring typo" 2018-06-29 23:25:47 +00:00
Zuul da80d8af73 Merge "Fix placement incompatible with webob 1.7" 2018-06-29 23:20:51 +00:00
Zuul 86cefcf55d Merge "Remove mox in nova/tests/unit/virt/xenapi/stubs.py" 2018-06-29 23:13:42 +00:00
Zuul 9b62aeb970 Merge "Merge server create schema for config drive extension" 2018-06-29 18:10:32 +00:00
Zuul bd7253a9d9 Merge "Merge server create schema for BDM v2 extension" 2018-06-29 18:10:20 +00:00
Zuul a7a4f4a367 Merge "Mention PowerVM support of config drive" 2018-06-29 18:10:09 +00:00
Zuul a3ef0e3f23 Merge "Match ComputeNode.uuid to ironic node uuid in RT" 2018-06-29 18:10:00 +00:00
Zuul 44c8aec3f0 Merge "Mention nova-status upgrade check CLI in upgrade doc" 2018-06-29 15:45:58 +00:00
Zuul b2f4ee1bbf Merge "Remove unused DB API instance_group_delete method" 2018-06-29 15:45:50 +00:00
Zuul bd8a14b26c Merge "Fix CLI docs for nova-manage api_db commands" 2018-06-29 15:45:22 +00:00
Zuul 9d2f0ed810 Merge "Remove file injection from config drive sample docs" 2018-06-29 15:45:13 +00:00