Fix delete event error in postgres

An error happens when heat delete events in postgres,
 It seems that JOIN/DELETE is not supported in
"sqlalchemy/orm/".

Let heat delete events in postgres in the common
way.

Closes-Bug: #1301827
Change-Id: Id320abf15c4fd9f58e411ad7de7f044a9b5d1c1e
Enable lazy translation in unit tests

Change-Id: Ia2aaaaae34f0f234b2493e7c724d7b874035bcfb
Fix broken link to API reference

The link to the API reference was pointing to api-ref-orchestration,
which is incorrect.  This changes it to api-ref-orchestration-v1.

Closes-Bug: #1320956
Change-Id: I3eb46af60dffc47e62ffbfc9f407f7f1a86a56a1
Do no re-validate parameters for existing stacks

This patch disables validation of stack parameters values when
loading existing stacks from the database. The old behavior was
to always validate stack parameter values when initializing a
Stack object. However, this causes problems especially with
custom constraints when a constraint could be fulfilled during
stack creation but cannot be fulfilled at a later point (e.g.
when a flavor or keypair has been deleted). In such a case,
the existing stack became completely unusable.

This patch changes the behavior to not do parameter validation
for existing stacks. The assumption is that validation at stack
creation time should be sufficient to make sure the stack is valid,
so only valid stacks end up in the database. Therefore, validating
parameters again when loading stacks is not really required.

Change-Id: I0947c2dcfb9db4c81b07de582aab86f262d0c008
Closes-Bug: #1314401
Sync oslo incubator

Sync with oslo incubator at commit
ea9ead81417e942495f3cc19be400801e7aa9cb4 to get the new config generator
script options.

Change-Id: I52e006325d5cf7ea731d85a73fb7c3675f1f7e41
Order imports in alphabetical order (9/9)

This patch fixes all the missed and newly introduced violations of the H306
style checking rule and enables it in tox.

Change-Id: I5566e66421d5397c0103958f02ea38e6e3c68892
Implements: blueprint reduce-flake8-ignored-rules (partial)
Remove all mostly untranslated PO files

We now only import PO files that are at least 75 % translated,
so we can delete now all other PO files. The patch only
removes the mostly untranslated files. Once a file becomes mostly
translated, the bot will import it again.

This removes all languages besides en_US.

Change-Id: Id81eb9f3a4bb11fe0026d06bef67eb285128edf1
Closes-Bug: #1317794
Add missing VerifyAll calls to test_validate

Many tests are missing VerifyAll after putting mocks into replay mode
so add them, and remove some spurious mocks which fail verification

Change-Id: I936311d834c93066c4cd043f8a2474bc638f396b
Only raise UpdateReplace when properties change

This changes the default behavior of Resource.handle_update to only
raise UpdateReplace if the properties are different. It allows updating
DeletionPolicy cleanly without deleting the resource.

Co-Authored-By: ala.rezmerita@cloudwatt.com
Closes-Bug: #1316171
Change-Id: I1d2864dc44ff7a5b4536b26f2dba525e01e56af0
Merge "Order imports in alphabetical order (9/9)"
Merge "Sync oslo incubator"
Fixes personality support in Rackspace ASG resource

The Rackspace ASG API expects server personality to be defined
as an Array of dicts. It was being passed as a flat dict which
caused all creations of ASG resources to fail if a personality
was defined.

Change-Id: Idf0c1e8898a613f9b979312e080200dcc28cc7e9
Closes-Bug: #1322675
removed deprecated tools

  * tools/experimental_ssh_eventlet.py
  * tools/state_transitions.py

Change-Id: I6fd8642bcabab16bb7062637d7b8b864f09f1c80
Merge "Add missing VerifyAll calls to test_validate"
Merge "Only raise UpdateReplace when properties change"
Remove mention of update_allowed_keys

Some tests still set this ignore property. Stale comments have
also been deleted.

Change-Id: I866b251e0235ca530fc066a4beeadaa743108091
All resources to use Schema update_allowed

No in-tree resources now use the property update_allowed_properties

Change-Id: I63bb9b5c3fab6f898619cddc3f64f00820fe4f12
Migrate to glanceclient to get image id

We should call the glanceclient to get_image_id instead novaclient.

Implements: blueprint migrate-to-glance-client
Change-Id: I2f5e4dfbe405b1ac74eb3864870b8e4873aeee9a
Re-enable lazy translation

After enhancements to Oslo Message class, re-enable lazy translation to
enable REST API responses to be translated to the requested user locale.
bp i18n-messages
Change-Id: I4be508858547029d454412746609fd380af415c1
Merge "Enable lazy translation in unit tests"