Load Balancing as a Service (LBaaS) for OpenStack
Go to file
Carlos Goncalves acc38391de Workaround peer name starting with hyphen
The base64_sha_string method is used to set a base64-encoded peer name
in HAProxy. There are cases where the peer name can start with
an hypen which is troublesome when used in HAProxy CLI. Specifically,
HAProxy fails to reload when local peer name starts with '-x' [1]. When
this is the case, an amphora goes to provisioning status ERROR and later
is scheduled for failover by the Octavia Health Manager service. A new
amphora UUUID is assigned and base64 encoded, hopefully not starting
with '-x' again. However, this is far from being ideal -- we incur in a
dataplane disruption (single topology) or reduce HA capabilities
(active-standby topology) for some time.

Four possible options:

a) add prefix to peer name
b) change b64encode altchars
c) quote peer name in haproxy CLI command
d) substitute first character if hyphen

Option a) and b) are not backward compatible with running amphorae. Peer
names of existing amphorae that do not start with hypen but contain
hyphen at any other position would get different peer names.

Option c) would nonetheless still require an amphora image update to add
quotes in the HAProxy init service file. Continuing to generate peer
names with hyphens at begininng of the string is avoidable and
recommended.

Option d), while also requiring an amphora image update, it would get
rid of hyphens in begining of the peer names. It is also backward
compatible with all running amphorae, except for those starting with
hyphen but are broken anyways.

This patch takes option d). It substitutes hyphen with 'x' character.

[1] https://github.com/haproxy/haproxy/issues/644

Task: 39850
Story: 2007714

Change-Id: Ib0fc26877710dea423a5ebcf1f71077665404377
2020-05-26 12:51:57 +02:00
api-ref/source Switch to newer openstackdocstheme and reno versions 2020-05-21 13:06:24 +02:00
bin Don't inherit enforcing bash errexit in devstack plugin 2020-04-15 10:10:34 -04:00
devstack Merge "Make sure devstack aborts if DIB fails" 2020-05-21 22:41:47 +00:00
diskimage-create Stop "dnf makecache" in the amphora images 2020-03-16 16:53:27 +00:00
doc Switch to newer openstackdocstheme and reno versions 2020-05-21 13:06:24 +02:00
elements Exclude acpid on Red Hat family DIB builds 2020-03-23 09:27:10 -07:00
etc Merge "Add TLS cipher blacklist to octavia.conf" 2020-05-19 15:54:33 +00:00
httpd Run Octavia API in a WSGI server 2017-04-30 08:36:44 +00:00
octavia Workaround peer name starting with hyphen 2020-05-26 12:51:57 +02:00
playbooks/image-build Migrate grenade job to native Zuul v3 2020-05-04 14:01:40 +02:00
releasenotes Workaround peer name starting with hyphen 2020-05-26 12:51:57 +02:00
specs Update api-ref location 2019-07-22 19:18:40 +02:00
specs-tests Update tox 'docs' environment to test specs 2016-09-08 15:18:43 -07:00
tools Remove all usage of six library 2020-03-18 17:15:26 -04:00
zuul.d Migrate grenade job to native Zuul v3 2020-05-04 14:01:40 +02:00
.coveragerc Update .coveragerc after the removal of openstack directory 2016-10-17 17:11:16 +05:30
.gitignore Ignore .vscode directory 2019-05-04 18:28:55 -06:00
.gitreview OpenDev Migration Patch 2019-04-19 19:36:42 +00:00
.pylintrc Add long-running provider agent support 2019-09-10 22:25:50 +00:00
.stestr.conf Gatefix: Migrate from testr to stestr 2017-09-13 17:12:21 +00:00
babel.cfg Setup translation for octavia 2016-12-15 00:48:02 +00:00
bindep.txt Generate PDF documentation 2019-09-19 13:12:37 -07:00
CONSTITUTION.rst Update the documentation link for doc migration 2017-09-22 00:45:56 +00:00
CONTRIBUTING.rst Ussuri contributor docs community goal 2020-03-25 16:55:48 -07:00
HACKING.rst Ussuri contributor docs community goal 2020-03-25 16:55:48 -07:00
LICENSE Populate repository with common initial files 2014-07-02 20:30:14 -07:00
lower-constraints.txt Switch to newer openstackdocstheme and reno versions 2020-05-21 13:06:24 +02:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-05-13 19:59:59 +00:00
requirements.txt Jobboard based controller 2020-04-08 19:53:09 +04:00
setup.cfg Add py38 package metadata 2020-04-24 08:22:38 -05:00
setup.py Updated from global requirements 2017-03-02 11:50:57 +00:00
test-requirements.txt Switch to newer openstackdocstheme and reno versions 2020-05-21 13:06:24 +02:00
TESTING.rst Fix TESTING.rst example 2020-02-18 18:11:05 -05:00
tox.ini Update hacking for Python3 2020-03-30 10:03:05 +00:00

Team and repository tags

image

Octavia

Latest Version

Octavia is an operator-grade open source scalable load balancer for use in large OpenStack deployments. It delivers load balancing services on amphorae and provides centralized command and control. Octavia is currently the reference backend for Neutron LBaaS. In the near future, Octavia is likely to become the standard OpenStack LBaaS API endpoint.

Octavia is distributed under the terms of the Apache License, Version 2.0. The full terms and conditions of this license are detailed in the LICENSE file.

Project resources

Developer documentation for the Octavia project is available at https://docs.openstack.org/octavia/latest/

Release notes for the Octavia project are available at https://docs.openstack.org/releasenotes/octavia/

The project source code repository is located at https://opendev.org/openstack/octavia

Project status, bugs, and requests for feature enhancements are tracked on https://storyboard.openstack.org/#!/project/openstack/octavia

For more information on project direction and guiding principles for contributors, please see the CONSTITUTION.rst file in this directory, or specifications in the specs/ sub-directory.

The project roadmap is available at https://wiki.openstack.org/wiki/Octavia/Roadmap

External Resources