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
Existing code returns the orm query object, but its
required to return the result of all resource_data.
Closes-bug: #1525073
Change-Id: I402fe1a384e56afe754763932d2e21cbe580214d
The name property is used to determine execution order, so it really
needs to be updateable without replacement.
Change-Id: I95037191915ccd32b2efb72203b146897a4edbc9
Closes-Bug: #1522594
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
Create CLIENT_NAME for every client, which can be used to replace seperated
string for service client name.
Change-Id: Id8425e8cca3ad9cea5f7364fdf057260e1d8f27c
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
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
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
If a stack with stack_id does not exist, then the
function should return None.
Change-Id: Ib1670be42d092629d97552b79960cdcf0ace1fb2
Closes-Bug: #1524472
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
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
Like what we handle other NotFound case, we should use EntityNotFound
instead of NotFound from Manila.
Change-Id: Ife04e43748edd20a2fa3c41ce0d661479a24f6a6
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
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
Provide some resources to support Neutron QoS capability.
This patch add OS::Neutron::QoSBandwidthLimitRule
resource plugin.
Change-Id: I0b28d990f9fd086eba089601c42f74bc2a9bf667
Blueprint: support-neutron-qos
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
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
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