1537 Commits

Author SHA1 Message Date
Adam Harwell
cf9a8c8f77 Look for diskimage-builder not dib-utils when building amps
Also ignore E402 and W503 pep8 issues

Change-Id: I7937d0a21c7a748cd682511bd429de8cf0ffe498
2017-03-09 02:30:39 +00:00
Ken'ichi Ohmichi
0e11f94c52 Switch to use stable data_utils
Tempest provides stable library interfaces under tempest.lib.
This patch switches to use it for data_utils.

Change-Id: I48a0776897e943e50dc69f2522d91cc5e53baf46
2017-03-07 12:23:35 -08:00
Ken'ichi Ohmichi
935afa35eb Switch to use exec_command instead of mount/umount
Both mount and umount are internal methods on Tempest side and these
methods need to be cleaned up for avoiding deep stacktrace.
The commit I914b09e0b242fbfba92cf35341941e5426c623eb will remove these
methods, so this patch is helpful for avoiding the gate issue.

Change-Id: Ia540d0b4a6da0e9bf0180dfcafe34c60499a4356
2017-03-07 11:24:02 -08:00
Jenkins
1fbfd3c065 Merge "Recurse dictionary generation in model to_dict()" 2017-03-07 13:37:52 +00:00
johnsom
007e5761c8 Adds v2 general API information section
This patch add the general information section to the v2 API reference.

Change-Id: I7b780d4afaa19801d800ab24f5c6ab922b57a7e2
Partial-Bug: #1558385
2017-03-03 14:35:57 -08:00
Jenkins
214ffb046e Merge "tempest: Switch to local copy of tempset/scenario/manager.py" 2017-03-03 21:04:43 +00:00
Adam Harwell
2ec4460cd9 Add network_id to VIP to match neutron-lbaas
Change-Id: I5d9e46ddd38d41c0c535a2da6a62a57c71b105ba
2017-03-02 14:58:19 -08:00
Jenkins
15e9b51b7b Merge "Use cryptsetup/LUKS for encrypted ramfs" 2017-03-02 21:55:28 +00:00
Kobi Samoray
80cbfa38ae Recurse dictionary generation in model to_dict()
Data model to_dict() methods do not recurse into object hierarchy.
While trying to transfer an object via RPC to a non-octavia services.
the object members are also required.

Change-Id: Ic8d85447d3e20c7a0fa865a400742bf3ac294843
2017-03-02 18:11:34 +02:00
OpenStack Proposal Bot
19e604ccaf Updated from global requirements
Change-Id: I61ac75fd9fd3b858be35669392408b5683abd8a7
2017-03-02 11:50:57 +00:00
Jenkins
759baec74a Merge "Adds devstack plugin support for all amp base OS" 2017-03-02 00:29:22 +00:00
Jenkins
86812e1309 Merge "Remove v1 base type" 2017-03-01 21:49:20 +00:00
Nir Magnezi
b2494dd531 Adds devstack plugin support for all amp base OS
Set OCTAVIA_AMP_BASE_OS to pass any option accepted by the
diskimage-create.sh script: ubuntu | fedora | centos | rhel

Set OCTAVIA_AMP_DISTRIBUTION_RELEASE_ID to pass release name for the
selected (either by OCTAVIA_AMP_BASE_OS or by default) operating
system.

Set OCTAVIA_AMP_IMAGE_SIZE to pass the image size (by GB).

If unset, the above mentioned options are not used in the script call
and thus, the script will use its default values.

Related-Bug #1548070

Change-Id: If1139594cf23d9de413ce2603aaa5c1e012c7790
2017-03-01 16:45:36 +00:00
OpenStack Proposal Bot
34b74abba7 Updated from global requirements
Change-Id: I13293c4cf339c84aa9560b596b4ab8ab40ef8ece
2017-03-01 04:12:43 +00:00
YAMAMOTO Takashi
e20c32e1ed tempest: Switch to local copy of tempset/scenario/manager.py
The manager.py file was literally copied from
tempest as of today. [1]

tempest/scenario/manager.py is not a part of tempest stable
interface for plugins. [2]

This was suggested on openstack-dev as a preparation for
the coming refactoring in tempest. [3]

As tempest is branchless, this change needs to be backported
to all relevant stable branches.

[1] d184d619d7adc6ab60055884515055a7f3cf7770
[2] https://docs.openstack.org/developer/tempest/plugin.html#stable-tempest-apis-plugins-may-use
[3] http://lists.openstack.org/pipermail/openstack-dev/2017-February/112938.html

Change-Id: Ib7182bf4f7f8e5d5b96de8937e9a4c90debcd251
2017-03-01 11:16:04 +09:00
Jenkins
c8ecd1fa91 Merge "Don't use Tempest internal methods" 2017-02-28 19:29:40 +00:00
OpenStack Proposal Bot
f7426dcf96 Updated from global requirements
Change-Id: I5f6c9d0cade152fb20455220666925cdccba7691
2017-02-28 05:44:51 +00:00
Ken'ichi Ohmichi
6ea36282f4 Don't use Tempest internal methods
All changed methods are clearly internal methods of Tempest, and the
Tempest commit 64e6b4457c748f74bfb4fbf3860ab65b65ae9beb has removed
the internal methods and now the gate issue happens.
This patch makes this project to use better ones instead.

Related-Bug: #1667824
Change-Id: I901baea1010f05f393919e5ecdd16dc1b322b213
2017-02-28 01:09:29 +00:00
Jenkins
97f4193b85 Merge "Set project_id on sub-objects during single-create" 2017-02-28 01:02:21 +00:00
Michael Johnson
2342cb65b6 Work around devstack selecting incorrect image
Currently devstack is selecting the amphora image instead of the
cirros image to boot our test webservers.  This is a temporary fix
to get our gates functional again.  This will be removed when we can
come up with a better solution or devstack merges their fix [1].

[1] https://review.openstack.org/#/c/435106

Change-Id: Ia9ac2acfdea217d594a8ec434da5e073d2abed08
2017-02-27 11:46:01 -08:00
YAMAMOTO Takashi
53807c4d57 gate_hook: Stop writing local.conf directly
Adapt to the recent gate changes. [1]

[1] http://lists.openstack.org/pipermail/openstack-dev/2017-February/112872.html

Closes-Bug: #1667331
Change-Id: Ifd0cdb8ee6f11a2714fc4a0f2ce4d0b22a23f843
2017-02-26 23:19:06 +09:00
Adam Harwell
83538892c0 Set project_id on sub-objects during single-create
Change-Id: Ibd39204d496c466c7673e90e2921fb34fcbd7ba0
Closes-Bug: #1667175
2017-02-22 17:03:49 -08:00
Jenkins
197c454646 Merge "Remove unused logging import" 2017-02-17 18:50:23 +00:00
Anh Tran
92af1dfb28 Remove unused logging import
Change-Id: Id44dbb133f21d77f6596c34b7db60ee5b079ae52
2017-02-17 13:43:16 +07:00
Jenkins
f4dfbe13ad Merge "Fix the service type for octavia" 2017-02-16 17:20:11 +00:00
johnsom
a2fb049780 Fix the service type for octavia
This patch updates the devstack plugin to specify the service type as
"load-balancing" instead of just listing "octavia".

Change-Id: I2ffaaa5e81d2e4676fae9ca90298f094f08ff51a
2017-02-15 10:07:00 -08:00
OpenStack Proposal Bot
21c67d24df Updated from global requirements
Change-Id: I6559645a457472038d384f93c1980e8618f68802
2017-02-15 10:24:04 +00:00
Jenkins
46252d0f5c Merge "Remove config option "amp_network"" 2017-02-15 01:42:31 +00:00
Jenkins
8d7f95ffda Merge "Add common api handlers for v1 and v2" 2017-02-15 00:11:28 +00:00
Adam Harwell
0d11e880f2 create_certificates.sh needs to be executable
Change-Id: Idffb89aa9dfd5fe185010d51b046b4fde0412f78
2017-02-14 13:35:03 -08:00
Jenkins
d621cc9b06 Merge "Fix Octavia v1 API project_id for POST" 2017-02-14 19:00:30 +00:00
Jenkins
d5e72bcef8 Merge "Remove python3.4 from tox" 2017-02-14 17:33:13 +00:00
Nakul Dahiwade
22e0a5cd7e Add common api handlers for v1 and v2
Since v1 and v2 share the same code, it makes sense to have a common
api handlers instead of keeping redundant code.

Change-Id: I5f2c9b44ef62fd25e2f5a98e1223754fcc6f75ec
2017-02-14 17:17:56 +00:00
Jenkins
d904e2d4e2 Merge "Create api-ref base for Octavia" 2017-02-14 17:03:56 +00:00
Jenkins
c3011ebec3 Merge "Update test-requirements hacking" 2017-02-14 17:03:50 +00:00
Jenkins
5d3d226b1f Merge "Fix the amphora failover flow docs diagram" 2017-02-14 17:03:47 +00:00
Jenkins
a48c27d1cd Merge "Fix the PKG-INFO to 5 - Production/Stable" 2017-02-14 17:02:38 +00:00
Jenkins
083d00cf85 Merge "Fix "P2" note references in act/act specs" 2017-02-14 16:47:43 +00:00
Bernard Cafarelli
0dd4649f37 Use cryptsetup/LUKS for encrypted ramfs
ecryptfs was dropped from RHEL/CentOS, use LUKS on a RAM-backed block
device (brd) instead.

Made the element name more generic

Added systemctl enable call in postinstall (for systemd init), so that
the service is correctly started and listed as wanted by amphora-agent

Change-Id: Id8c7ff93ae244ef14480e22c85dc79355a902105
Closes-Bug: #1642982
Closes-Bug: #1662952
2017-02-14 10:37:45 +00:00
Brandon Logan
42cde9cc64 Remove v1 base type
It has been replaced by octavia.api.common.types.

Change-Id: I0766eddc4550fc61c050ac6090d97070e3d71d34
2017-02-14 01:35:17 -08:00
Jenkins
7c9baeb9d1 Merge "Add option to choose an availability_zone for amps" 2017-02-14 00:23:19 +00:00
johnsom
5b72c134a9 Create api-ref base for Octavia
This patch will create the initial directory and index for the api reference
documentation (using the new guidelines) for the Octavia API.

Change-Id: Id5fbe569acfe7348f4f9dfc9cbef49834ea824c3
Partial-Bug: #1558385
2017-02-13 23:08:14 +00:00
Michael Johnson
ada92f7c0b Update test-requirements hacking
The version of "hacking" in our test-requirements.txt was out of date.
This patch updates that to the current global requirements version
and corrects the errors returned by the new version.

Change-Id: Ia1555cef868a8d215213b465fa6af666b1e81e80
2017-02-13 15:05:41 -08:00
Jenkins
bcd6f592d3 Merge "Allow a configuration option for random Amphora name" 2017-02-13 22:39:53 +00:00
Jenkins
1601c01312 Merge "Updated from global requirements" 2017-02-13 22:33:11 +00:00
Adam Harwell
e713f05b2a Add option to choose an availability_zone for amps
Change-Id: Id91c15da6caa656925184dda43d063aede89989e
2017-02-13 14:01:25 -08:00
johnsom
43949908e1 Remove mention of deprecated verbose option
oslo.log has deprecated the verbose option [1] so we should remove
mention of it as well.

[1] https://review.openstack.org/#/c/206437

Change-Id: I322e7b635f7337a6d399d7728bf55e581160b823
2017-02-13 08:50:55 -08:00
OpenStack Proposal Bot
a73d6153a3 Updated from global requirements
Change-Id: Ib216136094fe199ada252cbabd2db4db7007ce95
2017-02-13 15:17:39 +00:00
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
johnsom
108ab27952 Fix Octavia v1 API project_id for POST
This patch corrects the project_id handling for POST calls to the
Octavia v1 API.  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.
For the other object POST methods we use the project_id
from the parent load balancer.

Change-Id: Ibf59541b8811e3bbe36cfec039f91e20036102e4
Closes-Bug: #1624145
2017-02-10 09:57:56 -08:00