45592 Commits

Author SHA1 Message Date
Jenkins
511b46e8a3 Merge "Remove unused VIFModel._get_legacy method" 2017-03-21 17:35:02 +00:00
Jenkins
1edeef1283 Merge "Refactor: remove _items() in nova/api/openstack/compute/attach_interfaces.py" 2017-03-21 17:23:58 +00:00
Jenkins
8e1100f641 Merge "remove log translation from nova.api.metadata" 2017-03-21 14:31:00 +00:00
Jenkins
ba8c52daeb Merge "Add description to policies in attach_interfaces.py" 2017-03-21 14:25:45 +00:00
Jenkins
2f517cb881 Merge "Add description to policies in volumes_attachments.py" 2017-03-21 14:25:15 +00:00
Jenkins
3d91834470 Merge "Add description to policies in volumes.py" 2017-03-21 14:23:04 +00:00
Jenkins
a0197a7127 Merge "update i18n guide for nova" 2017-03-21 13:51:23 +00:00
Sujitha
53f1385115 Refactor: remove _items() in nova/api/openstack/compute/attach_interfaces.py
removing _items() as this method is called only once and also to
ensure policy checks happen in the API methods.

blueprint policy-docs

Change-Id: I43683e53d1d277f3ed6cc5a274b5b940fcfc55cb
2017-03-21 13:22:10 +00:00
Jenkins
1d45863758 Merge "Add helper method to add additional data about policy rule." 2017-03-21 11:50:31 +00:00
Sean Dague
463eb6b283 remove log translation from nova.api.metadata
This removes log translation markers from nova.api.metadata, now that
these are no longer being used.

Change-Id: Ie36fce60822cbff9abe19c7a72be5280330fc370
2017-03-21 07:15:54 -04:00
Sean Dague
e580afa839 update i18n guide for nova
This reflects the new approach of not translating log messages

Change-Id: Ie402c697a76a78db039a05ee03c60381ba37d91e
2017-03-21 07:15:54 -04:00
Sujitha
0ee97ba27b Add description to policies in attach_interfaces.py
The 'discoverable' policy is not documented as it will be removed in a
future change.

blueprint policy-docs

Change-Id: I0cf3bc151601e4d679682615a35be69f5320be39
2017-03-21 10:58:04 +00:00
Anusha Unnam
c5b22b592a Add description to policies in volumes_attachments.py
The 'discoverable' policy is not documented as it will be removed in a
future change.

blueprint policy-docs

Change-Id: Ibb46e196ef7e67bdac95e390b24e68e1c6a6ceae
2017-03-21 10:50:08 +00:00
Anusha Unnam
5e21c6219e Add description to policies in volumes.py
The 'discoverable' policy is not documented as it will be removed in a
future change.

blueprint policy-docs

Change-Id: I58f11206de94670b2fef85b05c398c7a7b8c640a
2017-03-21 10:46:38 +00:00
Jenkins
1e0e4080fb Merge "DELETE all inventory for a resource provider" 2017-03-21 02:44:58 +00:00
Jenkins
67418e5ce1 Merge "fix os-volume_attachments policy checks" 2017-03-21 02:14:56 +00:00
Jenkins
6f66119153 Merge "Prevent delete cell0 in nova-manage command" 2017-03-20 18:22:08 +00:00
Matthew Edmonds
4aa55f3edf fix os-volume_attachments policy checks
The os-volume_attachments APIs have their own policy settings defined,
yet were also checking the policy settings defined for the os-volumes
APIs. This should never have been the case, but especially not now
that the os-volumes APIs are deprecated and don't even work anymore
with newer microversions. This change removes the os-volumes policy
checks for os-volume_attachment API requests. The code will continue
to make os-volumes policy checks for os-volumes APIs, and
os-volume_attachment policy checks for os-volume_attachment APIs.

Removed the _items method, which was only being called from one place,
to resolve comments that policy checks should always happen immediately
upon entering the API methods.

Change-Id: I35aaedf5c4c49cb568fa06c2974f9a35aa2ffcc5
Closes-Bug: #1635358
UpgradeImpact
2017-03-20 18:08:27 +00:00
Jenkins
83df38ef4a Merge "conf: fix default values reporting infra worker" 2017-03-20 16:19:49 +00:00
Matt Riedemann
685e41f71f Remove unused VIFModel._get_legacy method
This was introduced in d777301135c4ed410cd43868e9d23790b99e68ff
and was dead code from the start.

Change-Id: I9ca1cbfac903a2f116eb66bea7f3b51f7459fd6f
2017-03-20 12:19:31 -04:00
Jenkins
efdc75fcb9 Merge "Move to tooz hash ring implementation" 2017-03-20 16:18:53 +00:00
Jenkins
e3eac21382 Merge "More usage of ostestr and cleanup an unused dependency" 2017-03-20 16:04:47 +00:00
John Garbutt
e48e002264 Add helper method to add additional data about policy rule.
We need operators to understand what the policy rules mean without
looking at the code. To fix this we improve the description set in the
oslo.policy RuleDefault.

This patch introduces a helper method create_rule_default to ensure we
create consistent descriptions for all the policy rules. This helper
method would be changed to use DocumentedRuleDefault once new version
of oslo.policy is released.

Also, this patch adds description to policies in
nova/policies/server_tags.py

blueprint policy-docs

Change-Id: Ibf403bb5c05f3cef93f5a7cbb9eab95381a733a8
2017-03-20 15:22:40 +00:00
Jenkins
5e252d1c66 Merge "Remove extension in API layer" 2017-03-20 14:39:36 +00:00
Rafael Folco
f903a6c56b DELETE all inventory for a resource provider
This patch adds a new method for deleting all inventories for a
resource provider: DELETE /resource-providers/{uuid}/inventories

Return codes:
204 NoContent on success
404 NotFound if the resource provider does not exist
405 MethodNotAllowed if a microversion is specified that is before
    this change (1.5)
409 Conflict if inventory in use or if some other request concurrently
    updates this resource provider

Change-Id: I1ecb12c888f873e8330367c8411d5a2ef0458495
Implements: bp delete-inventories-placement-api
2017-03-20 14:00:33 +00:00
Jenkins
f4eb7a0e23 Merge "nova-status: don't coerce version numbers to floats for comparison" 2017-03-20 13:56:10 +00:00
Jenkins
66c3f0860b Merge "get_model method missing for Ploop image" 2017-03-20 13:33:38 +00:00
Jenkins
d4c4f7d43d Merge "Replace obsolete vanity openstack.org URLs" 2017-03-20 13:27:20 +00:00
Jenkins
0b09cee2c3 Merge "compute: Only destroy BDMs after successful detach call" 2017-03-20 13:26:50 +00:00
Jenkins
f41d7f811a Merge "Error message should not include SQL command" 2017-03-20 13:22:49 +00:00
Jenkins
cb506ec2e5 Merge "nova-status: require placement >= 1.4" 2017-03-20 13:14:28 +00:00
Roman Podoliaka
f2294fa7e5 nova-status: don't coerce version numbers to floats for comparison
As is comparison will fail when Placement API version 1.10 is
released, e.g. in the case: float('1.10') < float('1.4').

Use the helper provided by pkg_resources instead. The returned
values can be compared and sorted and have a string representation.

http://setuptools.readthedocs.io/en/latest/pkg_resources.html#parsing-utilities

Change-Id: Iaaca8f458671bd518b4c10c776f78b9c1ed803dd
2017-03-20 12:50:02 +02:00
Jenkins
855028fa6f Merge "Placement api: set custom json_error_formatter in resource_class" 2017-03-20 07:39:34 +00:00
Jenkins
5673fb5d91 Merge "Placement api: set custom json_error_formatter in inventory" 2017-03-20 07:32:34 +00:00
Jenkins
9910ef0cab Merge "Placement api: set custom json_error_formatter in aggregate and usage" 2017-03-20 07:18:20 +00:00
Jenkins
47d90a3028 Merge "Transform instance.reboot.error notification" 2017-03-18 23:20:25 +00:00
Jenkins
dbbf5919ad Merge "Transform instance.reboot notifications" 2017-03-18 23:15:58 +00:00
Jenkins
b672f35de6 Merge "Add description for Image location in snapshot" 2017-03-17 19:30:48 +00:00
Jenkins
e69cb1dd24 Merge "do not include context to exception notification" 2017-03-17 18:56:22 +00:00
Jenkins
b5e9198c99 Merge "api-ref: Fix parameters and examples in aggregate API" 2017-03-17 17:35:13 +00:00
Jenkins
2b3ce2a028 Merge "Improve descriptions for hostId, host, and hypervisor_hostname" 2017-03-17 16:52:39 +00:00
Jenkins
7d7bba4526 Merge "Updated from global requirements" 2017-03-17 16:51:57 +00:00
Jenkins
6dc60505f9 Merge "Add api-ref for filter/sort whitelist" 2017-03-17 16:13:44 +00:00
Jenkins
a3b987f90c Merge "Remove old oslo.messaging transport aliases" 2017-03-17 16:12:52 +00:00
Jenkins
6d9e77bd9f Merge "api-ref: fix description in os-services" 2017-03-17 16:12:05 +00:00
melanie witt
261e7e3c5e Improve descriptions for hostId, host, and hypervisor_hostname
The current descriptions for hostId, host, and hypervisor_hostname are
vague, so this adds more detail to make them more understandable.

Closes-Bug: #1673593

Change-Id: Id3ea9bbfe59a47b24e3584cf16b5a556007e58ea
2017-03-17 11:04:15 -04:00
Lee Yarwood
bea6ff62af compute: Only destroy BDMs after successful detach call
Previously if detach was called with destroy_bdm=True the BDM would
always be destroyed first before any detach call was made to cinder.
This could result in the destruction of a BDM while the volume remained
marked as attached in Cinder.

This has now changed so the BDM is only destroyed after a successful
detach call has been made to cinder. In the event of a failure during
this detach call to Cinder an operator can now make another attempt to
detach the volume via Nova as the BDM is no longer destroyed.

The associated volume.detach notification is also now only sent after a
successful detach call to Cinder and before the BDM is destroyed.

Change-Id: I2581ff9f9c0e7cfc14a25acf45eb1860df69eacf
2017-03-17 13:31:04 +00:00
ChangBo Guo(gcb)
05c50f2479 Remove old oslo.messaging transport aliases
Those are remnants from the oslo-incubator times. Also, oslo.messaging
deprecated [1] transport aliases since 5.2.0+ that is the minimal
version supported for stable/newton. The patch that bumped the minimal
version for Nova landed 3 months+ ago, so we can proceed ripping
those aliases from the code base.

[1] I314cefa5fb1803fa7e21e3e34300e5ced31bba89

Change-Id: Id8c0bc6733e930803b8e9fcf42a9a1f81dcbb356
Closes-Bug: #1424728
2017-03-17 20:41:16 +08:00
OpenStack Proposal Bot
3ba6f3ff67 Updated from global requirements
Change-Id: Icb64f271c257c58774705d16de738e6089387179
2017-03-17 11:45:35 +00:00
Balazs Gibizer
3bf177a59c do not include context to exception notification
The wrap_exception decorator optionally emited a notification.
Based on the code comments the original intention was not to include the
context to that notification due to security reasons. However the
implementation did included the context to the payload of the legacy
notification.

Recently we saw circural reference errors during the payload serialization
of this notification. Based on the logs the only complex data structure
that could cause circural reference is the context. So this patch
removes the context from the legacy exception notification.

The versioned exception notification is not affected as it does not
contain the args of the decorated function.

Closes-Bug: #1673375
Change-Id: I1d217620e52d45595a3e0e49ed57b4ab33cd1688
2017-03-17 11:30:22 +01:00