Commit Graph

58 Commits

Author SHA1 Message Date
Adam Harwell f8d023fbfe Retiring neutron-lbaas
Depends-On: https://review.opendev.org/#/c/658493/
Change-Id: Ia4f4b335295c0e6add79fe0db5dd31b4327fdb54
2019-05-11 03:18:03 -07:00
ZhaoBo ad3453b90c Fix the None value of Q_PLUGIN_CONF_FILE if enable neutron-*
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
2018-06-25 00:55:14 +00:00
Adam Harwell 880073d669 Add gate for Direct L7-Proxy to Octavia
Depends-On: https://review.openstack.org/569881
Change-Id: I5d02d897b1b8fac69606ec46acc903fc9e826de8
2018-06-18 15:55:12 -05:00
Guoqiang Ding 8c38ce9c94 Update the doc link
Change-Id: I5677fca66ac1ef10ce826b667a120883c9f155c1
2017-11-08 20:59:44 +08:00
Vu Cong Tuan a5294c1d11 Remove SCREEN_LOGDIR from devstack
SCREEN_LOGDIR has already been deprecated [1]
[1] https://review.openstack.org/#/c/499186

Change-Id: Ife4f3910ad3f6971d3c8ceae3ca3cb68feb32ead
2017-10-05 17:06:44 +07:00
Michael Johnson 20efb8180d Switch devstack plugin to keystone v3
Keystone is removing v2 support, switch the devstack plugin to use v3.

Change-Id: I6ff4a86eb8c9896c9e52cc11b24a4c3b140dc3ca
2017-09-25 15:37:33 -07:00
Jenkins d7550656d5 Merge "devstack: Adapt to lib/neutron" 2017-09-08 04:23:24 +00:00
Michael Johnson 21bb6ffed4 Remove some LBaaSv1 references
Now that mitaka, the last release with LBaaSv1, has gone EOL cleaning
up any last references to LBaaSv1 in the code.

Change-Id: I68d3b0f5193b52bf46d75d149b4d6e0387695d17
2017-07-24 11:29:47 -07:00
YAMAMOTO Takashi 09ce6c3bea devstack: Adapt to lib/neutron
Depends-On: Icfa2cfa662013324d38099b82ce0f58ed8377e60
Change-Id: I80fe80edde01aefef753f3b1563e96e364bf63c0
2017-06-18 13:40:54 +00:00
Sean Dague 0da4437179 Use OS_AUTH_URL instead of baked in defaults
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
2017-04-19 08:01:43 +09:00
Jenkins c9fd64010e Merge "Turn on q-lbaasv2 service by default" 2017-02-07 16:33:29 +00:00
Thomas Herve 081982a54b Don't use the python directly in devstack
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
2017-01-17 15:56:27 +01:00
rabi c3d1ff0d35 Turn on q-lbaasv2 service by default
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
2016-12-12 19:34:55 +05:30
Thomas Herve 8418c8ad1f Support xenial in devstack install
Currently haproxy is only installed on trusty or precise because of
backports. It should be installed on xenial at least.

Change-Id: I4513ddd94d2a9f119c0f7db5c8997bb7276580a8
2016-11-18 11:07:06 +01:00
Ihar Hrachyshka 92c46f4fe7 Switched devstack plugin to stevedore alias for service plugin
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
2016-10-05 17:40:08 +00:00
Nir Magnezi 7cd3443305 Adds neutron_lbaas.conf and services_lbaas.conf to q-svc command line
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
2016-09-13 11:17:33 +00:00
Doug Wiegley 7aa3d9ff9c Nuke lbaas v1
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
2016-08-23 13:05:48 -05:00
Jenkins 9b46045ff3 Merge "devstack: Remove q-lbaasv1 alias" 2016-07-22 03:34:32 +00:00
YAMAMOTO Takashi 32631f2587 devstack: Remove q-lbaasv1 alias
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
2016-07-19 16:49:50 +09:00
chen-li 0284ff969f Use "--pub-key" instead of "--pub_key"
Option "--pub_key" is deprecated and will be removed in novaclient 3.3.0.

Change-Id: I8af59d03ff77eae04f69eeff57adef27c309cc60
2016-07-14 01:09:05 -05:00
Elena Ezhova 2317364c31 Set up hooks for the functional job and add test_migrations test
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
2016-07-07 03:04:24 +00:00
Jenkins 920a0f5028 Merge "Replace auth_uri option with auth_url in DevStack plugin" 2016-07-06 16:36:30 +00:00
Jenkins 4bb9827614 Merge "Add neutron-lbaas-dashboard devstack guide in README.md" 2016-06-28 03:00:28 +00:00
Trevor Vardeman 1110a9391a Updating devstack plugin to filter for specific backport ubuntu versions
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
2016-06-21 20:59:35 +00:00
Elena Ezhova 4b0dba391f Replace auth_uri option with auth_url in DevStack plugin
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
2016-06-14 18:01:45 +03:00
Jenkins ac9ecb72fa Merge "Fix hard-coding of trusty in devstack plugin.sh" 2016-06-11 02:23:12 +00:00
Jenkins 0bc001b80c Merge "Add agent haproxy driver setup in README.md" 2016-06-11 01:31:13 +00:00
Stephen Balukoff 0f8faacd5e Fix hard-coding of trusty in devstack plugin.sh
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
2016-06-10 17:49:57 -07:00
Jenkins fcf3289a66 Merge "Remove repeat call to 'neutron_agent_lbaas_install_agent_packages'" 2016-06-09 19:36:05 +00:00
yong sheng gong 5cca9722cb Add agent haproxy driver setup in README.md
Change-Id: I354a9f351cbb00f01ea4ca98476a827be253ff07
Closes-bug: 1579314
2016-06-03 12:14:35 +08:00
chen-li 4389ffc56d Remove repeat call to 'neutron_agent_lbaas_install_agent_packages'
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
2016-06-01 02:35:02 -05:00
Henry Gessau d818279ea9 Use --subproject instead of deprecated --service option
The --service option to neutron-db-manage is deprecated and will be
removed soon. Use --subproject instead.

Related-Bug: #1501380

Change-Id: I02757737baea7c8623e7ed6cabff99c490f1f6c1
2016-05-30 15:38:22 +00:00
jaff_cheng 69580fada7 Add neutron-lbaas-dashboard devstack guide in README.md
Change-Id: Ifce94b7bd04fe80c1d7f5f805d4b7e5a940037ff
Closes-bug: 1579607
2016-05-19 20:27:33 +08:00
Michael Johnson eb7a4d4795 Update devstack plugin for dependent packages
Recent changes to the gate base images [1] removed a package
neutron-lbaas requires (software-properties-common).
This patch uses the "System Packages" [2] capability of the
plugins to make sure the required package is installed.

[1] https://review.openstack.org/#/c/292573
[2] http://docs.openstack.org/developer/devstack/plugins.html#system-packages

Change-Id: Id16da90e195ede8a7565b3265374cb603b6eb898
Closes-Bug: #1558289
2016-03-16 22:36:28 +00:00
Michael Johnson 573c06c8f6 Fix the neutron-lbaas namespace driver gate
This patch fixes the neutron-lbaas namespace driver gate:
gate-neutron-lbaasv2-dsvm-api-namespace-nv

Change-Id: Ib22febb9a9be63d8f69b9450211b15ea3b8f5f22
2016-03-11 16:43:31 +00:00
Michael Johnson 78e8b42c37 Make sample web server close connections
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
2016-01-26 20:41:58 +00:00
ptoohill1 70fbd72541 Update admin auth data for devstack
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
2016-01-11 14:34:49 -06:00
ptoohill1 da9e434bf5 Update and enable auth in devstack plugin
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
2016-01-07 11:27:06 -06:00
Martin Hickey e719861c00 Automatically generate neutron LBaaS configuration files
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
2015-12-09 15:14:56 +00:00
Richard Theis 33fc5a0a45 Use Octavia stable/liberty branch in DevStack README
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
2015-11-11 07:08:30 -06:00
Jenkins 68ab4515be Merge "LBaaS V2 service not needed with Octavia driver" 2015-11-06 17:21:33 +00:00
Richard Theis aa951bcbc8 LBaaS V2 service not needed with Octavia driver
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
2015-11-05 22:26:26 -06:00
Nir Magnezi fc9cc376fd Update local.conf to use Cirros 0.3.4
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
2015-11-05 10:08:11 +02:00
German Eichberger c640bb8609 Adds a Barbican option to local.conf
Give an example on how to enable Barbican in local.conf

Change-Id: I40b9579a3dfa1a2339a163c736ae2ba22b735953
2015-10-19 10:13:05 -07:00
Brandon Logan eb2a61b4e9 Do not update apt if devstack is in OFFLINE mode
Also, do not add trusty-backports repository if it already exists.

Change-Id: I24211458f32dc3895028f45b9cf26bc5a6fa0f3c
2015-10-03 03:23:08 -05:00
Michael Johnson 872b8a5446 Update the devstack readme.md for Octavia as ref
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
2015-09-29 01:24:47 +00:00
Michael Johnson 70c601b1fb Set Octavia as the reference LBaaSv2 driver
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
2015-09-22 00:48:21 +00:00
ptoohill1 254371b121 Updating devstack plugin for authtoken
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
2015-08-04 05:10:21 -05:00
madhusudhan-kandadai 12d629b999 Install HAProxy 1.5 on Ubuntu Devstack
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
2015-07-24 14:43:40 -07:00
German Eichberger 37b9b3a5e7 Switching from the ppa to neutron backports
I got an error with the ppa and so I am switching it to the
offical backports

Change-Id: Ie2ef56906660df375e52dd795b4ac4d8dcc96a19
2015-06-18 13:29:48 -07:00