Commit Graph

46902 Commits

Author SHA1 Message Date
ghanshyam 24fadbec46 Use plain routes list for os-baremetal-nodes endpoint instead of stevedore
This patch adds os-baremetal-nodes related routes
by a plain list, instead of using stevedore. After all the Nova
API endpoints moves to the plain routes list, the usage of stevedore
for API loading will be removed from Nova.

Partial-implement-blueprint api-no-more-extensions-pike

Change-Id: I2df8f897cf2d53d01e5e9156efbcddd7aa988473
2017-07-12 20:58:55 +08:00
He Jie Xu 7f484134fb Use plain routes list for os-security-group-default-rules instead of stevedore
This patch adds os-security-group-default-rules related routes by a plain list,
instead of using stevedore.

After all the Nova API endpoints moves to the plain routes list,
the usage of stevedore for API loading will be removed from Nova.

Partial-implement-blueprint api-no-more-extensions-pike
Change-Id: Ifd7c8fc508c0afdb3ce14a4514862805a1569a8b
2017-07-12 20:58:40 +08:00
He Jie Xu c4a95099ab Use plain routes list for os-security-group-rules instead of stevedore
This patch adds os-security-group-rules related routes by a plain list,
instead of using stevedore.

After all the Nova API endpoints moves to the plain routes list,
the usage of stevedore for API loading will be removed from Nova.

The API sample tests are missed for os-security-group-rules API,
this patch adds them to ensure the route working correctly.

Partial-implement-blueprint api-no-more-extensions-pike

Change-Id: I2d3ac79fdb0314014f4b8b69a9c5f27a922d9046
2017-07-12 20:58:26 +08:00
He Jie Xu 75136bb5cd Use plain routes list for server-security-groups instead of stevedore
This patch adds server-security-groups related routes by a plain list,
instead of using stevedore.

After all the Nova API endpoints moves to the plain routes list,
the usage of stevedore for API loading will be removed from Nova.

Partial-implement-blueprint api-no-more-extensions-pike

Change-Id: I8bd7676ccb37a041548ef2df729130b8bdf7a28c
2017-07-12 20:58:11 +08:00
He Jie Xu ee87df22ec Use plain routes list for os-security-groups instead of stevedore
This patch adds os-security-groups related routes by a plain list,
instead of using stevedore.

After all the Nova API endpoints moves to the plain routes list,
the usage of stevedore for API loading will be removed from Nova.

Partial-implement-blueprint api-no-more-extensions-pike

Change-Id: I3dde45b63cb633819d14b5fed55403f209347be4
2017-07-12 20:57:59 +08:00
He Jie Xu 25e9b0129a Use plain routes list for image-metadata instead of stevedore
This patch adds image-metadata related routes by a plain list,
instead of using stevedore.

After all the Nova API endpoints moves to the plain routes list,
the usage of stevedore for API loading will be removed from Nova.

Partial-implement-blueprint api-no-more-extensions-pike

Change-Id: I466d2e1693f56ee32fa32fd74789f88c1d0a1f7c
2017-07-12 20:57:46 +08:00
He Jie Xu d0093c5cc3 Use plain routes list for images instead of stevedore
This patch adds images related routes by a plain list,
instead of using stevedore.

After all the Nova API endpoints moves to the plain routes list,
the usage of stevedore for API loading will be removed from Nova.

Partial-implement-blueprint api-no-more-extensions-pike

Change-Id: I884dbfef8032a34d155a7022037f5690d86ef532
2017-07-12 20:57:33 +08:00
He Jie Xu 156fe42d8d Remove the test for the route '/resources.:(format)'
Requesting the specific format response should be done by HTTP header
'ACCEPT'. The way of '/resources.:(format)' doesn't support or doc
in the Nova API officially. And all of those kind of URL routes are
removed in the Pike release. This patch removes the related unittest.

Partial-implement-blueprint api-no-more-extensions-pike

Change-Id: I2bda2087ba1f07f6ec0f65713ce75234ff00c0df
2017-07-12 20:57:16 +08:00
ghanshyam 53393ca27e Use plain routes list for os-networks instead of stevedore
This patch adds os-networks related routes by a plain list,
instead of using stevedore.

After all the Nova API endpoints moves to the plain routes list,
the usage of stevedore for API loading will be removed from
Nova.

Partial-implement-blueprint api-no-more-extensions-pike

Change-Id: I49a424979394d0de7d8eae564468e29ee94b8bfa
2017-07-12 17:36:35 +08:00
jichenjc 408fcfd604 Use plain routes list for os-cells endpoint instead of stevedore
This patch adds os-cells related routes by a plain list,
instead of using stevedore.

After all the Nova API endpoints moves to the plain routes list,
the usage of stevedore for API loading will be removed from Nova.

Partial-implement-blueprint api-no-more-extensions-pike

Change-Id: Iec6e720b4e225251ce06ddfecb316569f9260913
2017-07-04 00:07:40 +00:00
Stephen Finucane 7c73d39df6 Use plain routes list for os-remote-consoles instead of stevedore
This patch adds os-remote-consoles related routes by a plain list,
instead of using stevedore.

After all the Nova API endpoints moves to the plain routes list,
the usage of stevedore for API loading will be removed from Nova.

Partial-implement-blueprint api-no-more-extensions-pike

Change-Id: Id192220445e296656eedb79e39042cd00bbe65a7
2017-06-19 16:49:34 +01:00
Stephen Finucane e2020996ae Remove multiple create from stevedore
The stevedore will be removed from the nova API code. And the extension info
API already is implemented by a hard-code list. So this multiple create extension
entry is useless anymore.

Partial-implement-blueprint api-no-more-extensions-pike

Change-Id: I57caf68d62393b32f800300d4504dd726c3a37c4
2017-06-19 16:49:34 +01:00
ghanshyam e32ce7cf94 Use plain routes list for os-tenant-networks instead of stevedore
This patch adds os-tenant-networks related routes by a plain list,
instead of using stevedore.

After all the Nova API endpoints moves to the plain routes list,
the usage of stevedore for API loading will be removed from Nova.

Partial-implement-blueprint api-no-more-extensions-pike

Change-Id: I54c03a5ec3311677fc095425b71c2b590ff5c987
2017-06-19 16:44:19 +01:00
jichenjc facfe2ac42 Use plain routes list for os-cloudpipe endpoint instead of stevedore
This patch adds os-cloudpipe related routes by a plain list,
instead of using stevedore.

After all the Nova API endpoints moves to the plain routes list,
the usage of stevedore for API loading will be removed from Nova.

Partial-implement-blueprint api-no-more-extensions-pike

Change-Id: Id02d878867dec642fab72981cd0b492c62c846fb
2017-06-19 16:44:19 +01:00
jichenjc ceed63ff7d Use plain routes list for os-quota-classes endpoint instead of stevedore
This patch adds os-quota-classes related routes by a plain list, instead
of using stevedore. After all the Nova API endpoints moves to the plain
routes list, the usage of stevedore for API loading will be removed from
Nova.

Because of os-server-group-quotas is never loaded, we can safely removed
the logic check for server-group data and possibily return it though a
microversion update if needed.

Partial-implement-blueprint api-no-more-extensions-pike

Change-Id: I34c776bedc0bc5fc0ef4d29dd3b8f84e914d83e2
2017-06-19 16:38:03 +01:00
Jenkins bc4c91e7be Merge "Amend api-ref for multiple networks request" 2017-06-19 14:28:13 +00:00
Jenkins 3e02460e2e Merge "[placement] Increase test coverage" 2017-06-19 09:36:32 +00:00
Jenkins 3e732d332a Merge "Fix regression preventing reporting negative resources for overcommit" 2017-06-16 17:24:20 +00:00
Dan Smith 0ddf3ce011 Fix regression preventing reporting negative resources for overcommit
In Nova prior to Ocata, the scheduler computes available resources for
a compute node, attempting to mirror the same calculation that happens
locally. It does this to determine if a new instance should fit on the
node. If overcommit is being used, some of these numbers can be negative.

In change 016b810f67 we changed the
compute side to never report negative resources, which was an ironic-
specific fix for nodes that are offline. That, however, has been
corrected for ironic nodes in 047da6498d.
Since the base change to the resource tracker has caused the scheduler
and compute to do different math, we need to revert it to avoid the
scheduler sending instances to nodes where it believes -NNN is the
lower limit (with overcommit), but the node is reporting zero.

This doesn't actually affect Ocata because of our use of the placement
engine. However, this code is still in master and needs to be backported.
This part of the change actually didn't even have a unit test, so
this patch adds one to validate that the resource tracker will
calculate and report negative resources.

Change-Id: I25ba6f7f4e4fab6db223368427d889d6b06a77e8
Closes-Bug: #1698383
2017-06-16 07:39:17 -07:00
Jenkins 8238e8aaa0 Merge "Transform keypair.create notification" 2017-06-16 11:07:41 +00:00
Jenkins 2e57d29d00 Merge "Updated from global requirements" 2017-06-15 21:38:31 +00:00
Jenkins 71ccddf1be Merge "Add PowerVM to nova support matrix" 2017-06-15 20:59:20 +00:00
Jenkins f8c8a9902c Merge "Use CONF.host for powervm nodename" 2017-06-15 19:46:48 +00:00
Jenkins 4a0fb6ae79 Merge "Stop caching compute nodes in the request" 2017-06-15 19:10:15 +00:00
OpenStack Proposal Bot b2f2359119 Updated from global requirements
Change-Id: Ifb14f0d61aaf89bee6c5ba74d09dd936bd318fbc
2017-06-15 16:29:59 +00:00
Jenkins df5b135053 Merge "[placement] Use util.extract_json in allocations handler" 2017-06-15 13:53:00 +00:00
Eric Berglund 0fbb97f3c3 Add PowerVM to nova support matrix
Base PowerVM support has been added to nova [1-7]. This updates the
support matrix to include PowerVM features.

[1] https://review.openstack.org/#/c/438119/
[2] https://review.openstack.org/#/c/438598/
[3] https://review.openstack.org/#/c/438729/
[4] https://review.openstack.org/#/c/427380/
[5] https://review.openstack.org/#/c/391288/
[6] https://review.openstack.org/#/c/409402/
[7] https://review.openstack.org/#/c/443189/

Closes-Bug: #1693083
Partially-Implements: blueprint powervm-nova-compute-driver

Change-Id: I0583400b546d3cb32f2fe828711df8272c5ab5af
2017-06-15 09:38:36 -04:00
Jenkins 07d8d7135e Merge "Centralize compute_node_search_by_hypervisor in os-hypervisors" 2017-06-15 12:54:12 +00:00
Jenkins d68626595e Merge "Make all timestamps formats equal" 2017-06-15 10:13:38 +00:00
Jenkins d804819f5b Merge "conf: remove console_driver opt" 2017-06-15 07:16:26 +00:00
Matt Riedemann c078dc2f2d Stop caching compute nodes in the request
Caching compute nodes in the request was added in change
I73a96db7beb4cc0f017008f81e9f671382ad9105. That was so the
PciHypervisorController could use them, which was an extension
on the hypervisors API.

The os-pci API (and the PciHypervisorController) was removed in
change I9099744264eeec175672d10d04da69648dec1a9d so nothing needs
the compute nodes from the request cache anymore.

Change-Id: I06aacb9d4a8cff8180010c69d3aa32c0492fe2bc
2017-06-14 20:35:37 -04:00
Matt Riedemann ffeacdaa74 Centralize compute_node_search_by_hypervisor in os-hypervisors
The search and servers routes have very similar code that is calling
compute_node_search_by_hypervisor and passing the hypervisor
hostname pattern. There is going to be an upcoming change where
we deprecate these APIs and move them into the index() method using
query parameters, so we'll need to use similar code. So centralize
this now so the later change is simpler and can just re-use it.

Part of blueprint service-hyper-uuid-in-api

Change-Id: Ic72b47c11b83ce5151bc34b13eb78af4676dc71a
2017-06-14 20:35:29 -04:00
Jenkins 28769f9990 Merge "Make compute_node_statistics() work across cells" 2017-06-14 22:49:15 +00:00
Jenkins eaec381d53 Merge "Count server group members to check quota" 2017-06-14 22:40:24 +00:00
Dan Smith 5fc1dfc0f4 Make compute_node_statistics() work across cells
This makes us issue the stats call once per (non-cell0) cell and
summarize the results.

Related to blueprint cells-aware-api

Change-Id: I6a2782ce4a83df8d63bc4ef09b57ae8b5cfb7fbb
2017-06-14 10:21:13 -07:00
Jenkins b94b02b450 Merge "Remove service control from feature support matrix" 2017-06-14 15:48:44 +00:00
Jenkins ae1800465f Merge "Indicate Hyper-v supports fibre channel in support matrix" 2017-06-14 15:47:58 +00:00
Jenkins 736f504c5d Merge "api-ref: fix misleading description in PUT /os-services/disable" 2017-06-14 12:49:53 +00:00
Balazs Gibizer 75a6f796b0 Make all timestamps formats equal
Prior to this patch notifications for instance
uses different format for datetime fields
This patch aligns that formating

Co-Authored-By: Timofey Durakov <tdurakov@mirantis.com>

Change-Id: I946a92601e4268bb224fc35b2052bca7436531f4
Closes-Bug: #1657428
2017-06-14 13:31:29 +02:00
Jenkins 5fc8e6b584 Merge "Use plain routes list for os-server-groups endpoint instead of stevedore" 2017-06-14 10:48:48 +00:00
Jenkins f63626be4e Merge "remove get_nw_info_for_instance from compute.utils" 2017-06-14 10:26:12 +00:00
Jenkins ced758f10b Merge "Use plain routes list for user_data instead of stevedore" 2017-06-14 06:55:26 +00:00
Béla Vancsics ad56be6d22 Transform keypair.create notification
The keypair.create.start and keypair.create.end notifications
has been transformed to the versioned notification framework.

Change-Id: I71e9d8dae55653ad3ee70f708a6d92c98ed20c1c
Implements: bp versioned-notification-transformation-pike
2017-06-14 07:28:47 +02:00
OpenStack Proposal Bot b200510b35 Updated from global requirements
Change-Id: I2cf8ecc0202192a27e46f30b9617938251b6f096
2017-06-14 00:35:01 +00:00
Jenkins d26b3e7051 Merge "libvirt: dump debug info when interface detach times out" 2017-06-13 23:06:37 +00:00
Matt Riedemann a9ba1be7b7 api-ref: fix misleading description in PUT /os-services/disable
The PUT /os-services/disable API does not actually check the
request body for a reason why the service is being disabled.
That's what PUT /os-services/disable-log-reason is for.

This removes that incorrect part of the API description.

Closes-Bug: #1697787

Change-Id: I7a0bbdad842e5d420085777d4fe2f9e6d3e94360
2017-06-13 18:42:42 -04:00
Matt Riedemann bf5aa0bed1 Remove service control from feature support matrix
This is a carry over from the old wiki in the initial port
to in-tree docs:

  https://wiki.openstack.org/wiki/HypervisorSupportMatrix/Juno

No one knows what "service control" means, and even the doc
says that, so rather than advertise something we can't even
define, let's just remove it to avoid confusion.

Change-Id: I90b6d9bf720f33175fd6e18b2480d381e90d0761
2017-06-13 17:17:56 -04:00
Jenkins 96d059ff38 Merge "remove ugly local import" 2017-06-13 21:12:30 +00:00
Matt Riedemann 9e70a60a58 Indicate Hyper-v supports fibre channel in support matrix
The hyper-v driver added support for fibre channel-backed volumes
with change Ib21947141aadca1fa6cb99afc07a175ce14d192e in Ocata.

Change-Id: Id27f91684dddad9235fd4cad1abae125bb13abf9
2017-06-13 17:11:21 -04:00
Matthew Edmonds f2e8244e16 Use CONF.host for powervm nodename
The get_available_nodes method of the powervm virt driver was
returning a string based on the machine type, model, and serial
number of the host. This was inconsistent with other drivers. It also
required a working NovaLink connection, which cannot be guaranteed.
This change replaces the MTMS string with CONF.host.

Change-Id: I82142981281f2c26c98e829c728fa96df7555ffd
Partially-Implements: blueprint powervm-nova-compute-driver
2017-06-13 16:36:59 -04:00