1383 Commits

Author SHA1 Message Date
ZhaoBo
dc7c2967aa Remove config option "amp_network"
This option had been deprecated in N release. We could remove it from
master.

Change-Id: Ibd498f32a3c4f34621f3d814f1186a5bf9c5b75e
2017-02-13 09:59:41 +08:00
OpenStack Proposal Bot
4909bf98c6 Updated from global requirements
Change-Id: Iaafa8d71915cdc2e3a679dc6021a015b6bed74e4
2017-02-10 09:46:19 +00:00
Jenkins
77e8e22838 Merge "Switch to use test_utils.call_until_true" 2017-02-10 02:54:11 +00:00
Jenkins
618ba71360 Merge "Add common base type for v1 and v2" 2017-02-10 00:27:00 +00:00
Ken'ichi Ohmichi
a1b7f5daea Switch to use test_utils.call_until_true
test.call_until_true has been deprecated since Newton on Tempest side,
and now Tempest provides test_utils.call_until_true as the stable
library method. So this patch switches to use the stable method before
removing old test.call_until_true on Tempest side.

Change-Id: I01d4e04124ac3c5526741c5f230589c93a21b6fd
Needed-by: Ide11a7434a4714e5d2211af1803333535f557370
2017-02-09 12:06:23 -08:00
Jenkins
9cd1bab382 Merge "Fix py3x gates and functional" 2017-02-08 19:01:45 +00:00
Michael Johnson
119e223750 Fix py3x gates and functional
WIP - This patch attempts to fix the py3x gates.
Please add to it as you find issues.

Closes-Bug: #1659064

Co-Authored-By: Adam Harwell <flux.adam@gmail.com>
Depends-On: If6b6f19130c965436a637a03a4cf72203e0786b0

Change-Id: If642f7ddcb886b4e9fd04a12397f26c72b3485a4
2017-02-07 11:06:08 -08:00
Cao Xuan Hoang
cf240b8238 Remove white space between print ()
There is a white space in line [print (*,
then we remove it.

Change-Id: Ic35d172c1fbf8e1a8d8a8e2d7d545ffc6c1da780
2017-02-06 14:25:52 +07:00
5701a2dc1f Update reno for stable/ocata
Change-Id: I3f4fcd28d8adf37e15f59ec532110c18d8284f78
2017-02-03 19:18:37 +00:00
Jenkins
c3345e4657 Merge "Fix unit tests for OSX" 0.10.0 ocata-em 2017-02-03 01:52:43 +00:00
Adam Harwell
b698e7f55e Fix unit tests for OSX
Some unit tests were doing some not-so-unit things and actually reaching
out to OS / files for things. This leads to failures when running tests
on OSX or other distributions.

Change-Id: Iff2cb4d2742a5fd8a5cf4f1bea0ab08504f46016
2017-02-02 15:34:13 -08:00
Adam Harwell
f91c9c3df5 Improve the failover handling for spares-pool amps
We don't need to replace spares-pool amphorae, they will be replaced
automatically by the housekeeping agent. This fixes the issue with
creating more spares than are specified in config (or at least is
one less way for it to happen).

Change-Id: I243a86b81293fdfd40f418c3a41c73416f743da3
2017-02-02 14:05:15 -08:00
Jenkins
0b0658d249 Merge "Fixes misspelled amp_ssh_access_allowed config" 2017-02-02 21:09:25 +00:00
Jenkins
7d496d2fa4 Merge "Fix failover for unallocated amps (spares-pool)" 2017-02-02 19:01:30 +00:00
Jenkins
4d6b9fde4f Merge "Fix a typo in the release notes" 2017-02-02 17:29:31 +00:00
German Eichberger
bfb8195f16 Fixes misspelled amp_ssh_access_allowed config
The config is misspelled in the sample octavia.conf file
leading to confusion. This fixes that.

Change-Id: I0ed36f3e12a6a9f973918e3d233e54e8834be57f
2017-02-02 11:18:21 -05:00
Adam Harwell
4cf51cfb2e Fix failover for unallocated amps (spares-pool)
When a spares-pool amphora fails, the failover flow tries to get VIP
information from the loadbalancer object, but since the amp isn't
allocated to a loadbalancer, there is none!
Most of the work in the failover flow isn't applicable if the amp
doesn't yet have a role (is unallocated).

Change-Id: I9793ae966b2cb5897b157483f87fb787da13447c
2017-02-02 00:33:16 -08:00
Michael Johnson
6eb9a7cf17 Remove outdated kernel tuning for haproxy
This patch removes outdated kernel tuning parameters that were set
inside the amphora.  With current kernel versions the performance
issues no longer out weigh the benefits.

Change-Id: I6435257ec1f0ee0cc8c38df0d1ff0247707174e4
Closes-Bug: #1661105
2017-02-01 14:43:33 -08:00
Jenkins
e555d175c2 Merge "Fix the amphora image support for RH Linux flavors" 2017-02-01 21:24:19 +00:00
Nir Magnezi
2f5e3b4db8 Add placement services to devstack example files
As a followup to I273c3c8299ee329bed425f3e7cd4b583ed1187a4, adding
nova placement services which are mandatory starting Ocata.

Change-Id: I74adfd6aa3bc0cb1061427ef6d66fc8d3c20d776
2017-02-01 15:53:44 +02:00
Michael Johnson
ee09fd19a7 Fix a typo in the release notes
Change-Id: Idd94e6f76d91618dd7a3202381edbdfe958270e2
2017-01-31 16:12:06 -08:00
Nir Magnezi
c00488143d Fix the amphora image support for RH Linux flavors
Not all Linux flavors accept the same type of configuration to manage
NICs. The amphora-agent must be able to distinguish between different
Linux flavors and choose the appropriate type of jinja2 NIC
configuration template for each one, respectively.

Up until now, The amphora-agent had no notion of the operating system
it is running on, therefore it used NIC configuration templates that
only match Debian based Linux flavors (mostly Ubuntu). Making it
unusable for flavors such as RHEL, Fedora and CentOS.

This fix enhances how the amphora-agent is handling NIC hot plugs.
It will use the appropriate jinja2 template by checking the Amphora
distribution name when needed.

Co-Authored-By: Michael Johnson <johnsomor@gmail.com>

Closes-Bug #1548070

Change-Id: Id99948aec64656a0532afc68e146f0610bff1378
2017-01-31 20:05:07 +02:00
Brandon Logan
531e463629 Add common base type for v1 and v2
Since v1 and v2 types will share similar code, it makes sense for there
to be a base type for all types.  This also creates the types packages
under the v2 api package.

This also adds logic to allow for the renaming of fields from types to
data models.  For example: if the API accepts the field "admin_state_up"
but the data layer knows it as "enabled", then the type can define the
field "admin_state_up" and also define a mapping that says
"admin_state_up" will be mapped to "enabled" for data model
transformations.

Change-Id: I171e394daeb58ec90e9f531c91301c3dfd48dbb7
2017-01-30 17:33:41 -06:00
Jenkins
67866ea193 Merge "Fix active/standby under python3" 2017-01-26 01:13:30 +00:00
Michael Johnson
eebd2d4e33 Fix active/standby under python3
Changes in diskimage-builder switched the amphora image to use
python3.  The active/standby code was not python3 compatible.
This patch corrects that issue.

Change-Id: I81db0e52f1a21d1e3ceea6a4ec2467145f761e55
Closes-Bug: #1659116
2017-01-24 14:11:50 -08:00
OpenStack Proposal Bot
aa12ea4af3 Updated from global requirements
Change-Id: Ia5d66254189194a3ab6c1fef23789a64073e08bc
2017-01-24 19:56:56 +00:00
Jenkins
e8c2ea8d6c Merge "Remove an erroneous MarkHealthMonitorActiveInDB task" 2017-01-23 18:38:56 +00:00
Jenkins
5f2be74818 Merge "Cleanup noop network driver to fix py3x" 2017-01-23 18:38:30 +00:00
Jenkins
217a059cbf Merge "Clarify that octavia-db-manage should be used" 2017-01-23 18:38:24 +00:00
Jenkins
03f5d37340 Merge "Fix the docs page title" 2017-01-23 18:38:18 +00:00
OpenStack Proposal Bot
3f6f760a26 Updated from global requirements
Change-Id: Id1a5bdef2e42605550bec261ea24b8d2ad468b0c
2017-01-21 15:53:32 +00:00
Michael Johnson
b60b2b2454 Fix the docs page title
Currently the title for the octavia docs page is "Main".
This updates the title to be more descriptive.

This patch also updates the index for Anchor documentation and
our version 1.0 specs.

Change-Id: I1258503b7a778789b77c7ec6c4db1fbd310b6133
2017-01-20 21:43:43 +00:00
Adam Harwell
283ec721c8 Fix connection timeout spam in subunit logs
Wait 1 second between connection attempts, as connecting with
no delay and logging every exception was filling the subunit
logs with sometimes over 70,000 lines of IOError spam.

For an example, see:
http://logs.openstack.org/42/422942/1/check/gate-octavia-v1-dsvm-scenario-ubuntu-xenial-nv/9aa9599/logs/testrepository.0.gz

Change-Id: Id85a21a2739927b440021f338de9546ccb47088e
2017-01-19 23:41:27 -06:00
Adam Harwell
c26697898c Cleanup noop network driver to fix py3x
Change-Id: I52258116122ff64373ef709d3d43d1ee9563e2a5
2017-01-19 18:48:01 -06:00
Jenkins
e8c6f4e90f Merge "Remove dumplicated config option 'cert_generator'" 2017-01-19 23:45:27 +00:00
Michael Johnson
9a30e12814 Clarify that octavia-db-manage should be used
It was not clear to users that we now use octavia-db-manage for
alembic actions in octavia.  Users would get an exception if they
tried to use native alembic due to changes to the env.py.
This patch updates the README.rst and env.py to clarify that
octavia-db-manage should be used.

Change-Id: I97e7fce5da167875694bc1a6abc69d47b3021487
2017-01-19 00:18:49 +00:00
Michael Johnson
d805c8de21 Archive the testrepository file before processing
We need to move the testrepository file archiving to before we run
the processing commands that are prone to failure, otherwise the files
will not get archived for debugging.

Change-Id: Iaa4c798874b9465346112e38e5fd4f46e76fe4bc
2017-01-18 19:56:23 +00:00
He Qing
7468a2a6a4 Remove dumplicated config option 'cert_generator'
There are two 'cert_generator' options in config file. Remove one
of them.

Change-Id: I2daec1baf7832b14e6fe38ee73588bd86d55e060
Closes-Bug: #1629162
2017-01-18 19:21:35 +00:00
Jenkins
da1755d610 Merge "Archive the raw testrepository log" 2017-01-17 23:04:26 +00:00
Jenkins
d2d4a326c0 Merge "Fix octavia multinode setup for flavor and image" 2017-01-17 19:49:54 +00:00
Michael Johnson
23e24905de Archive the raw testrepository log
We are seeing "ValueError: Length too long: 7341892" from
subunit-1to2 but I cannot reproduce it locally by testing 457
testr runs.  This patch will archive the original testrepository file
so that we can debug this issue.

Change-Id: Ic85f8d659bb71c464ab9ccccc9a49bb3ca471b13
2017-01-16 22:14:09 +00:00
Michael Johnson
9cc622014d Remove an erroneous MarkHealthMonitorActiveInDB task
The get_delete_health_monitor_flow had a MarkHealthMonitorActiveInDB
task after it deleted the health monitor.  This patch removes that
improper task.

Change-Id: Id9e3546c5b0c689ad53cfcf42d9f662c7ce1adbc
2017-01-16 18:36:20 +00:00
OpenStack Proposal Bot
d685246188 Updated from global requirements
Change-Id: Icd09209c9084dcd871938e677a20c9e7f177ca0f
2017-01-16 17:24:44 +00:00
Michael Johnson
2a7a3cd5c4 Fix octavia multinode setup for flavor and image
This patch fixes a few issues with the devstack setup on a multi-node
octavia gate.  It makes sure the flavor is present and configured on
both nodes and only clones diskimage-builder on the main node.

Change-Id: I4c24e22798235b6bf795e659516f6864768216a3
2017-01-13 19:43:18 +00:00
Jenkins
ae3204986e Merge "Add quota support to Octavia" 2017-01-13 18:11:08 +00:00
Trevor Vardeman
7d933da31e Add quota support to Octavia
Octavia has no quota definitions, but needs them for parity with Neutron LBaaS.
This will provide an endpoint and support for retrieving, updating, and deleting
quotas for projects, as well as adding enforcement of those those quotas.

Adds scenario test that simply validates quotas in a lb graph.

Co-Authored-By: Michael Johnson <johnsomor@gmail.com>
Co-Authored-By: Phillip Toohill <phillip.toohill@rackspace.com>
Co-Authored-By: Adam Harwell <flux.adam@gmail.com>

Change-Id: Ia1d85dcd931a57a2fa3f6276d3fe6dabfeadd15e
Closes-Bug: #1596652
2017-01-13 02:45:14 +00:00
Jenkins
68d16be6db Merge "Updated from global requirements" 2017-01-13 01:01:49 +00:00
Jenkins
456f5414d7 Merge "Update Python classifiers" 2017-01-12 23:41:56 +00:00
Jenkins
61b91ab7f3 Merge "Correct the paramters of l7 policy creation" 2017-01-12 23:39:59 +00:00
OpenStack Proposal Bot
96814bec4a Updated from global requirements
Change-Id: Ie256811f7db4938ed98f3a4591e6388be0d9aac8
2017-01-12 21:56:11 +00:00