Commit Graph

28 Commits

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

Change-Id: I0a8240c961955447d65aee7af24e03cb81da12d3
2018-10-14 12:52:23 +02:00
Ryan Petrello 8868ad47a2 Skip IP addresses that fail to delete (instead of raising a 500).
Change-Id: Ib30a0736277c90171e92617819ea34109481d8ad
2016-06-22 08:18:57 -04:00
Mark McClain d44aa3fe23 change authby to secret for better interop
Change-Id: I9b0fb3e0b0877175fa8ef4ec766a0a5ef75ce6cc
2016-04-12 22:07:27 -04:00
Mark McClain 4dde1f78e7 Ensure VPN settings are more prescriptive.
Previously VPN service relied on default behaviours and an open
firewall.  This specifies more values and ensures the firewall is
properly set.  Additionally, test coverage is expanded.

Closes-Bug:1564213
Change-Id: Iefaccddaad54c412195802f97811722bb593b2ca
2016-03-30 23:33:16 -04:00
Mark McClain 920954e31d Add support for StrongSwan VPN to router
This change adds Strongswan to support VPNaaS in appliance.

Change-Id: I1adb74c159eaf4f62950d17ed015856e90a91641
Partial-Blueprint: neutron-vpnaas
2016-03-18 14:29:40 -07:00
Adam Gandelman 8633d1a5bc Adds ConntrackdManager
Used for setting up conntrackd between two clustered peers.

Partially-implements: blueprint appliance-ha

Change-Id: Ice3f4dbed02b877bc64ae73879a74acc26cca47e
2016-03-18 11:05:03 -07:00
Adam Gandelman 02383adf64 Adds keepalived based VRRPIPManager
This adds a new IP manager driver for configuring addresses
and routes via keepalived instead of directly.  It used when
the logical resource is configured to be highly-available,
according to configuration pushed by the orchestrator.

We rely on a 'ha_resource' flag attached to the main config
dict to enable it, and use specific HA config about peers and
cluster priority contained in the 'ha_config' section of the
main config.

The resulting keepalived cluster contains a VRRP instance for
each interface, with the exception of the management interface.

Partially-implements: blueprint appliance-ha

Change-Id: I5ababa41d65642b00f6b808197af9b2a59ebc67a
2016-03-17 23:16:11 +00:00
Jenkins 44d1965789 Merge "Make defaults can be override by local settings" 2016-03-17 01:39:36 +00:00
Mark McClain 5994b8b148 do not apply SNAT when packet is generated by appliance
SNAT was incorrectly applied to traffic originating from the appliance.
This change marks the traffic so that the NAT rule is skipped and adds
clarifying comments to SNAT code.

Change-Id: Ifa6ea089c5bff6c57f4ba22095ef357eeb1ff786
Closes-Bug: 1550541
2016-03-07 10:20:37 -05:00
Jenkins f27ff0a643 Merge "Astara appliance oslo.rootwrap" 2016-03-04 23:21:52 +00:00
Adam Gandelman 33ee88897c Remove iptables assumption that all routers have external networks
In order to remove the auto-addition of external networks, we need
to remove the assumption in the appliance that all routers have one.
This avoids adding external network related iptables rules when the
router config does not have an external port.

Change-Id: Ifaf53a26f6d89da199101f386f4674c9f39f8326
2016-03-02 12:44:51 -08:00
Ryan Petrello dae911ea41 Work around a potential bug in dnsmasq's config parser.
It seems that dnsmasq sometimes mistakes IPV6 addresses in dhcp-host config
options for hardware addresses;  to work around this, only ever specify *one*
IPv4 and IPv6 address for the dhcp-host config value.

Closes-bug: 1545054
Change-Id: I8f508bf12a09efb46027737f3d1d285aef826f67
2016-02-19 10:02:44 -05:00
Xiayu abd07978e0 Astara appliance oslo.rootwrap
Use oslo.rootwrap to replace the default root_helper sudo.

Change-Id: I5875cd647a4cc4f60f3058a98ea8a829cf056c43
Implements: blueprint astara-rootwrap
2016-02-18 08:54:45 +00:00
Yang Hongyang 3a214fbdee Make defaults can be override by local settings
Make defaults can be override by local settings, it is useful because
users might use non-standard SSH ports and so on.

Change-Id: Ic30e611f73ce844848efb452b53f86242be9219d
2016-02-07 00:14:23 +08:00
Mark McClain 6eccab929b Make the management interface MTU configurable
The default MTU for the management interface is sometimes bigger than
allowable by the physical infrastructure.  Make the MTU configurable in
cloud-init and via config json.  For cloud-init default it to the minimum size
for IPv6 if the value is not specified in boot command.

Change-Id: Ib4d4381f6977aabbeefd2f520bb5fc26ea54ffcd
Closes-Bug: #1539786
2016-02-01 12:01:14 -05:00
Jenkins 3ca6cdc969 Merge "Remove unused variables 'LOG'" 2016-01-27 19:54:14 +00:00
Yang Li 972fc12594 Remove unused variables 'LOG'
Perhaps it will be used for debbuging, but now
it's unused.

Change-Id: I1e9c612a13e5673a762b673117d64169fbf4f2a8
2016-01-26 16:07:24 +08:00
Jenkins 7cc0742a1b Merge "Fix reduplicative function definition" 2016-01-26 00:12:58 +00:00
Adam Gandelman 44610ac1cd Accept new orchestrator config bucket
This adds the ability for the orchestrator to add a new bucket
into the config dict keyed 'orchestrator', which can be used to
notify the appliance of the specifics about the orchestrator currently
managing it.  Initially this will be used to inform the appliance where
the metadata service is running, but in the future could be extended
to do more, specifically around coordination.

Change-Id: I4a4009f12ce025d3dc6577d27f877aeb8427b963
Partial-bug: #1524068
2016-01-22 12:14:24 -08:00
Adam Gandelman adeaab79c8 Ensure interface cache up to date
The appliance server parses and caches the systems network interfaces
the first time it updates them, and never refreshes the cache. When
a new router interface is added, the appliance errors because its
interface cache has no idea about the NIC that corresponds to the
router interface.  This ensures we recreate this mapping anytime we
need it.

Change-Id: Iaff5a84a674d9089447bbdc8dc471f3d75a79af6
Closes-bug: #1531651
2016-01-21 14:36:34 -08:00
Adam Gandelman d5014bfdc6 Add reno for release notes management
Managing release notes centrally in the astara repo will be painful
and not allow backporting changes /w corresponding notes.

Change-Id: Ia43c88eb1530473c5ae5e9b6f97e36806fb95a8d
2016-01-21 14:36:34 -08:00
Adam Gandelman 9f9b7d0fde Remove lambda usage, fix pep8 E731 violation
Our pep8 is now checking E731 and failing.  This stops passing the  lambda
in questino around and instead just does the work in-line.

Change-Id: I47c44a559f5e912386a004bf7655732e13e844d3
2016-01-14 14:43:29 -08:00
Jenkins 0b3358b85f Merge "Replace deprecated LOG.warn with LOG.warning" 2016-01-11 21:08:23 +00:00
Yang Li a26effb7a2 Fix typo in function restart of class NginxLB
Change-Id: I4df0b8e9fca08b5b73083bfe4bf480dd699d85ec
2016-01-11 16:53:28 +08:00
Yang Li cdd56a958e Fix reduplicative function definition
We can move the function definition into the parent class if the
funcs between two subclasses are same.

Change-Id: If24a347fee557ae985eddee048815ea96e63a108
2016-01-11 16:09:20 +08:00
Swapnil Kulkarni (coolsvap) 3290a438a9 Replace deprecated LOG.warn with LOG.warning
LOG.warn is deprecated. It still used in a few places.
Updated to non-deprecated LOG.warning.

Change-Id: Ia78851fc4624328a43ab717f474b136326a0b789
Closes-Bug:#1508442
2016-01-06 16:18:03 +05:30
Adam Gandelman a5a5545419 Drop gunicorn from requirementes.txt
We dont ever actually import this anywhere or depend on it as a python
dependency.  Instead, its part of our diskimage-builder elements and
is largely an opinionated deployer choice we've made.  The only purpose
having it in requirements.txt is to pull it in during installation, which
should be delegated to ansible/DIB instead.

This also manually sync's global-requirements along with the update.

Closes-bug: #1526527

Change-Id: I834efb47ccda02a5163c5083836ff29fdc3fdd6f
2015-12-17 12:39:31 -08:00
Mark McClain 1a68612a71 Rename Akanda to Astara
Change-Id: Id5b7509a64cd274696f6bdd63a1133c25505f01b
2015-12-03 19:57:21 +00:00