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
Chaozhe.Chen f26ffd7222 Add /usr/local/{sbin,bin} to rootwrap exec_dirs
I noticed that nova, neutron and cinder's rootwrap exec_dirs include
/usr/local/{sbin,bin} which is a standardised location for admins to
install non-distro executables, and these executables are no less
"trustworthy" than /usr/bin and friends.  See neutron and cinder's
rootwrap.conf (and probably others), and typical distro default values
for sudoers/secure_path for extremely similar precedents that all include
/usr/local/*bin.

See the same patch of nova for more information:
https://review.openstack.org/#/c/280052/1
And see I710cf142b834381c00e651cfc062299ae755c33f for brief discussion
of doing this via devstack before.

Change-Id: I1be8ff63d06424e84ea2b39bc0d285fe95beebb2
2016-02-22 15:07:48 +08:00
Adam Gandelman 84b0928c4d Enrich functional test suite
This beefs up the functional test suite to do some tests on a
tenant router.  The test can now creates one-off tenants to be used
in the tests.  The new tests act entirely on behalf of the test
router and attempt on only use admin-level things when required.

Partially-Implements: blueprint ci-updates-mitaka

Change-Id: I26fa70f877522f09075dc87583f2359cc0dcaf41
2016-01-21 23:17:15 -08:00
Adam Gandelman c598f366ec Drop orchestrator.ini.sample from git
This drops tracking of the generated sample from git, since the output
of generation is non-deterministic, we end up with big changes to this
file anytime someone proposes a change that requires a new sample.

Instead, lets track orchestrator.ini and update it at milestone/release
times.

Also, have the devstack plugin generate and use a sample, that way we
get some gate testing on proposed config changes.

Change-Id: Iaf5127733765e973dbf0e812f267a3304c575fd4
Closes-bug: #1535889
2016-01-19 13:55:14 -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
Adam Gandelman 1d26671b3f Allow API listening address to be specified in config
This allows users to configure a specific API listening address
for the astara administrative API.  This also updates devstack
plugin to publish this into the keystone catalog, for easier
lookup by astara-horizon.

Partially-implements: blueprint astara-horizon-mitaka
Partial-bug: #1516787

Change-Id: I2b96137c05b832a68ad01a11ec0cfb2371111c3c
2016-01-14 11:04:06 -08: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
Yang Li b9fdf80fb7 Add loadbalancer example parameters in ini file
For now, the enabled driver contains 'router' and 'loadbalancer',
without loadbalancer example parameters, perhaps some users have
no idea how to write the used flavor/image in configuration.

Closes-Bug:1530030

Change-Id: Ie62cdd5927612223a829abc8a0d91549d52ebf4d
Signed-off-by: Yang Li <yang.li@easystack.cn>
2015-12-30 14:00:21 +08: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 3acbf84707 Update sample config rug.ini->orchestrator.ini
Change-Id: I14c92dddb86f79f22863b0f7f4f10b80fc582f11
Partially-Implements: blueprint convert-to-astara
2015-12-08 12:04:27 -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
Adam Gandelman 4b24e75f0a Update sample config for liberty, update devstack for router config
Updates sample config for liberty, and updates devstack plugin to
set new config settings.

Change-Id: I5bf17395678970a5221425171c5cf80d4c3889af
2015-10-21 15:53:43 -07:00
Adam Gandelman df9ffeb7ab Convert to using Keystone sessions for Keystone V3 support
This converts from using our own auth config to relying on keystoneclient
and keystone authtoken middleware instead.  We construct a keystone session
instead and pass that into clients.

Switching to session-backed novaclient exposes a race in our novaclient
usage where we attempt to access attributes on a server object before
its data is completely lazily loaded.  This adds a small spin before
we attempt to access its server status.

This also cleans up the default config a bit as well as silents some
noisy debug logging from isol8601 and cliff.

Change-Id: Ic41dc48e44f692d768ab0eafc0a65d98255ae260
2015-10-16 13:51:59 +00:00
Jenkins 052e6dc0a6 Merge "Add support for hash-based RUG scale out" 2015-10-12 18:07:56 +00:00
Adam Gandelman 03738f00ba Add support for hash-based RUG scale out
This adds support for running multiple RUG processes to scale out
and distribute appliance load across them.  It uses a hash ring implementation
lifted from Ironic (with modification).  The gist is:

* Workers now maintain a copy of the hash ring, which is hashed using the
list of members in the cluster.

* A new subprocess connects to an external coordination service via tooz, ie
memcache or zookeeper.  This service's only purpose is to track cluster
membership and report changes to this subprocess.  On membership changes,
the coordination subprocess creates a REBALANCE event and puts it on the
internal notification queue.  There is no leadership election required.

* When a worker gets a REBALANCE event, it rebalances the hash ring based
on the new membership list.

* Prior to processing any events bound for a specified router, the worker
first checks the hash manager to find if the resource is assigned to it.
If not, it ignores it.  If it is, it processes the event. This also applies
to incoming command events.

Partially implements: blueprint rug-scaling

Change-Id: I8d04100ffc0e2f2223ebf4b079551dac99224344
2015-10-09 15:07:03 -07:00
Mark McClain 1da7375120 disable port_security for VRRP ports
For tenant networks port_security makes sense, but for the VRRP router
case it can get in the way. This change disables it for Akanda managed
ports for now.

Change-Id: I0fb9fd5253ad0538a35b25d8806323f83cfc48e4
Closes-bug: #1482389
2015-10-08 13:29:39 -07:00
Adam Gandelman a06dbe7ab3 Remove appliance's hard-coded password in favor of ssh pub key
This removes the hard-coded password from the appliance VM's user-data
and replaces it with a SSH public key, which is read from a file whos
path is configured in rug.ini.

It also disables password logins for the user.  Another patch to
akanda-appliance-builder will allow developers to include a specified
debug user to allow debugging in dev environments.

Change-Id: I7db92bc7fd3743d89d73ab2a0b8da14685c30c69
2015-05-26 12:15:36 -07:00
Ryan Petrello dd45fdec14 Revert "Add option to enable ceilometer notifications"
This reverts commit eecc5032fc.
2015-01-26 13:16:25 -05:00
James King eecc5032fc Add option to enable ceilometer notifications
This change introduces a configuration group for ceilometer
notifications. The default for akanda is to not publish notifications.
2015-01-23 13:36:23 -05:00
Jordan Tardif 13e6166520 Add new config options to rug.ini 2014-08-14 21:06:01 -04:00
Mark McClain 274f7d9cae update sample rug.ini file 2013-04-10 17:30:49 -04:00
Mark McClain 7180d3d59f Drop the Quantum dependency by copying files in 2013-04-10 12:22:31 -04:00
Mark McClain 6e78e4ca2d update to use Quantum rpc sync state 2013-02-20 13:10:26 -05:00
Mark McClain d543e7ef39 merge tests and WIP branches 2012-10-10 17:02:30 -04:00