RETIRED, Load balancing services for OpenStack Neutron.
Go to file
Elena Ezhova 52ad675d92 Use "session_persistence" in data models for uniformity with API attribute
Currently API uses "session_persistence" attribute name for session
persistence while in data model the name is "sessionpersistence".
This naming difference makes things complicated and leads to errors
in case  wrong attribute name usage.

For example, if we try to create a pool with defined session persistence
from_dict method of the Pool data model tries to pop "session_persistence"
from a model_dict [1]. But in reality model_dict contains "sessionpersistence"
key due to the replacement that was done in from_sqlalchemy_model method [2]
according to the db model [3]. This will later lead to errors during
refreshing of a device when pool.sessionpersistence [4] returns a dict
instead of a SessionPersistence data model.

Kept sessionpersistence attribute in Pool data model for backwards
compatibility.

[1] https://github.com/openstack/neutron-lbaas/blob/master/neutron_lbaas/services/loadbalancer/data_models.py#L350
[2] https://github.com/openstack/neutron-lbaas/blob/master/neutron_lbaas/services/loadbalancer/data_models.py#L67
[3] https://github.com/openstack/neutron-lbaas/blob/master/neutron_lbaas/db/loadbalancer/models.py#L148
[4] https://github.com/openstack/neutron-lbaas/blob/master/neutron_lbaas/services/loadbalancer/drivers/haproxy/jinja_cfg.py#L297

Conflicts:
	neutron_lbaas/drivers/octavia/driver.py
	neutron_lbaas/tests/unit/drivers/octavia/test_octavia_driver.py
	neutron_lbaas/tests/unit/services/loadbalancer/drivers/haproxy/sample_configs/sample_configs.py

Change-Id: Ib5efac45cf19acf0afe88a7ffa79514dd4129ed1
Closes-Bug: #1477348
(cherry picked from commit ae4687195c)
2016-04-18 11:54:53 +03:00
devstack Update devstack plugin for dependent packages 2016-03-22 16:58:24 +01:00
doc/source Post-split, get jenkins tests passing 2014-12-08 22:52:02 -07:00
etc Merge "VMWare Edge loadbalancer v1 driver" 2015-03-27 23:45:21 +00:00
neutron_lbaas Use "session_persistence" in data models for uniformity with API attribute 2016-04-18 11:54:53 +03:00
tools Added tox tempest environment 2015-03-10 02:19:06 -05:00
.coveragerc Updating .coveragerc to exclude the tests 2015-03-30 19:13:47 +00:00
.gitignore Added tox tempest environment 2015-03-10 02:19:06 -05:00
.gitreview update .gitreview for stable/kilo 2015-04-17 10:30:13 +02:00
.mailmap Add mailmap entry 2014-05-16 13:40:04 -04:00
.pylintrc Enable a bunch of pylint rules, get stuff passing 2015-02-05 22:28:47 -06:00
.testr.conf Changed testr config to read environment variables for output 2014-12-17 14:45:29 -08:00
CONTRIBUTING.rst Update documentation files for LBaaS 2014-12-15 14:16:41 +00:00
HACKING.rst Update documentation files for LBaaS 2014-12-15 14:16:41 +00:00
LICENSE Adding Apache Version 2.0 license file. This is the official license agreement under which Quantum code is available to 2011-08-08 12:31:04 -07:00
MANIFEST.in Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
README.rst Update documentation files for LBaaS 2014-12-15 14:16:41 +00:00
TESTING.rst Update documentation files for LBaaS 2014-12-15 14:16:41 +00:00
babel.cfg Use babel to generate translation file 2013-01-24 00:20:32 +08:00
requirements.txt Updated from global requirements 2015-11-17 23:15:29 +00:00
setup.cfg Bump stable/kilo next version to 2015.1.4 2016-01-22 15:42:19 +00:00
setup.py Updated from global requirements 2015-07-13 15:00:37 +00:00
test-requirements.txt Updated from global requirements 2016-02-06 08:27:55 +00:00
tox.ini Remove pylint from stable/kilo 2015-12-01 09:01:42 -07:00

README.rst

Welcome!

This package contains the code for the Neutron Load Balancer as a Service (LBaaS) service. This includes third-party drivers. This package requires Neutron to run.

External Resources:

The homepage for Neutron is: http://launchpad.net/neutron. Use this site for asking for help, and filing bugs. We use a single Launchpad page for all Neutron projects.

Code is available on git.openstack.org at: <http://git.openstack.org/cgit/openstack/neutron-lbaas>.

Please refer to Neutron documentation for more information: Neutron README.rst