Commit Graph

11 Commits

Author SHA1 Message Date
Andreas Jaeger 7759e2fd82 Retire astara repo
Retire repository, following
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

Change-Id: If5f7d284bd107a93edd9272ac0ed8e6d20ba5c51
2018-10-14 12:50:35 +02:00
Adam Gandelman 6613031d91 Add clustering capabilities to instance manager
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
2016-03-18 14:25:51 -07:00
Adam Gandelman 2aabf4b185 Adds ability to run appliance with user-specified drivers/images
This allow users to specify the driver and image associated with
a network function.  This is dependent on the correct API extension
being loaded into neutron from the astara-neutron repo.

Depends-on: I6b6f98e8ae89c704f45b05f87f17ebed5a70fc1d

Partially-implements: blueprint astara-sfc

Co-authored by: Mark McClain <mark@mcclain.xyz>

Change-Id: I1c349e56fd23d1aa95c7f8c0da68d25246b0ceb2
2016-03-18 12:02:34 -07:00
Adam Gandelman e2eb7d4689 Rename self.driver to self.resource where applicable
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
2016-03-17 23:20:44 +00:00
Adam Gandelman f2360d861f Cleanup SM management during rebalance events.
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
2016-01-25 15:28:40 -08:00
Adam Gandelman 5fed2a7041 Cleanup deleted resource from the tenant resource cache
When a resource is deleted, its not currently removed from the tenant
resource cache.  This causes a cache hit if the tenant attempts to re-create
the same type of resource, but the resource is then later ignored because
it has been deleted.  This adds a callback used by the TRM to remove it
from the resource cache when its state machine is deleted.

Change-Id: I5dcbeda7de240a693fc7a4944dd34a37b10d174b
Closes-bug: #1531597
2016-01-25 10:31:54 -08:00
Yang Li 8bcce091ed Fix removal functions in oslo_utils for astara
Instead of timeutils.isotime(), use datetime.datetime.isoformat()
and utcnow() to get time.

Change-Id: I3bf81df7d3a9123542de0d13a48cd70a799c06a6
2016-01-20 14:44:02 +08:00
Adam Gandelman e99d1505cb Drop astara.openstack and astara.service
Updates tenant.py to use oslo_utils.timeutils and obsletes
astara.openstack.common.  Also drops service.py, which is unused.

Change-Id: I6b51f1bfef3d1b1c9708e49abca0220321be056d
2016-01-18 12:17:10 -08:00
Adam Gandelman 5a5b6e8c16 Drop unused call to non-existent function
get_by_resource_id() doesn't exist and this code is never hit, drop
it like its hot.

Change-Id: I6499f12427636381056edd24fad3297bcafd49f6
2016-01-13 11:31:52 -08:00
Mark McClain a5ab32c80f Step 3 of module rename
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
2015-12-04 17:00:52 -05:00
Mark McClain 22304fd0ea Step 2 of renaming the code
Partially-Implements: blueprint convert-to-astara
Change-Id: I416b774557c2233652d62daf1b94cbf5dc83fa8b
2015-12-04 11:09:34 -05:00