Commit Graph

54752 Commits

Author SHA1 Message Date
Zuul 89e65bd976 Merge "Convert nova-next to a zuul v3 job" 2019-07-26 18:02:40 +00:00
Zuul d358df32f7 Merge "api-ref: touch up the os-services docs" 2019-07-25 19:25:27 +00:00
Zuul 054bf13a78 Merge "Remove 'nova.virt.driver.ComputeDriver.estimate_instance_overhead'" 2019-07-25 18:16:39 +00:00
Matt Riedemann af2e5a5755 api-ref: touch up the os-services docs
Make it clear that the first GET /os-services response sample
is for 2.11 and make the version suffix format for the 2.69
example match the other response examples, i.e. "(v2.x)".

Also mention that PUT /os-services/{service_id} only allows
nova-compute services. Before Pike it was possible to update
non-nova-compute services though it didn't really make sense.

Change-Id: I585582710884a53d91f4453011d3407a94efe1e3
2019-07-25 11:48:53 -04:00
Zuul 2c0cb71fb0 Merge "Avoid logging traceback when detach device not found" 2019-07-25 14:01:42 +00:00
Zuul 366ddcd715 Merge "Remove old TODO about forced_host policy check" 2019-07-25 14:01:35 +00:00
Zuul 5780f46dfe Merge "Disambiguate logs in delete_allocation_for_instance" 2019-07-25 14:01:27 +00:00
Zuul c1ee5b2bf6 Merge "Fix cleaning up console tokens" 2019-07-25 14:01:19 +00:00
Zuul 9ba72edebf Merge "Consts for need_healing" 2019-07-25 14:01:12 +00:00
Zuul f214be8d98 Merge "Revert "[libvirt] Filter hypervisor_type by virt_type"" 2019-07-25 14:01:05 +00:00
Zuul fdb606a8e4 Merge "Remove usused umask argument to virt.libvirt.utils.write_to_file" 2019-07-25 13:43:53 +00:00
Zuul 8b27adba53 Merge "Completely remove fake_libvirt_utils." 2019-07-25 13:43:44 +00:00
Zuul 6a5dc0710c Merge "Remove super old unnecessary TODO from API start() method" 2019-07-25 13:43:38 +00:00
Zuul 89712fe834 Merge "Pass extra_specs to flavor in vif tests" 2019-07-25 11:36:41 +00:00
Zuul 0e1b2cd1b2 Merge "Remove deprecated CPU, RAM, disk claiming in resource tracker" 2019-07-25 11:36:30 +00:00
Zuul bca4fdec9a Merge "Correct project/user id descriptions for os-instance-actions" 2019-07-25 08:58:05 +00:00
Zuul 9afaa5aa81 Merge "compute: Use source_bdms to reset attachment_ids during LM rollback" 2019-07-24 23:51:28 +00:00
Michael Still f4f326ca71 Remove usused umask argument to virt.libvirt.utils.write_to_file
The only user for this kwarg was unit tests testing the kwarg.

Change-Id: Iae0628cb7d98b60b5b3148dfbb8a6666f0a1528f
2019-07-24 16:16:11 -05:00
Eric Fried 533d5dbb71 Completely remove fake_libvirt_utils.
Its dead Jim.

Change-Id: I0d48fc17095ca35c6c026e9d2dfbf997b47fcf3a
2019-07-24 16:13:59 -05:00
Zuul 5fece42f9f Merge "Remove nova-consoleauth" 2019-07-24 19:08:10 +00:00
Zuul 08113fef34 Merge "nova-status: Remove consoleauth workaround check" 2019-07-24 19:01:29 +00:00
Matt Riedemann 743dc083bb Revert "[libvirt] Filter hypervisor_type by virt_type"
This reverts commit eaa766ee20.

The change regressed the behavior of the ImagePropertiesFilter
because existing images with hypervisor_type=QEMU, which would
match what is reported for hypervisor_type in the API for both
qemu/kvm virt_type nodes, will now get filtered out for hosts
where the configured virt_type is kvm.

Note that both the ImagePropertiesFilter docs [1] and
hypervisor_type image property docs [2] mention that for both
qemu and kvm nodes the value to use is qemu since that is the
actual hypervisor.

Presumably the change was made for a deployment with some
hosts configured with virt_type=qemu and other hosts configured
with virt_type=kvm and there were separate images with
hypervisor_type=qemu and hypervisor_type=kvm to match those hosts
for scheduler filter, but as noted this was a regression in
behavior for something that could have been achieved using
host aggregates and the AggregateImagePropertiesIsolation filter.

We could even use traits and a placement request pre-filter these
days for a more modern approach.

Also, since the API continues to report hypervisor_type=QEMU it's
doubly confusing for operators to have to configure their images
to use hypervisor_type=kvm (despite the docs).

And finally, any existing instances which have hypervisor_type=qemu
embedded in their RequestSpec can no longer be migrated to kvm
hosts without manually fixing the entries in the request_specs
table in the API DB.

Note that this is not a clean revert because of change
I5d95bd50279a6bf903a5793ad5f3ae9d06f085f4 made in Stein.

[1] https://docs.openstack.org/nova/latest/admin/configuration/schedulers.html#imagepropertiesfilter
[2] https://docs.openstack.org/glance/latest/admin/useful-image-properties.html

Change-Id: I7d761dc269f8c12c4a76ba14201ccdd82a04d01d
Closes-Bug: #1837756
2019-07-24 12:25:34 -04:00
Zuul 62faf552dd Merge "Remove fake_libvirt_utils users in functional testing." 2019-07-24 16:25:13 +00:00
Lee Yarwood 0eea5041c4 compute: Use source_bdms to reset attachment_ids during LM rollback
As we now provide the original source bdms during rollback we can also
use them to reset any volume attachment ids to the ids used by the
source compute host.

Change-Id: Ibe9215c07a1ee00e0e121c69bcf7ee1b1b80fae0
2019-07-24 15:35:51 +00:00
Stephen Finucane 97096c8e4a Remove 'nova.virt.driver.ComputeDriver.estimate_instance_overhead'
With the removal of the Core, Ram and Disk filters in change
I8a0d332877fbb9794700081e7954f2501b7e7c09, there's now only a single
caller for the 'estimate_instance_overhead' function. This call results
in the 'memory_mb_used', 'local_gb_used', 'vcpus_used', 'free_ram_mb'
and 'free_disk_gb' fields of a compute nodes 'ComputeNode' object being
modified when calculating usage as part of the resource tracker to
include driver-specific overhead. However, these fields are no longer
used for for anything except logging and the 'os-hypervisors' API. Since
overhead is not reflected in placement (and therefore the scheduler),
reporting them as part of the various usage values for both logging and
that API is actually a bit of a lie and is likely to cause confusion
among users. Remove the whole thing and make our logs and the
'os-hypervisors' API better match what's stored in placement.

Change-Id: I033e8269194de54432079cbc970431e3dcea7ce5
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-07-24 16:26:01 +01:00
Dan Smith 5406c8bd9b Remove deprecated CPU, RAM, disk claiming in resource tracker
In change Id62136d293da55e4bb639635ea5421a33b6c3ea2, we deprecated the
scheduler filters for CPU, RAM, and Disk since they were no longer
necessary in the new placement-based world. With these filters disabled,
we are no longer passing limits down to the resource tracker meaning we
are treating everything in the claim process as unlimited. This means
most of the claiming code here, NUMA stuff aside, is now a no-op and can
be removed. Do just that.

Change-Id: I2936ce8cb293dc80e1a426094fdae6e675461470
Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
Partial-Bug: #1469179
2019-07-24 16:22:02 +01:00
Zuul 0c39090bd7 Merge "Remove test_pre_live_migration_instance_has_no_fixed_ip" 2019-07-24 14:45:36 +00:00
Boris Bobrov e38e641572 Pass extra_specs to flavor in vif tests
Outside the test environment, extra_specs is usually present, even if
empty.

Although it doesn't cause test failures right now, it is fixed just
in case it might in the future.

Change-Id: I8ca6f0f37a18f81d024286a0e158353ed25fa2b5
2019-07-24 12:08:03 +01:00
Zuul a3a8e895b3 Merge "xvp: Remove use of '_LI' marker" 2019-07-24 03:57:06 +00:00
Zuul 05497655f2 Merge "xvp: Start using consoleauth tokens" 2019-07-24 03:56:59 +00:00
Zuul a10b7959bb Merge "Use the safe get_binding_profile" 2019-07-24 03:27:35 +00:00
Takashi NATSUME cdb752f3d3 Remove test_pre_live_migration_instance_has_no_fixed_ip
Remove the following unit test
because it is not useful any more.

* test_pre_live_migration_instance_has_no_fixed_ip
  in nova/tests/unit/compute/test_compute.py

Change-Id: I9edd70d36e7a8f40501ace574d5ae4b576a3e0ff
Closes-Bug: #1836692
2019-07-24 10:28:59 +09:00
Zuul ab34c941be Merge "Remove deprecated Core/Ram/DiskFilter" 2019-07-23 23:36:06 +00:00
Michael Still b96d1221db Remove fake_libvirt_utils users in functional testing.
This is the final step before we can remove the fake utils entirely.

Change-Id: I8e5a122cc547222249973cf595d90c2d8d5658d4
2019-07-23 17:46:32 -05:00
Zuul 6d2b005b74 Merge "Handle Invalid exceptions as expected in attach_interface" 2019-07-23 22:43:54 +00:00
Zuul 9dbf7b7ca9 Merge "Drop delete_build_requests_with_no_instance_uuid online migration" 2019-07-23 22:43:45 +00:00
Matt Riedemann 7e85335f2e Remove super old unnecessary TODO from API start() method
The ec2 API is not in tree nor does the start instance flow
deal with injected files or availability zones so remove the
really old TODO from when the API method was added in 2011.

Change-Id: I2df5010f50c032ae57adb2d128824a05a9189f9d
2019-07-23 13:04:02 -04:00
Zuul 383a4cf371 Merge "Update api-ref location" 2019-07-23 16:22:27 +00:00
Zuul 524f02993c Merge "Translatable output strings in heal allocation" 2019-07-23 15:46:32 +00:00
Matt Riedemann cee072b962 Convert nova-next to a zuul v3 job
For the most part this should be a pretty straight-forward
port of the run.yaml. The most complicated thing is executing
the post_test_hook.sh script. For that, a new post-run playbook
and role are added.

The relative path to devstack scripts in post_test_hook.sh itself
had to drop the 'new' directory since we are no longer executing
the script through devstack-gate anymore the 'new' path does not
exist.

Change-Id: Ie3dc90862c895a8bd9bff4511a16254945f45478
2019-07-23 11:32:35 -04:00
Stephen Finucane 78645e61c6 Remove deprecated Core/Ram/DiskFilter
These were deprecated during Stein [1] and can now be removed, lest they
cause hassle with the PCPU work. As noted in [1], the aggregate
equivalents of same are left untouched for now.

[1] https://review.opendev.org/#/c/596502/

Change-Id: I8a0d332877fbb9794700081e7954f2501b7e7c09
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-07-23 07:49:41 -07:00
Zuul 4781ef3321 Merge "Update AZ admin doc to mention the new way to specify hosts" 2019-07-23 13:28:31 +00:00
Eric Fried 7df7029056 Consts for need_healing
Followup for [1], this creates private module-level constants for the
``need_healing`` toggle used in the code, indicating whether the
allocations need to be healed by creating them or by updating existing
allocations.

[1] https://review.opendev.org/#/c/668925/7/nova/cmd/manage.py@2069

Change-Id: I60f251cf76eeb7ec0953ad085f3606b0edf5535c
2019-07-23 08:03:59 -05:00
Balazs Gibizer 8ec918a051 Use the safe get_binding_profile
The binding:profile key might be missing from the port body but it also
can be present with a value None. So accessing the value of the
binding:profile needs special care. There is already a
_get_binding_profile() helper in neutronv2/api but still code inside
that module uses manual access in some placese. Also the heal port
allocation codepath used manual access.

So this patch makes _get_binding_profile public and replace manual
binding:profile access with the call to this helper.

Change-Id: Ic2e3ac788e74e3777e2aa4d7c36968c5e8c04a9a
2019-07-22 18:37:40 -04:00
Zuul ffa85a9263 Merge "Add 'resource_request' to neutronv2/constants" 2019-07-22 21:59:56 +00:00
Zuul 438824b50a Merge "Use neutron contants in cmd/manage.py" 2019-07-22 21:59:48 +00:00
Zuul 5d8c8ab628 Merge "Move consts from neutronv2/api to constants module" 2019-07-22 21:59:38 +00:00
Zuul 8fc20874b8 Merge "nova-manage: heal port allocations" 2019-07-22 21:59:30 +00:00
Zuul c9bc00b364 Merge "Remove Newton-era min compute checks for server create with device tags" 2019-07-22 21:46:28 +00:00
qiufossen 6b3aa31458 Correct project/user id descriptions for os-instance-actions
The 'user_id' and 'project_id' parameter descriptions for server actions
imply that they are the value of the user/project that owns the server,
but that is incorrect - they are the project/user id of whoever made the
request/initiated the action.

The existing project_id_instance_action parameter variable, which is only
used by the os-cloudpipe reference, is renamed to avoid confusion with
instance actions.

Co-Authored-By: Brin Zhang <zhangbailin@inspur.com>

Closes-Bug: #1835063
Change-Id: I1c05d59ebf1fda6319df5ee305c2b8a6a9562242
2019-07-22 15:23:16 -04:00