Commit Graph

46187 Commits

Author SHA1 Message Date
Takashi NATSUME dccd839dfd Remove unnecessary execute permissions
TrivialFix
Change-Id: Ic3a634071b5b7629151f434c8549031b12f9baea
2017-05-02 14:39:25 +09:00
Jenkins d6d5c6be0c Merge "Remove nova-cert" 2017-05-01 15:09:26 +00:00
Jenkins 98f2071e06 Merge "Add reserved_host_cpus option" 2017-04-28 23:50:46 +00:00
Jenkins a3621da784 Merge "Update resource tracker to PUT custom resource classes" 2017-04-28 18:36:48 +00:00
Jenkins 4e607ff533 Merge "Add a note to *_allocation_ratio options about Ironic hardcode" 2017-04-28 18:15:47 +00:00
Jenkins ffa7a03787 Merge "Add ability to query for ComputeNodes by their mapped value" 2017-04-28 17:25:15 +00:00
Jenkins 69c36d75e9 Merge "Add ComputeNode.mapped field" 2017-04-28 17:20:40 +00:00
Jenkins c6298d8f45 Merge "[placement] Idempotent PUT /resource_classes/{name}" 2017-04-28 15:11:50 +00:00
Jenkins 5c83a45ed1 Merge "Trivial fix: fix broken links" 2017-04-28 14:53:23 +00:00
Jenkins 98c2dad277 Merge "Updated from global requirements" 2017-04-28 14:52:27 +00:00
Sylvain Bauza c102600d59 Add reserved_host_cpus option
When discussing for the blueprint placement-claims we had a consensus on
using reserved values for helping operators to provide overhead limits
for all the instances.

Since we only had 2 opts for RAM and disk, we missed a possible CPU one.
This patch is adding that one.

Change-Id: Ic3162f0ab39a703798b4a2a7e860fed628da1e7e
Partially-Implements: blueprint placement-claims
2017-04-28 15:52:51 +02:00
John Garbutt 4b3590e0c3 Add description to policies in migrations.py
blueprint policy-docs

Change-Id: Ifc357f1ed0d85deea8911f1005a4a9004c24289b
2017-04-28 11:17:21 +00:00
jichenjc d6bf770816 Trivial fix: fix broken links
the guideline include a broken links
nova/api/openstack/rest_api_version_history.rst need to be
nova/api/openstack/compute/rest_api_version_history.rst

Change-Id: I54f4796382865081654f2ab471fd67274d84bb89
2017-04-28 17:03:48 +08:00
Matthew Treinish 2bcee77e3b Remove nova-cert
This commit removes nova-cert which has been deprecated since change
Id7a1fc943cbe6d860a50d3cc776717b55351004b. The APIs have been hard coded
to return a 410 whenever they're called now. For the API ref a new
section for obsolete apis is added to the bottom of the page and the
certificates api ref is moved there.

Implements bp remove-nova-cert

Change-Id: I2c78a0c6599b92040146cf9f0042cff8fd2509c3
2017-04-27 22:28:01 -04:00
Dan Smith 5643365091 Add ability to query for ComputeNodes by their mapped value
Related to blueprint discover-hosts-faster
Change-Id: Ic0068e12cd19824789872e2aa3acaf64c96ccd6b
2017-04-27 19:50:59 -04:00
Matt Riedemann 0ce4dff41f Add ComputeNode.mapped field
This is an integer that defaults to zero. This can be used by API services
to efficiently filter out records that have already been mapped by a
HostMapping. This is an integer instead of a boolean in case we later need
to do some other sort of mapping of these records and need to distinguish
yet another level of mapped-ness.

Note this also removes some tests from TestNewtonBlocker which can no longer
work with the new ComputeNode model since they attempt to use it to create
compute nodes at a schema older than needed for this new field. The point of
the test was to verify, in Newton, that the blocker migration caught the thing
we needed to catch. It doesn't need to be in master anymore and certainly
is not worth the acrobatics that would be required to keep it working. (Note
that we haven't even had such tests for many of our blocker migrations)

Related to blueprint discover-hosts-faster
Change-Id: I902d75efb0bbe177680d7211c23235f42497e3fe
2017-04-27 19:44:51 -04:00
OpenStack Proposal Bot fe1de3e65c Updated from global requirements
Change-Id: Ia4425b0578764273cea16cfd91a405436230bb13
2017-04-27 21:00:33 +00:00
Matt Riedemann 8965e846fa Add a note to *_allocation_ratio options about Ironic hardcode
The get_inventory() method implementation for the Ironic driver
in Pike started hard-coding the allocation ratio for VCPU,
MEMORY_MB and DISK_GB inventory on compute node resource providers,
effectively ignoring these configuration options used in the
ResourceTracker.

This patch adds a note about that so people deploying Ironic don't
have to worry about these options. It also fixes a couple of weird
random apostrophes.

Change-Id: Icaf94a7dc97a1d297d68b7633802aaf131d76471
2017-04-27 15:23:44 -04:00
Sean Dague 7e7bdb198e Expose StandardLogging fixture for use
This will allow any tests to access self.stdlog.logger.output to see
what was logged.

Change-Id: I8855b10d57c067e06eccc887dea9a9e0e57dcb4c
2017-04-27 14:44:26 -04:00
Matthew Booth 35eaa27a04 Don't check for file type in _find_base_file
Firstly, _find_base_file was differentiating between 2 different types
of 'non-original', but the caller was then treating them identically.
This differentiation was obviously redundant.

However, the caller was using them to populate originals. Note that
_scan_base_files has been called previously, and therefore originals
is already correctly populated. This means that _find_base_file does
not need to identify 'originals' at all.

Additionally, originals is only tracked at all so that 'originals' and
'non-originals' can be aged with different frequencies. This doesn't
really make any sense anyway, so this is a small step towards removing
a redundant config variable.

Change-Id: I893cfe23b48ee135ac6c14870d50d7f734c25247
2017-04-27 10:42:26 +01:00
Matthew Booth a3f9cbfb85 Rename _handle_base_image to _mark_in_use
_handle_base_image was handling a variety of circumstances which, due
to its context, can never occur. We rename the method to _mark_in_use
to reflect what it actually does, and remove all the dead code
including the tests for it.

Change-Id: Iee3c824efdafbcdaa34e26b969a2164dd0f8b933
2017-04-27 10:42:26 +01:00
Matthew Booth 9ff8e315f2 Add context comments to _handle_base_image
This patch simply adds contextual comments to _handle_base_image
pointing out the various conditionals which, due to their context, are
either guaranteed to be always True or always False. We clean this
function up in a subsequent patch.

Change-Id: Ib986dd495eb14d368e6ff2abbad1b28d1872b3a5
2017-04-27 10:41:45 +01:00
Jenkins 9add88665a Merge "Add description to policies in migrate_server.py" 2017-04-27 04:55:34 +00:00
Jenkins a0bd6c73ed Merge "Add description to policies in floating_ip files" 2017-04-27 04:30:22 +00:00
Jenkins 56a75e38a7 Merge "Remove all discoverable policy rules" 2017-04-27 04:23:49 +00:00
Jenkins e7ed854028 Merge "Revert "Prevent delete cell0 in nova-manage command"" 2017-04-26 22:09:35 +00:00
Dan Smith 0b0ef08fa4 Revert "Prevent delete cell0 in nova-manage command"
The referenced commit was merged without any feedback from the people
working on the cellsv2 stuff and doesn't really make a lot of sense. The
cell0 record is pretty much the only one you _can_ delete and re-create
if needed.

This reverts commit 17b9f83778.

Change-Id: I9c6559cd2abce678ea72c5d5888d989fba3975f3
2017-04-26 12:38:51 -07:00
Jenkins 49d82a5b22 Merge "Register osapi_compute when nova-api is wsgi" 2017-04-26 18:09:10 +00:00
John Garbutt 76ca5f6796 Add description to policies in floating_ip files
Includes floating_ip_dns.py, floating_ip_pools.py, floating_ips_bulk.py,
and floating_ip.py.

blueprint policy-docs

Change-Id: Ib4807c83e3f7dc88b6b6b71293937b79caf976ce
2017-04-26 15:10:31 +00:00
John Garbutt b4f4d2230d Add description to policies in migrate_server.py
blueprint policy-docs

Change-Id: If5f2766cd22b88d59eee4876e381b4172110d643
2017-04-26 15:40:18 +01:00
John Garbutt d3b647a000 Remove all discoverable policy rules
We have signaled many times the use of API extensions to change the API
has been deprecated, including:
04f8612aa9

This patch ensures we no longer check any of the discoverable rules when
compiling the list of extensions to list in the API. This stops users
from being able to use policy to hide certain API extensions. This was
never that useful, but now you can't turn any extensions off and we
report the API version number, it is basically useless.

Note the change in the policy cmd unit test is to ensure now there are
no rules that use the ANY rule, we correctly check we return an empty
list of rules that match.

blueprint remove-discoverable-policy-rules

Change-Id: I61d8063708731133177534888ba7f5f05a6bd901
2017-04-26 15:31:37 +01:00
Jenkins 7e383b68d3 Merge "Refactor a test method including 3 test cases" 2017-04-26 12:30:30 +00:00
Jenkins 2658bd30f8 Merge "Update doc/source/process.rst" 2017-04-26 12:29:51 +00:00
Jenkins d622bad0cb Merge "Remove redundant code" 2017-04-26 12:29:17 +00:00
Jenkins 849c0bda1e Merge "Fix unnecessary code block in a release note" 2017-04-26 12:25:35 +00:00
Jenkins cfca513836 Merge "Allow CONTENT_LENGTH to be present but empty" 2017-04-26 12:06:23 +00:00
Jenkins a40388d1e2 Merge "libvirt: Always disconnect_volume after rebase failures" 2017-04-26 11:39:46 +00:00
Jenkins 671eb66f3d Merge "Clean up ClientRouter debt" 2017-04-25 23:24:22 +00:00
Jenkins eeb1bfcec8 Merge "2.45: Remove Location header from createImage and createBackup responses" 2017-04-25 22:28:38 +00:00
Jenkins 314b50398a Merge "Explicitly define enum type as string in schema" 2017-04-25 21:22:47 +00:00
Jenkins c61ab41711 Merge "PowerVM Driver: spawn/destroy #3: TaskFlow" 2017-04-25 21:22:11 +00:00
Jenkins ee722915fb Merge "nova-manage: Deprecate 'shell' commands" 2017-04-25 21:18:19 +00:00
Jenkins 550adadbbe Merge "Trivial Fix a typo" 2017-04-25 21:17:20 +00:00
Jenkins f0743a23ed Merge "api-ref: Nova Update Compute services Link" 2017-04-25 21:16:17 +00:00
Jenkins b302ec75da Merge "api-ref: Fix a parameter description in servers.inc" 2017-04-25 21:15:41 +00:00
Jenkins a1eab9e40b Merge "Rework descriptions in os-hypervisors" 2017-04-25 21:15:06 +00:00
Jenkins c12dac5d4a Merge "Add description for /consoles" 2017-04-25 21:14:30 +00:00
Jenkins 4c2a13e05c Merge "api-ref: Parameter verification for servers-actions (4/4)" 2017-04-25 21:13:54 +00:00
Jenkins b57bb0431c Merge "api-ref: Parameter verification for servers-actions (3/4)" 2017-04-25 21:13:17 +00:00
Jenkins 729f5bea45 Merge "api-ref: Parameter verification for servers-actions (2/4)" 2017-04-25 21:09:54 +00:00