Commit Graph

390 Commits

Author SHA1 Message Date
Ghanshyam Mann 72ea117f61 Retire Tripleo: remove repo content
TripleO project is retiring
- https://review.opendev.org/c/openstack/governance/+/905145

this commit remove the content of this project repo

Change-Id: Ic549bdcc76a5e12a0104143fbe79fd0db2c866b0
2024-02-24 11:44:35 -08:00
Sofer Athlan-Guyot 5d0662d735 Add steps required to run minor update on overcloud
Add steps to multinode-overcloud-update.yml playbook which are required
before running full minor update on overcloud. The prerequisites for
starting overcloud update for tripleo-upgrade are:

- updated dlrn repos definitions on overcloud nodes
- updated containers-prepare-parameter.yaml file on undercloud

Resolves: #2015993
Depends-On: https://review.opendev.org/c/openstack/tripleo-ci/+/880162
Depends-On: https://review.opendev.org/c/openstack/tripleo-quickstart/+/883307

Change-Id: I2829307d1013e96317338eccc7a4b16376fb1d2b
2023-06-02 16:05:18 +02:00
Marios Andreou 126074ccfd Tweaking conditional to skip tempest run during dpa tests
We set the skip_os_tempest in the job vars

Change-Id: Id57b2a0c69d4ea484b1a186b36e1b5208b3c5762
2023-05-02 18:25:17 +03:00
Marios Andreou fd5ac41885 Remove extra_args from overcloud deploy move to FS 66
These are instead moved to fs 66 [1] which depends-on this patch.
In [1] we need to set extra_args conditionally for the d/stream
jobs and we can't have extra_args in both places.

Also cleans up a task that is no longer needed since we removed
the second deployment with [2].

Depends-On: https://review.opendev.org/c/openstack/tripleo-quickstart/+/874594

[1] https://review.opendev.org/c/openstack/tripleo-quickstart/+/874594
[2] https://review.opendev.org/q/topic:oooci_mixed_rhel_job_refactor

Change-Id: I0c9541f5fb76238cdffacc997ea7ccebb0d138b5
2023-02-22 11:27:37 +00:00
Marios Andreou bcf50bbb68 Cleanup after mixed-os single deploy refactoring remove unused play
Removes the unused multinode-overcloud-mixed-os-deploy-compute.yml
and renames the -control.yml to just -deploy.yml. Patch is needed
by [1][2]

[1] I04c88580de952c56e219dbf76732d30f2fae3979
[2] Idfa6653b33cf8bd90b5dfe1b81573670bfc5b075

Change-Id: Iec88d20b83aba4f4832a3b31b42d3780188ab2fd
2023-02-15 11:44:18 +02:00
Marios Andreou d25bfbfad9 Add support for role specific container prep to undercloud-deploy
This adds support for the per-role container image prepare params
into the undercloud-deploy role. See [1] for other related patches.

The undercloud-mixed-os play is changed to resolve the rhel/centos8
ci-testing hash for periodic jobs before undercloud-deploy for the
multi container prep.

Vars are being set with [2] but the single deploy workflow will
not be enabled until [3] merges.

[1] https://review.opendev.org/q/topic:role-image-prepare-stable/wallaby
[2] https://review.opendev.org/c/openstack/tripleo-quickstart/+/868208
[3] https://review.opendev.org/c/openstack/tripleo-ci/+/868207

Change-Id: Ieaad3d17bb9c63f7042f0454d81dffada98c5947
2023-02-03 12:30:14 +02:00
Zuul 2f2f42f8f6 Merge "validate: Remove logic for unsupported old releases" 2023-01-31 12:45:17 +00:00
Cédric Jeanneret 5c22039cd0 Refactor EDPM job
This patch looks huge, so let's split things in the following listing:

- rename role to match the naming convention
  - role name shouldn't get hyphen, so let's use underscores instead.
    Playbooks don't need to follow this rule.

This should make the role more portable in the future.

- modify role
  - "disable" the main.yml - we must call specific task file.
  - no more condioned deploy based on variables. Makes it easier to
    follow and maintain.
  - update how the edpm inventory is edited
    - use plain YAML
    - output plain YAML
    - this format is consistent with latest changes in tripleo-ansible[1]

These changes make the overall role easier to understand and maintain,
while ensuring the playbook is also easier to read. It may also make the
deploy a bit faster with the new way to run the various tasks.

- update playbook
  - boostrap both nodes in a 2-stages way (check comment as to why).
  - deploy compute from the undercloud (mimic what an operator would do)
  - validate the compute from the undercloud (no actual change here)
  - target specific task_file during the different stages. It's easier
    to understand what's going on in there

These changes should allow a better understanding of the overall playbook.

- update edpm deploy script to use an environment file instead of CLI
  params
  - this makes the script lighter and easier to understand
  - adding new parameters in the env file is easier
  - reading the env file for debugging is better

[1] https://review.opendev.org/c/openstack/tripleo-ansible/+/869357

Change-Id: I263f424a5a08214b9c46c5ea73b6b428709ad47b
2023-01-11 11:48:54 +01:00
Marios Andreou 412ac6ad70 Add logfile for compute container image prepare call mixed os job
Adds --log-file to the compute container image prepare call. Noticed
this working on related-bug. The Depends-On will make sure this file
is collected in job logs.

Related-Bug: https://bugzilla.redhat.com/show_bug.cgi?id=2154179
Depends-On: https://review.opendev.org/c/openstack/tripleo-ci/+/867966

Change-Id: Ie32159bdbe15637004eb5fc7cb24fde8c6806b25
2022-12-16 15:01:37 +00:00
Zuul 31f8de248c Merge "undercloud: Remove logic for unsupported old releases" 2022-12-06 11:14:28 +00:00
Zuul 7c32145775 Merge "Modify IPA install and usage for multi-env" 2022-11-16 20:03:52 +00:00
Ronelle Landy 2c2b16dc1e Modify IPA install and usage for multi-env
Remove auto-reverse from IPA server install as
this option is causing errors in environments
where the zone being created already exists and
is owned by some other dns server.
See related change in:
https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/737058/.

This patch also stops the unbound service if it
is running on the undercloud.

Change-Id: Ie46809379e5c143910560b4d3f7cb0eee6f80ea1
2022-11-03 06:49:31 -04:00
Zuul 27ca805b53 Merge "Added validation tasks for listing external compute" 2022-11-02 16:01:08 +00:00
Zuul 1380d6158b Merge "overcloud: Remove logic for unsupported old releases" 2022-10-31 11:31:55 +00:00
Chandan Kumar (raukadah) 740ab773cb Added validation tasks for listing external compute
It adds validate_edpm.yml playbook to list
external compute on the controller node.

Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Change-Id: I5e0b16bf34075d663a52756c4996512610927e47
2022-10-31 15:09:25 +05:30
Arx Cruz 609d10ac97 Deprecating validate-simple
This role is no longer used, and was a long ago replaced with tempest.
Right now, there are still some pieces of code that overwrite the
tempest testrepository.subunit with the pingtest, and so, the best
approach right now is ensure that the validate-simple is not being
called anywhere.

Change-Id: I5a2993fa93c08f842e936c80b0adf4f9fb5c3b0f
2022-10-25 15:19:23 +02:00
Takashi Kajinami 80c6f8b006 validate: Remove logic for unsupported old releases
This change removes logic for releases older than train, because these
releases are already EOLed. This covers only tempest roles and
playbooks.

Change-Id: I0b50cad30107a83b562b8c22b2afd7af7636c615
2022-10-25 17:16:18 +09:00
Takashi Kajinami 149ae7e63f undercloud: Remove logic for unsupported old releases
This change removes logic for releases older than train, because these
releases are already EOLed. This covers only undercloud-* roles and
playbooks.

Note that this change also removes the containerized_* variables
because current active releases(>=Train) no longer supports
non-containerized deployment. The containerized_undercloud_upgrade
variable is still left because the variable is still required by
the tripleo-ci-base-multinode-standard job template.

In addition, TripleO UI support is removed because the component was
retired before Train.

Change-Id: I5132e5bac4ddaa6f76564cab67e486cb5a4e2bbb
2022-10-25 17:15:36 +09:00
Takashi Kajinami 4a4bd9c06a overcloud: Remove logic for unsupported old releases
This change removes logic for releases older than train, because these
releases are already EOLed. This covers only overcloud-* roles and
playbooks and the other items will be covered by separate changes.

Note that this change also removes the containerized_* variables
because current active releases(>=Train) no longer supports
non-containerized deployment. The containerized_overcloud_upgrade
variable is still left because the variable is still required by
the tripleo-ci-base-multinode-standard job template.

Change-Id: If29ec2c2219a28a1f79db0e552e2c622c0a7bda6
2022-10-25 16:32:53 +09:00
Zuul 8c9860311a Merge "Add EDPM role and playbook for standalone-compute deployment" 2022-10-20 15:10:18 +00:00
Chandan Kumar (raukadah) ccaabd8c1e Add EDPM role and playbook for standalone-compute deployment
external-data-plane-management role is a new role to deploy
standalone compute node by using tripleo-ansible roles.

This role includes will run on two nodes and does following
things:
- Bootstrap first node and deploy standalone
- Generate 99 standalone vars and copy it to second node
- Bootstrap second node and install packages
- Copy 99 standalone vars to tripleo-inventory
- Deploy compute serices.

It will be used in tripleo-external-compute-deployment-pipeline
job template[1]

[1]. https://review.opendev.org/c/openstack/tripleo-ci/+/843836

Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Change-Id: I476c7299dec209c89db87e2182a35ec6a4924f92
2022-10-20 11:00:10 +05:30
Ronelle Landy 3aa550fb1f Exclude virthost from dstat log collection
dstat logs were running in excess of 13G and overrunning
the space on baremetal boxes. dstat collection is not
needed on the actual host boxes.

Change-Id: I418907d26c160ccceff53edb8332e277d88214ca
2022-08-29 08:57:01 -04:00
Marios Andreou 6df21bf91c Adds dlrn_hash resolution tripleo-get-hash for periodic mixed rhel
In the periodic jobs we don't have a content provider to draw the
container build id from for the compute node container image
prepare. Adds a conditional task to resolve tripleo-ci-testing.

Change-Id: Ic01b5bba246c96f3f44679aab3be724c3c5fdf35
2022-08-16 13:24:52 +03:00
Marios Andreou ecfc3c8873 Tidy up ctrl logfile backup before compute deploy mixed OS job
In [1] we merged some plays for use with mixed OS version job.
This is a followup to review comments at [1] in particular
moving the copying of controller logfiles to the end of the
controller deploy play, and using copy instead of shell.

[1] https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/841764/34#message-691960e27fab386ef4e65ea4f5291dd991f01ea5

Change-Id: I712fa3ee8f186ac323693ad15f3986a47bd569cc
2022-07-26 19:06:42 +03:00
Marios Andreou abc50905fa Adds toci playbooks and updates for new multinode mixed OS jobs
This adds some new playbooks to be used by the new multinode mixed
os job (See topic at [1] for related reviews). Also updates the
extras-common and undercloud-deploy roles to allow the mixed-os
job to use the correct content provider.

[1] https://review.opendev.org/q/topic:oooci_mixed_rhel

Change-Id: Ie7a95056bfb0a90d2e6fb6e5ec9c8ed66f8ef31e
2022-07-20 12:25:52 +03:00
Arx Cruz 9f54c3129e Fix tempest_allow logic
Since we weren't using the tempest-allow role before, the logic was set
to be executed when tempest_test_whitelist wasn't defined, which is
fine, but to run skipped jobs, the allowed list was being overwriten.
This patch add the logic to only run the tempest-allow role when
tempest_run_skipped is set to false (default).

Change-Id: Ie4a5b6a764d19ce49f703804daaa50425be1bb6f
2022-07-11 22:11:13 +00:00
Zuul 51aeddd85b Merge "Add role to discover Centos latest images" 2022-06-28 03:42:47 +00:00
Sandeep Yadav 4a83b740d7 Add role to discover Centos latest images
With this patch, we are adding a new role discover-latest-image to
discover the latest Centos Stream image, We are limiting the scope
for C9 for now, We can extend the role for Centos 8 image discovery
in future if there is a need.

Also, we are updating baremetal-prep-virthost.yml playbook to use
this new role for c9 case and in combination with patch[1] - we will
get rid of undercloud baseos hardcoding and use the latest discovered
image.

[1] https://review.opendev.org/c/openstack/tripleo-quickstart/+/838990/

Change-Id: I3a97edc63e96725a1690335f557508d56ed10258
2022-06-20 16:10:38 +05:30
Chandan Kumar (raukadah) e96dbc48d4 Run dstat on overcloud nodes
It's make sure, all the overcloud nodes are known and then
run dstat before running tempest on it.

Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Change-Id: Ia0e5218a4ff294db27b758caaa453d47945e82ec
2022-06-20 13:06:28 +05:30
Marios Andreou 8bcf4bfc0f Disable stackviz for tempest centos 8 to unblock gate
As commented in related bug (see comments/6) we need to disable
installation of stackviz as there are issues with the constraints
used. This is not a proper fix but if it works can unblock for now

Related-Bug: 1976247

Change-Id: I8c5e168a9fd18332c073223726ad3a3e338af04d
2022-05-30 16:12:21 +00:00
Chandan Kumar (raukadah) bedde96ad9 Add tempest_{private_net_create, router_create} vars in os_tempest
https://review.opendev.org/c/openstack/openstack-ansible-os_tempest/+/803477
modifies the os_tempest role to create only specific tempest
resources.

Earlier private network and routers were created when network
related vars are set. Due to above patch, we are no longer creating
that.

That's why tempest_neutron_public_network_id is not getting
set and leading to failure of tempestconf generation via os_tempest.

Setting above vars fixes the issue.

Closes-Bug: #1970710

Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Change-Id: If7318f501c72ea5fb012e2935a316eb7c3d15e5e
2022-04-28 13:00:56 +05:30
yatinkarel 858d532fee Fix dstat setup in jobs
It fails as run_tempest is not defined, now we should
use use_os_tempest instead.

Change-Id: I62358ebaa2792642265db17164bee5a620ef10b1
2022-04-18 14:56:19 +05:30
Zuul 097c424585 Merge "Revert "Set default to empty string for Validation inventory variable"" 2022-04-14 16:53:39 +00:00
chandan kumar e817f49367 Revert "Set default to empty string for Validation inventory variable"
This reverts commit 6ae5ac6f55.

Reason for revert: Broke validation in standalone deploy

Change-Id: I6fab0e1410e99b6a8ea150eec3bc4359b601423f
2022-04-14 11:58:04 +00:00
Zuul a0e4d0016d Merge "Set default to empty string for Validation inventory variable" 2022-04-13 17:00:26 +00:00
matbu 6ae5ac6f55 Set default to empty string for Validation inventory variable
Set the default value to an empty string for the inventory variable
in the validation playbook.
The validation role will take of finding if there an existing inventory
on the hosts.
If no, it will fallback to localhost.

Closes-Bug: #1966184

Change-Id: I9f66c7a8992b7bb3368a4155468d3569ddf22b63
2022-04-13 07:13:10 +00:00
Zuul 78eca4400e Merge "Override image.http_image on tempestconf" 2022-03-31 22:47:26 +00:00
Douglas Viroel fa1d696990 Include dependency vars on subnodes
This patch adds a pre_task that includes dependency vars when
job 'dependency' is defined. This fix is needed to have 'repo-setup'
role working properly on subnodes.

Change-Id: Ie324ede9cd8cc857fbb85139ec059da427282843
2022-03-31 00:06:45 +00:00
Arx Cruz 3e80768a74 Override image.http_image on tempestconf
The web-download test expect an url in order to work, otherwise it fails
with an error saying unable to parse the http_image.
Tempestconf set the http_image to the same as image_path if http_image
is not overwriten, so, the http_image was pointing to
/opt/cache/files/cirros. This patch set the http_image to the proper
cirros url. I check the tempest code, and only the web_download test
seems to be using the http image, so it should be safe to override the
http_image here.

Change-Id: I085177212a6e9b461009c453f7907867b118f859
Closes-Bug: #1965540
2022-03-28 17:58:14 +02:00
Marios Andreou 56f0af5b7e Add mirror_info.sh creation for supplemental node repo setup
As discussed in related-bug the supplemental node used in the IPA
jobs is not using the mirror_info.sh so not using mirrors in the
repos created by repo-setup. This adds a slurp to grab the mirrors
config from the undercloud before repo-setup on supplemental.
Test and results at [1].

[1] https://review.rdoproject.org/r/c/testproject/+/40286/1#message-f825e6369163ad1f5aa98eb7c6c67b2798d5788b
Related-Bug: 1964457
Change-Id: I7b3c6f0a3b9fa7114670656df7b39cef8047fd85
2022-03-15 14:34:14 +00:00
Douglas Viroel 400dfc8285 Updates baremetal-full-freeipa playbook to reload NetworkManager
This patch updates the fix to also reload NetworkManager after making
changes to its configuration file. It also adds 'ooo.test' as search
domain since it is hardcoded in deploy_freeipa.sh script.

Related-Bug: #1962727
Change-Id: If0eebb2903649bd0a9a2f4a184c2cc3daf9dc4e5
2022-03-09 11:46:26 -03:00
Ronelle Landy dcdcbd58e6 Use the supplemental node as the DNS server
fs039 and fs064 tests are using the standard
DNS servers. This patch removes the standard
servers from the /etc/resolv.conf file and
adds the supplemental node ip.

Change-Id: I631ec520332b5db341abe9f47e7fada940ac637e
Related-Bug: #1962727
2022-03-02 13:21:44 -05:00
Arx Cruz 3d07a4af7d Add ssh_key_type to tempestconf overrides
This patch add the validation.ssh_key_type into tempest.conf in order to
rum tests with FIPS enabled.

Change-Id: I045e615ce5ffce2b494263f10d27f6f046eed342
2022-03-01 17:40:10 +01:00
Soniya Vyas ec65d258ab Need to add netstat logging in the background
This patch helps us to log netstat.
Signed-off by: Soniya Vyas<svyas@redhat.com>

Change-Id: Ife09317dc4f5e1a3b2c43fa54a8edbbf9abab3c4
2022-02-10 17:04:21 +05:30
Arx Cruz 67cf0fbabc Add identity.v3_endpoint_type to extra facts in tempestconf
Some tests are failing because it's using the adminURL instead of
publicURL. This patch add the config option to tempestconf to force the
use of the publicURL.

Change-Id: I3d5146041df88fbcaad6b0f6d6dcb05d734251b0
Related-Bug: #1959930
2022-02-04 10:20:25 +01:00
Chandan Kumar (raukadah) 0241256ad0 Disable Stackviz for CS9
CS9 jobs are failing with following error
```
'NoneType' object has no attribute 'version_tuple'
```
while installing stackviz via python_venv_build role.

The python_venv_build role uses virtualenv binary not
python -m venv utility. Moving to python -m venv might
break the role.

Till we get a proper fix, we are disabling stackviz
installation on CS9.

Related-Bug: #1953032

Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Change-Id: Ic5bc9a5b4be36b62ce60d6db362821ea4da2239a
2021-12-08 17:51:41 +05:30
Sandeep Yadav bf20bf24f1 Condition to create n/w: custom overcloud name
Currently we are creating networks only when tempest_cloud_name
is i.e standlone or overcloud.

We are creating a new job with custom overcloud name which is currently
failing because we are not creating public network because
tempest_service_available_neutron is false and condition [0]

Updating condition to incorporate custom overcloud name.

[0] https://opendev.org/openstack/openstack-ansible-os_tempest/src/branch/master/tasks/tempest_resources.yml#L209
[1] https://opendev.org/openstack/openstack-ansible-os_tempest/src/branch/master/tasks/tempest_resources.yml#L188

Change-Id: Ie7c6db14318649f6dfb9f3d765dbe462697cc82a
2021-11-24 18:06:27 +05:30
Zuul 9362dc66e4 Merge "Add validation playbook in ovb.yml and make conditional import" 2021-11-19 12:28:38 +00:00
Zuul 8628b0e81c Merge "Override inventory var value if the job defines it's own" 2021-11-02 23:52:23 +00:00
matbu e606ea6e9f Add validation playbook in ovb.yml and make conditional import
* Add validation playbook at the end of the ovb.yml playbook
* Make overcloud_validate playbook optional and enable by default for
  backward compatibility
* Make validation playbook option and disable by default
* Use the validations.yml playbook for standalone mutlinode

Change-Id: I98726c88b5bb299b8f1fe1d49fa7a3588e051ce0
2021-11-02 10:02:46 +01:00