resource_data saved unencrypted

Sqlalchemy is commiting unencrypted
data when a session commit happens after
doing a resource_data_get.

Closes-Bug #1233337
Change-Id: I9d20bf1faaf12cc1427976bf1223d4dfc9392c5f
Handle BadRequest in VolumeDetachTask

Novaclient raises BadRequest(400) if a volume is already
detached when delete_server_volume is called.

This change treats BadRequest the same as a NotFound in the
VolumeDetachTask, and logs the actual exception string.

Change-Id: I34c01a493e8c87281d2adecb6d4404376cf78738
Closes-Bug: #1232234
resource_id check on router gateway, interface delete

This change prevents RouterGateway and RouterInterface
delete failing if create never managed to set the resource_id.

Change-Id: I88ba2dd9b92546fca684dad2f921c6caf8467367
Closes-Bug: #1231805
allow "members" property to be absent

Closes-Bug: #1235904
Change-Id: If18f6d386d07ee65ce54f8372ad646864b486303
Signed-off-by: Stephen Gran <stephen.gran@guardian.co.uk>
It is necessary to update pool_id for Neutron LB

Closes-Bug: 1235903
Signed-off-by: Stephen Gran <stephen.gran@guardian.co.uk>
Change-Id: Ie48312efd7f04c425436b8dae9c8bccf21dc768e
Fix clashing loop variables in TemplateResource

There were two loops using "v" as a variable name.

Closes-bug: #1235077
Change-Id: I5198621ce724abe9638da4a7482ae6817bbd86e7
Handle NetworkNotFoundClient and PortNotFoundClient

neutronclient has changed is behavior (recently?) in that it now
raises PortNotFoundClient for missing ports and NetworkNotFoundClient
for missing nets. These exceptions extend NeutronClientException but
do not set the status_code to 404 so the existing resource 404
checking has stopped working.

This change handles both 404 exceptions and the new exceptions
so that it continues to work with different neutron releases.

Change-Id: Id06e04d4b98e62b8062b119e959634fd61c8beb5
Closes-Bug: #1234924
HOT str_replace default to empty string for param

If a str_replace param cannot be resolved or is None,
substitute an empty string in order to prevent raising
an exception during validate.

Closes Bug: #1234390
Change-Id: Ica6b84cfc2157b4e1f561f737e9aa67b9f6018ca
Add a new db api stack_get_all_by_owner_id

This is to get the next level of child stacks.

Partial-Bug: #1234010
Change-Id: I64b30b4040bc443b64d23d85a054010da4dd1130
Start the watcher task if a nested stack has watches

Even if the parent stack has no watches.

Change-Id: I06322f908fdbd474778776749cb3e1634183ed23
Partial-Bug: #1234010
Make sure that nested stacks have their watch rules checked

Change-Id: Iee9629739e9549e33f8ed8c4ca08098a7e4d0acf
Closes-Bug: #1234010
Merge "resource_data saved unencrypted" into milestone-proposed
Merge "It is necessary to update pool_id for Neutron LB" into milestone-proposed
Merge "Handle BadRequest in VolumeDetachTask" into milestone-proposed
Merge "Handle NetworkNotFoundClient and PortNotFoundClient" into milestone-proposed
Merge "Fix clashing loop variables in TemplateResource" into milestone-proposed
Merge "Add a new db api stack_get_all_by_owner_id" into milestone-proposed
Merge "Start the watcher task if a nested stack has watches" into milestone-proposed
Merge "Make sure that nested stacks have their watch rules checked" into milestone-proposed
Merge "HOT str_replace default to empty string for param" into milestone-proposed