Commit Graph

19 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
gengchc2 93d61f3689 Add __ne__ built-in function for astara
In Python 3 __ne__ by default delegates to __eq__ and inverts the
result,but in Python 2 they urge you to define __ne__ when you define
__eq__ for it to work properly.There are no implied relationships
among the comparison operators. The truth of x==y does not imply that
x!=y is false.Accordingly, when defining __eq__(), one should also
define __ne__() so that the operators will behave as expected.

Change-Id: I9859ad3bdf304ba87d04c9ecabf069b0fdfe4b45
2016-10-04 21:24:15 +00:00
Adam Gandelman 6a934060f0 Fix messaging layer for newer oslo.messaging changes
Instead of spawning our own threads and relying on the oslo.messaging
executor blocking, lets just use oslo.messaging's internal threading
capabilities.  This converts rpc.Connection to rpc.MessagingService,
which is an oslo.service-based service and sets up messaging to managed
there instead.

Closes-bug: #1583330

Change-Id: I9f5a15f1c5dff7e90761887c519a15888096636b
2016-05-21 21:07:46 -07:00
Adam Gandelman 64453dc26d Disable port security for mgt ports as well
In some deployments (OVS), port security must also be disabled
on the management port for communication from astara to the appliance
API.

Change-Id: I10bae7041aab7b4b143987bf07d800b3e50a6444
Closes-bug: #1573156
2016-04-21 10:21:36 -07:00
Adam Gandelman 968c7da141 Skip all types of service ports when creating allocation config
When astara creates allocation config, it has always skipped
service ports (historically VRRP ports), but it currently does not
skip LB ports.  This adds some constants where we can define astara's
service port labels and expand in the future, and takes these into
account when deciding which ports to leave out of allocation config.

Change-Id: I6d815b1e7e6e24120ad7fd9becc94a216bfb625b
Closes-bug: #1567163
2016-04-07 12:33:36 -07: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
Jenkins 3d96794fd7 Merge "py3: use function next() instead of next() method on iterator objects" 2016-03-17 21:45:43 +00:00
Jenkins b0616745ca Merge "Handle a race between pre-populate and hash ring bootstrapping" 2016-03-17 18:29:52 +00:00
vishal mahajan 46f9ba1706 py3: use function next() instead of next() method on iterator objects
Python 3 introduced a next() function to replace the next() method on
iterator objects.

Change-Id: If30f3a870bf590fe9d1a8bb5af54cba67be012da
2016-03-15 10:38:48 +05:30
Adam Gandelman f9c5941b97 Handle a race between pre-populate and hash ring bootstrapping
On startup, if the worker receives messages for pre-populated resources
prior to processing the initial cluster rebalance event, the messages
will be dropped. This fixes the race by tracking when the hash ring
has been initialized.  Any events it receives prior to finishing init
will be batched up and processed as part of the initial bootstrapping
procedure.

Change-Id: I3caf95f57380076ab48e4270e1cd575906fba386
Closes-bug: #1554248
2016-03-07 14:59:05 -08:00
Yang Hongyang fb09758804 Use six.moves.urllib.parse instead of urlparse module
urlparse module is renamed to urllib.parse in python3, let's use
six.moves.urllib to support both python2 and python3.

Change-Id: Idc839e71e59675b233a8d17275e7d967ef96f73e
Partially-Implements: blueprint astara-python3
2016-03-01 00:01:20 +08:00
Jenkins b49712aa5f Merge "Replace range() to six.moves.range() for both python2 and python3" 2016-01-22 20:03:09 +00:00
Jenkins 75f1225e67 Merge "Remove unused logging import" 2016-01-22 19:59:57 +00:00
Yang Li 7ef078cb2c Fix pep8 errors in source code
Change-Id: Ia9d9d224adebd62d19f91fbd7aa52a1201e7b909
2016-01-20 16:33:21 +08:00
Yang Li 29b3769ca5 Replace range() to six.moves.range() for both python2 and python3
Change-Id: I0b9454275fb21753666485cff20bfdfb87f06607
2016-01-19 17:34:56 +08:00
caoyue f3729f761b Remove unused logging import
it's obviously the code was copied from other place,
let's make it perfect.

Change-Id: I2623861ba7e8cfa601d4df2d51f42ca1b805f8c2
2016-01-19 13:13:37 +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
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