Currently, the devstack installs neutron with 2 ways, one uses
neutron-legacy, the other uses new-neutron-configure way. So they use
different variables. This patch fixes the 'Q_PLUGIN_CONF_FILE' which
from neutron-legacy part.
Change-Id: I303711ba166ece4e6f51b712284c69a0fb342e25
Now that mitaka, the last release with LBaaSv1, has gone EOL cleaning
up any last references to LBaaSv1 in the code.
Change-Id: I68d3b0f5193b52bf46d75d149b4d6e0387695d17
Keystone by default is running without a port, which has exposed
places where the keystone url was hard coded, attempt to use
OS_AUTH_URL directly.
Co-Authored-By: Adam Harwell <flux.adam@gmail.com>
Change-Id: I77658cca1aa82240409a91a2d040c105107ff2e2
Calling the python executable directly in the devstack plugin makes it
impossible to test with python3. The command script has the proper
shebang directive.
Change-Id: I96f5aaff1898961546866022facc4a5bc8a4b1d4
All devstack plugins enable the required services when
the plugin enabled. Let's follow that pattern and enable
q-lbaasv2 service by default.
Change-Id: I934b2d9a9a2874ec2735ed889cc3fa0134bec99e
Currently haproxy is only installed on trusty or precise because of
backports. It should be installed on xenial at least.
Change-Id: I4513ddd94d2a9f119c0f7db5c8997bb7276580a8
Aliases are the recommended way of loading stevedore exposed plugins.
Import paths may change in the future, breaking the plugin. Operators
are encouraged to use aliases, and so we should follow the guideline for
our own plugin too.
Depends-On: I5fb491304bd4808f63480efe1d8f4fd5248c3771
Change-Id: Ib7a11860a4c5a31f88b334dfc48a8c813d227a96
When q-lbaasv2 is enabled in local.conf, the neutron-lbaas plugin.sh
script creates new services_lbaas.conf and neutron_lbaas.conf files
with some config parameters.
Under several circumstances, some of the options in those files are
needed by other neutron daemons, such as the q-svc service.
This patch modifies the neutron-lbaas devstack plugin to include the
above mentioned config files in q-svc command line, by adding those
files to Q_PLUGIN_EXTRA_CONF_FILES.
Since both config files are shipped in neutron-lbaas, both should be
included. Starting from Ocata, The service provider option won't
automatically load to q-svc, so that is another good incentive to have
it passed with --config-file.
Closes-Bug: #1619466
Related-Bug: #1565511
Change-Id: I652ab029b7427c8783e4b2f0443a89ee884bf064
v1 is not going to ship in Newton, the deprecation notice
been around for two cycles, and there is now a migration
script.
Also includes: Fix alembic migration env
The include_object() checking was missing, and also the inclusion
of all lbaas DB models
Co-Authored-By: Henry Gessau <gessau@gmail.com>
Co-Authored-By: Adam Harwell <flux.adam@gmail.com>
Change-Id: I506949e75bc62681412358ba689cb07b16311b68
With this alias, this devstack plugin fails to launch the agent.
The official token is q-lbaas for v1.
Related-Bug: #1551282
Change-Id: I16a2ae1b56bd5ad1e0611894c6a92466f9de5ce9
Add gate hooks for the dsvm-functional job including set-up of
configure_for_lbaas_func_testing.sh script and corresponding changes to
tox.ini.
PyMySQL dependency was moved from test_requirements.txt to
functional/requirements.txt.
test_migrations.py was moved from unit tests to functional in
order to prevent it from being skipped in case of db backend
unavailability.
Fixed failing TestModelsMigrations test by importing modules with
missing models in db/models/head.py
Closes-Bug: #1585116
Closes-Bug: #1596984
Change-Id: Ic39805ea0ed330ef7da82043f77077e8a5617ca0
Working on LinuxMint was running into an issue where it was trying to add a
backport repository that didn't exist. This adds some specific logic to filter
based on what specific ubuntu releases use backports.
Change-Id: I0ac652107dd328a03a1af0495c628dc05ff2b732
auth_uri option doesn't exist, in neutron-lbaas there is an auth_url
option that is used for authentication in keystone. The way how
devstack deploys neutron-lbaas currently works only because AUTH_URI
default value in settings file equals auth_url default value.
Change-Id: I3c89760c5c475f86528cb5879b72bad8b2eab6a5
Closes-Bug: #1592438
This patch updates the devstack plugin.sh to get current devstack ubuntu
codename from the lsb_release command instead of hard-coding 'trusty' in
there (as we probably should have been doing the whole time). This
should allow neutron-lbaas to be tested on other releases of Ubuntu
without breaking support for trusty.
Change-Id: I040832b3ffa5d596669796269879023c761d3d05
Closes-Bug: 1588560
The function 'neutron_agent_lbaas_install_agent_packages' has already
been called in 'neutron_lbaas_install', no need to call it twice.
Change-Id: I2c7844263b22502fde1d54666133664d3f28af7e
The --service option to neutron-db-manage is deprecated and will be
removed soon. Use --subproject instead.
Related-Bug: #1501380
Change-Id: I02757737baea7c8623e7ed6cabff99c490f1f6c1
The sample web server, using nc, currently does not close the
connection after serving the content. This can cause clients to
hang waiting for the connection to close after the content has been
served. This patch includes the content length in the response
so that the connection will close.
Change-Id: I9b7d120099c2652a2a91e3471e3152c1b02ce7f6
Our gate need the proper admin auth data set up in the proper configs. In this case the neutron.conf
Update neutron.conf with the admin data so gates can pass.
Change-Id: Iac87674ca94bcabc3047c9a3679e1385cf1c8d63
Devstack plugin currently checks if barbican is enabled the proceeds
to update old config options. Remove the check
and update for the proper config.
Change-Id: I0687efbd559af2fe0becae27a15a7b7eab9d8f85
Closes-Bug: #1531927
This adds a new tox environment, genconfig, which generates sample
neutron LBaaS configuration file using oslo-config-generator.
DocImpact: Update the docs that LBaaS no longer includes static example
configuration files. Instead, use tools/generate_config_file_samples.sh
to generate them and the files generated now end with .sample extension.
Partially-Implements: blueprint autogen-neutron-conf-file
Change-Id: I25507f3bc6e995580aa91a912c2cf4110757df15
Partial-bug: #1199963
Octavia now has a stable/liberty branch which can now be used instead
of the current tags for the DevStack README example.
Change-Id: Ic97d0da91682553e3f8c3e83a20706da02ece653
Related-Bug: #1509475
The q-lbaasv2 screen service deployed by DevStack is not needed
when the Octavia driver is used. Running the service will confuse
operators and simply generate error messages in the log. The
service will still be run for other drivers, such as HAProxy, that
require the service. In addition, the README was updated to explain
how to configure other drivers and to use the correct git tags for
Octavia.
Change-Id: Icad7da99641cb0e87e51bb90999dcb44ae738ffd
Closes-Bug: #1509475
At the moment, local.conf uses Cirros 0.3.0 which is obsolete.
This patch replaces that version with the current one, which is 0.3.4
Closes-Bug: #1510126
Change-Id: I5e96f7e484b9f3db64ab51d02aac74684e21f59d
The readme.md in the devstack directory did not get updated
for Octavia being the reference driver. This patch updates
the document to enable the Octavia plugin.
Closes-Bug: #1500656
Change-Id: I39f9f9d060512c9b3af9dd08c413931f9b94cf78
Requires skipping some of the pool tests as they are taking too long. We will
need to revisit those and find a way to re-enable them.
Sets up a minimal set of "happy path" tests for neutron gate
Depends-On: Ifce40b0af9da715d44bab8ec437f844ccf638f52
Depends-On: I0434b8ced144ab08413b91569bd008295ef1784e
Change-Id: I8e72a63f3ac9d3b605779b49112a1f9924845c5c
Implements: blueprint lbaas-ref-octavia
Barbican expects certain values that are not populated anywhere else.
Update devstack plugin to check if barbican is enabled and set those values.
Change-Id: I3fc25993ce6990fe30208bf216c9c96780d8fef9
Currently HAProxy 1.4 is being installed but need to have
HAProxy 1.5 in order to have a working implementation of
tls termination.
Change-Id: Icac342a20d31731310b776ae71ba7c43e660315b