Commit Graph

2935 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
mciecier 395003def5 Override docker_image_tag variable in container-prep role
docker_image_tag variable has to be overridden to point to
dlrn_hash_newest instead of dlrn_hash. This has to be done in
order to substitute tag in containers-prepare-parameter.yaml with newer
tag in downstream update job.

Depends-on: https://review.opendev.org/c/openstack/tripleo-ci/+/888933

Change-Id: If79b38bf427f75143582c1db7e524123fb311e81
2023-10-16 12:58:24 +02:00
Chandan Kumar 34cb52dfd2
Include whitebox-neutron-tempest-plugin under branchless project
Change-Id: Ifb2e0ec421a9213c4ec10fe652b1e1d95c563e1e
Signed-off-by: Chandan Kumar <chkumar@redhat.com>
2023-07-21 15:49:52 +05:30
frenzyfriday fb19dd085a Adds CinderLVMLoopDeviceSize option if it is defined to standalone config
Change-Id: Id32285e6674a5aee1a6fba3cbba300626d0b868e
2023-06-06 13:48:37 +00:00
Douglas Viroel 7c1510421a Replace awk with ansible regex_search on build-test-packages
Some jobs[1] are not working with current awk command to get
a substring from rdopkg output. This patch replaces with ansible
regex_search instead.
This patch also fix the 'host' value extract from zuul vars. The
previous value is invalid as host when cloning code with git module.
This git checkout isn't failing since the previous step, that copies
cloned code from zuul working dir is always executed with success.

[1] https://logserver.rdoproject.org/46/46046/26/check/periodic-tripleo-ci-build-containers-ubi-9-quay-push-wallaby/1cc4376/job-output.txt

Change-Id: I5efc6adf0c8039f6a618b3ae1e1e8184304465d1
2023-05-17 17:20:07 -03:00
Zuul eb563f316b Merge "Fix ceph deploy in standalone job" 2023-05-03 21:31:55 +00:00
katarimanoj e0a6bca4fb Fix ceph deploy in standalone job
This patch will pass only one of the mutually exclusive parameters
'--ntp-heat-env-file' or '--ntp-server' during ceph deploy

Closes-Bug: #2018384
Change-Id: I9c48806f8c0142100aeff79ddb8da0ce3b57cc03
2023-05-03 18:03:21 +05:30
Cédric Jeanneret bed8aa0115 Remove emulation enforcing
Lately this is making the Wallaby on CS9 line crumble. After some tests,
it seems, at least on CS9, we're able to get rid of this option - and
should, since it's crashing virt-customize.

Change-Id: I4e3cbe4507cbe7d1471f75cb41af99f84725b3ad
Closes-Bug: #2018356
Related-Bug: #1743749
2023-05-03 13:03:27 +02:00
Zuul 3f5f5fbf73 Merge "use ntp parameters during ceph deploy" 2023-05-03 02:19:48 +00:00
katarimanoj 6e9e2b81de use ntp parameters during ceph deploy
This patch uses new ntp parameters added by [1] to
tripleo-operator-ansible tripleo_ceph_deploy role.

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

Depends-On: Ic8f2b979d3888bda2d6ff8abd97fb39a2cfe66cf
Depends-On: Ic46154e88245e27d78bf646ef9bd008cb7cabb8c
Change-Id: Ia35d06e2ec693f31e8eadf03fdcc15744858a2a2
2023-04-26 18:57:29 +00:00
yatinkarel 6887104038 Fix neutron_bridge_mappings default for standalone
br-tenant is not created as part of standalone
deployments but bridge_mapping was refererring
it. This results into unnecessary Warning[1] in
ovn-controller logs, this patch fixes it.

[1] Bridge 'br-tenant' not found for network 'tenant'

Related-Bug: #1895822
Change-Id: I9b23d6842cd518971b325ffd29b51d171c353b4f
2023-03-28 14:07:14 +05:30
Sandeep Yadav c0d26337a2 Add var for distro in versions_url
`use_upstream_spec` is set to true in downstream case refer [1],
If we use upstream spec we should correctly set distro.

Removing hardcoded version 8 with this patch, as this is causing
issue in downstream:
~~~
404 Client Error: Not Found for url:
https://trunk.rdoproject.org/centos8-zed/current/versions.csv
~~~

[1] https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/873218/1/roles/build-test-packages/templates/projects.ini.j2#42

Depends-On: https://review.opendev.org/c/openstack/tripleo-quickstart/+/873213
Change-Id: I916d25e8b39e4106a21a503b946dc719675e29bc
2023-02-09 09:48:04 +05:30
Zuul ce0390d67a Merge "Add support for role specific container prep to undercloud-deploy" 2023-02-06 14:27:56 +00:00
Zuul 04448e9d1d Merge "standalone: Remove logic for unsupported old releases" 2023-02-04 19:50:53 +00: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 4f6efc3da9 Correct how the image is matched on the httpd index
Until now, the regexp was trying to match content from the link text,
not href. This may lead to issue depending on the remote httpd
configuration, since it may truncate the link text. Matching the link
href is therefore safer.

Change-Id: I264bad88b2f7bbc8f0b6cc295ca92498fe6e3d49
2023-01-26 17:24:56 +01:00
Zuul c13eb50898 Merge "Refactor EDPM job" 2023-01-13 11:22:46 +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
Amol Kahat 3354572e1e Remove trunk.registry from tripleo-quickstart-extras repo
trunk.registry.rdoproject.org going to decomission soon.
This patch will replace trunk.registry to
quay.rdoproject.org.

Signed-off-by: Amol Kahat <amolkahat@gmail.com>
Change-Id: I7eb7b8dac1c17ba0eaba8cac12861a18224fac30
2023-01-10 13:01:20 +05:30
Zuul 8c8d3d557a Merge "Skip centos.repo setup for C8" 2022-12-30 19:29:17 +00:00
Amol Kahat e1f0baaf0b
Skip centos.repo setup for C8
Centos.repo[1] already set for c9 in oooci-build-images
vars, in this patch we are doing same.

[1] https://opendev.org/openstack/tripleo-ci/src/branch/master/roles/oooci-build-images/vars/centos-9.yaml#L6

Signed-off-by: Amol Kahat <amolkahat@gmail.com>
Change-Id: I7fd57cf395a98094c1033083bc8c075b040d49a6
2022-12-30 19:04:30 +05:30
Chandan Kumar 85fcfd4eb2 Add modify_image_run_command var to modify-image role
In order to run specific command on the image, we need
to add support for --run-command to the modify image role.
It will be useful to run specific command instead of using
script.

This functionality will be consumed here:
https://review.opendev.org/c/openstack/tripleo-quickstart/+/868864

Related-Bug: #2000226

Signed-off-by: Chandan Kumar <chkumar@redhat.com>
Change-Id: I8575c712467db8fea403459d26731dd7070df131
2022-12-29 20:48:05 +05:30
Sandeep Yadav 6d25018227 Pass centos.repo from host during image build.
Image build in component jobs is pulling content from
centos.repo instead of quickstart repos, see [0]

This can cause mismatch of rpm when mirrors.centos.org and
local mirrors are not in sync.

The base image which we use to build overcloud images already have
centos.repo and when proxy mirros are not updated this can cause
an issue.

This is a workaround patch to pass centos.repo(which are disabled
on host) so that same repos in the image will be overridden.

One change in behavior is at the end of image build, dib will delete
the centos.repos in the overcloud image as dib cleans up what it adds
ignoring what was already present.

oooci-build-images already have same fix.

[0] https://logserver.rdoproject.org/openstack-component-baremetal/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-9-ovb-3ctlr_1comp-featureset001-baremetal-wallaby/1cd7430/logs/undercloud/home/zuul/build.log.txt.gz
~~~
2022-12-27 00:54:07.471 |  kernel                         x86_64  5.14.0-214.el9            baseos           2.8 M
~~~

[1] b2ce4b4c10

Related-Bug: #2000226
Change-Id: Iecf36eff8ef27fd2734f77b09180d0b4d8654c52
2022-12-27 17:24:36 +05:30
Chandan Kumar 95291ba130 Run container-prep role before installing standalone
In order to set correct container tag from dlrn md5 sum
in container-image-prepare file, we need to run
container-prep role before deploying standalone.

Otherwise tripleo-ci-testing tag[1] will be used in periodic
line and this tag does not exists on quay.rdoproject.org.
It will fail the standalone deployment with image not found.

This patch fixes the same and now tag is properly set in
container-image-prepare[2]. The same tag will be set
in deploy_compute.sh script.

[1]. https://logserver.rdoproject.org/18/46118/3/check/periodic-tripleo-ci-centos-9-standalone-external-compute-target-host-master/1355bd7/logs/undercloud/home/zuul/containers-prepare-parameters.yaml.txt.gz

[2]. https://logserver.rdoproject.org/18/46118/4/check/periodic-tripleo-ci-centos-9-standalone-external-compute-target-host-master/a572928/logs/undercloud/home/zuul/containers-prepare-parameters.yaml.txt.gz

Signed-off-by: Chandan Kumar <chkumar@redhat.com>
Change-Id: I6cdb21b46385017b2c56771e2cf45f340013de02
2022-12-20 14:50:22 +00:00
Zuul 31f8de248c Merge "undercloud: Remove logic for unsupported old releases" 2022-12-06 11:14:28 +00:00
Chandan Kumar (raukadah) a66b23e752 Added script to spin an instance on external compute
validate_edpm.sh.j2 adds the script to spin an instance
on external compute in order to validate the external
compute deployment.

Depends-On: https://review.opendev.org/c/openstack/tripleo-ansible/+/863935

Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Change-Id: I89a7897e6a4cbf83149302a0ea856b151623b9ba
2022-11-28 17:55:55 +05:30
Zuul 9f3411506b Merge "Do not use --debug for image build" 2022-11-18 11:43:13 +00:00
Takashi Kajinami c625becad1 Do not use --debug for image build
Since Ansible was bumped to 2.14, we've observed the container image
build process gets stuck in the middle of ansible tasks to generate
Docker/Buildah files, because of a bug[1] with ansible-runner.

This removes --debug option from the build command to avoid -vvv option
in the ansible command, to workaround the above bug.

[1] https://github.com/ansible/ansible-runner/issues/1164

Related-Bug: #1996612
Change-Id: I53c688077c65da03d8c3cf104862e02cefc2c615
2022-11-17 18:09:59 +09:00
Zuul 7c32145775 Merge "Modify IPA install and usage for multi-env" 2022-11-16 20:03:52 +00:00
Zuul a7f9b17f92 Merge "Added some train2wallaby needed parameters" 2022-11-16 20:03:50 +00:00
Takashi Kajinami 20848d87ca Omit --deployed-server in master
... because the option is deprecated in master[1] and has no effect.

Also, deployed-server-environment.yaml is not required when
the --deployed-server option is used since stable/wallaby[2].

[1] c6cd190a9f63738deafa4c616e0be8e06afedc96
[2] d6fba3f09f8de569b7fcf2bd9519c3112b1cc056

Change-Id: I4411a06026fc5bdf69061a643bc731e91c27640c
2022-11-10 12:50:19 +00:00
Juan Badia Payno 7eb28168a3 Added some train2wallaby needed parameters
On the FFU freom train to wallaby there are a couple of missings parameters
that are needed. Otherwise nova wont work.

This change uses:
https://review.opendev.org/c/openstack/tripleo-quickstart/+/829711

Change-Id: I687629530d1e342dd7f3c8e77334206101305503
2022-11-04 09:39:03 +01: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
Chandan Kumar (raukadah) 0b9620e17f Improvements to EDPM role
It contains following improvements to EDPM role.
- use tripleo_podman role to configure insecure registry to pull
  containers from content provider.
- Added timestamp in deploy_compute logs
- Use VIP as a controle_plane ip so that
  compute can communicate with controller.

Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Change-Id: I59cf9170c4f19ecb58b4b378d2b0accb699381fc
2022-10-26 20:43:05 +05:30
Takashi Kajinami bfb196945c standalone: Remove logic for unsupported old releases
This change removes logic for releases older than train, because these
releases are already EOLed. This covers only standalone roles and
playbooks.

Change-Id: I7b374d5bdb8411a2d773eb1c7ba0e4ded8f5cfbc
2022-10-25 17:16:43 +09: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
Alfredo Moralejo 32f33f3dac Revert "Pin rdopkg to 1.4.0"
This reverts commit 8226fa9a25.

Reason for revert: rdopkg-1.5.1 has been pushed to pypi where rpmlint is not longer a install mandatory requirement but only optional for rdopkg[lint].

Change-Id: I3f4a7f90295e30bf32fd8bd6196d5135e44c34c1
2022-10-19 15:34:41 +00:00
Chandan Kumar (raukadah) 8226fa9a25 Pin rdopkg to 1.4.0
Latest release of rdopkg (1.5.0) with
error: metadata-generation-failed and is blocking the whole
CI.

We are currently pinning rdopkg to older version till we fix
the rdopkg or install rdopkg from RPM.

Related-Bug: #1993343

Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Change-Id: I3382ead6eafe8a77b9b874ca7a22d4266851e3ac
2022-10-19 09:09:35 +05:30
Zuul 52fe7a9397 Merge "Stop using os_stack module" 2022-10-14 10:08:00 +00:00
Cédric Jeanneret 048667a14d docker_registry must use host network
This ensures we won't crash on netavark rules in the firewall,
especially since we're flushing everything when we load nftables
ruleset.

Closes-Bug: #1991868
Depends-On: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/860824
Change-Id: I727dd5598e95657f35ea8e4fe6d51516ee63272d
2022-10-10 14:13:33 +00:00
rabi e7fcfa1c0c Stop using os_stack module
This redirect does not work or won't work in the future.

Note: This adds ansible-core to test-requirements.txt,
we may need to add requirements.txt and ansible collections
in ansible-collections-requirements.yml in the future.

Change-Id: Iffb41b68283f77050d8073364156cc0aca85559e
2022-10-10 12:10:16 +05:30
mciecier db86a9352b Remove quotation marks from set statements in standalone_config template
Quotation marks should be removed in set statements from
standalone_config jinja template to make the template compatible with
all ansible versions. When quotation marks are used, variable does not
return its value, but is passed as regular string value.

Change-Id: Ia2d664c89a00f139454a4e7b6322eb3fd383e473
2022-10-06 14:01:14 +02:00