Commit graph

25 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
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
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
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
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
rabi
31ffa13932 Use heat-tempest-plugin in grenade job
Change-Id: I3a3744fa116a2d424b2afd95eb89058ad78d7f0b
2017-11-25 10:35:36 +05:30
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
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
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
Rabi Mishra
45a7d1dfb9 Set OS_PROJECT_NAME in grenade script
Change-Id: I1a064648a2bee046e9b5afeafb40ede0ece748eb
Closes-Bug: #1561810
2016-03-25 08:00:11 +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