406 Commits

Author SHA1 Message Date
jichenjc
5f668706f6 Use plain routes list for os-services endpoint instead of stevedore
This patch adds os-services 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: Ib145494b9fc3c660176098e4168cf72db507f34d
2017-06-07 14:25:58 +08:00
Stephen Finucane
e3f52773cb use plain routes list for os-virtual-interfaces
This patch adds os-virtual-interfaces 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: I47ccef43e41da0a85bff3da71655c33b6fea4fe4
2017-06-07 14:25:58 +08:00
jichenjc
f6e0ef143d use plain routes list for hypervisor endpoint instead of stevedore
This patch adds hypervisors 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: I1095e91b5ef84995b32b38445b0876b132b9627a
2017-06-07 14:25:58 +08:00
jichenjc
de5a6c030b Use plain routes list for hosts endpoint instead of stevedore
This patch adds hosts 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: I1a205faab6f34158744436e79ae2ed9f80132b58
2017-06-07 14:25:58 +08:00
ghanshyam
3ef53c147a Use plain routes list for os-fping endpoint
This patch adds os-fping 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: Id58263258fe3cc28961fb095b4d758eef234ca47
2017-06-07 14:25:58 +08:00
ghanshyam
7a26ef4094 Use plain routes list for instance actions endpoint
This patch adds instance actions 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: I1ae0797ac8ca1cd64bb0d92d4c14aa96d4a59d62
2017-06-07 14:25:58 +08:00
Stephen Finucane
fe0d19323d Use plain routes list for server ips endpoint
This patch adds server ips 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: I4c0a023ab295cdb0c71ff4800f288946215745ce
2017-06-07 14:25:58 +08:00
ghanshyam
f6be3457ba Use plain routes list for server diagnostics endpoint
This patch adds server diagnostics 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: I308d12c1e152ac70b11f40024b68eaa371ce6658
2017-06-01 11:47:51 +01:00
ghanshyam
5bc9aa4e8f Use plain routes list for os-server-external-events endpoint
This patch adds os-server-external-events 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: I112f096e74ce363e259b55b7155b6ec738c40e1d
2017-06-01 11:47:51 +01:00
He Jie Xu
3a3b7e06cb Use plain routes list for server-migrations endpoint instead of stevedore
This patch adds server-migrations 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: Idd8bd0b500db85826ee730e91f9f7e3e5667044e
2017-06-01 11:47:51 +01:00
He Jie Xu
72920043af Use plain routes list for server-tags instead of stevedore
This patch adds server-tags 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: Iee90d82d73db849b453830d2a5e6acd5c7afb1aa
2017-06-01 11:47:51 +01:00
He Jie Xu
be3a804cab Use plain routes list for os-interface endpoint instead of stevedore
This patch adds os-interface 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: I4afbc20e60bb8d324027903879d60f808595dac1
2017-06-01 11:47:51 +01:00
jichenjc
51aa212985 Use plain routes list for limits endpoint instead of stevedore
This patch adds limits and os-used-limits
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: I170a081fe874447fab4eee7c6dc57f8028f7b9a3
2017-05-24 14:29:07 +08:00
jichenjc
1c9cb01deb Use plain routes list for os-migrations endpoint instead of stevedore
This patch adds os-migrations 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: Ic6ded36d2247a01f8b41027cc07ef251b3570a46
2017-05-27 10:12:52 +00:00
jichenjc
a5d605151b Use plain routes list for os-quota-sets endpoint instead of stevedore
This patch adds os-quota-sets 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: I2b9b3f2acef09e553245ce6ebac18f26269d81d0
2017-05-22 18:02:23 +08:00
jichenjc
8f0409a7bb Use plain routes list for os-certificates endpoint instead of stevedore
This patch adds os-certificates 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: I5ea28983bddbc615cb5e8613d25367341cdef0de
2017-05-22 18:02:23 +08:00
Kevin_Zheng
d5e3d3abb3 Use plain routes list for server-password endpoint instead of stevedore
This patch adds server-password 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: Ic05b858fa5db711e0e755e6d7c2beaffbc9bc2b8
2017-05-17 09:32:31 +08:00
Jenkins
1eabe0ec77 Merge "use plain routes list for os-simple-tenant-usage" 2017-05-08 06:32:08 +00:00
Jenkins
c8cb5f24b6 Merge "Use plain routes list for os-instance-usage-audit-log endpoint instead of stevedore" 2017-05-05 06:37:15 +00:00
Jenkins
f7aff60869 Merge "Use plain routes list for os-fixed-ips endpoint instead of stevedore" 2017-05-05 00:13:00 +00:00
Jenkins
66d8d05867 Merge "Use plain routes list for os-availability-zone endpoint instead of stevedore" 2017-05-05 00:12:19 +00:00
Jenkins
0d9ddcf91d Merge "Use plain routes list for os-assisted-volume-snapshots endpoint" 2017-05-04 12:21:01 +00:00
Jenkins
c16e1a667b Merge "Use plain routes list for os-agents endpoint instead of stevedore" 2017-05-04 12:20:25 +00:00
Jenkins
07964f3d85 Merge "Use plain routes list for os-floating-ip-dns endpoint instead of stevedore" 2017-05-04 12:17:12 +00:00
Jenkins
6eba922143 Merge "Use plain routes list for os-floating-ips-bulk endpoint instead of stevedore" 2017-05-04 01:52:09 +00:00
Jenkins
575a326e4b Merge "Use plain routes list for os-floating-ip-pools endpoint instead of stevedore" 2017-05-03 17:00:03 +00:00
Jenkins
f6f2b0b750 Merge "Use plain routes list for server-metadata endpoint instead of stevedore" 2017-05-03 16:00:31 +00:00
Jenkins
3d8c5062f3 Merge "Add pbr-installed wsgi application for metadata api" 2017-05-03 10:35:12 +00:00
Jenkins
1c1ddfba04 Merge "Remove nova-cert leftovers" 2017-05-03 03:26:50 +00:00
Kevin_Zheng
2f37b2b39a Use plain routes list for server-metadata endpoint instead of stevedore
This patch adds server-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: I88ca06d63016ffd1e38b61e6de0b75f88ecdb138
2017-05-03 02:45:17 +00:00
Chris Dent
ccff67e3ec Add pbr-installed wsgi application for metadata api
Modify the wsgi application for the compute api so that it can be
used by different services and use it for the metadata service,
resulting in a wsgi script named nova-metadata-wsgi.

Change-Id: Icb35fe2b94ab02c0ba8ba8129ae18aae0f794756
2017-05-02 16:58:11 +00:00
Emilien Macchi
8b07c01bbf Remove nova-cert leftovers
Right now, we can't build Nova package in RDO because the tooling still
find some bits for nova-cert in Nova codebase.
This patch aims to purge them:

- man entry for nova-cert
- nova-cert binary in setup.cfg

Change-Id: Iebee0fbcdad5808e6543e3bcad10ea1f08b8f306
2017-05-02 08:19:29 -04:00
ghanshyam
58993bbec6 Use plain routes list for os-fixed-ips endpoint instead of stevedore
This patch adds os-fixed-ips 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: I0035397a78f05f406c64c064ef953d41c2cd79e4
2017-05-01 19:05:18 +00:00
ghanshyam
081511de72 Use plain routes list for os-availability-zone endpoint instead of stevedore
This patch adds os-availability-zone 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: I19ad0d6a3fce2342097d8a61ee4f60adf0e14aa3
2017-05-01 22:02:45 +03:00
ghanshyam
1d287a676a Use plain routes list for os-assisted-volume-snapshots endpoint
This patch adds os-assisted-volume-snapshots 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: I1dabc1021e6899d5d5c293e3af3eccfba8d245e2
2017-05-01 20:59:26 +03:00
ghanshyam
47dbc08dd1 Use plain routes list for os-agents endpoint instead of stevedore
This patch adds os-agents 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: Ie34c861cdcab5ae7ea73e8c00e9c190ae6a32a94
2017-05-01 20:31:17 +03:00
ghanshyam
093d435e36 Use plain routes list for os-floating-ip-dns endpoint instead of stevedore
This patch adds os-floating-ip-dns 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: Id0df46d980c8141e6207d221e9bbe1d31f50aea3
2017-05-01 20:03:20 +03:00
ghanshyam
aa7e3c0581 Use plain routes list for os-floating-ips-bulk endpoint instead of stevedore
This patch adds os-floating-ips-bulk 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: Ibd52a1dd8b1f0b89d6ed9547131ccfe25a36275a
2017-05-01 19:22:14 +03:00
ghanshyam
60f7778f13 Use plain routes list for os-floating-ip-pools endpoint instead of stevedore
This patch adds os-floating-ip-pools 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: I50de6ca3fa7ad6bd1ca317682fd0ab0362ea9e29
2017-05-01 19:01:16 +03:00
ghanshyam
ab8757d57a Use plain routes list for os-floating-ips endpoint instead of stevedore
This patch adds os-floating-ips 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: Iffcd760bc7b9f35596255ab8e59734166eed98af
2017-05-01 18:39:40 +03:00
jichenjc
97780cf192 use plain routes list for os-simple-tenant-usage
This patch adds os-simple-tenant-usage
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: I3c8832f82c3e4137be564ee97b4de28a6e836f18
2017-04-29 14:34:13 +08:00
jichenjc
1eaa1090d0 Use plain routes list for os-instance-usage-audit-log endpoint instead of stevedore
This patch adds os-instance-usage-audit-log 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: I0877f221954374bd3d8ff2f3d91163d450433dbc
2017-04-29 14:32:54 +08:00
Jenkins
351fa9658b Merge "Register osapi_compute when nova-api is wsgi" 2017-04-26 18:09:10 +00:00
Chris Dent
35067971e3 Register osapi_compute when nova-api is wsgi
When the nova-api services starts from its own standalone binary it
registers itself in the services table. The original wsgi script in
nova/wsgi/nova-api.py did not, leading to the bug referenced below.

The new wsgi script at nova.api.openstack.compute.wsgi, modelled on
a similar thing used for the placement API, provides the necessary
service registration.

If a ServiceTooOld exception happens while trying to register the
service then a very simple (currently very stubby) application is
loaded instead of the compute api. This application returns a 500
and a message.

Some caveats/todos:

* wsgi apps managed under mod-wsgi (and presumably other containers)
  are not imported/compiled/run until the first request is made. In
  this case that means the service handling does not happen until
  that first request, somewhat defeating the purpose if the api is a
  bit idle.

Change-Id: I7c4acfaa6c50ac0e4d6de69eb62ec5bbad72ff85
Closes-Bug: #1661360
2017-04-25 15:40:37 +00:00
He Jie Xu
5b0a344dcd Use plain routes list for '/os-aggregates' endpoint instead of stevedore
This patch adds '/os-aggregates' 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.

Also note that the original 'ProjectMapper' use the 'routes.Mapper.resource'
to create a set of routes for a resource which comform to the Atom
publishing protocol. It includes some of URL mappings we didn't document
before. This patch will remove those URL mappings. For the detail,
please reference:
http://lists.openstack.org/pipermail/openstack-dev/2017-March/114736.html

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

Change-Id: Ia41c096a579eb1a7c5b99bd6e9267ab4b7f81776
2017-04-25 22:38:37 +08:00
He Jie Xu
63b1f3013d Use plain routes list for '/os-keypairs' endpoint instead of stevedore
This patch adds '/os-keypairs' 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.

Also note that the original 'ProjectMapper' use the 'routes.Mapper.resource'
to create a set of routes for a resource which comform to the Atom
publishing protocol. It includes some of URL mappings we didn't document
before. This patch will remove those URL mappings. For the detail,
please reference:
http://lists.openstack.org/pipermail/openstack-dev/2017-March/114736.html

Partial-implement-blueprint api-no-more-extensions-pike
Change-Id: I9b18e7acce37ba935f4302cc89c3aeccc4f50915
2017-04-25 22:38:37 +08:00
ghanshyam
0e93e7f740 Use plain routes list for flavors-access endpoint instead of stevedore
This patch adds flavors-access 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: I284516a396e99a5a1c2113ad4ef3e4618628caa9
2017-04-25 22:38:37 +08:00
ghanshyam
9b8ec84bd6 Use plain routes list for flavors-extraspecs endpoint instead of stevedore
This patch adds flavors-extraspecs 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: I7578ef265458365b44b366c4021d0566c39ea936
2017-04-25 22:38:37 +08:00
ghanshyam
e169a149e5 Use plain routes list for flavor endpoint instead of stevedore[1]
This patch adds flavor 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.
flavor access and extraspecs router will be added in part2.

Also note that the original 'ProjectMapper' use the 'routes.Mapper.resource'
to create a set of routes for a resource which comform to the Atom
publishing protocol. It includes some of URL mappings we didn't document
before. This patch will remove those URL mappings. For the detail,
please reference:
http://lists.openstack.org/pipermail/openstack-dev/2017-March/114736.html

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

Change-Id: I1c3db4e94ccc27925d800876dcf470614f563cd1
2017-04-25 22:38:37 +08:00
He Jie Xu
6e63ce7bf6 Use plain routes list for '/servers' endpoint instead of stevedore
This patch add '/servers' 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 loading the API
will be removed from Nova.

To remove the servers extension from stevedore, all the extensions
which depend on servers needs to be removed together. Those
extensions are about the servers API response extension and the action
extension.

Also note that the original 'ProjectMapper' use the 'routes.Mapper.resource'
to create a set of routes for a resource which comform to the Atom
publishing protocol. It includes some of URL mappings we didn't document
before. This patch will remove those URL mappings, also remove the
corresponding URL mappings for 'os-volumes_boot' endpoint. For the detail,
please reference:
http://lists.openstack.org/pipermail/openstack-dev/2017-March/114736.html

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

Change-Id: I76c384c10bd804fc2049aef305044149bb55d0dc
2017-04-25 22:38:33 +08:00