This patch sets up octavia for translations.
It also includes some additional pep8 tests borrowed from neutron
that will be used in the future (tempest idempotent ids and policy.json)
Change-Id: Ia70506fa8cfdbcea7cc67b940761365093e94f2b
Dib supports a -x argument to output additional tracing information.
Lets support this in our diskimage-create script.
Change-Id: Ifb9f29250475d53ae8c64deef4be01ef8bd584d4
pip install is greatly preferred over python setup.py install, so lets
use that to install our amphora-agent.
Change-Id: I5e4d169a1e6eb0e175f51943c08b025b09ffdc05
One of the rest driver unit tests was not mocking out the requests
module causing it to attempt to make https get requests.
This patch corrects that oversight.
Change-Id: Iff99207883483ff7f886f62c03664446eb0df492
This spec is meant to enumerate the features and capabilities needed from the
Octavia API to achieve parity with the Neutron LBaaS API
Change-Id: I9bc348c6f86f868ec5e9ab2be2ae49947bfbacdc
This fixes:
Error: '::9443' is not a valid port number.
Introduce unit test skeleton for amphora agent.
Change-Id: Ic7aebf0674ba7036356bb3231c26fa309cd4c475
This method is now supported by neutron_lib. So if need be then
it can be imported from the neutron_lib project.
Change-Id: I75017a4a74d4b793a10daa6e88c2a8995df33e27
This patch addresses several places where IPv6 and IPv6 link-local
addresses where not considered for communication between amphora and the
controller worker.
In the devstack plugin we permit both IPv4 and IPv6 for health
monitoring and the amphora REST API.
In the amphora's UDP health sender we parse the IP port string in a
manner which permits IPv6 addresses by splitting on the last colon
rather than every colon.
In the controller REST API driver we append an interface scope if using
IPv6 link-local addresses. This interface can be specified by an
operator is they are using an interface other than o-hm0, this only is
required if using IPv6 link-local addresses.
Change-Id: I9d07bec4ac105e8876fadb72a83a590ffd4d2e66
Remove unneeded import_group lines which are not doing anything and just makes
code harder to understand.
Change-Id: I673dd04dd31ae9771e6af982d184eee0e9cbf2d4
We only need ecryptfs-utils, as package managers will take care of the
sub-dependencies. Tested on an Ubuntu amphora, installed packages list
was identical.
This also fixes image creation on Fedora, as ecryptfs-utils package name
is identical there
Change-Id: Idab8c66e6bca137e79bef050fbaecd2f6c4add7a
Closes-Bug: #1640832
This patch adds a distribution ID option to the diskimage-create.sh
script used to create amphora images. This will allow octavia
to control the timing of the transition to a new default release.
For Ocata it will default to "xenial".
Change-Id: I435cf9f4723fc9e68f8cb8987c8316b09e6876b6
Closes-Bug: 1642756
Change methods used in backend to authenticate with keystone.
Use autodetection mechanizm for API version and refactor config
options specified in Octavia.
Change-Id: Id0deee2714040d271f43a537c27f410e2f4e3ef2
Closes-Bug: #1620668
Closes-Bug: #1618691
This patch enables auto-detection of the init system used in the
amphora image and adds support for systemd amphora.
This patch allows Ubuntu xenial amphora images to work.
It also merges two functional test files into one file to reduce
code duplication.
This is a scenario gate fix.
Change-Id: I5fec1680bd47719ae9f2fcb6abaaba8a78e2ae8b
Closes-Bug: #1640866
This is needed to install the package 'jq'
Not needed for other Red Hat variants:
* Fedora has jq in its main repo
* RHEL has it in OpenStack repos (required to build a RHEL amphora)
Change-Id: I5c1c911c28215410b7f4c984bee8a69f0bee43eb
Closes-Bug: #1640827
Checking packages using "yum list installed qemu-kvm/qemu-img" fails for
Centos,while qemu-kvm-ev and qemu-img-ev are installed using
"RDO CentOS-7 - QEMU EV".
This repository is added by devstack.
I changed the shell script to check [qemu-kvm qemu-img] and [kpartx git]
separately and when [qemu-kvm qemu-img] are not found, check for
qemu-kvm-ev or qemu-img-ev instead of exiting.
Change-Id: I5bd929e5aba76319cc86e0fc97825929e32629c2
Close-Bug: #1637435
String interpolation should be delayed to be handled by the logging code,
rather than being done at the point of the logging call.
Ref:http://docs.openstack.org/developer/oslo.i18n/guidelines.html#log-translation
For example:
# WRONG
LOG.info(_LI('some message: variable=%s') % variable)
# RIGHT
LOG.info(_LI('some message: variable=%s'), variable)
Change-Id: I77c9b9783c623167ada1631cf05bf4cf4c40e6b1
This is a community goal for Ocata. We're already not using any of
the code, but there are some other files and references left over.
This file used to be installed from oslo-incubator:
tools/install_venv_common.py
It was meant to be used by the legacy run_tests.sh, which does not
exist in this repo.
Change-Id: I5040101102167ae3c2701019ceaad8bf8833a3c1
Partial-Bug: #1639103
This migrates the test_listener_basic scenario test from neutron-lbaas.
This removes the test_load_balancer_basic test, which is made redundant
by this new test. This also represents a significant reworking of
several scenario test base methods, making them more useful for re-use,
and fixing several bugs.
Change-Id: Ia5f76269c56cc7ccf82095e01c26699405a96b7e
Co-Authored-By: Paul Glass <paul.glass@rackspace.com>
Co-Authored-By: Stephen Balukoff <stephen@balukoff.com>
Flask's default runner (werkzeug) is plagued with bugs.
If we use gunicorn instead, we should have many less problems!
Depends-On: I211dc771aa95147c0f1d9e6ac1a65a7e164b33c2
Change-Id: I59897167f9285bf013f8a155dd2ea4f799ac1d3f