Commit Graph

33 Commits

Author SHA1 Message Date
Tobias Urdin 4538cc008c Remove LBaas
This removes the old LBaaS and LBaaS v2 integrations
that will be removed upstream in the Neutron release.

Depends-On: https://review.opendev.org/#/c/658803/
Change-Id: I9282e07043107a62769cb57d94b87ee8fb70cb38
2019-05-13 14:48:43 +02:00
Tobias Urdin e52f5449fd Deprecate all Neutron LBaaS code
The Neutron LBaaS project was deprecated in Queens and will
be removed in a future release.

Please see here for all information about the deprecation [1].

The Octavia project [2] was borne out of Neutron LBaaS and replaces
all it's functionality and currently supports integration with
Neutron LBaaS as well to allow a migration between the two solutions.

[1] https://wiki.openstack.org/wiki/Neutron/LBaaS/Deprecation
[2] https://docs.openstack.org/octavia/latest/reference/introduction.html

Change-Id: Ic3899f1366cad935545e9567f774f74f228b5800
2018-11-07 17:17:54 +01:00
sairamp f87db0d336 Optionally set device_driver to $::os_service_default
This commit will give users to optionally set device_driver value in lbaas_agent.ini to $::os_service_default

Change-Id: I1a9d8094816c684bfb769617dce895f122323fb9
2018-02-14 19:31:11 +00:00
sairamp 6f0882e73a Corrections in comments
The default values in comments were different from the default values assigned to them.

Change-Id: I737cd224f55e759d8038311281a46baad1055469
2018-02-07 21:05:38 -05:00
Sai Ram Peespati d06ba1f7a0 Added parameters to assign already present options in neutron.conf and lbaas_agent.ini
Giving an opportunity for the users to assign
  already present options such as
  ovs_integration_bridge option in neutron.conf
  and ovs_use_veth in lbaas_agent.ini configuration files on overcloud.

Change-Id: I023e0476e574d5a4c13d66da390aa13016566058
2017-11-08 10:07:21 -05:00
ZhongShengping a0e35a5ea1 Remove deprecated enable_v1 and enable_v2 options
The enable_v1 and enable_v2 parameters are deprecated and have
no effect, so we can remove them.

Change-Id: Ibad528ad783355236c384d037fe3ffb7d484538f
Depends-On: Icb74bac3e56aa92288b4137e0f0f77da75c23f33
2016-12-16 14:12:35 +08:00
Ihar Hrachyshka 085a16a2b9 Fixed references to neutron conf file in comments
It's neutron.conf, not neutron.ini.

TrivialFix

Change-Id: Ie8ff96e061b7e4412d6ac75204f5fe878fbb715e
2016-12-03 03:03:57 +00:00
Emilien Macchi 7b60d759fc lbaas: remove lbaasv1 and enable lbaasv2 by default
Upstream has just removed lbaasv1 from openstack-lbaas
(https://review.openstack.org/286381).

Let's follow them and provide a working lbaas deployment for our users
on Newton.

- Switch-on lbaasv2 by default instead of lbaasv1 to follow what upstream Neutron is doing
  in https://review.openstack.org/286381 and also switch default device_driver to be
  neutron_lbaas.drivers.haproxy.namespace_driver.HaproxyNSDriver
- remove lbaasv1 support.
- enable_v1 and enable_v2 are deprecated in neutron::agents::lbaas.

Change-Id: I1c032c53b61face152bb37dfac4646db11403e4e
2016-08-26 14:58:23 -04:00
Clayton O'Neill 8b2319e210 Add hooks for external install & svc management
This adds defined anchor points for external modules to hook into the
software install, config and service dependency chain.  This allows
external modules to manage software installation (virtualenv,
containers, etc) and service management (pacemaker) without needing rely
on resources that may change or be renamed.

Change-Id: Idb1332dd498bb3065720f2ccaf68e6b0e9fa80c3
2016-06-09 09:55:27 -04:00
Matthew Black 2fec5ca7f6 lbaas v2 service plugin support.
lbaas v2 services has to be configured for each
lbaas component (Octavia, Haproxy, A10, etc). This
change adds classes to configure octavia and haproxy
at the service level. The lbaas agent class has been
updated to install the v2 agent on debian and manage
the agent services on both debian and redhat.

Change-Id: I39d9a53dd18cd966818d242b8ca1d4a829d73acc
Closes-Bug: 1565754
2016-04-21 18:45:01 -04:00
Jerzy Mikolajczak 3f019235b9 Remove deprecated options from agents
* Remove deprecated options:
  - use_namespaces [l3/dhcp/lbaas][0]
  - allow_automatic_l3agent_failover [l3][1]
  - network_device_mtu [l3][4]
  - {router,dhcp}_delete_namespaces [l3/dhcp][2]
  - auth_{password,tenant,user,url,insecure,region} [metadata]
* Deprecate router_id in L3 Agent[3]

0 - https://review.openstack.org/#/c/238213/
1 - https://review.openstack.org/#/c/158858/
2 - https://review.openstack.org/#/c/237779/
3 - https://review.openstack.org/#/c/248498/
4 - https://review.openstack.org/#/c/100041/

Change-Id: I2c88f8523630ad0246785190f90b7a02fc704153
2016-04-21 08:44:34 +02:00
Nathan A. Taylor b467edb2a3 Add purge_config option for all configs
Adding a purge_config option for all configs (specifically left out
services/lbaas.pp and services/vpnaas.pp as they require default
entries). Adding this option for ease of management and readability.
If users wish, they can use this to ensure that only the options they
are setting make it into the configs.
  *rebased my changes

Change-Id: I2286acb350ae6300f2e4c8dd320f2534ddf09bf9
2016-04-13 13:48:09 -06:00
Martin Mágr 567d41a349 LBaaSv2 support
This patch adds class for modifying LBaaS configuration in neutron_lbaas.conf

Depends-On: I619de3038cd2690bebe47cd601c085692506ac3d
Change-Id: I95cf32c3211bc4498eaa68e6e748a27dfd9af0fa
2016-01-14 10:23:21 +01:00
Sergey Kolekonov 5379de00d0 Move Neutron to $::os_service_default - part 2
This change updates the values in main classes that are currently set to
the same values as in default configuration files to $::os_service_default fact

Change-Id: I5279cfd72192534a5ffcfdaf71b257b082a8b42c
Related-bug: #1515273
2015-12-11 17:48:16 +03:00
Sergey Kolekonov 69e809bcca Move Neutron to $::os_service_default - part 1
This change updates the values that are currently undefined to use
$::os_service_default fact.

Change-Id: Id0b1a696d4f151a776cd27acefb825f63fb0e162
2015-11-26 17:39:06 +03:00
Mike Dorman 9a60cbd1e4 Restart Neutron agents if packages are updated
Creates 'notify' relationships between the relevant Neutron
package(s) and agent services.  This will cause the agents
to be restarted if the package(s) is/are updated.

Change-Id: I4e2049f94636c3ca171fc1ba0d4b1c3cc67610cd
Closes-bug: 1472425
2015-09-18 12:20:00 -06:00
Yanis Guenane 2c21af85da Rely on autorequire for config resource ordering
Currently we specify the ordering of config resources wherever it is
necessary based on the presence of the file it will write to, or the
presence of the package in charge of providing the file it will write
to.

Those kind of ordering can be specified directly at the resource level
using the autorequire mechanism. With this patch, any config resource
will make sure the package in charge of providing the file will be
installed first.

Change-Id: I5542165142516fcd8fd3969c24ca92ac221452bd
2015-09-07 12:59:06 +02:00
Sergey Kolekonov 0a9eddaf02 Unset deprecated parameter use_namespaces by default
The option use_namespaces is deprecated and will be removed in a future release
The old behavior of use_namespaces = True will be enforced, hence setting it to
undef by default

Change-Id: I73ff929e40e6ed42247e6145202181067b6e28ed
2015-08-24 22:23:15 +03:00
Yanis Guenane a63da90375 Add tag to package and service resources
In order to be able to take an action after all the packages of the
module have been installed/updated or all the services have been
started/restarted, we set a 'neutron-package' and 'neutron-service'
tag for each package and service of this module.

At the moment, there is a generic openstack tag that is not specific
enough if one wants to take action upon a single module change.

Use case :

If an action needs to be taken after all the packages have been
installed or updated : Package <| tag == 'neutron-package' |> -> X

Change-Id: I63ac9b1d806565eb1847ed0e36d393c6c7ea98ad
2015-07-27 11:41:07 +02:00
Emilien Macchi cc9bc31699 LBaaS: update device_driver for Kilo
Neutron LBaaS plugin has been pulled out from Neutron core so the
device_driver Python plugin is now neutron_lbaas_*.
This patch breaks Juno deployments.

Doc: http://docs.openstack.org/admin-guide-cloud/content/install_neutron-lbaas-agent.html

Change-Id: I00085a1f6d5431256146aa5e9d4b506f33cf95fe
2015-06-09 14:21:21 +00:00
Sergey Vasilenko 2f71aa483e Tag all neutron packages
Some users wish to override the default package provider by their own.

Tag all packages with the 'openstack' to allow mass resource attributes
override using resource collectors.

Change-Id: I7ea5ae48f1bd2ab218b44cb68b20787b5d16e58d
Related-bug: #1391209
2015-03-31 14:31:06 +02:00
Javier Pena 9174962c33 Add lbaas package for Kilo in Red Hat platforms
Starting in Kilo, Red Hat platforms will also include LBaaS as a
separate package, see:

- http://trunk.rdoproject.org/f21/current/
- http://trunk.rdoproject.org/centos70/current/

Adjusting the lbaas manifest accordingly.

Change-Id: Ibd5d71a0e0e33a846a6a04aaf8f9f907f70526d4
2015-03-24 14:51:35 +01:00
Clayton O'Neill 25a5ede55b Add Puppet 4.x lint checks
This changes the puppet-lint requirement to 1.1.x, so that we can use
puppet-lint plugins.  Most of these plugins are for 4.x compat, but some
just catch common errors.

Change-Id: I44cb4ffbbc8ccd9f310240a4b1eb6fdfdb435831
2015-02-17 09:01:36 -05:00
Emilien Macchi cefbdc897d Change default LBaaS user group
Change user_group default parameter:
* nobody for Red Hat systems
* nogroup for Debian systems

Closes-bug #1378519

Change-Id: Ic2940c2e3d6510d8c6147d09e2af67d8bee7ac9d
2014-10-07 17:33:41 -04:00
Emilien Macchi 8d488fb296 agent/lbaas: fix HAproxy package relationship
This patch fix this case:
- manage_haproxy_package is set to false
- puppetlabs-haproxy is not running
- we still want Neutron LBaaS working on the node
- we don't want at all the package managed by Puppet

Only set the dependency if the package is defined in the catalog.

Closes-bug #1340999
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
Change-Id: Iee2211db8add4dfafba70706d69d1092339c6206
2014-07-15 14:11:50 +02:00
Doug Schaapveld c87308b4a9 Adding manage_service parameter to all services
When set to false, enables puppet to configure a service without
starting/stopping it on each run.  This may be necessary when
using an external clustering system (Corosync/Pacemaker, for
example).  Defaults to true.

Change-Id: Ia5b36d9e03bfc4905394bba4fb9873750664b118
2014-03-31 23:47:29 -05:00
Michael Chapman 954d550373 Make haproxy package management optional
Puppetlabs-haproxy does not use ensure_resources
and can cause failures when combined with lbaas
agent class.

This patch makes package management of haproxy
optional so that agents::lbaas can play nicely
with that module without requiring a patch there
changing to ensure_resource.

The dependency is fairly safe since:
 - redhat package name is haproxy
 - debian package name is haproxy
 - puppetlabs-haproxy aliases the package name to haproxy

If the names of any of these things get out of sync, this
may lead to errors.

Change-Id: I6e603cf328ade9460e98e391ef01337fcb6ea72b
2014-03-22 02:37:30 +11:00
Emilien Macchi 5fa487643e lbaas: use stdlib to manage haproxy package
Instead of using Package resource to ensure HAproxy is installed, using
stdlib with ensure_packages would allow to declare haproxy class (from
another puppet module) without dupplication.

Closes-bug #1273285

Change-Id: I57c5dc8096c846b102dc8ef6451400bc025af056
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
2014-01-27 17:45:00 +01:00
Emilien Macchi 14848940a9 Add new haproxy section
Since bf8949defc
got merged, we have now a new section in
LBaaS configuration file: [haproxy].

This patch aims to add this section and also to fix user_group flag to
be part of this new section.

Change-Id: I6c13e550a7033daa8ae6164b0437dfbc16a07666
Closes-bug: #1263952
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
2013-12-25 11:37:27 +01:00
Francois Deppierraz 16650e307c Rename device_driver in neutron::agents::lbaas
Since the havana release, the device_driver parameter for the HAProxy reference
implementation has been changed to
'neutron.services.loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver'.

Upstream reference:

358975281f

Do not backport this change into grizzly.

Change-Id: I22369e4875377fe7ac2aa6dd8ea80e04758acbed
2013-11-15 23:47:00 +01:00
Logan McNaughton 2c7f2bb9a8 Fix some puppet lint warnings.
Puppet-lint likes when the ensure's come first

Change-Id: Ib7828fd84a071c84961b0b9597cb7bee944ed533
2013-08-09 16:50:11 +00:00
Dan Prince c5005c221f Rename quantum to neutron.
Global replacement of all Quantum references with Neutron.

Change-Id: I74ad15e382589ced6f47d0783e3e952627fcd0f7
2013-08-08 10:49:19 -04:00
Émilien Macchi dc7d620a31 Add LBaaS Support
Since OpenStack Quantum has a LBaaS agent in Grizzly release,
this patch install and configure it with the default driver : HAproxy.

Change-Id: I68af63c33f6f5cd712a66dc747d3da8d01222aeb
2013-07-03 09:15:53 +02:00