This changes the instance manager to use the InstanceGroupManager
to manage clusters of instances instead of individual instances,
including clusters of 1 node for non-HA resources.
This also adds some missing documenation on enabling clustering
of the astara-orchestartor service.
Change-Id: Ib679453aafe68e6653c8c5f9f412efa72c2b7cb1
We keep passing around driver instances as a 'driver' parameter
and track it locally in the instance and state manager as self.driver.
This is actually a resource encapsulated, and we should reference it
as such to avoid being opaque. This renames it accordingly.
It also removes some redundancy where we are passing resource_id along
with a resource object, which contains the id as well.
Change-Id: I65490f01608fda1da3467455ee58ecb5fa6c7873
The CheckBoot state should really only be concerned with testing that the
instance has successfully booted and its API is up and ready for
ConfigureInstance's config push. This is handled entirely by update_state()
and pushing the config here as part of the boot test is redundant, which can
be problematic in environments where a config update is an expensive task.
Change-Id: I5de24c627e468ba12fbccd3a3be713db380b645a
This cleans up the worker's handling of rebalance events a bit
and ensures we dont drop state machines in a way that prevents
them from later being recreated. It also avoids a bug where, upon
failing over resources to a new orchestartor, we create a state
machine per worker, instead of dispatching them to one single worker.
To do this, the scheduler is passed into workers as well as the
process name, allowing them to more intelligently figure out what
they need to manage after a cluster event.
Finally, this ensures a config update is issued to appliances after
they have moved to a new orchestrator after a cluster event.
Change-Id: I76bf702c33ac6ff831270e7185a6aa3fc4c464ca
Partial-bug: #1524068
Closes-bug: #1527396
In this step all of the imports and usage of akanda.rug is updated to
use astara. Addtionally rename all internal references from Akanda to
Astara.
Change-Id: I0cb8596066d949bceaadc4718b210fc373b5f296
Depends-On: I87106ae63747291bb6424839b5155f53136c54f9
Implements: blueprint convert-to-astara