Commit Graph

46245 Commits

Author SHA1 Message Date
Jenkins 7f050fef50 Merge "Use is_valid_cidr and is_valid_ipv6_cidr from oslo_utils" 2017-05-04 20:05:25 +00:00
Jenkins a33ac31c74 Merge "Add policy description for instance actions" 2017-05-04 19:27:55 +00:00
Jenkins a818049554 Merge "Remove cloudpipe APIs" 2017-05-04 17:05:54 +00:00
Jenkins 5ddad6f3d0 Merge "Use six.text_type() when logging Instance object" 2017-05-04 17:00:18 +00:00
Jenkins d219a3dcdc Merge "neutron: retrieve physical network name from a multi-provider network" 2017-05-04 13:50:22 +00:00
Jenkins 2746402350 Merge "Use plain routes list for os-assisted-volume-snapshots endpoint" 2017-05-04 12:21:01 +00:00
Jenkins de5cfea77d Merge "Use plain routes list for os-agents endpoint instead of stevedore" 2017-05-04 12:20:25 +00:00
Jenkins 686f500ed2 Merge "Use plain routes list for os-floating-ip-dns endpoint instead of stevedore" 2017-05-04 12:17:12 +00:00
Jenkins 14c53eeae5 Merge "conf: Deprecate 'default_floating_pool'" 2017-05-04 11:15:20 +00:00
Jenkins 7b9961aaa8 Merge "conf: Add neutron.default_floating_pool" 2017-05-04 11:14:42 +00:00
Jenkins a238cc837e Merge "Catching OverQuota Exception" 2017-05-04 11:10:03 +00:00
Matthew Treinish acdc2da0e3 Remove cloudpipe APIs
This commit removes the cloudpipe API from nova. This has been
deprecated since change I415760ff634dd85974f0c3f79e788e633852efb5 and no
longer works without nova-cert and the pending removal of the deprecated
nova-network.

Implements bp remove-nova-cert
Change-Id: Ifd1fb13a5953cc66f9cc2561d30a9efcd3f4c92e
2017-05-04 16:13:45 +08:00
Jenkins a331c3222f Merge "Add policy description for Servers IPs" 2017-05-04 03:55:22 +00:00
Jenkins 2ba7f781dd Merge "Use plain routes list for os-floating-ips-bulk endpoint instead of stevedore" 2017-05-04 01:52:09 +00:00
Vladik Romanovsky b9d9d96a40 neutron: retrieve physical network name from a multi-provider network
Multi-provider networks are a combination of vxlan and vlan networks.
such a network has a special "segments" field that holds a list
of networks. Each element of this list has the same structure as the 'provider
network attributes'.
These attributes are:
- provider:network_type
- provider:physical_network
- provider:segmentation_id

This patch will retrieve the relevant physical network name from a
multi-provider network

Change-Id: Icb9a546e6fcbf399fcef3e9ea686b35ec3817cd5
Closes-Bug: #1659467
2017-05-03 21:25:22 -04:00
Jenkins d0f797709d Merge "Fix typo in wsgi applications release note" 2017-05-04 00:27:35 +00:00
Jenkins 31840ddfba Merge "Transform instance.volume_attach notification" 2017-05-04 00:23:33 +00:00
melanie witt 564958dba6 Use six.text_type() when logging Instance object
We're seeing a trace in gate jobs, for example:

  UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
  402: ordinal not in range(128)

when attempting to log an Instance object with a unicode display name.

This resurfaced relatively recently because of the change in devstack
to use the new OSJournalHandler with use_journal=True which is
suspected of causing some deadlock issues [1] unrelated to this bug.

The problem occurs in code that logs an entire Instance object when
the object has a field with unicode characters in it (display_name).
When the object is sent to logging, the UnicodeDecodeError is raised
while formatting the log record here [2]. This implies an implicit
conversion attempt to unicode at this point.

I found that with the Instance object, the conversion to unicode fails
with the UnicodeDecodeError unless the encoding 'utf-8' is explicitly
specified to six.text_type(). And when specifying an encoding to
six.text_type(), the argument to convert must be a string, not an
Instance object, so this does the conversion in two steps as a utility
function:

  1. Get the string representation of the Instance with repr()
  2. Call six.text_type(instance_repr, 'utf-8') passing the encoding
     if not six.PY3

Closes-Bug: #1580728

[1] https://review.openstack.org/#/c/462163
[2] https://github.com/python/cpython/blob/2e576f5/Lib/logging/__init__.py#L338

Change-Id: I0fc3ae02cb2e401b3240faf0d8b6aa5dc52b91fc
2017-05-03 22:45:49 +00:00
Jenkins c58c0940a0 Merge "Add policy description for extensions" 2017-05-03 21:13:36 +00:00
Jenkins d1f620b1eb Merge "api-ref: Fix parameters in servers-action-console-output" 2017-05-03 21:11:06 +00:00
Jenkins 2b54ce7596 Merge "api-ref: Use 'note' directive" 2017-05-03 21:04:50 +00:00
Matthew Treinish 9e8ec982ac Fix typo in wsgi applications release note
This commit fixes a small typo in the wsgi-applications release note,
it's mod_proxy_uwsgi not mod_proxy_uwsgx.

Change-Id: Ibbd6c19b41c0290ffeaa0371a8d084191f0919be
2017-05-03 16:23:26 -04:00
Abhishek Sharma 510371d526 Catching OverQuota Exception
When any vm creation fails because of exceeding 'gigabytes',
'volumes', 'per_volume_gigabytes' quotas, the error message
generated is specific to 'volumes' quota which says
"Volume resource quota exceeded". Instead, the error message
should be specific to the quota which failed.

Change-Id: I9c1ac2cd4752d5aac20d06407792647b4549ad3d
Closes-Bug: 1680457
2017-05-03 19:00:34 +00:00
Jenkins af6e3074ab Merge "Updated from global requirements" 2017-05-03 18:27:15 +00:00
Jenkins 700ab86f8d Merge "Use plain routes list for os-floating-ip-pools endpoint instead of stevedore" 2017-05-03 17:00:03 +00:00
Jenkins 03e76353a8 Merge "devref and reno for nova-{api,metadata}-wsgi scripts" 2017-05-03 16:12:44 +00:00
Jenkins 10e086697c Merge "Use plain routes list for server-metadata endpoint instead of stevedore" 2017-05-03 16:00:31 +00:00
Jenkins 4fd87a763d Merge "Do not log live migration success when it actually failed" 2017-05-03 14:25:38 +00:00
ghanshyam 1079550f07 Add policy description for instance actions
This commit adds policy doc for instance actions policies.

Partial implement blueprint policy-docs

Change-Id: Id336b660fb687d096cd55bf8758dc408c45f9382
2017-05-03 14:09:59 +00:00
OpenStack Proposal Bot d5561c6ed3 Updated from global requirements
Change-Id: Iee9790e4b86cc74c14fdc99c4a9a6f294898e86d
2017-05-03 12:19:07 +00:00
Jenkins 0a7965030d Merge "Remove unnecessary execute permissions" 2017-05-03 11:47:51 +00:00
Jenkins 97b4014510 Merge "Add pbr-installed wsgi application for metadata api" 2017-05-03 10:35:12 +00:00
He Jie Xu ee97bf77a7 Add policy description for extensions
This commit adds policy doc for extensions API.

Partial implement blueprint policy-docs

Change-Id: I8fae871726964d48787663b8c7c10333f2bb3ea3
2017-05-03 17:44:47 +08:00
Jenkins 19fdd69048 Merge "Remove nova-cert leftovers" 2017-05-03 03:26:50 +00:00
Kevin_Zheng f41acdd57e 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
Gábor Antal 64ae9416e1 Transform instance.volume_attach notification
Change-Id: Ie10b3476c1d7cffeeb55d63cc8d9f2a166ec1109
Implements: bp versioned-notification-transformation-pike
2017-05-02 16:00:23 -04:00
Chris Dent 4b89755784 devref and reno for nova-{api,metadata}-wsgi scripts
This provides a brief explanation of the new nova-api-wsgi [1] and
nova-metadata-wsgi [2] scripts in the Architecture section of the devref
with links to the new doc added to the man pages for the eventlet
scripts.

The nova-api.rst mentioned ec2 so figured best to fix that now
rather than forget about it, despite not being entirely germane.

There is also a reno note that indicates the availability of the new
scripts.

There is a devstack change which is testing the new wsgi scripts as
well as forcing grenade to not use them at
If2d7e363a6541854f2e30c03171bef7a41aff745

[1] I7c4acfaa6c50ac0e4d6de69eb62ec5bbad72ff85
[2] Icb35fe2b94ab02c0ba8ba8129ae18aae0f794756

Change-Id: I351b2af3b256d3031bd2a65feba0495e815f8427
Related-Bug: #1661360
2017-05-02 16:58:28 +00:00
Chris Dent bc257f7a23 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
Jenkins 951063b3a9 Merge "Use plain routes list for os-floating-ips endpoint instead of stevedore" 2017-05-02 16:43:28 +00:00
Jenkins da736d4fca Merge "remove unused functions" 2017-05-02 16:11:28 +00:00
Jenkins 3653231715 Merge "Update devref with vendordata changes." 2017-05-02 16:10:54 +00:00
Michael Still 812801561d Update devref with vendordata changes.
Change-Id: Id0e39e998b6fa46b0fc91d3512afdafcf50a01a2
2017-05-02 15:10:54 +00:00
Sean Dague 4eec543090 remove unused functions
This removes all the odd start / stop functions that should not be used

Change-Id: Idc5c0ca929b5f53bf55cbcf4297a590e7e0e2eff
2017-05-02 10:36:30 -04:00
Sean Dague e59eee6db5 Use systemctl to restart services
The restart code for the live migration configure on the fly tests was
really really fragile clippings of old bits of devstack code that
barely worked (and assumed a very specific run environment).

Given that we're going to get rid of everything other than systemd in
devstack, just jump straight to using systemd primitives here. This
dramatically simplifies the code, and will ensure things actually
restart correctly.

Closes-Bug: #1687511

Change-Id: I914430d68f64d29932c9409d055b15e4cb384ec4
2017-05-02 14:20:35 +00:00
Emilien Macchi f2121f5880 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 7f04090c57 Add policy description for Servers IPs
This commit adds policy doc for Servers IPs policies.

Partial implement blueprint policy-docs

Change-Id: I94a7c023dd97413d30f5be9edc313caeb47cb633
2017-05-02 11:09:26 +00:00
Takashi NATSUME dccd839dfd Remove unnecessary execute permissions
TrivialFix
Change-Id: Ic3a634071b5b7629151f434c8549031b12f9baea
2017-05-02 14:39:25 +09:00
ghanshyam 564f14f4bc 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 891fe89fb5 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 58676763b9 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