Some of the unit tests fail when convergence_engine is set as true
in config. This is mainly due to the convergence flag in some of the
functions/methods which is expected to be True but is set to False for
legacy engine.
Change-Id: I57ef37d4fd79f0b453aef9c16876495901c2d802
Closes-Bug: #1567321
Apart from the fact that this method relied on knowledge of the template
format, it also checked nothing useful since we now won't even be able to
create the Parameters object unless all of the parameter definitions are in
fact dicts.
Change-Id: I950420b9016d350a427754d6a482b6ddf456bd6f
This patch reverts change I6a212da19a774239f014163774e75fe11dfe272c
and adds new DB api resource_get_all_active_by_stack to be used by
convergence.
The new DB api will be used while generating graph for convergence
stack and will fetch all resources of stack from DB excluding
the DELETE COMPLETE resources, if any.
Change-Id: I303ef2c9b5b6a0a49253425c00565c8981cc6825
Partial-Bug: #1528560
Throttle sync point updates by inducing some sleep after each conflict
and before retry. The sleeping time is randomly generated based on
number of potential conflicts. The randomness in sleep time is required
to reduce the number of conflicts when updating sync points.
Closes-Bug: 1529567
Change-Id: Icd36d275a0c9fd15a86de34e79312e2a857d4621
The property 'size' is required unless backup_id or
source_volid or snapshot_id is specified.
Change-Id: Ib31795a247535d0090ae5e434cbc3c5c2bfda12c
Closes-Bug: #1584660
While catching exception, we should use 'raise' directly if we parsing
same exception to upper level. In this way, we will not losing trace
back information.
Change-Id: I9cb208bb355082907b789dffa8de28dd33c9f01d
With Iab7a997c0b4d9dcb8ceb3d2f49692216fe611df1 we started returning
invalid identifier on nested stack when the creation is in progress, as
resource_id is not set. In this case we should not return an identifier.
Change-Id: I2ededcc57057f43206922b99bb72c43332336814