10519 Commits

Author SHA1 Message Date
Jenkins
f84d2ea795 Merge "Add neutron provider constraints" 2015-12-15 08:14:22 +00:00
Ethan Lynn
de61800811 Add neutron provider constraints
Add lbaas and lbaasv2 provider constraints to related resources.

Change-Id: Ie8b5ee504818a4247c1381a35b8c684861050d14
2015-12-15 22:10:13 +08:00
Jenkins
b208c1da79 Merge "heat-manage resource_data_list" 2015-12-15 08:06:17 +00:00
Jenkins
4e57526e17 Merge "Make value_specs updatable for firewall resource" 2015-12-15 07:43:14 +00:00
Jenkins
dfdee0be86 Merge "Make SoftwareDeployment name updateable" 2015-12-15 05:21:29 +00:00
Kanagaraj Manickam
6ef46af6b4 heat-manage resource_data_list
During the troubleshooting of issues, admin needs to
decrypt the values stored in the resource_data table.
This patch addes below command to address this need.

heat-manage resource_data_list <resource_id>

Closes-bug: #1524295

Change-Id: I5bb814c0873f58b3968f312c96bcabcd3024085d
2015-12-15 04:37:35 +00:00
Jenkins
d0e7de74c2 Merge "Fixes the error logic in resource_data_get_all()" 2015-12-15 04:09:40 +00:00
Rabi Mishra
4e39eb0300 Make value_specs updatable for firewall resource
Adds update_allowed=True for value_specs property.

Change-Id: I1c455a2d7aef22d265dac622a59f8cf3f736e025
Closes-Bug: #1521670
2015-12-15 08:14:39 +05:30
Kanagaraj Manickam
8d2672d04a Fixes the error logic in resource_data_get_all()
Existing code returns the orm query object, but its
required to return the result of all resource_data.

Closes-bug: #1525073

Change-Id: I402fe1a384e56afe754763932d2e21cbe580214d
2015-12-15 02:09:27 +00:00
Steve Baker
087bbe9c81 Make SoftwareDeployment name updateable
The name property is used to determine execution order, so it really
needs to be updateable without replacement.

Change-Id: I95037191915ccd32b2efb72203b146897a4edbc9
Closes-Bug: #1522594
2015-12-15 01:12:23 +00:00
huangtianhua
0e66dd9cf3 Provide the QoS capability for port
Provide QoS capability for neutron port resource.

Change-Id: Ie9fa1ce45c95f1e00af23b1b9d4069f67181d7ed
Blueprint: support-neutron-qos
2015-12-15 00:58:31 +00:00
Jenkins
c725df960e Merge "Correct errors of HostAggregate handling" 2015-12-14 21:30:29 +00:00
Jenkins
38db54d4f2 Merge "Use specified client service name for client usage" 2015-12-12 16:30:56 +00:00
huangtianhua
385aa7d2dc Correct errors of HostAggregate handling
This patch changes:
1. Avoid empty value for 'metadata', to avoid
   BadRequest error raise if user remove this property from
   template when updation, also avoid unnecessary hit to db.

2. Won't remove the hosts if there is no change when updation.

3. Remove hosts before delete HostAggregate

Co-Authored-By: Rico Lin <rico.l@inwinstack.com>

Closes-Bug: #1520221
Change-Id: I726f7229c6be55113c73dbbb2f8e7ddbdabab610
2015-12-12 07:51:57 +00:00
Jenkins
d069bd6245 Merge "Make sure update successful if there is encrypt param" 2015-12-11 13:05:30 +00:00
Jenkins
2fc8db97d1 Merge "Fix _show_resource in Designate::Record" 2015-12-11 12:55:06 +00:00
ricolin
bed7e1f7c9 Use specified client service name for client usage
Create CLIENT_NAME for every client, which can be used to replace seperated
string for service client name.

Change-Id: Id8425e8cca3ad9cea5f7364fdf057260e1d8f27c
2015-12-11 10:11:49 +08:00
Jenkins
4c649151cf Merge "Refactor neutron constraints" 2015-12-11 01:57:41 +00:00
Ethan Lynn
390cdb9f2a Refactor neutron constraints
Add class NeutronContraint as base neutron constraint class, this class
has 3 new properties: resource_name, cmd_resource, extension.
The validation workflow will be:
 check extension available -> get resource id base on resource_name and cmd_resource

This patch also and a new function find_resourceid_by_name_or_id to
neutron client_plugin, which wrap find_resourceid_by_name_or_id from
neutronclient, so that we can avoid to import neutronclient in many places.

Change-Id: I9968444339e239ddf0b43ecf18c6aebe18fa5aea
2015-12-10 22:25:50 +08:00
Jenkins
b4f8a94af9 Merge "Provide QoS capability for neutron network" 2015-12-10 13:38:04 +00:00
Jenkins
5170ccc83c Merge "Use EntityNotFound instead of NotFound from Manila" 2015-12-10 11:30:00 +00:00
Jenkins
28d4d39372 Merge "Add validate_with_client in BaseCustomConstraint" 2015-12-10 11:29:49 +00:00
Peter Razumovsky
f5e083e072 Fix _show_resource in Designate::Record
get method in records requires domain_id as
first argument, but in _show_resource there is
only self.resource_id, so this patch adds domain_id.

Change-Id: I1cb2d88ce26c307c040f3064233e410eccfd3811
Closes-bug: #1524312
2015-12-10 11:04:17 +03:00
Peter Razumovsky
ef224da971 Fix property TTL in Designate::Domain
Current property ttl of Domain is incorrect:
1. Minimum of ttl is 1, not 0;
2. If ttl is None, it should not be in create method args.

Change-Id: I632c13f879bd42cf829bc3b490850e78f371ff0f
Closes-bug: #1523538
2015-12-10 10:48:40 +03:00
Jenkins
1ea579779e Merge "Call _persist_state for UPDATE in 'state_set'" 2015-12-10 05:28:30 +00:00
huangtianhua
44c958b233 Provide QoS capability for neutron network
Provide QoS capability for network resource.

Change-Id: I289a29c6380b4f83294fb016c375ca7d32d3e785
Blueprint: support-neutron-qos
2015-12-10 03:34:53 +00:00
Jenkins
9a2d11837d Merge "Make root_stack_id determination more robust" 2015-12-10 02:42:09 +00:00
Pratik Mallya
8b19e85e06 Make root_stack_id determination more robust
If a stack with stack_id does not exist, then the
function should return None.

Change-Id: Ib1670be42d092629d97552b79960cdcf0ace1fb2
Closes-Bug: #1524472
2015-12-09 16:11:27 -06:00
OpenStack Proposal Bot
357c790c20 Updated from global requirements
Change-Id: I2865ce830207b9d1046e96476eef3d081a7e44b0
2015-12-09 21:55:53 +00:00
Rabi Mishra
e1d0b6c041 Call _persist_state for UPDATE in 'state_set'
UPDATE flow doesn't call 'state_set', to set the state.
However, this is called in 'set_stack_and_resource_to_failed',
to set the stack status to FAILED. This includes reset during
stack UPDATE.

With https://review.openstack.org/#/c/245810/5, we removed UPDATE
from persisting the state as part of releasing the lock. This has
resulted in the state not being persisted for UPDATE when
'reset_stack_status' is called.

Change-Id: I8a80e329604fdec6498acca0a71723100d412384
Closes-Bug: #1523717
2015-12-09 18:42:00 +05:30
Peter Razumovsky
c87eddf868 Fix min value in ttl range of Designate::Record
Current ttl range constraint is incorrect: designate
record requires 1 as minimal value for ttl. So, need to
fix this place.

Change-Id: Ib0423bc2b0412f4e10a3da2f73057c82a9ae14b7
Closes-bug: #1524313
2015-12-09 15:20:56 +03:00
ricolin
7264fc5e02 Use EntityNotFound instead of NotFound from Manila
Like what we handle other NotFound case, we should use EntityNotFound
instead of NotFound from Manila.

Change-Id: Ife04e43748edd20a2fa3c41ce0d661479a24f6a6
2015-12-09 18:37:59 +08:00
ricolin
c265494a98 Add validate_with_client in BaseCustomConstraint
Since we replace not found error with EntityNotFound instead,
we can now consider use a common function for validate_with_client in most
of constraints. For some constraints that have a more complex validation will
overwrite the function(This is what we already used).

Change-Id: I1c554ba7848279cd60db1661fe7ebbd5b72235d8
2015-12-09 18:31:46 +08:00
Jenkins
ed22ac69f9 Merge "Fix time mocking on wait condition timeout tests" 2015-12-09 10:30:14 +00:00
Jenkins
b6ca223944 Merge "Remove unused LOG variable with logging import" 2015-12-09 10:14:42 +00:00
Jenkins
0dbdd88e56 Merge "Support neutron QoSBandwidthLimitRule resource plugin" 2015-12-09 09:33:18 +00:00
Jenkins
fc65a1d679 Merge "Add subnetpool property to subnet resource" 2015-12-09 09:21:51 +00:00
Thomas Herve
b8c519909f Fix time mocking on wait condition timeout tests
Extend the time override used when testing timeouts for wait conditions,
so that real time isn't used for waiting for the failure.

Change-Id: Ib1042fc748ecc490d315ec5a5844ceacc50534e0
Partial-Bug: #1524047
2015-12-09 09:53:12 +01:00
huangtianhua
e343725419 Support neutron QoSBandwidthLimitRule resource plugin
Provide some resources to support Neutron QoS capability.
This patch add OS::Neutron::QoSBandwidthLimitRule
resource plugin.

Change-Id: I0b28d990f9fd086eba089601c42f74bc2a9bf667
Blueprint: support-neutron-qos
2015-12-09 11:35:13 +08:00
Jenkins
e112c25dad Merge "Fix mocking in several tests causing excessive run-times" 2015-12-09 01:01:35 +00:00
Steven Hardy
b646c6b4ab Fix mocking in several tests causing excessive run-times
Several tests have missing mocking resulting in many minutes wasted
waiting for either RPC or client validation to time out.

Strangely this doesn't cause the tests to fail, only waste a lot of
time (tox -e py27 was taking over 10 mins for me, now nearer 5)

There are more broken tests to fix, but some have logical errors
so will be handled via subsequent patches.

Change-Id: I2021505930d6547a16531de6b2f9fbf33855fa3a
Partial-Bug: #1524047
2015-12-08 22:40:39 +00:00
Jenkins
19d20e131b Merge "Improve log messages from scheduler" 2015-12-08 22:32:19 +00:00
Jenkins
21bc5f9b76 Merge "Eliminate unnecessary sleeps during no-op update" 2015-12-08 15:21:33 +00:00
Jenkins
30eef89aba Merge "Fix event filtering in event-show" 2015-12-08 12:07:53 +00:00
Jenkins
9a11c58f39 Merge "Updated from global requirements" 2015-12-08 10:49:32 +00:00
Sergey Kraynev
1e75301def Remove unused LOG variable with logging import
Change-Id: I24c4301f15aefadc2bdedd2549caa385deb8d76e
2015-12-08 05:08:33 -05:00
Jenkins
db30a7a52d Merge "Add tests for api calls show and list outputs" 2015-12-08 10:07:17 +00:00
Jenkins
55a5ecf8ce Merge "Don't remove user from groups if groups don't change" 2015-12-08 09:46:08 +00:00
Thomas Herve
56263647b0 Fix event filtering in event-show
The event-show API was broken recently by not filtering with the given
event ID. This fixes the issue.

Change-Id: I0a37b27049986ad2ed8c19a18861f897c739e64d
Closes-Bug: #1523807
2015-12-08 10:20:11 +01:00
huangtianhua
a23e6a6b63 Don't remove user from groups if groups don't change
If there is no change of 'groups' property when updating
a keystone user resource, do not remove the user from
the groups.

Change-Id: Ib8e920e6ef95d654d0641e8635bd586047c89047
Closes-Bug: #1522247
2015-12-08 11:51:10 +08:00