Introduces a new config parameter to specify the anti-affinity
policy.
Bumps nova version.
Closes-Bug: 1677604
Change-Id: I8c50057bd43873182058097e802bc839d1be0554
Make API path for pools independent of Loadbalancers and
Listeners.
- /v2.0/lbaas/pools/
- /v2.0/pools/
GET all - /pools/
GET one - /pools/<pool-id>
POST - /pools/ {<body>}
PUT - /pools/<pool-id> {<body>}
DELETE - /pools/<pool-id>
Co-Authored-By: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
Co-Authored-By: Adam Harwell <flux.adam@gmail.com>
Partially-Implements: #1616641
Change-Id: I7679cc7b3f559db774a9d036580177cf1aa7e693
Per the discussion in the service-types-authority repository [1]
updating octavia to use "load-balancer" as the service type.
[1] https://review.openstack.org/#/c/434999/
Change-Id: I4faa327c064f6291c578d3e04f8ee8624940ce08
Probably the most common format for documenting arguments is reST field
lists [1]. This change updates some docstrings to comply with the field
lists syntax.
[1] http://sphinx-doc.org/domains.html#info-field-lists
Change-Id: If115f76d6f26108e55fb3460f36283f943ee61fb
Because original directory 'etc/octavia' does not exist, excuting
'tox -egenconfig' fail with 'No such file or directory'.
Change-Id: I1b26bc1e631d1280dab223b1271362100347fe82
GET one - /v2.0/lbaas/listeners/<listener-id>
GET all - /v2.0/lbaas/listeners
POST - /v2.0/lbaas/listeners {<body>}
PUT - /v2.0/lbaas/listeners/<listener_id> {<body>}
DELETE - /v2.0/lbaas/listener/listener_id
Partially-Implements: #1616640
Co-Authored-By: Adam Harwell <flux.adam@gmail.com>
Co-Authored-By: Ankur Gupta <ankur.gupta@intel.com>
Change-Id: Ia4effb6e37df3ae562b9b25976440f6eb6b0044a
kpartx is not called anymore in amphora creation
'jq' package is not required anymore, so drop epel element dependency
For rpm-based distributions, qemu-img package is enough
Drop Centos 6 specific check, it is not supported with current releases
Merge some Fedora/CentOS checks
Change-Id: I469486b48231489e0c4ea8b9986cb0c2347eb14f
remove unused logging import,
and change import order in /octavia/common/keystone.py for pep8 check
Change-Id: Iede900e646a801d71cf546ee8aa57c4a9de1d3fa
TrivialFix
Some configuration options were accepting both IP addresses
and hostnames. Since there was no specific OSLO opt type to
support this, we were using ``StrOpt``. The change [1] that
added support for ``HostAddressOpt`` type was merged in Ocata
and became available for use with oslo.config version 3.22.
This patch changes the opt type of configuration options to use
this more relevant opt type - HostAddressOpt.
[1] I77bdb64b7e6e56ce761d76696bc4448a9bd325eb
Change-Id: I321543b1acb3ece6877f9a9c35d10cd798716580
For the effort of aligning Octavia API
to nlbaasv2, the health monitor resource needs
an `ID` field. This migration script adds that required
column in the Octavia database.
Change-Id: I3cfe26fd6312019471ff48df4ad9cd970f7173b6
This patch limits the number of Amphora build requests handled by the
controller worker at a given time.
Also, the amphora build requests are assigned priorities based on
whether it is a normal loadbalancer create, failover or spares pool
loadbalancer create request. Based on the priority and the order in
which the requests were made if there is an available build slot the
amphora will be built.
Co-Authored-By: Lubosz "diltram" Kosnik <lubosz.kosnik@intel.com>
Change-Id: I967cf0668f82fb3a63e18dc7a457c58b526b7e66
Closes-Bug: #1571802
"yum install qemu-img" will get the correct package in all cases, but
it can be called qemu-img, qemu-img-ev, qemu-img-rhev, ...
So use a wildcard in package search to allow for all variants
Also use "yum info" instead of "yum list", it is faster and skips online
updates
Change-Id: I4b015858600a573091ab51fc9132577abfebbd0a
This patch corrects the project_id handling for POST calls to the
Octavia v2 API for load balancers. For load balancer create calls
we use the specified project_id if the user is an admin or noauth
is specified. If no project_id is specified in the request we use
the project_id from the context. If no project_id can be found we
raise an exception.
Change-Id: If0b1daf60cd422fa50fd2b4d9260a9859a862831
On these systems, asking to install qemu will bring in the default OS
older version, which causes problem with nova, for more details:
https://review.openstack.org/#/c/438325
Ask for qemu-kvm instead, which should install the proper version
Change-Id: I60eca649ca1ae53c341d68670d4ab1f3559ac31d
Related-Bug: #1668164
devstack plugin should initialize at API-service mode for third party
vendor handlers, which do not use amphorae.
Change-Id: Ie41580565eb1a32c3d00c38c895ad3ac4e246049
we should avoid using six.iteritems to achieve iterators.
We can use dict.items instead, as it will return iterators in PY3 as well.
And dict.items/keys will be more readable.
In py2, the performance about list should be negligible
Change-Id: I153d91e884ef0ea0a760527f3dab2b8d5ed3e38e