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
When a tenant network is detached from the logical router
the related vrrp port on the astara router is detached but
not deleted. That makes any attempt to delete the network
fail.
Change-Id: I721b25f72a4b0afb1d02fa0e50c5112d66bcd15d
Signed-off-by: Rosario Di Somma <rosario.disomma@dreamhost.com>
Closes-Bug: 1531274
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 pushes a couple of flags into the appliance that are specific to the
individual orchestrator instance managing that appliance. Initially, we use
it to tell the appliance where the metadata proxy is listening. Previously,
this was hard-coded to a known address on the network. With multiple
orchestrators in a clustered env, this will allow each to run their own
metadata proxy and have only their managed appliances querying that.
Another patch will follow that will ensure this is up to date when rebalances
occur and orchestrators take over new appliances.
Change-Id: Ib502507b29f17146da81f61f34957cd96a1548f4
Partial-bug: #1524068
Correctly mark the state and return it from stop() when the instance
has already been deleted. This makes the state machine correctly
recover from situations where nova instances disappear when
a config update is in-flight. It also ensures delete_ports()
is called on the driver in all cases, to ensure port cleanup.
Change-Id: I41c4a49b81d62b0caddc9270b3f8e4a9315d1172
Closes-bug: #1535961
We uncoditionally log the boot time of a resource every time update_state is
called. This causes an increasing boot time to be logged every time the
orchestrator is polled or a health check fired. This should only be logged
once, so use a flag on the object to suppress future logging.
Change-Id: I18dc97482c9e09253bf7e692a3ed0857ac8308d6
This change makes the instance manager use the router driver
to delete vrrp ports instead of calling the astara neutron
api directly.
Change-Id: Ic9d4a128fd1c0bda22601dcd352720e11b992179
Signed-off-by: Rosario Di Somma <rosario.disomma@dreamhost.com>
The log message will show the state of driver,
but hard coding is not a good habit
Closes-Bug:1530103
Change-Id: Ic639ab4d0cd36f035bfceb5ebcd75901ca6f179b
Signed-off-by: Yang Li <yang.li@easystack.cn>
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