Commit Graph

45064 Commits

Author SHA1 Message Date
Jenkins d48aeb5783 Merge "Fix unspecified bahavior on GET /servers/detail?tenant_id=X as admin" 2017-02-07 19:40:59 +00:00
Sergey Nikitin 5512484f06 TrivialFix: replace list comprehension with 'for'
Creation of list here is useless. As I understand such
'cycle' was added just to have less number of code.
But creation of this list allocates memory for it.

Change-Id: Ib822fcc5ebf2ece987736ae48a51df5b6f5d0fd4
2017-02-07 15:42:23 +04:00
Jenkins 46c778efaf Merge "Fix typo in 216_havana.py" 2017-02-07 04:05:58 +00:00
Jenkins 7feabc25c5 Merge "hyperv: make sure to plug OVS VIFs after resize/migrate" 2017-02-07 01:57:48 +00:00
Jenkins e8743e2c5c Merge "vomiting" 2017-02-07 00:10:55 +00:00
Jenkins ec93df155a Merge "Add placement request id to log when GET or POST rps" 2017-02-07 00:10:34 +00:00
Jenkins 305cfad0ad Merge "Add placement request id to log when GET aggregates" 2017-02-07 00:10:06 +00:00
Jenkins fafa3a642c Merge "Add more debug logging on RP inventory delete failures" 2017-02-07 00:09:36 +00:00
Jenkins da591bc543 Merge "Add step-by-step examples for Cells V2 setup" 2017-02-06 22:45:55 +00:00
Jenkins 9ae5b2306b Merge "Clarify the deployment of placement for cellsv1 users" 2017-02-06 16:40:06 +00:00
Jenkins 06e400384c Merge "Update the upgrades part of devref" 2017-02-06 15:56:12 +00:00
Dan Smith 4f86207285 Update the upgrades part of devref
This removes some references to "online schema migrations", as well
as some references to in-progress things that have been (long since)
completed. It also clarifies some of the upgrade steps, and unifies
the notion of "offline" and "live" upgrades, calling out only a couple
places where the process differs.

This came from me explaining the document to someone and calling out
things that were no longer accurate.

Change-Id: Iec1d73c3fd0038d9bca7e7fa746caad06c329ed3
2017-02-06 06:54:52 -08:00
Jenkins 42c1de9a1b Merge "Add more debug logging on RP inventory update failures" 2017-02-05 22:23:39 +00:00
Diana Clarke 2285b445b1 vomiting
Fixing this typo because it's Friday night, and it cracked me up ;)

Change-Id: I9324621b530dc0adfaf0524861900d975826a614
2017-02-03 18:55:49 -05:00
Dan Smith 56d982851a Clarify the deployment of placement for cellsv1 users
Change-Id: I86818968b8d01c4b8297aa091d875d5df9eeb55c
2017-02-03 13:59:09 -08:00
Jenkins 3b8da5fa44 Merge "Handle NotImplementedError in _process_instance_vif_deleted_event" 2017-02-03 21:13:10 +00:00
melanie witt dd198d11f8 Add step-by-step examples for Cells V2 setup
This starts off with two examples: fresh install and minimal upgrade.

Change-Id: Id6a1fe694abc6069b6728434b5400f13f8f24c0e
2017-02-03 20:14:00 +00:00
Jenkins 245c54796f Merge "Delete a compute node's resource provider when node is deleted" 2017-02-03 18:08:56 +00:00
Chris Dent cc83f48723 Add placement request id to log when GET or POST rps
While debugging resource tracking/placement issues with resource
providers it'd be useful to know the request ID from the placement
API for debugging requests in those logs. These changes add the
request id to those log messages that might be created while getting
or creating a resource provider.

Change-Id: I412d8ef63eb0ecb32b8316826498cfc00e6014cd
2017-02-03 14:41:50 +00:00
Chris Dent dfb8d126e5 Add placement request id to log when GET aggregates
While debugging resource tracking/placement issues with resource
providers it'd be useful to know the request ID from the placement
API for debugging requests in those logs. The changes adds the
request id to those log messages that might be created while getting
aggregates for a resource provider.

Related-Bug: #1652099

Change-Id: I0e44c439fd4c9999d6dac5054e24503f925df1ed
2017-02-03 14:41:49 +00:00
Chris Dent 171d1c1282 Add more debug logging on RP inventory delete failures
While debugging resource tracking/placement issues with resource
providers it'd be useful to know the request ID from the placement
API for debugging requests in those logs.

Change-Id: I36db3cf21e5764830c6af4d160698979dbb02fab
Related-Bug: #1652099
2017-02-03 14:41:49 +00:00
Matt Riedemann 4deaf5cf33 Add more debug logging on RP inventory update failures
While debugging resource tracking/placement issues with resource
providers it'd be useful to know the request ID from the
placement API for debugging requests in those logs, at least
until nova-compute is passing it's request ID header into the
placement API. And it'd also be useful to know the generated
request body when making the failed inventory update request.

Change-Id: Ia8ee36ab0e79dfc2a178f2d354288b13d48bccdb
Related-Bug: #1652099
2017-02-03 14:41:49 +00:00
EdLeafe 965fffc09d Delete a compute node's resource provider when node is deleted
Currently when a compute node is deleted, its record in the cell DB is
deleted, but its representation as a resource provider in the placement
service remains, along with any inventory and allocations. This could
cause the placement engine to return that provider record, even though
the compute node no longer exists. And since the periodic "healing" by
the resource tracker only updates compute node resources for records in
the compute_nodes table, these old records are never removed.

This patch adds a call to delete the resource provider when the compute
node is deleted. It also adds a method to the scheduler report client
to make these calls to the placement API.

Partial-Bug: #1661258
Closes-Bug: #1661014

Change-Id: I6098d186d05ff8b9a568e23f860295a7bc2e6447
2017-02-03 14:16:58 +00:00
Jenkins 6f9c845f74 Merge "libvirt: workaround findmnt behaviour change" 2017-02-03 13:37:23 +00:00
Jenkins 6f3338612d Merge "Removes unnecessary utf-8 encoding" 2017-02-03 06:00:47 +00:00
Jenkins 417dac5036 Merge "libvirt: Limit destroying disks during cleanup to spawn" 2017-02-03 04:21:45 +00:00
Jenkins 6a0407bc50 Merge "Clarify the language in the apache wsgi sample" 2017-02-03 04:20:59 +00:00
Jenkins e097513015 Merge "Mark compute/placement REST API max microversions for Ocata" 2017-02-03 03:43:34 +00:00
Jenkins 67409564d6 Merge "Add release note for filter/sort whitelist" 2017-02-03 03:43:02 +00:00
Jenkins 7bc6e84b54 Merge "Clarify the [cells] config option help" 2017-02-03 03:35:48 +00:00
Jenkins 63cfd90f03 Merge "nova-status: relax the resource providers check" 2017-02-03 03:35:16 +00:00
Jenkins ed27145a0b Merge "Stop swap allocations being wrong due to MB vs GB" 2017-02-03 02:38:46 +00:00
Matt Riedemann 887bcea962 Mark compute/placement REST API max microversions for Ocata
Change-Id: I39405b99618ec31b5d3029fc28c250f1a84dc49c
2017-02-02 20:15:18 -05:00
Kevin_Zheng d6691d1793 Add release note for filter/sort whitelist
Add a release note for the filter/sort whitelist.

Part of blueprint add-whitelist-for-server-list-filter-sort-parameters

Change-Id: I0369407aced56384783b7a8bb10e06e80530854f
Co-Authored-By: ghanshyam <ghanshyammann@gmail.com>
Co-Authored-By: Alex Xu <hejie.xu@intel.com>
2017-02-02 19:32:03 -05:00
Dan Smith e846c32ce3 Clarify the language in the apache wsgi sample
Change-Id: I78fa8d4d53f2603da3e392877645202856eecfce
2017-02-02 15:43:25 -08:00
Jenkins c90acdbc55 Merge "Report reserved_host_disk_mb in GB not KB" 2017-02-02 20:33:31 +00:00
Jenkins ed55dcad83 Merge "Fix access_ip_v4/6 filters params for servers filter" 2017-02-02 19:55:49 +00:00
John Garbutt c2e1133be1 Stop swap allocations being wrong due to MB vs GB
Swap is in MB, but allocations for disk are in GB.

We totally should claim disk in GB, for now lets just round up the swap
allocation to the next GB. While this is wasteful, its the only safe
answer to ensure you don't over commit resources on the node.

Updated the test so the swap is 1023MB, after rounding up this should
claim the same 1GB extra space for swap.

Closes-Bug: #1659266

Change-Id: If50eab870b2c50f4055668143780574e1350a438
2017-02-02 18:51:34 +00:00
Matt Riedemann 014b119ac8 Clarify the [cells] config option help
People are easily confused into thinking that for cells v2
they need to configure things in the [cells] group in
nova.conf, but the cells options are strictly for cells v1
functionality, which we don't want people using anymore.

This change adds some wording to those options to make it
clear that they are for cells v1 and that is not a
recommended way to deploy Nova.

Change-Id: Ib1f0caf956d0bbb76d2e5a8e6d5ce7de12e240b2
2017-02-02 13:34:32 -05:00
Jenkins 786c6b037a Merge "Fix typo in cells v2 ocata reno" 2017-02-02 17:34:08 +00:00
John Garbutt d4502e1f53 Report reserved_host_disk_mb in GB not KB
We were reporting reserved_host_disk_mb as GB not KB.

This created this log message:
  Invalid inventory for 'DISK_GB' on resource provider <uuid>.
  The reserved value is greater than or equal to total.

This corrects the reporting of reserved_host_disk_mb to the placement
API when updating the compute node inventory.

Closes-Bug: #1661243

Change-Id: I5573c82eb99cde13c407c8d6a06ecb04165ab9c5
2017-02-02 17:17:46 +00:00
Jenkins 60ec9cbf4b Merge "doc: add upgrade notes to the placement devref" 2017-02-02 16:45:11 +00:00
Jenkins df1cd10db2 Merge "Ensure build request exists before creating instance" 2017-02-02 16:44:26 +00:00
ghanshyam cd29a4e6c5 Fix access_ip_v4/6 filters params for servers filter
While adding the json schema for servers filter query,
we added 'accessIPv4' and 'accessIPv6' as allowed params
but they do not match with what DB has. It is 'access_ip_v4'
and 'access_ip_v6' in DB.
This makes  'access_ip_v4' and 'access_ip_v6' filter stop working.

The schema should be fixed accordingly to allow the 'access_ip_v4'
and 'access_ip_v6' as valid filter.

'accessIPv4' and 'accessIPv6' are something the API accepts
and returns and internally API layer translate those param
to their respective field('access_ip_v4' and 'access_ip_v6')
present in DB.
So user does not know anything about 'access_ip_v4' and
'access_ip_v6'. They are not in API representation actually.

Later list filter and sort param should be same as field return
in GET or accepted in POST/PUT which are 'accessIPv4' and 'accessIPv6'.
But that is something new attribute support in filter and can be
done later after more discussion.

Change-Id: Idc12de0062d298259e25c8b4c0dde889054a9ae5
Closes-Bug: #1661195
2017-02-02 11:30:02 -05:00
Matt Riedemann f6a419a49b Fix typo in cells v2 ocata reno
Change-Id: I0ad4a0431c4131c655ab47b42c4f78141383ee64
2017-02-02 10:36:36 -05:00
Matt Riedemann 21a04c859b doc: add upgrade notes to the placement devref
This just adds some more detailed docs for upgrading
to Ocata and notable things for the Placement service
and related components as part of that upgrade.

The Ocata release notes will have some of this
information too, but I think it's good to also have
a single place for some of this, like an install/upgrade
guide for Placement.

Change-Id: Id33b9c852bb36ae80a6f29ae33d963a78cbff193
Depends-On: Ie12acb76ec5affba536c3c45fbb6de35d64aea1b
2017-02-02 08:55:13 -05:00
Jenkins d92e56a99d Merge "Fix the terminated_at field in the server query params schema" 2017-02-02 13:17:12 +00:00
Jenkins 9ecf4cbb8f Merge "Add release note for nova-status upgrade check CLI" 2017-02-02 13:15:13 +00:00
Jenkins 734ba7dadf Merge "Add prelude section for Ocata" 2017-02-02 13:14:37 +00:00
Jenkins 4485aaf1c9 Merge "Collected release notes for Ocata CellsV2" 2017-02-02 13:10:27 +00:00