Commit Graph

24 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
Mark McClain f8d7a37abb Remove external network hooks and auto-added resources
Previously the orchestrator could be configured to create access to the
external network.  This combined with auto external gateway additions
would cause problems with automation tools and did not work reliably.
This change removes this functionality since it was often disabled in
production deployments. This change aslo slightly reduces devstack
runtime by removing the Neutron restart.

Change-Id: I556f1fc2729f1d62a60de24b6d5e9ed473749f9a
2016-03-07 13:15:35 -08:00
Mark McClain b236be83fc Add variable MTU support to the orchestrator.
This change add variable MTU support for each interface if the
underlying Neutron cloud supports it.

Change-Id: I52b2d95e892440afa7b941239abd44d37fc224a0
Depends-On: Ib4d4381f6977aabbeefd2f520bb5fc26ea54ffcd
Closes-Bug: #1539786
2016-02-01 13:25:54 -05: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
Jenkins 652c7e03ef Merge "Push orchestrator config into the appliance" 2016-01-25 22:38:16 +00:00
Jenkins a8a492f41a Merge "Cleanup deleted resource from the tenant resource cache" 2016-01-25 22:08:34 +00:00
Adam Gandelman 568ea90f5a Push orchestrator config into the appliance
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
2016-01-25 13:06:36 -08:00
shengzhang 9f9a89993b Fix 'astara-ctl browse' can't rebuild router
When a router name doesn't startswith 'ak-', set the default tenant_id to '*'.

Change-Id: I8f907cc191b9816972003e5a2c8dbb35ac2deec9
Closes-bug: 1537500
2016-01-25 12:26:13 -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
Jenkins 2ba33fa75e Merge "Filter the 'leader' member from cluster membership list" 2016-01-22 19:57:54 +00:00
Adam Gandelman 8ad5cffc80 Filter the 'leader' member from cluster membership list
When configured to use zookeeper, tooz reports an additional member
named 'leader' in its membership list.  This can mess with construction
of the hash table.  This removes it from the list of members we use for
the DHT.

Closes-Bug: #1535857

Change-Id: I1d3d7c27984c99c46d6d26e0b9f21c3b5a511617
2016-01-19 10:58:37 -08:00
xiayu ca21f3b647 Automatically generate etc/orchestrator.ini file
This switches keystone to use oslo-config-generator, where the contents
of our sample configuration file are configured using a configuration
file in etc/oslo-config-generator.

Also fix some config problems.

blueprint autogen-astara-conf-file

Change-Id: I394805b18eecc4fbc583f9d64d34b8e95b55a845
2016-01-18 13:55:59 +08:00
Jenkins 89900d73be Merge "Astara oslo.rootwrap" 2016-01-14 18:57:36 +00:00
xiayu 087132fac6 Astara oslo.rootwrap
Use oslo.rootwrap to replace the default root_helper sudo. Add
network filer for ip, ovs-vsctl, ovs-ofctl command.

Change-Id: I13d42b32b6589069a73d33eb67eed117cd519a5b
Implements: blueprint astara-rootwrap
2016-01-13 10:46:57 +00:00
Jenkins 9c043d0436 Merge "Fixed astara-ctl ssh command" 2016-01-08 02:37:35 +00:00
Eric Lopez f24c5a1eee Fixed astara-ctl ssh command
* Modified 'RouterSSH' class to parse neutron ports for ASTARA:MGT port
* Added Exception Handling in class for key or index error
* Fixed ssh username used for connection
* Generalized variable name for managment ip address usage

Change-Id: I2b06e5cb512612cd1b99a438568ddd17a1653c84
Closes-Bug: #1524592
2016-01-05 15:28:20 -08:00
Jenkins e71d2a7561 Merge "Fixes logging in astara-debug-router" 2016-01-05 17:24:21 +00:00
Adam Gandelman 5af980acbe Fixes logging in astara-debug-router
Switches to using our oslo logging config and ensures its setup correctly.

Change-Id: I630faf9a5d66f566e09145ad28fb189cb81dfe6c
Closes-bug: #1528338
2015-12-22 14:36:49 -08:00
Jenkins 6e146f3910 Merge "Dynamically allocate service port addresses" 2015-12-18 17:41:43 +00:00
Adam Gandelman e92c2e8da5 Deprecate usage of amqp_url in favor of oslo.messaging backend config
This deprecates usage of the old amqp_url in favor of using backend-specific
oslo.messaging configuration.  Removes the old, pre-Liberty options and silences
a bunch of deprecation warnings to boot.

Change-Id: Ib666901c28f66a7616aa445ecc7120fe9d1e1364
Closes-bug: #1524595
2015-12-11 16:42:14 -08:00
Adam Gandelman eee3aed511 Dynamically allocate service port addresses
We currently hard-code the address for management and external
ports to the first address on the subnet, which breaks clustering
astara-orchestrators when two nodes attempt to create neutron ports
with the same addresses.  This updates usage to instead rely on
a Neutron-assigned address to bring up locally.

Note this is a partial fix: we'll need corresponding changes that
allow us to push in this address to appliances for metadata access,
which is hard-coded there as well to the same address.

Change-Id: I88fa97bae84ca245afa5ad0da4ac3c0bc1c441ff
Partial-bug: #1524068
2015-12-11 16:40:23 -08:00
Adam Gandelman de6ade7bd5 Adds reno for release notes management
Seeds repo for managing in-tree release notes /w reno.

Boiler-plated from 9549e6b491b26232f4dac900b0bf05f10eb0e30a.

Change-Id: I83507a3c6dd6802954e1faeb34b9f8d3c9bdf943
2015-12-11 16:40:23 -08:00