Commit Graph

47588 Commits

Author SHA1 Message Date
Andrey Volkov fa5749727f [placement] Make placement_api_docs.py failing
If there is no api reference for some placement API method
tox -e placement-api-ref will fail now.

Change-Id: Ifefedcd51f1f8d5e741ef6d02b7a0879a185e05f
2017-08-10 11:27:13 +00:00
Andrey Volkov d0af9820e1 [placement] Add api-ref for allocation_candidates
Change-Id: Id89d7c16ca53938e2bc18e904e8d13477ceb15f7
2017-08-10 11:26:19 +00:00
jichenjc 4db481592d [placement] Add api-ref for RP usages
Add placement-api-ref for resource provider usages.

Co-Authored-by: Andrey Volkov <avolkov@gmail.com>

Change-Id: I6ba8765a427f654dafb32fc3fbf5492b0e1b426a
2017-08-10 09:37:27 +00:00
Jenkins c75a92e179 Merge "Raise NoValidHost if no allocation candidates" 2017-08-10 07:03:46 +00:00
Jenkins 44bf4f52ff Merge "[placement] Add api-ref for usages" 2017-08-10 06:58:57 +00:00
Jenkins 6c13b2d538 Merge "Test resize with too big flavor" 2017-08-10 03:49:22 +00:00
Jenkins 45ac76d774 Merge "add cli to support matrix" 2017-08-10 00:51:03 +00:00
Jenkins 35cf533e12 Merge "Add release note for shared storage known issue" 2017-08-10 00:48:07 +00:00
Jenkins 1ce3d78982 Merge "Cleanup release note about ignoring allow_same_net_traffic" 2017-08-09 19:04:13 +00:00
Jenkins 963d284350 Merge "Document service layout for consoles with cells" 2017-08-09 19:03:41 +00:00
Jenkins 1f65849d07 Merge "Mark max microversion for Pike in history doc" 2017-08-09 19:02:57 +00:00
Jenkins 67a0a933a0 Merge "Add a prelude section for Pike" 2017-08-09 19:02:04 +00:00
Jenkins e62fe1accf Merge "doc: provide more details on scheduling with placement" 2017-08-09 19:01:12 +00:00
Andrey Volkov 032a1d0a3b [placement] Add api-ref for usages
Change-Id: I50954991f80725dc22be95eeecded2ee1e005e97
2017-08-09 15:54:48 +00:00
Matt Riedemann 0d31698d9e Add release note for shared storage known issue
Due to the scheduler report client on the compute service
not being aware of shared storage providers in Placement
for a given compute node, we can't claim support for
shared storage pool modeling in Pike. This adds a release
note to be clear about the lack of that functionality.

Change-Id: I0692a4fdf9a19889c5d708fb9a6a562c914963f9
Related-Bug: #1707256
2017-08-09 11:17:45 -04:00
Jenkins f09ff27dff Merge "Fix migrate single instance when it was created concurrently" 2017-08-09 12:50:51 +00:00
Jenkins 12000b8b87 Merge "no instance info cache update if instance deleted" 2017-08-09 12:43:19 +00:00
Jenkins fa3f2e4796 Merge "Add functional test for local delete allocations" 2017-08-09 03:01:21 +00:00
Matt Riedemann 9add178664 Mark max microversion for Pike in history doc
Change-Id: I180f2e8ca1cccce1b73429cdc47a6e7d7fc40634
2017-08-08 21:56:19 -04:00
Sylvain Bauza 216ccb5b92 Add a prelude section for Pike
Our release notes are read by a lot of people and we somehow need
to summarize the top main changes that are in that release for Nova.
Audience is targeted to be general and not really dev-oriented.

Co-Authored-By: Matt Riedemann <mriedem.os@gmail.com>

Change-Id: I65cfb6e22597edfeda687fc2f0c5ae5e098aa950
2017-08-08 21:56:19 -04:00
Matt Riedemann 204e7d7f42 doc: provide more details on scheduling with placement
This provides a more detailed, but still high level, explanation
of how the FilterScheduler is using allocation candidates to pick
hosts during scheduling, and how the allocations are handled during
a move operation, including a resize to the same host.

Ideally this content will live somewhere else in the devref, or
would be updated in the spec for blueprint placement-claims, but
for now this should suffice for Pike release notes that can point
at this upgrade doc.

Change-Id: I274c684f829bc310ebb17faabf498d36f4ceea0c
2017-08-08 21:56:14 -04:00
Jenkins f65891c0c0 Merge "Create For End Users index section" 2017-08-08 23:00:28 +00:00
Jenkins 45d1e5ef55 Merge "Fix the log information argument mistake" 2017-08-08 22:54:36 +00:00
melanie witt 4ba7baf451 Add functional test for local delete allocations
This adds a test that shows we clean up allocations for an instance
that was local deleted while the compute host was down, when the
compute host comes back up.

There might still be a problem if the compute host is never brought
back up, as allocations will still exist for the instance and show
up as usage during usage queries to placement.

Related-Bug: #1679750

Change-Id: Ia68a5a69783963b063264edde84006973bb77ceb
2017-08-08 22:20:00 +00:00
melanie witt 4a3e8ecf38 Document service layout for consoles with cells
This adds information about where the consoleauth service and console
proxies should run with multiple cells in Cells v2.

Change-Id: Ib817581dfe0c32d3888c242166e3daa7b954320a
2017-08-08 20:31:02 +00:00
Sean Dague 53f752a669 Create For End Users index section
This reorganizes the pieces that are for end users into a convenient
chunk up front in the main index page.

Part of bp: doc-migration

Change-Id: Ic2fcabbf3faa531fccb19cffa2564f005142e463
2017-08-08 15:19:01 -04:00
Jenkins 3f12c8badd Merge "doc: Add additional content to admin guide" 2017-08-08 19:06:38 +00:00
Jenkins 3bc32c47e5 Merge "Create reference subpage" 2017-08-08 19:05:46 +00:00
Jenkins c780f31c79 Merge "Handle ironicclient failures in Ironic driver" 2017-08-08 17:47:43 +00:00
Matt Riedemann 0cae8d50fa Cleanup release note about ignoring allow_same_net_traffic
A large chunk of the release note for this is duplicated with
the same reno from e5080c7330
but the formatting and wording is slightly different.

This fixes them to look similar for the duplicate text.

Change-Id: Idd6149ae85ac2724633b80e938c4c1bf981b772b
2017-08-08 12:43:20 -04:00
Jenkins 94638e353a Merge "Fix all >= 2 hit 404s" 2017-08-08 15:54:55 +00:00
jichenjc ef85c99f5e no instance info cache update if instance deleted
Avoid instance info cache update if the instance is deleted,
as the deleted instance's info cache is already deleted in
db layer and it will report InstanceInfoCacheNotFound
exception and lead to a few exception logs in compute.

Please note this is different to regular info cache and
lead to InstanceInfoCacheNotFound exception, it's in the
case when you first create the info cache after instance
delete and InstanceInfo is also deleted.

Change-Id: I860e9e7c7ef458722135a21c6c5745f5519c56c4
Closes-Bug: 1618822
2017-08-08 11:36:30 -04:00
Jenkins 4dc7682e79 Merge "placement: filtering the resource provider id when delete trait association" 2017-08-08 14:43:02 +00:00
Stephen Finucane cadd25e9bc doc: Add additional content to admin guide
Import the following documents from the admin guide [1]:

- cli-manage-flavors.rst
- cli-nova-evacuate.rst
- cli-nova-manage-projects-security.rst
- cli-nova-manage-services.rst
- cli-nova-numa-libvirt.rst
- cli-nova-specify-host.rst
- cli-set-quotas.rst
- cli-set-compute-quotas.rst
- cli-os-migrate.rst
- cli-os-migrate-cfg-ssh.rst
- ts-no-emulator-x86-64.rst
- ts-multipath-warn.rst
- ts-failed-connect-vol-FC-SAN.rst
- ts-failed-attach-vol-no-sysfsutils.rst
- ts-failed-attach-vol-after-detach.rst
- ts-vol-attach-miss-sg-scan.rst

These were missed in the original import [2]. All 'ts-' files are merged
into a single 'support-compute' document, which is already in-tree.

[1] https://github.com/openstack/openstack-manuals/tree/stable/ocata/doc/admin-guide/source
[2] https://review.openstack.org/#/c/477497/

Change-Id: Ifa0039e270e54ea2fb58ab18ce6724e5e8e061a1
Closes-Bug: #1708666
2017-08-08 14:04:14 +01:00
Sean Dague b9efc9d641 Create reference subpage
In an attempt to make the main navigation sidebar not be visual mud
(and really confusing) create a reference sub page that explains all
the references.

Part of bp: doc-migration

Change-Id: I005fc24e49487631d7fe73cb498c61619bcaac9d
2017-08-08 12:28:50 +00:00
Balazs Gibizer 6b0ab40e42 Raise NoValidHost if no allocation candidates
Placement took over the role of the CoreFilter, RamFilter and DiskFilter
from the FilterScheduler. Therefore if placement returns no allocation
candidates for a request then scheduling should be stopped as this means
there is not enough VCPU, MEMORY_MB, or DISK_GB available in any compute
node for the request.

Change-Id: If20a20e5cce7ab490998643e32556a1016646b07
Closes-Bug: #1708637
2017-08-08 14:00:08 +02:00
Sean Dague ecc6928a4a Fix all >= 2 hit 404s
This fixes all the >= 2 hit 404s from 2017-08-07 with
redirects. nova-cert is being referenced somewhere, in that case we
provide a 410 because that's never coming back.

Part of bp: doc-migration

Change-Id: I313e4a22dc2ad3faa890de864d00943b802e8b30
2017-08-08 07:32:31 -04:00
Jenkins 2765f041b9 Merge "[placement] Add api-ref for RP allocations" 2017-08-08 06:35:35 +00:00
Jenkins faa3be5c15 Merge "Updated from global requirements" 2017-08-08 02:17:14 +00:00
Jenkins e8fbcad8e9 Merge "Split Compute.errors_out_migration into a separate contextmanager" 2017-08-07 23:37:07 +00:00
Jenkins f742baa4c3 Merge "Use wsgi-intercept in OSAPIFixture" 2017-08-07 22:00:53 +00:00
Jenkins 6d4fc21709 Merge "Stop using mox stubs in cast_as_call.py" 2017-08-07 21:48:02 +00:00
Jenkins 6d95c030a1 Merge "Detach device from live domain even if not found on persistent" 2017-08-07 21:47:34 +00:00
Jenkins 2fc0452242 Merge "tools/xenserver: Remove 'cleanup_sm_locks'" 2017-08-07 21:31:55 +00:00
EdLeafe c2d33c3271 Handle ironicclient failures in Ironic driver
The ironic driver uses ironicclient to get the list of nodes from the
Ironic service. If that service is not running, or something otherwise
prevents the ironicclient's call from succeeding, and unhandled
exception will occur. This patch adds a generic exception handler for
this call, logging an error and continuing.

Co-Authored-By: Lucas Alvares Gomes <lucasagomes@gmail.com>

Closes-Bug: #1706772

Change-Id: I4ebebcf221dfe29e2aa125f5956aec10108f8fbe
2017-08-07 18:25:41 +00:00
Jenkins b93432e907 Merge "Add Contributor Guide section page" 2017-08-07 17:18:25 +00:00
Sylvain Bauza 2bd7df84dc Fix migrate single instance when it was created concurrently
When a multiple-instance creation is requested by the user, we create a
single RequestSpec per instance (each of them having the corresponding
instance UUID) but we keep track of how many concurrent instances were
created at once by updating a field named 'num_instances' and we persist
it.

Unfortunately, due to Ifc5cf482209e4f6f4e3e39b24389bd3563d86444 we now
lookup that field in the scheduler for knowing how many allocations to
do. Since a move operation will only pass a single instance UUID to
migrate to the scheduler, there is a discrepancy that can lead to an
ugly IndexError. Defaulting that loop to be what is passed over RPC
unless we don't have it and then we default back to what we know from
the RequestSpec record.

Change-Id: If7da79356174be57481ef246618221e3b2ff8200
Closes-Bug: #1708961
2017-08-07 16:48:59 +00:00
Jenkins c6b283e132 Merge "Add resource utilities to scheduler utils" 2017-08-07 16:39:05 +00:00
Stephen Finucane 21d5dfacb4 tools/xenserver: Remove 'cleanup_sm_locks'
XenServer 6.0 has long since been replaced and the bug was fixed in 6.1
[1]. No need to keep this legacy script around.

[1] https://bugs.launchpad.net/nova/+bug/1103158/comments/1

Change-Id: I8c41e88281aaf4250859622142a2f03f4452e1be
2017-08-07 12:26:53 +00:00
Balazs Gibizer 13f52d443e Test resize with too big flavor
This test tries to resize to a flavor that requests more VCPU than
what the compute hosts has available and expect the resize to fail.
However placement returns no allocation candidate and the scheduler
falls back to the legacy filtering. As CoreFilter is not enabled the
filtering result in hosts selected without enough VCPU resource.

This is a test for an open bug therefore it asserts the wrong behavior
but it has the proper assert commented out.

Related-bug: #1708637
Change-Id: Ibd7f695d51b1f8497ca492968c7e5c69ada0a85c
2017-08-07 13:36:41 +02:00