Commit graph

43 commits

Author SHA1 Message Date
Takashi Kajinami
71d2c41764 Add back ParallelDeploymentsTest in upgrade test
Change-Id: Id83c803b68640a403560703ed554e9aa627788fc
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-11-23 01:10:51 +09:00
Pavlo Shchelokovskyy
0242c28d5f Use authentication with keystone ec2token api
As a result of fixing OSSA-2025-002, ec2tokens API in Keystone
now by default requires authentication.

The config section `[ec2authtoken]` is now expected to have
auth information for Heat to be able to use this API.

In multicloud configuration keystone auth credentials are
required for each cloud. These can be configured using the new clouds
option and the ``[ec2authtoken.{cloud}]`` sections.

NOTE:
 Disables test_software_config.ParallelDeploymentsTest in
 grenade. Should follow up to re-enable once fix has been
 backported.

Related-Bug: #2119646
Change-Id: Ib41f76c1ba56005b6c4233424cca5768657a7686
Co-Authored-By: Adrian Jarvis <adrian.jarvis@catalystcloud.nz>
Co-Authored-By: Takashi Kajinami <kajinamit@oss.nttdata.com>
Signed-off-by: Pavlo Shchelokovskyy <shchelokovskyy@gmail.com>
2025-11-18 00:57:19 +09:00
Takashi Kajinami
aea477842f Switch back pre-upgrade check to source branch
... because commit 1fd4e26f6b was
backported.

Depends-on: https://review.opendev.org/955294
Change-Id: I8f999b05b0a0cbd12c059b80bb50652d7f8bdbc5
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-07-17 23:49:26 +09:00
rabi
b64f70d834 Fix instance_group/autoscaling_group intermittent test failures
With convergence there is a chance some leaf resource won't be
processed by workers if the stack is marked as failed due to
failure of one resources and stack traversal set to empty string
i.e traversal cancelled.

Also uses TestResource to simplifly the tests.

Change-Id: I1a04853d42f519d9a14dd345ac8cb441b08c4d77
Signed-off-by: rabi <ramishra@redhat.com>
2025-07-16 20:06:00 +05:30
Dmitriy Rabotyagov
f7804606da Set proper role name for the grenade job
At the moment devstack upgrade tries to assign `Member` role
to which Keystone replies with 404 as role naming is case sensitive.

Change-Id: Ib85a920eae6c3ce2369a76282e8ea2fc90f7290b
2025-04-02 13:50:09 +00:00
Takashi Kajinami
c573a6cc26 Fix incomplete service name
Change-Id: I708aa5afcc6b7fa587f35b33841f76425f241406
2024-11-17 08:01:29 +09:00
Ghanshyam Mann
b3bd897cc3 Fix python executable file for heat: greande GLOBAL_VENV
Grenade is going to install and run everything from virtual env

- https://review.opendev.org/c/openstack/grenade/+/930507

Heat grenade job needs to install and run from venv. This
fixes the heat bin directory locaiton otherwise it will fail
with below error

- https://zuul.opendev.org/t/openstack/build/9b20c32fe9594d8b963c17c9f02aa76e

Needed-By: https://review.opendev.org/c/openstack/grenade/+/930507/12
Change-Id: I3a670795593da81078bb3709eedda0804871ad63
2024-10-15 12:48:12 -07:00
Pierre Riteau
ee05707038 Remove old upgrade script
Change-Id: I2c50d1dffecefcb2e976237553c3faa7d8169013
2024-09-13 20:29:42 +02:00
Takashi Kajinami
397657f667 Upgrade flavor for Fedora VM
Since we bumped Fedora version used in CI from 36 to 37, we've
seen timeout during boot process more frequently, which results
in job failure. This increases core and ram assigned to Fedora
VMs, to reduce failure rate.

To avoid consuming too much resources, this limits concurrency
of test runner.

Change-Id: I12e8ee0861629fd42a6bd03ec8705751da12ff61
2023-09-21 04:02:06 +00:00
Takashi Kajinami
9fbe8e4d35 Disable unstable test cases in grenade
Some test have been unstable in Ubuntu Jammy because of the known
libvirt bug, and we have disabled these in functional jobs.

Let's disable the test case in grenade jobs, because these test cases
now cause frequent job failures.

Related-Bug: #1998274
Change-Id: I7038ce3ec2840b133e9ae5eb09a96dc8a5f3abc2
2023-03-23 23:32:49 +09:00
Ghanshyam Mann
604111b0ba Fix setting the tempest virtual env constraints env var
Heat upgrade script set the env var TOX_CONSTRAINTS_FILE/UPPER_CONSTRAINTS_FILE
which are used to use the constraints during Tempest virtual env
installation. Those env var are set to non-master constraint when
we need to use non-master constraints but when we need to use the
master constraints we do not set/reset them point to master constraints.

This create the issue when this grenade script install the tempest with
stable constraints but with master Tempest and as there is mismatch of
constraints now with fasteners of stable branches. Below is failure
of heat greande job on stable/yoga

- https://zuul.opendev.org/t/openstack/build/3aaec4d59bb84068bb4d4428ea747cbd/log/controller/logs/grenade.sh_log.txt#3245

Similar way, role should set stable constraints only for the stable EM branch
not for all otherwise it fail when constraints/requirements are bumped.

- https://zuul.opendev.org/t/openstack/build/74f86b8097f44c35acaffdcfe41d9693

We should set/reset those constraint env var to master constraints if configuration
tell to use the master constraints.

Closes-Bug: #2003993
Change-Id: I024cd134577338fc1075e7742df7f006dc914646
2023-02-21 16:05:09 +00:00
Brendan Shephard
0aa0b38251 Update stestr args for inclusive language
stestr has removed whitelist / blacklist. This change updates the
devstack upgrade tests to ensure we use the new include-list instead.
9ffeb470fb

Change-Id: Ia0df9b3468fee9382c42c8bd6a35b76ed7f2b4e5
2022-11-09 16:11:34 +10:00
Brendan Shephard
7787140214 Remove CloudWatch cleanup tasks
This change removes the cloud watch cleanup tasks
as part of general housecleaning.

Change-Id: Id8f678dfd504ff27d6fdb86011129d353a31f3cf
2022-07-21 23:34:28 +00:00
Rabi Mishra
e446ecbb21 Use openstack commands in upgrade plugin
Change-Id: I94075f261ce095c509635aab395df42878aceb1c
2022-07-13 13:17:54 +05:30
Rabi Mishra
39d653fa57 Use constraints when creating venv for grenade
As a followup for change I6a8cffdc86c895eebe4269c5cd37841325566c54
let's use branch specific upper constraints when running tests in
grenade.

Change-Id: I71f8398b6aa57b7c1910750b8e048825383e3d9a
2022-06-30 10:54:34 +05:30
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
Rabi Mishra
b5d25c7254 Remove duplicate tempest.conf setup for grenade
Change-Id: I25930a4af9b67e98c7705ad8801bfc6e5a7c0d72
2019-01-02 10:48:48 +05:30
Doug Hellmann
8ae5f8657b change the dist name to 'openstack-heat'
We are updating all Python projects to publish artifacts to PyPI. The
name "heat" is already taken there by another project, and they have
rejected our request to claim the name. We therefore need to change the
dist name used to package heat. We have some other projects publishing
using an "openstack-" prefix, so I propose using the name
"openstack-heat". This will not change the imports or anything else
about how the code works, just how it is packaged.

Add a grenade plugin for upgrading between the packages with different
names so that we can clean up the old version of the code and avoid
discovering the heat plugins multiple times in different locations.

Change-Id: I59b55cffd9e648f842eb286b936f09c5b55a76db
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-01 11:54:05 -04:00
Kien Nguyen
5b8cbd5895 Run the specified set of tests in grenade-multinode job
This patch defines the specified set of tests & runs these during
upgrade in grenade-multinode job.

Change-Id: I99fa1717f4bf46afc8dd989a3aae129e5c4ab9d7
2018-03-02 12:16:51 +07:00
Kien Nguyen
2efa4c7e82 Change transport_url in grenade-multinode job
* Change transport_url to test Heat's upgrade strategy [1] in gate.

[1] https://review.openstack.org/475853/

Change-Id: I08770d2ae09891d7983345616186cff7c26df4ce
2018-02-23 16:17:18 +07:00
rabi
cb49c6cd38 Update .stestr.conf with the group_regex
Tempest has switched to stestr. Update the group_regex in
.stestr.conf

Change-Id: I6f12f95367748828977550ede5043d2f6b7e9970
Closes-Bug: #1750960
2018-02-22 11:37:07 +05:30
Zuul
1c7ff8f4e6 Merge "Remove use of auth cache directory" 2018-01-27 03:22:45 +00:00
Zuul
06b7841b06 Merge "Remove cloudwatch service from devstack plugin" 2017-12-04 23:52:35 +00:00
rabi
31ffa13932 Use heat-tempest-plugin in grenade job
Change-Id: I3a3744fa116a2d424b2afd95eb89058ad78d7f0b
2017-11-25 10:35:36 +05:30
rabi
f2b4c983d3 Remove cloudwatch service from devstack plugin
Change-Id: Ie18d80e8faaec984b127ab3abeeb66d6a3aa1b6c
2017-10-25 11:50:15 +05:30
Vlad Gridin
cbb754d265 Remove use of auth cache directory
Change-Id: Ie573f27d47e7e88cde27712a12aa8b40b5afda8b
Closes-Bug: #1720988
2017-10-09 16:34:18 +02:00
rabi
5f5a96c669 Run heat api tests after upgrade
Change-Id: I0f5b7204c6dc3cf7bfe50acc5427590ee35d202f
Closes-Bug: #1711282
2017-08-17 09:02:45 +00:00
rabi
a47dfea24b Fix number of issues with grenade job
- Use domain ids along with domain names

It's possible that either the domain_id or domain_name
is set in the env.

- Adds an workaround for bug #1662911

- Fix shutdown script for apache

Change-Id: Ib9d3c14327d73d8cb0e0cddcc9d16191797ffffa
Closes-Bug: #1663105
2017-02-09 16:58:26 +05:30
rabi
bebe21ae13 Revert "Fix devstack plugin" workaround
This reverts the workaround for the devstack plugin,
as now the gate jobs pass(with the plugin and no devstack
tree heat code) and make it only a devstack plugin.

Change-Id: Ia8d88eca2dec301b692bbef3e1d8988f00e1936a
Depends-On: I5b60422bf1f5fa78aa8f3383f7a222e0356d9e42
2016-12-06 18:17:54 +05:30
rabi
23f68fa1ab Run integration tests with tempest before upgrade
Now that base and target releases are incremented in grenaderc,
we should run the integration tests using tempest plugin before
upgrade.

Change-Id: I39b7758798ff94401fda042ff6954de75821e8bb
Closes-Bug : #1627297
2016-09-24 18:15:49 +05:30
Jenkins
11d747b4c9 Merge "Don't run neutron tests before upgrade" 2016-09-02 10:16:30 +00:00
rabi
567e93a1ff Use heat functions from plugin for upgrade
Now that we've the devstack plugin in-tree let's use
the functions from the plugin for upgrade, so that
we can remove the devstack tree heat code.

Change-Id: Ic392bcc24bc374ee8511a94f1d8f6ac23131c7e3
2016-09-01 04:25:37 +00:00
rabi
7afb32bdd6 Don't run neutron tests before upgrade
We seem to be running quite a few neutron tests during
upgrade and it seems to result in neutron quotas for
resources being exceeded, when tests run in parallel.

We should avoid running them.

Change-Id: I0a88f509af05a98ddd4811ea920a81cc997a0c6a
Closes-Bug: #1618789
2016-08-31 14:52:12 +05:30
Steve Baker
fff6518e69 Run heat_integrationtests as a tempest plugin
completes blueprint tempest-plugin-support

Change-Id: I0109e68bb135cd257e2fff74e75575a7e2f91539
2016-08-13 09:53:07 +12:00
Steve Baker
2af6c6ffdc Do not use env var conf defaults
Falling back to environment variable credentials is convenient for
development but could lead to unexpected credentials being used during
tests. Also this is not a known practice for tempest tests.

This change removes the env var defaults and explicitly sets the
credentials to use in prepare_test_env.sh.

Pre and post grenade tests also get their config from the conf file
rather than the environment.

blueprint tempest-plugin-support

Change-Id: Icf9fb4c58ed11483106c2b62d1e1093223f7dc51
2016-08-13 09:52:41 +12:00
Michael Ionkin
3cf288bc8c no need to run integration tests in upgrade
the purpose of upgrade script is to upgrade service,
and heat shouldn't run any jobs inside of that. moreover
there is no benefit in executing these tests after upgrade
because it doesn't test anything related to upgrades:
if heat is correctly configured after upgrade it will be ready
to run tests (but this can be covered by usual integration job).
heat should be testing specific things like
updating stacks after migration to the new openstack code,
deleting stacks and so on.

Co-authored-by: Vitaly Gridnev <vgridnev@mirantis.com>
Change-Id: Ie600dfc09db0ffa91609f92be4b9ef27259b5314
2016-08-11 08:01:41 +00:00
Rabi Mishra
45a7d1dfb9 Set OS_PROJECT_NAME in grenade script
Change-Id: I1a064648a2bee046e9b5afeafb40ede0ece748eb
Closes-Bug: #1561810
2016-03-25 08:00:11 +05:30
ricolin
bb9d34c33f use stderr for error echo message
Some echo message contain error or warning message which better be contain in
stderr. And futher more some error message already contain in stderr, but for
error message reader, the following information for that echo should be
contained as well.

Change-Id: I2aac631df19829218d446150c91cf6d50aa5e7e7
2016-01-17 05:20:40 +00:00
Thomas Herve
e2b5edef30 Fix grenade upgrade script dependency
This includes lib/apache from devstack as the devstack heat plugin now
requires it.

Change-Id: Ie48e417f2b36ce79c3485e559b6141a1499b6eb1
Closes-Bug: #1511369
2015-10-29 14:24:03 +01:00
Thomas Herve
06f2fd72cd Fix grenade shutdown script
Due to some fix in devstack, using the old lib/heat library doesn't work
anymore, so let's replicate the stop_heat function.

Change-Id: I8e7c62962cef29e35c37ad98a1646630388fb4ab
Closes-Bug: #1506462
2015-10-15 14:38:13 +02:00
Sirushti Murugesan
667fd80d47 Remove ceilometer specific config for grenade plugin
Ceilometer services are now enabled and controlled via a plugin
with this change Ie3219a41a3d371d9ac21552e3d8b15775ea696f6. This
means we can remove all ceilometer specific manual config entries
in the grenade plugin.

Related-Bug: #1489436

Change-Id: I2fbff1fed38ac8acc8a7950024714abea049aeb8
2015-10-14 12:28:35 +05:30
Sirushti Murugesan
ba4a7026c7 Grenade: Run select heat_integrationtests instead of tempest smoke
Only a few tests are run because these tests only verify the
sanity of the build rather than doing the upgrade tests itself. 

Closes-Bug: #1482152
partial blueprint upgrade-tests

Change-Id: I8fed19bd25cc3a62c03c35afafe2b662551dbd4e
2015-10-06 06:58:07 +00:00
Sirushti Murugesan
334b22929c In-tree grenade support for Heat
The following implements in tree support for grenade upgrade testing
for heat. It includes the expected directory structure to be used for
the external plugin.

For now, we create a simple OS::Heat::RandomString resource
and check whether the stack survives the upgrade.
We should add better tests for upgrades in the future.

Co-Authored-By: Steven Hardy <shardy@redhat.com>
Co-Authored-By: Sergey Kraynev <skraynev@mirantis.com>
Co-Authored-By: Emilien Macchi <emilien.macchi@enovance.com>

partial blueprint upgrade-tests

Change-Id: I0847004a8ac023a113cabaee46896abc823a01da
2015-07-02 17:23:22 +05:30