CHANGES
=======

5.4.11
------

* LBAAS-713 Change the "counter" database commits to be best effort

5.4.10
------

* Add more info to logging for devices which fail ping checks
* LBAAS-551 Config setting for build diag timeout
* LBAAS-583 - VIP assignment can fail without us noticing LBAAS-621 - Correct libra to send gearman unique messages

5.4.6
-----

* backporting..
* backporting gear worker into a Yelp gearman environment
* api serve rnow uses gear library; remove yelp's gearman
* changes the admin_api server to use the gear library
* Replaced gearman python library with gear python library in the pool manager
* [GOOD] switch tox back on
* [BAD] silence tox to get some cherry picked chnages in
* min switch gearman to gear worker
* enable hacking check H234
* make pep8 happy
* [API] Added LB options to docs
* [API] Changed copyright for demo
* [DOCS] Add v2 Admin API docs
* [ADMIN_API] Version 2.0 of the Admin API
* [API] Fix validation for multi lbs per device
* [API] Completed TCP Timeout work
* [API] Document all MnB config options
* [ADMIN_API] Fixed MnB metrics to be an array
* [API] Fixed license date
* [API] Protocols are now in the DB
* [API] Support for LB timeout options
* [API] Support per-tenant max loadbalancers
* General updates for Development Installation docs
* [ADMIN_API] Move MnB create/delete msgs MnB create and deletes have been moved out of the API calls to the gearman client, after the creates / deletes have completed. Also had to move billing_enable to the defaul config group
* [ADMIN_API] Cast byte_count to int in usage message
* [WORKER] Change PING -> STATS, STATS -> METRICS
* [ADMIN_API] Adjusting worker messages
* Whitelist external mysql-connector-python req
* [API] Fixed vip duplications on multi LBs
* [API] Disallow MnB messages if disabled
* [API] Fix logging line
* [WORKER] Remove unused stats_client.py file
* [WORKER] Support LB timeout options
* Add -U option to pip install command
* [WORKER] Fix for saving stats on initial UPDATE
* [ALL] Fix for Gearman SSL file check
* [ALL] Check Gearman SSL file access
* [WORKER] Register haproxy cfg group
* [libra] New example config file
* [WORKER] Fix unreported stats carry over bug
* [WORKER] Fix logic to find unplanned restarts
* [ADMIN_API] Fix gearman_stats bug
* Update Python package requirements
* [ADMIN_API] API side of Mnb Changes
* [API] Fix race in load balancer deletion
* [DOCS] Document statsfile option
* [API] Don't allow null values for health monitor inputs
* [DOCS] Update worker and common docs
* [WORKER] Implement new STATS request
* [API][ADMIN_API] Make VIP delete retry
* [API] URL Encode the URLs supplied for health monitoring
* [API] Fix Monitoring limits
* [API] Remove deadlock detection code
* [ADMIN_API][MGM]: Be nicer to Nova networks for deletes
* [ADMIN_API] Handle case that shouldn't happen
* [LOGGING]: Fix multi-rollover
* [API] Fix exception when UPDATE gearman message fails
* [LOGGING] Change to use oslo logging
* [TESTS] Use fake rpc for testing
* [API][ADMIN_API] Fix DB locking issues
* Enable capturing stdout and stderr from tests
* [WORKER] Support PING message
* [WORKER] Move LB stats class out of common
* [TESTS] Add noticications utilities
* Typo
* [API] Fix error message
* [ADMIN_API]: kill a rare exception due to a race setting an error
* [ADMIN_API]: use DIAGNOSTICS message for OFFLINE check
* [API]: Show correct output when VIP has not been assigned yet
* [TESTS] Update test code to align with OS
* [ADMIN] Bug fix to not pass args to stats drivers
* [API] Only allow int vips on create
* [ADMIN_API] Don't change LB state on node state change
* [API][MGM] Large improvements to floating IP handling
* [ADMIN_API] Adding oslo.notify dependencies
* [admin_api] Fix for bad error message Show the device name instead of its id when there is no LB attached
* [API] Use of ConfigParser for keystone section
* [MGM] Fix invalid argument to DeleteController
* Use ConfigParser for database config parsing
* [API] Fix daemon config reference
* [MGM] Fix add_common_opts() reference
* [MGM] Better socket handling on test
* [WORKER]+[MGM]: gearman needs string names, ports need ints, socks need close
* [WORKER]: Fix stupid mistakes
* [WORKER] Fix diagnostic message action
* [WORKER][ADMIN_API]: Add device diagnostics check
* [ADMIN_API]: Show how many devices fail on abort
* [API] allow deletion of LBs in an ERROR state
* [API]: Fix pool empty and delete handling
* [API] Add ImmutableEntity (422 error code)
* [API][MGM]: Improved floating IP error handling
* [ADMIN_API] Migrate to oslo.config
* [API]: Assign only error free devices
* [API] Migrate to oslo.config
* [MGM] Migrate to oslo.config
* [MGM]: Add floating IP test
* [ADMIN_API]: Fix node status change in scheduler
* [DOC] Fix headers to display correctly
* [WORKER] Migrate to oslo.config
* [DOCS] Improvements for worker drivers and fixes
* [WORKER] Allow haproxy logfile path to be configurable
* [WORKER] Replace eventlet with threads
* [WORKER] Support cleaner HAProxy config reloading
* [API]: Give a 401 when we have no tenant ID
* [MGM]: Fix exception when logging build failure

5.0
---

* [API][ADMIN_API]: Fix off by one in DB engine switch
* [API] Exception fixes
* [API] Move socket creation into libra.common.api and support not having SSL
* [DOC] Simple docfix in development docs
* [DOC] Using DIB for images / installation
* [API]: Add documentation for node weight and backup
* [API]: Adding support for node weights
* [API] Support new GALERA protocol in the API
* [DOC] Add a space between _ and the label
* [API] Make condition mandatory on Node PUT
* [API]: Debug fixes
* [API]: Fix issue where an invalid LBID would give a 500 error
* API documentation re-amp
* [WORKER] Support new GALERA protocol
* Fix schedulers header and disable manpage generation
* Document Stats scheduler better including AF and drivers
* Doc updates
* [ADMIN_API]: More AF dual LB fixes and errmsg
* Update tox.ini to use new features
* Doc improvements
* [MGM] Support nova_net_id option when there are n+ Neutron networks
* [MGM] Provide a more useful log message when novaclient fails
* Change mgr > mgm
* [ADMIN_API]: Change update method on LBs for nodes
* Adding getting-started docs
* [MGM]: Fix call to nova.get_node()
* Re-structure docs
* [API]: Bug fix for multiple LBs per Device
* [WORKER] Allow stickiness for TCP sessions
* [API]: Fix for multiple HTTP or TCP ports per device
* [ADMIN_API]: Added OFFLINE checker and bug fixes
* Revert "[ADMIN_API]: Remove eventlet monkey_patch"
* [MGM] Add --rm_fip_ignore_500 option
* Fix schema definitions for timestamps
* [ADMIN_API]: Remove eventlet monkey_patch
* Remove deprecated LOADBALANCERS.DEVICE column
* Remove deprecated DEVICES.LOADBALANCERS column
* [ALL] Add Gearman KEEPALIVE options
* [API]: Don't allow invalid port numbers
* pbr should be first in the requirements list
* [API]: Handle no device attached on delete
* Remove HTTPS as a option and *
* Update pbr usage to modern understandings
* [ADMIN_API]: Fix device status in rebuild
* Remove pbr version in setup.py
* [ADMIN_API]: Fix crash on rebuild
* [ADMIN_API]: Fix failover race condition
* [API][ADMIN_API]: Fix unicode problem with MySQL and gearman
* [API][ADMIN_API]: Improvements to DB driver
* [MGM]: Make pool mgm multi-threaded
* [API]: Open privileged socket before dropping privileges
* [ADMIN_API]: Fix typo causing exception
* [MGM]: Fix SSL handling for gearman
* Fix DB schema file
* Don't require d2to1 anymore
* [MGM]: Modify pool manager to support new Nova installations
* [DOCS]: Updates to include auto-failover and log archiving
* [API][ADMIN_API][MGM]: Auto-failover code
* Bump novaclient
* [API] Active monitoring cleanup
* Move out packaging to a seperate repo

4.0
---

* [API] Bug fix for Active monitoring
* [WORKER] Use GET for haproxy httpchk option
* [ADMIN_API] Bug Fix for Passive Monitoring
* [API] Active monitoring support
* [API] Don't use nodecount fail when enabling a node
* [MGM]: Add Admin API timeout to stop hanging
* [WORKER] Check for zero-length monitor path
* [ADMIN_API] Fix repair log msg
* Require a less broken version of pbr
* [WORKER] Active monitoring support
* [ADMIN_API] Fix overloading of errmsg with too much data
* [DOCS] Fix gearman-poll default value
* [ADMIN_API] Fixes to passive health monitoring
* [ADMIN_API] passive health monitoring changes
* Attempt to fix python-novaclient version
* [WORKER] Change gearman poll default to 1
* [API] Only one LB per port on a device
* [API] fix statsd merge into admin API
* [ADMIN_API] Merge in statsd
* [WORKER] Added a gearman-poll argument
* [API] Fix bad device perfect storm
* [WORKER] Return node status in STATS message
* [WORKER] Name server nodes using node ID
* [docs] Fix minor typos in some documentation files
* Added node.id to worker UPDATE message
* [WORKER] Add support for 'show stat' haproxy query
* [API] Fix 413 regression in last patch
* [API] 404 instead of 400 when a load balancer or node not found
* [API] Don't set an ERROR'd device back OFFLINE on delete
* [API] Fix gearman server list variable reference
* [API,STATSD,WORKER] Bug fix: Use int port numbers
* [WORKER] Fix session persistence and health checks
* [API] Catch for_update locking issue
* [API] Fix some error handling
* [API] Switch load_balancer and node gets to WSME
* [API] Fix WSME args/kwargs on Galera error
* [API] More transaction fixes
* [API]: Also catch galera issues in WSME
* [API] Retry request on galera deadlocks
* [MGM] Didn't complete option rename prior to last merge
* [MGM] Refactor pool manager ready for new functions such as delete
* [API][ADMIN_API] Cycle DB servers if one fails
* [API] Fix typos in messages
* [API][ADMIN_API] Fix small race in SQLAlchemy + galera
* [API] It is possible to disable all nodes
* [API][ADMIN_API] Fix galera clustered connections
* [API][ADMIN_API] SQLAlchemy bind cleanups
* [API][ADMIN_API] Support MySQL clusters
* [API] Fix delete and node delete response codes
* [API] Add nodeCount to list and status
* [API] Add IP filtering for backend nodes
* [API] Add status=DELETED get call and deleted LB cleanup
* [API] Fix race condition in DELETE
* [API] Fix off-by-one in active LB count
* [API] Logging, orphaned LBs and empty responses
* API: fix node enabled display
* [docs] Minor documentation clean up
* API: Make version responses work unauthenticated
* Some documentation updates
* [WORKER] Use consistent Gearman SSL option names
* [STATSD] Add SSL Gearman support
* [API] Add SSL Gearman support
* Pool_mgm: Catch NotFound exception correctly
* API: fix empty responses
* API: Don't debug output when exception reaches wsgi layer
* [API] Remove unused Gearman client variable
* [API] Bug fix: Wrong column name in query
* [WORKER] Add SSL Gearman support
* API: Log more information about a request
* Add script to upgrade worker from 2.0 to 3.0

3.0
---

* API+Admin_API: fix issue where MySQL can drop connections
* Add newline stripping formatter to logging system
* [worker] Reduce JSON debug output to single line
* API+ADMIN_API: disable keepalive to kill memory leak
* [worker] No longer require sudo for socat
* API: Add exception logging for gearman threads
* API+ADMIN_API: add MySQL port option and MySQL SSL support
* ADMIN_API: Migrate to use same DB session handling as API
* API: Increase gearman timeouts
* ADMIN_API: eliminate an uneeded query
* Support logstash logging
* API: DB session fixes
* Admin API: Disable debug logging of sqlalchemy
* API+Admin API: Fix SSL options
* DOCS: config and Admin API updates
* API: Make sure 2 API servers can't grab the same device
* Statsd: Error when a Device fails with no LB attached
* API: make error message output in-line with old API server
* API: Remove disabled nodes from the gearman message
* ADMIN_API: Fixes to make admin_api work with current tools
* API+ADMIN_API: SSL and DB fixes
* API: Use SSL to listen on
* API: fix node modify
* API: fixes and error handling
* Require pbr>=0.5.12
* API: Add support for ARCHIVE feature
* statsd: Rename gearman.py to statsd_gearman.py
* Adding code for the device admin API. All GET, POST, PUT, and DELETE calls should be working
* statsd: Fix JOB_UNKNOWN import. Set min gearman
* statsd: Make ping timeout values configurable
* statsd: Use proper Gearman constants
* API+STATSD: Fixes
* Altered typo in debian/rules file sh_installinit -> dh_installinit
* API: Error handling fixes
* API: make things use gearman
* API: Add node handling
* Fixing typo with DELETE in admin api
* Docs: Initial import of Admin API
* API: More work on the API server
* API: minor fixes
* ADMIN_API: Add basic framework
* API: fixes to create and delete
* API: Fix create/delete
* API: Add eventlet to WSGI and gearman thread handler
* API: Use the recieved tenant ID
* API: Fixes to keystone auth
* API: add keystone and make independend app
* statsd: Stop retry list pinging everything again including fails twice
* API: More fixes for POST
* API: Add wsme for POST processing
* No longer try to chown the log file
* API: Add v1.1 routing and versioning
* Make statsd check for DELETED flag in retry code
* API: add node output and improve error handling
* custom date output and response update
* Use the new deleted flag in statsd
* Adding in api server
* Return 'status' field for STATS on deleted LB
* Add recheck to statsd so that false alarms don't happen
* Fix worker doc about case sensitivity
* Remove HAProxy logs on LB delete
* Bug fixes: Version string and return response copy
* Fix example worker response for STATS
* Add syslog options and worker support
* Fix typo in statsd retry code
* Typo fix
* Add a retry for statsd ping timeout
* Statsd should ignore fails in non-customer LBs
* Hide the token in the worker logs
* Add some documentation for statsd
* Cleanup: Remove duplicate file copy code
* Fix case where no LBs need repair
* Add missing function
* Add repair code
* Fixes to drivers
* Catch Swift exc's and better container handling
* Fixes to make statsd actually work
* Add admin_api plugin
* Improve alerting message
* Add datadog driver
* First push of base for statsd code

2.0
---

* Update of typo in tarballs url
* Update upgrade script to pull from tarball.o.o
* Include venv in tox.ini
* Update README
* Add release info to worker DISCOVER message
* Add --release option
* Set minimum version for python-daemon to 1.6
* Add v1 to v2 upgrade script
* Remove reference to obsolete tools directory

2.0-alpha
---------

* Update to pbr and flake8
* Add documentation for new STATS worker message
* Add new STATS worker message
* Worker DISCOVER message now returns Libra version
* Disable unused statistics gathering thread
* Move tests under libra package subdir
* Enable pyflakes on entire libra package
* Set version on master branch to alpha version
* Worker message example correction
* Update worker documentation
* Fix Sphinx build
* Update Oslo (OpenStack Common code)
* Support Swift log file archive for HAProxy driver
* Add LB id to the worker archive API for Swift
* Add driver API infrastructure for archiving logs
* Add daemon framework for an API server (copied from other parts of Libra)
* Catch exceptions during scheduled runs
* Daemon PID file fixes
* Fix NotFound exception catching
* Set pool mgr working directory to /
* One place missed
* Removed use of older-version response status checking from nova + mgm code, replaced with requests-based status code checking
* Re-enable pyflakes
* Get 'weight' value from API server message
* Support server node weights
* Fix tests directory for Debian packaging
* Fixed minor typo in pool_mgm --help output

v1.0
----

* Requests 1.0 makes a backwards incompatible API change
* Simplify sphinx processing
* Remove client code, now in its own tree
* Migrate to testr
* Make pool manager meet 1.2 API spec
* Make worker JSON message case sensitive
* Change to test JSON msgs are case-insensitive
* Add pep8 test requirement
* Fix missing config file from sdist breaking tox
* Add algorithms option to client create command
* Add client error handler
* Add /loadbalancers?status=DELETED to client
* Add /protocol and /algorithms to client
* Add limits command to client
* Document new options in client
* Fix client status and node-status commands
* Various client fixes
* Add ubuntu package building
* Added basic upstart file for libra_worker to libra/etc/libra_worker.conf. Still need to see about making this get installed as part of running setup.py, but the script works for initial purposes
* Fix clearing old logs
* Fix Nova boot lies edge case
* Worker stats should be longs not ints
* Fix invalid variable reference
* Add support for version discovery to worker
* Add failed node handling
* Remove duplicate worker test
* Add a timestamp to LB stats object
* Add comment about enabling HAProxy on Ubuntu
* altered variable reference in code to replace '_' with '-' (basename vs. node_basename). was causing errors as object didn't have a self.basename
* Add code to start noop statsd worker
* Fix typo in README
* Change README to represent entire Libra tool set
* Add Libra statistics worker framework
* Also fix underscores provided in basename
* Use dash instead of underscore as node name separator
* Fix typo in option test
* Add temporary .sh file to build PDF doc
* Add option to prefix pool manager node names
* Add no_cache=True so that keyrings are not used
* Add missing command line Nova password option
* Switch to latex for PDF docs
* Fix log rotation in daemon mode
* Fixes 'sys.exit() doesn't do what you think it does'
* For for stats thread when haproxy not running
* Remove CREATE action from worker msg protocol
* Add time based rotating log file handler
* Fix worker test client Gearman func name
* Fix undefined variable reference in worker
* Accept names for flavor and image
* Make the node hostnames use UUID only
* Change worker Gearman function name format
* Fix worker test client message
* Add warning about worker startup problem to README
* Force sudo password prompt an error
* Fix mgm api server edge case
* A better docs option cross-reference fix
* Fix option cross references
* Fix for setting integer stats values in worker
* Catch ALL exceptions in worker stats thread
* Start of obtaining worker stats
* Remove pyflakes from default tox run
* Altered option parsing behavior to list all required arguments that are missing before exiting
* More worker changes for LB statistics framework
* Fix worker service: raise, not return, exceptions
* Tag worker log messages with prefix
* Add statistics polling interval option
* Update worker docs for recent changes
* Add MANIFEST.in file
* Add worker statistics gathering process
* Add --version option
* Fix pointer to bad config settings in pool manager
* HAProxy `cookie` option must be in backend
* Fix HAProxy config warnings
* Fix haproxy logging
* Catch exceptions from worker controller
* Document the code layout for the pool manager
* Fix for calling wrong method in controller.py
* Documentation and pool manager configuration changes
* Add HAProxy config validation call to worker
* Use event-driven task distribution
* Add start of driver API to pool manager
* Documentation changes
* More code reorg: move Gearman code to worker.py
* Reorg code to separate out worker function
* Pool manager now posts nodes to API server
* Pool manager now creates Nova nodes
* Make the node pool manager read from the API server
* Make pep8 test only require pep8
* Get test requirements from test-requires file
* Get install requirements from pip-requires file
* Set mode in haproxy frontend and backend
* Pass HAProxy config to OS services driver
* Pass services driver path to HAProxy driver
* Support multi-protocol LB messages
* Add openstack-common
* Put the version in the PDF doc filename
* Add introduction to libra documentation
* Add jenkins cache env to tox file
* Add gitreview file
* Add ability to run individual tests with tox
* Fix PDF doc margins so index renders correctly
* Add improved PDF style
* Fix improper string comparisons
* More Mac fixes
* Don't build PDFs on Macs (too hard)
* Add Sphinx and rst2pdf as setup requirements
* PDF build and doc reshuffle
* Fix mispelling of fixed mispelling
* Fix misspelling
* Add reference to lbaas_task()
* Add relationship diagram
* Fix client docs for the options fixes
* Client additions
* Add client modify function code and tests
* Add client create test to add a LB to a VIP
* Client test improvements
* Fix client create funtion
* Fill in create and delete functions
* Fix indenting
* Document known_drivers for the worker
* Fix method name reference
* Document more worker classes
* Add framework for additional worker docs
* Worker doc updates and added --reconnect_sleep
* Add empty method calls for remaining all commands
* Fixes for client options parser
* Add and document all the rest of the client options
* Add rest of worker options to docs
* Doc fixes
* Add some client documentation
* Add initial worker docs
* More client options work
* Add --haproxy-service option
* Add worker controller tests
* Modify HAProxy driver tests for mock OS services
* Split out OS services from HAProxy driver
* Move import_class to common
* Add modify options to client
* Add client create options
* More work on client
* Add test case for client
* Fix type in Atlas API for client
* Add list function to client
* Split out client code
* Add another missing client function
* Add one missing option to client
* Add commands to client API
* More client command parser improvements
* Use argparse directly for command line client
* Add start of command line client
* Change logging level on a few messages
* Add node create fail test for mgm
* Change how HAProxy driver does a restart
* Validate HAProxy start/stop
* Fix Nova API usage testing
* Fix interval options in mgm
* Add metrics rest API call to mgm
* Add HAProxy driver test for set_protocol()
* Add set_algorithm() method to driver API
* Fix potential Timer trigger race in mgm
* Mgm changes: Switch to Timer based scheduler due to rescheduling issues Make signal handler work with Timer
* Add mgm scheduler
* Enhance nova create/delete functions
* Remove executable env from mgm files
* Fix broken test case
* Nova calls now work Add missing config settings
* Support setting bind port based on protocol
* Add init() method to driver API
* Add support for setting protocol
* Add hpcs_action to sample client
* Fix for CREATE if haproxy config does not exist
* Add action value to debug output
* Add driver support for DELETE action
* Add options to mgm
* Add mgm server options to sample config
* Add test for invalid action value
* Add support for SUSPEND/ENABLE to HAProxy driver
* Rename driver 'activate' method to 'create'
* Refactor worker logic
* Add missing var, fix test case
* Bug fix: Worker assumed double encoding of JSON
* Undo last change
* Fix haproxy stat socket location
* Dump JSON message to the log
* Bug fix: Reset server list after writing config
* Fix PID file for Libra tools
* Remove invalid options from sample config
* Update README
* Use sudo for HAProxy config file manipulation
* Fix activation message
* Remove broken syslog logging
* Don't use syslog when not a daemon
* Bug fix: Must name the argument for Server:main()
* Reintroduce `syslog_socket` option
* Revert "Add `syslog_socket` option."
* Add `syslog_socket` option
* Logging fix and --syslog option
* Add Nova delete function
* Make py27 run in tox -eALL
* Remove sudo requirement for changing config file
* Add user/group options for daemon mode
* Add user/group options for daemon mode
* Add start of Nova status method
* Add sample config file
* Test Nova API calls
* Add start of nova API calls for node mgm
* Worker now supports multiple servers specified in config file
* Worker supports getting job server list from command line options
* Implement basic config change/restart in HAProxy driver. Add basic driver unit tests
* Update README
* Fix to actually set worker params
* Remove unnecessary pkg name from import_class
* Add code to dynamically import a class
* Initial architecture changes for using dynamic drivers and for a HAProxy driver
* Fix option parsing so help displays all options correctly
* Modify mgm to use common config
* Added support for common configuration file
* Add config parser to mgm
* Strip out gearman from mgm (going to use a REST API instead)
* Add mgm -> API rest interface class
* Cleanup logging. Rename worker test file
* Different logging setup
* Fix pep8/pyflakes errors
* Fix options usage
* Fix options parser
* Modify worker to use new options parser
* Work on options parser
* Add pyflakes, picking up things that pep8 misses
* Break out common components from mgm Add config file parser
* Move common code to common/ dir
* Reorganize package structure around new product name (libra). Make tests directory NOT be a Python package. Rename executables. Add common source dir
* Fix pep8 for doc builder
* Add doc builder
* Integrate pytest testing
* Add reconnect attempt when job servers go away
* Tox tests don't like reading requirements from a file
* Fix entry point name
* Make setup.py install_requires get its requirements from pip-requires
* Add Apache2 license to source files. Move lib from lbaas to lbaas_worker
* Modify README for daemon changes
* Use python-daemon module
* Remove tests/__init__.py
* Cleanup from moving tests
* Move tests to top level
* PEP8 fixes. Add API fault classes and tests
* Fix up test case
* Added .gitignore
* Add more info to README
* Add README file
* Added initial files
