Commit graph

15199 commits

Author SHA1 Message Date
Lingxian Kong
f3c08330fe Support tags for Octavia pool member
The API doc:
https://developer.openstack.org/api-ref/load-balancer/v2/index.html#create-member

Change-Id: I6c5aaf116916eb197a62d89561d4d20236006581
Story: #2005219
Task: #29998
2019-03-21 20:11:48 +00:00
rabi
97f2636dc7 Use keystone session with heatclient in integration tests
Change-Id: I4c66927e3dd3e1a91cfab94f26a24dbe8932bde8
Related-Bug: #1695144
2019-03-15 09:13:17 +00:00
Zuul
faacff2d7e Merge "Migrate to bionic test image" 2019-03-14 15:34:05 +00:00
Zuul
6b2c398f1c Merge "Override ssl options for heatclient in RemoteStack" 2019-03-14 12:07:23 +00:00
ricolin
c737ed82fb Migrate to bionic test image
Depends-On: https://review.openstack.org/#/c/643093/
Change-Id: Ibd73389902935518fafda649b6d419881fe6349e
2019-03-14 16:45:01 +08:00
Zuul
b055400bd7 Merge "Support remote stack with another OpenStack provider" 2019-03-14 02:31:00 +00:00
Zuul
7d346302d9 Merge "Migrate tests from Xenial to Bionic" 2019-03-14 02:02:13 +00:00
ricolin
3ad7ab2884 Override ssl options for heatclient in RemoteStack
Allow the user to set the CA cert for SSL option for contacting the
remote Heat in the properties of an OS::Heat::Stack resource.

Story: #1702645
Task: #17270

Change-Id: I37528bb2b881a196216a7e6e23af871ab0f313d6
2019-03-14 01:23:58 +08:00
ricolin
6990331639 Support remote stack with another OpenStack provider
Allow OS::Heat::Stack to access remote stack from another OpenStack
provider. Also enable functional tests for multi-cloud.

Implement multi-cloud support as an extension to the existing multi-region
support. Allow operate a remote stack (from another OpenStack cloud) as a
resource in stack from local OpenStack cloud.

I propose we add multi cloud support into ``OS::Heat::Stack`` and change the
property schema for ``context``. Within context, we should adding
following properties:

* credential_secret_id: ID of Barbican Secret. Which stores authN
  information for remote cloud.

Service will use auth information from Barbican Secret to access
 Orchestration service in another OpenStack.
Must make sure you're able toget that secret from Barbican service when
provide `credential_secret_id` property.

Story: #2002126
Task: #26907
Depends-On: https://review.openstack.org/579750

Change-Id: I2f3de3e7c29cf7debb1474228c8a9a81725a72ed
2019-03-13 22:15:45 +08:00
ricolin
6c35f28365 Add tools for parse credential from Secret payload
Provide tools to grep credential from payload
context in Barbican secret.

Change-Id: Ib638cfe25c35ef002088d52c729238f2aba737e6
Story: #2002126
Task: #26906
2019-03-13 22:15:45 +08:00
Zuul
2e3091e5b6 Merge "Improve best existing resource selection" 2019-03-13 07:04:51 +00:00
Zuul
cde369537c Merge "Add tools to get keystone auth plugin" 2019-03-12 17:01:46 +00:00
Zuul
1eca082f43 Merge "Allow update of previously-replaced resources" 2019-03-12 13:14:55 +00:00
ricolin
4ee754f359 Add tools to get keystone auth plugin
With directly provide auth string(with contain a json formate
with auth_type and auth info), we can release context to specific
auth_type and give user the ability to provide other Keystone
(or their own) authentication method (like using
`v3applicationcredential` or others).
The format for `auth` and `auth_type` follows exactly Keystone
plugins like in clouds.yaml file [1].

[1] https://docs.openstack.org/keystoneauth/latest/
plugin-options.html#additional-loaders

Change-Id: Ic4dc2292a82860b9bb54ecb9e3b1a4dc806dab2c
Story: #2002126
Task: #26904
2019-03-12 18:15:07 +08:00
Zuul
16e35cfbb0 Merge "Remove VolumeBackupRestoreIntegrationTest from skip list" 2019-03-12 07:15:24 +00:00
Zuul
31b19b2139 Merge "Allow users to disable the tests run by Grenade" 2019-03-08 23:52:02 +00:00
Zane Bitter
ef8d50856f Remove VolumeBackupRestoreIntegrationTest from skip list
We cannot run this test in the gate because the volume backup feature is
enabled. However, with a change to the Heat tempest plugin to allow this
feature to be automatically skipped based on the tempest config, we no
longer need this test to be explicitly included in the skip list.

Change-Id: Iaefa5c272c4322498330307ea9bd6843d276ef1b
Depends-On: https://review.openstack.org/632989
2019-03-08 02:53:19 +00:00
Zane Bitter
1941602092 Migrate tests from Xenial to Bionic
Switch all Ubuntu Xenial integration test jobs to Bionic (by depending
on the patch that changes them globally.

Change-Id: I5b6c870a12892950c3e8d3aeadffe23ffbf8219e
Depends-On: https://review.openstack.org/639096
2019-03-07 18:58:51 -05:00
Zuul
e7c2cbe340 Merge "Support Neutron L2Gateway resource" 2019-03-07 18:36:57 +00:00
Zuul
4cac915c28 Merge "Support Neutron L2GatewayConnection resource" 2019-03-07 18:07:50 +00:00
Jason Neatherway
0731857d0d Support Neutron L2Gateway resource
The Neutron extension for layer2 gateway (networking-l2gw) provides a API to
manage L2GW components. The proposed change is to implement two new Heat
resources to allow management of the L2GW and L2GW-connection resources.
This change implements the first of the two resources,
OS::Neutron::L2Gateway

Change-Id: Ib850f027833106cb39d3d1f6e644bbb1f79f1aac
Task: #19995
Story: #2002150
2019-03-08 02:32:29 +11:00
Jason Neatherway
7e53efc1a5 Support Neutron L2GatewayConnection resource
The Neutron extension for layer2 gateway (networking-l2gw) provides a API to
manage L2GW components. The proposed change is to implement two new Heat
resources to allow management of the L2GW and L2GW-connection resources.
This change implements the 2nd of two resources,
OS::Neutron::L2GatewayConnection

Change-Id: I2295acafa652ace7180d1250c85f8ee079351628
Task: #23118
Story: #2002150
2019-03-08 01:07:01 +11:00
Zuul
404ca3fad1 Merge "Add a Blazar Host resource" 2019-03-07 10:20:04 +00:00
Zuul
6c2df60e85 Merge "Add a Blazar Lease resource" 2019-03-07 08:16:57 +00:00
Luigi Toscano
2b580f4258 Allow users to disable the tests run by Grenade
Setting RUN_HEAT_INTEGRATION_TESTS=False disables the Heat
integration tests which are normally executed by Grenade
after the deployment of the base environment and after the upgrade.
This is useful when Heat is used in a Grenade job of another
component, where the focus of the testing is not Heat itself,
thus shortening the run-time of the overall Grenade job.

The default behavior is unchanged.

Change-Id: I47b258fecd45ebc08c82df179625bcfb57a32894
2019-03-01 22:47:28 +01:00
Zuul
6e89926921 Merge "Fix indentation in HOT specification" 2019-02-18 08:53:45 +00:00
Zuul
052c3ef774 Merge "Fix indentation in docs" 2019-02-18 08:53:19 +00:00
Zuul
143961ffce Merge "Don't translate event reason when adding hook event" 2019-02-18 07:42:05 +00:00
Zuul
3ad3be58c6 Merge "Add disk size to the flavors" 2019-02-18 06:49:46 +00:00
Kazunori Shinohara
8c46dacd6a Add a Blazar Host resource
Add a OS::Blazar::Host resource plugin to support Blazar which is a
resource reservation services in OpenStack.

Co-author: Asmita Singh <Asmita.Singh@nttdata.com>

Change-Id: Ie5b9373681943222268eb9144740f5733ffef750
Task: 22881
Story: 2002085
2019-02-18 06:41:23 +00:00
Kazunori Shinohara
809ac97439 Add a Blazar Lease resource
Add a OS::Blazar::Lease resource plugin to support Blazar which is a
resource reservation services in OpenStack.

Co-author: Asmita Singh <Asmita.Singh@nttdata.com>

Change-Id: I7683599d9e9443372d1f585985cee7c10fd08581
Task: 22882
Story: 2002085
2019-02-18 06:35:05 +00:00
Rabi Mishra
1cd8ce37c0 Don't translate event reason when adding hook event
We don't seem to do it anywhere else. TripleO uses hook
reason string comparsion which does not work if
internationalized.

Story: #2005035
Task: 29524
Change-Id: I3e8f4587966969084cbf1e38406cd3cff23eb9a6
2019-02-16 09:11:07 +05:30
Rabi Mishra
84c908ca9e Add disk size to the flavors
Nova has added a default policy
os_compute_api:servers:create:zero_disk_flavor to admin-only,
that will prevent non-admins from creating image-backed servers
with a flavor that has disk=0 which is potential a security
exposure.

Add appropriate disk size to flavors we use in tests.

Change-Id: I9c0af0b40fc5b5c33de7f0c690d156ed2bac2f15
2019-02-15 20:35:29 +05:30
David Rabel
267060ff58 Fix indentation in HOT specification
Change-Id: If1070ecdbadad83625620b222152db06c831e4c1
2019-02-15 15:01:59 +01:00
David Rabel
dd4337cca2 Fix indentation in docs
Change-Id: If7044bb0d349eea1633474583e6f4c78afc93667
2019-02-15 11:37:11 +01:00
Ludovic Logiou
f47748d4b6 Translate tenant_id to project_id in Octavia loadbalancer resource
Story: 2004650
Task: 28603
Change-Id: Iaead412604f53d7196949fd475f266711e11c8b5
2019-02-13 13:15:51 +00:00
Zuul
d19e0be516 Merge "Unit tests: Avoid deprecation warning for getargspec()" 2019-02-13 08:20:26 +00:00
Zuul
436279ea12 Merge "Add rbac_policy/subnetpool support for OS::Neutron::Quota resource" 2019-02-13 08:20:23 +00:00
Zuul
0cdd8eabeb Merge "Implement preview for ResourceGroup" 2019-02-13 08:17:01 +00:00
Zuul
0df360559a Merge "Don't use 'user' and 'tenant' args in context" 2019-02-02 20:56:26 +00:00
Zuul
3b8a2bf913 Merge "Set Tempest's service_availability setting for Heat" 2019-02-01 11:16:27 +00:00
Zuul
82b3a070bf Merge "Heat support for Tap-as-a-Service resources" 2019-01-30 16:23:35 +00:00
Zuul
7e5c503fff Merge "Rename the client routines for sfc to more generic name" 2019-01-30 16:23:33 +00:00
Deepak Tiwari
b9af0cf53f Heat support for Tap-as-a-Service resources
Add heat support for Tap as a Service resources (Tap Service and Tap Flow)

Change-Id: I2383e02dd3126edece2acf8425143fd3745ef454
2019-01-30 21:01:21 +13:00
Deepak Tiwari
262c432e96 Rename the client routines for sfc to more generic name
Rename the client routines used for SFC resources to a generic
name so that other plugins/extensions can reusee those routines

Change-Id: Iaddec21014ff8c70fa11f17d52f53e5d7d4e3578
2019-01-30 21:01:21 +13:00
Zuul
e0be3707b4 Merge "Fix Designate Zone lookup by name" 2019-01-29 10:03:57 +00:00
Zane Bitter
8c79ae0aeb Fix Designate Zone lookup by name
Zones are a concept of the Designate v2 API. Since v1 is still the
default, we need to explicitly use v2 when doing anything to do with
Zones. We were doing this when looking up a zone directly, but not when
falling back to listing all zones and going through them by name. This
meant that designate.zone constraint validation would fail (including on
the 'zone' property of OS::Designate::RecordSet) when the zone was
specified by name rather than UUID.

Change-Id: Id4194a74398488813f901b255f312f7ac962a426
Task: #29162
2019-01-29 19:51:08 +13:00
Zuul
1fcb3f7bde Merge "Ignore exceptions getting FloatingIP dependencies" 2019-01-29 06:21:47 +00:00
Zane Bitter
97df8bb6ca Improve best existing resource selection
Rank all existing versions of a resource in a convergence stack to improve
the likelihood that we find the best one to update.

This allows us to roll back to the original version of a resource (or
even attempt an in-place update of it) when replacing it has failed.
Previously this only worked during automatic rollback; on subsequent
updates we would always work on the failed replacement (which inevitably
meant attempting another replacement in almost all cases).

Change-Id: Ia231fae85d1ddb9fc7b7de4e82cec0c0e0fd06b7
Story: #2003579
Task: 24881
2019-01-29 16:47:33 +13:00
Zane Bitter
e34da89290 Allow update of previously-replaced resources
The convergence prototype ignored checks of resources that had previously
been replaced by another resource. However, it turns out that this was
unnecessary in the final version of the prototype:

e9d2f833a5

Keeping this limitation prevents us from allowing users to roll back to a
previously-existing resource if creating the replacement fails, other than
by using the automated rollback mechanism (which is special-cased).

Since the graph for the traversal is calculated at the start of the update,
there's no need to limit which nodes are allowed to be checked. Only the
selected resource will have an is_update=True node in the traversal graph.
Removing this additional restriction allows us to improve the algorithm
that chooses which resource to update. Since a new traversal ID is stored
before we calculate the traversal graph, we can guarantee that no new
resource checks will start (though some may still be happening) while the
algorithm is choosing, so there's no danger of it picking a resource that
later gets replaced.

Since we're no longer treating automatic rollback as a special case, reset
the replaced_by field whenever we update a previously-replaced resource.

Change-Id: I04e7ad90944c2d03ce0e59ba16af9d60d6e01222
Story: #2003579
Task: 26197
2019-01-29 16:40:40 +13:00