Commit Graph

121 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
frenzyfriday fb19dd085a Adds CinderLVMLoopDeviceSize option if it is defined to standalone config
Change-Id: Id32285e6674a5aee1a6fba3cbba300626d0b868e
2023-06-06 13:48:37 +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
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
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
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
Cédric Jeanneret df2f5f4f5c Allow console stream for standalone
While the console is working, it's relying on the "established" state -
if, for any reason, the stream dies, it won't be able to restart
properly.

We already address this case for Undercloud and Overcloud in another
patch:
https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/857096

The standalone case was overlooked, since it was working just fine.

Change-Id: Idcaaed92e6cc6e5554f1c22d129d962e8daa7272
2022-09-23 08:12:44 +02:00
Zuul eb6c099fb5 Merge "Fix resolution of tripleo_ceph_deploy_container_namespace" 2022-09-13 09:50:31 +00:00
yatinkarel 0045172ee8 Fix resolution of tripleo_ceph_deploy_container_namespace
It was wrongly done in [2], this patch fixes it.

[1] https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/853652
Change-Id: If7aa4143e36a76085328833c772072130639a32c
2022-09-12 20:52:45 +05:30
bshewale bd216127ac Adding temporary workaround for libvirt-failures
This is workaround for downstream osp17-1 jobs, TripleO now defaults to
libvirt's  "modular daemons" after patch[1]. But this required libvirt > 7.4,
this is a temporary workaround to move back to monolithic modular libvirt daemon
till RHOSP17.1 to RHEL8 release.

[1] https://review.opendev.org/c/openstack/tripleo-heat-templates/+/814568

Related Bug:

[2]: https://bugzilla.redhat.com/show_bug.cgi?id=2021536
[3]: https://bugzilla.redhat.com/show_bug.cgi?id=2124500

Note: This patch fixes above bugs. Can't put testproject patch link
here.

Change-Id: I248f9c0128bc2d7a4c20a0b1efbf1f25604af77a
2022-09-12 09:43:44 +00:00
Francesco Pantano 8184ba300a
Update CEPH_NAMESPACE and rely on the "release" variable
Now that master is on Quincy but Wallaby is still on Pacific, we need to
make sure the container namespace is the right one. This patch removes
the hardcoded master container namespace and fetch it according to the
openstack branch.
Note that centos9 can be hardcoded because we test both releases on c9.

Change-Id: I7db138fd012e264e87009c524eee02448e793ddf
2022-08-18 15:05:54 +02:00
Ronelle Landy bb07f124fb Add option to specify the NovaHWMachineType
If the specified default machine type is not
supported on the currently deployed OS, this
patch adds the option to specify a parameter
to override the default.

Related Bug: BZ: 2110535

Change-Id: Id0f0bf0d9efb2136ae49b8475e80774dd0578230
2022-07-27 11:40:00 -04:00
Douglas Viroel df634354a6 Fixing condition for ceph custom parameters updates
By adding new ceph jobs that configure their own container
namespaces to run tests against different image tags, we started to
face some issues in standalone role, which has some conflicting
conditions on setting custom ceph parameters.
This patch tries to fix these conditions to make them easier to
use.

Change-Id: If108dc66f15333b7ba90fff980f320e06a21bbff
2022-07-19 09:30:02 -03:00
John Fulton 7482df1efe Remove initial v1 registry entries before installing Ceph
I982dedb53582fbd76391165c3ca72954c129b84a introduced a task
to update registries.conf to trust the docker_registry_host
with the Ceph container. The update is only made in v2 format.
The podman pull works on el9 but because el8's registries.conf
has v1 format sections by default the v1/v2 mix causes 1980869.

As described in Ic35155f04bf05913b9e9b8eaa22fe6c02515396c, which
adds v2 support, tripleo "nuke(s) the existing configuration" and
this patch adds a task to do the same. Why not just run the role
from the same change?

The tasks from Ic35155f04bf05913b9e9b8eaa22fe6c02515396c can be
run by the tripleo.operator role tripleo_ceph_deploy by passing
tripleo_ceph_deploy_skip_container_registry_config=false, but
this option is true in order to be compatible with the changes
in containers.yml which includes configuration for local mirrors.
This is a scenario unique to our tesing environment. It could be
refactored but this patch gets CI working on el8 (it had originally
only been tested on el9).

Change-Id: I077f1a317e43ba29da20e74955940b585c201502
Closes-Bug: #1980869
2022-07-06 16:00:46 -04:00
John Fulton a049c4d73f Test Deployed Ceph in Wallaby standalone 001/004/010
Deploy Ceph before the overcloud when testing Wallaby.
Follow up to I982dedb53582fbd76391165c3ca72954c129b84a

Change-Id: I8ec7d50ba2d5d9fab9343ca0a4707ddc09fc7797
2022-07-01 16:16:40 +00:00
John Fulton 0b586c6dce Override Ceph --container-namespace for periodic jobs
If the standalone job is periodic, use 'openstack overcloud
ceph deploy --container-namespace' to pull the container
directly from quay.rdoproject.org.

Standalone scenarios usually consume containers from a
content-provider but periodic jobs pull them directly
from quay.rdoproject.org. The periodic jobs then push
them to the undercloud as a container registry. Non-
periodic jobs do not push to the undercloud registry.

When I982dedb53582fbd76391165c3ca72954c129b84a merged,
periodic standalone jobs broke because the undercloud
container registry was not configured when 'openstack
overcloud ceph deploy' was run. Because the container
prepare file has a push_destination, deployed ceph
assumes the containers were prepared in advance so it
swaps out the container namespace as indicated by
push_destination directive. Though this still happens
we override it again with --container-namespace.

Change-Id: I1abfbbd23ca93c01393d05057806ba9cc846fbed
Closes-bug: #1978998
2022-06-24 01:38:45 +00:00
Ronelle Landy d200817542 Only deploy ceph before the overcloud in master
I982dedb53582fbd76391165c3ca72954c129b84a added
the ceph deploy task before the overcloud.
This action was also happening on stable branch
jobs in non-branched repos.

This review adds a condition to skip the task
for current branch_override jobs.

Depends-On: https://review.opendev.org/c/openstack/tripleo-common/+/846287
Closes-Bug: #1978956
Change-Id: If2c9fc02c62a0cf060a73938ca8f8b4101d8c640
2022-06-17 16:42:49 +00:00
John Fulton be8dccb745 Deploy Ceph before the Overcloud for standalone CI
Add new tasks file to the standalone role so that CI can
deploy Ceph before the Overcloud. Tasks file uses three
tripleo-operator-ansible roles which create a Ceph spec,
create the ceph-admin user, and deploy Ceph by calling
tripleo-client commands.

Additional tasks file storage-network.yml creates a
dummy interface for a separate storage network so that
Ceph has a network to bootstrap in before the control
plane network (192.168.24.0/24) is created by standalone
overcloud deployment. Same tasks file creates Heat inputs
so overcloud is deployed with network isolation in order
to use the storage network.

Contains a TODO item so that this scenario will also
be tested for W after supporting patches are backported.

Change-Id: I982dedb53582fbd76391165c3ca72954c129b84a
2022-06-02 17:20:24 -04:00
Douglas Viroel 78b7588516 Set ceph container variables if defined in job
This patch updates extra-commons to check if a ceph namespace, tag or
image was provided within jobs definition.

Change-Id: Ibae7b900cf027c6b610c55399aad3d56e8fdb512
Signed-off-by: Douglas Viroel <dviroel@redhat.com>
2022-03-22 20:28:32 -03:00
Sandeep Yadav 7756b775c0 Set dns_domain_name option for train/ussuri aswell
To be able to run properly dns_domain_name related tests
from the neutron_tempest_plugin.api.test_ports module,
Neutron has to have configured non default dns_domain_name option.

This patch set dns_domain_name option to "openstackgate.local"
which is the same value like configured in all of the Neutron CI
jobs by the Neutron Devstack plugin.

We have enabled this test in 16.2 by cherry-picking [2] and [3]
in downstream. Same test should not be triggered in train/ussuri
as tempest is pinned - So adding dns_domain_name should ideally
fix downstream(and add coverage) without affecting train/ussuri.

Couldn't find any reason in related-bug on why NeutronDnsDomain
cannot be added for train/ussuri version.

Related-Bug: #1950815

[1] https://bugzilla.redhat.com/show_bug.cgi?id=2053378
[2] https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/821079/
[3] https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/820456/

Change-Id: I3cd8d0bcc01021b27ca7dc3a3670e3fce60bf861
2022-02-11 16:25:05 +05:30
Zuul bb476f3649 Merge "Removing default NTP servers when not defined in job" 2022-01-17 21:48:19 +00:00
Ronelle Landy 158c4144b1 Removing default NTP servers when not defined in job
Commit I88b6570d5593e301fe60842bc1dceff22901e037
had some objections raised as to not override the
default NTPserver.

This patch removes the defaults and only specifies the
NTP server if it is defined in the job.

Change-Id: I51ede18650daad46048b672476696fe6ab075d84
2022-01-11 17:29:10 +00:00
Amol Kahat 37a64ea0ca
set NovaLibvirtNumPciePorts to 12
New qemu-kvm-6.1.0 version is buggy version and excluded in master
and wallaby (Ia6a9e01ca2adbde1e7a0b7cce9fe5842a0d54b1b,
Iac4425d655df2f519f5b467e3754dad08ac9b1f5).
New version was impacted q35 machines for CentOS-8 and Stream-9.

qemu-kvm-6.1.0 + NovaLibvirtNumPciePorts: 12 + q35 instances
for CentOS8 and Stream works fine.

Related-Bug: #1950916
Signed-off-by: Amol Kahat <amolkahat@gmail.com>
Change-Id: I39c00edd97e321963d1ced74dcf5a2a27fa032cc
2022-01-04 13:36:42 +05:30
Ronelle Landy 70dce41a11 Add NtpServer to standalone_config.yaml
NtpServer should be able to be defined in the
standalone config and allowed to be overridden
per environment via zuul parameters.

Change-Id: I88b6570d5593e301fe60842bc1dceff22901e037
Related-Bug: #1955508
2021-12-23 22:09:03 +00:00
Alex Schultz 86b0dd0841 Drop ipa custom ntp server
There are two issues with the current configuration.

  1) clock.redhat.com is not publicly accessible so we need an
     alternative.
  2) the line server setting is being configured as
     "['clock.redhat.com']"  which is not a valid server

It should be noted that this hackery of a CI environment file from THT
is not a good solution. This bit should get fixed so these values end up
in the standalone parameters rather than editing
THT/ci/environments/standalone-ipa.yaml.

Closes-Bug: #1955508

Change-Id: If2cbcab21b3a5a3826cf076205dd3222f5893078
2021-12-23 09:31:49 -07:00
Amol Kahat 9b68d39983
Set dns_domain_name option
To be able to run properly dns_domain_name related tests
from the neutron_tempest_plugin.api.test_ports module,
Neutron has to have configured non default dns_domain_name option.

This patch set dns_domain_name option to "openstackgate.local"
which is the same value like configured in all of the Neutron CI
jobs by the Neutron Devstack plugin.

Related-Bug: #1950815

Signed-off-by: Amol Kahat <amolkahat@gmail.com>
Change-Id: I5a0188524ee05053c708ceb5c564bb3ebcb614dc
2021-11-17 18:01:59 +05:30
Soniya Vyas f27951551e Adding temporary workaround for libvirt-failures
This is workaround for downstream osp17 jobs, TripleO now defaults to
libvirt's  "modular daemons" after patch[1]. But this required libvirt > 7.4,
this is a temporary workaround to move back to monolithic modular libvirt daemon
till we move RHOSP17 to RHEL9 which will provide libvirt > 7.4.

[1] https://review.opendev.org/c/openstack/tripleo-heat-templates/+/814568

Co-Authored-By: Sandeep Yadav <sandyada@redhat.com>
Signed-off-by: Soniya Vyas <svyas@redhat.com>
Change-Id: I32a87e966625e44f5bd32992271aad4ddb753a9d
2021-11-12 16:47:01 +05:30
yatinkarel 40451a3f30 Set DockerInsecureRegistryAddress consistantly
Set DockerInsecureRegistryAddress consistantly
across standalone deploy/upgrade and undercloud
deploy roles.

Also include following changes:-
- Use local_docker_registry_host in place of standalone_ip
as that's common for both undercloud and standalone deploys.
- Use quay.io instead of docker.io as a default registry due
to rate limits with docker.io.

Follow up of [1].

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

Change-Id: I4286e1d0867fc972517f8e27665f43777c2da52a
2021-11-02 17:10:19 +05:30
Sandeep Yadav 2a7adb2cdc [EL9] Set NovaLibvirtNumPciePorts to 12
Temporarily add a workaround for EL9 by setting
~~~
NovaLibvirtNumPciePorts: 12
~~~

It's basically a workaround for a bug [1] in qemu that is currently
being worked on.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=2006409

Related-Bug: #1947861
Change-Id: I42d67f9f4bdf05b5dafb7169c7e030b3e340e6c9
2021-10-26 19:29:56 +05:30
Sagi Shnaidman a171d82cc7 Save tripleo-deploy reproducer script
When running standalone save ansible reproducer script.

Depends-On: https://review.opendev.org/c/openstack/tripleo-operator-ansible/+/801293
Depends-On: https://review.opendev.org/c/openstack/tripleo-ci/+/801383
Change-Id: Icfe7bcf57a6a65f677e23167ce185fe81ea0e284
2021-07-25 20:00:31 +00:00
Zuul 942bfccf9f Merge "Don't use home directory as output directory" 2021-07-07 16:51:58 +00:00
Ronelle Landy da5514a356 Only add a comma before multiple update repos
When adding repos to update in standalone
and undercloud, only add a comma before the list
of additional repos if a previous update repos
exist.

Change-Id: Ic1568c99e16eecd607f063fe8a95fa8c4aa9ed2b
2021-06-01 12:20:05 +00:00
Zuul 0cac5254c2 Merge "Revert "Static OVN bridge mac mappings for standalone"" 2021-05-17 16:07:32 +00:00
Ronelle Landy 83ae5fdef3 Re-enable container-updates for downstream
Containers are not updated with component repos
in downstream tests.

Change-Id: I716ba3dab95a7aefff545d3be31bee7e18bb5769
2021-05-14 22:00:01 +00:00
Harald Jensås 903f1927dc Revert "Static OVN bridge mac mappings for standalone"
This reverts commit 7317b44130.

Reason for revert:
No longer required since change: I79d141358ead2a2c90fdb728e17926d96d498a28 we now do it in TripleO client.

Change-Id: I2b7f00b8c9b56ba38c271de90fadac3fdd85fcfe
2021-05-14 21:20:40 +00:00
yatinkarel 3cb264dcf7 Don't use home directory as output directory
TripleO deploy archives output directory, and since
we are using home directory as output directory, it
archives everything in home(like zuul cloned repos,
virtual envs, pip cache etc) making logs huge.

This patch changes output directory to <working_dir>/tripleo-deploy
which is already collected in logs[1] to ensure only
the required part is archived and collected.

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

Closes-Bug: #1927307
Change-Id: I62565c75e981ebfb38d5a3566f111a6c07f5b5b6
2021-05-06 11:06:51 +05:30
Zuul c8f232e671 Merge "Static OVN bridge mac mappings for standalone" 2021-05-05 01:19:09 +00:00
Lee Yarwood 8987b2b651 standalone: Remove custom NovaHWMachineType in role
This is no longer required as I808c033c34dfe1068ebe17dc72fdee5ef63613d8
has removed the default versioned machine types from NovaHWMachineType.

Change-Id: Ieb21fd8f3e895ea7611882f1e92f398efe2e77fa
Depends-On: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/785364
2021-04-08 10:52:37 +01:00
Marios Andreou c2b0910fe1 Remove all rocky related conditionals and tests after rocky End of Life
Rocky is now EOL since [1][2] so this removes all the rocky related tests
or conditionals.
Related reviews in topic branch tripleo-ci-reduce-rocky [3].

[1] https://review.opendev.org/c/openstack/releases/+/774244
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-March/020912.html
[3] https://review.opendev.org/q/topic:tripleo-ci-reduce-rocky

Change-Id: Icb999fa6c8278bd54c200c73963b5e364c94c23d
2021-03-29 11:54:27 +00:00
Harald Jensås 7317b44130 Static OVN bridge mac mappings for standalone
Set OVNStaticBridgeMacMappings for standalone deployments.
For context, see:
 change: I6ce29d2908e76044c55eb96d0d3779fe67ba9169
 change: I0bc9c180b6a6cb70d32005e9528cf1b16c861ea8

Change-Id: If8ab41e3d0acb15d10b6c27b360bc244d3e16c08
Related: blueprint network-data-v2-ports
2021-03-26 03:03:21 +01:00
wes hayutin 37109c55aa Revert "Upgrade linters (ansible-lint v5)"
This reverts commit ac93fbbb47.

Reason for revert: breaks default install path for quickstart

Change-Id: I7d513d1bffdfd4293f199c38216ceb00343e06c5
2021-03-12 17:50:42 +00:00
Sorin Sbarnea ac93fbbb47 Upgrade linters (ansible-lint v5)
Change-Id: I75562efd62fff9739d32f8b1b92e7826120e9d1a
2021-03-11 13:48:54 +00:00
Wes Hayutin c0278f637b Add native variable to locally build containers
atm there is an option to turn on local container
builds for standalone that is defined in zuul only.
ATM we are considering turning this on for all standalone
master jobs to reduce the load on docker.io

Change-Id: Iad71c1af41b2039591eccdb420c2a35b05ade4ac
2020-11-20 17:31:44 +05:30
Sagi Shnaidman e0e6afbe36 Run dstat on content-provider jobs
Change-Id: I1b28577748a759f061bdee4d3d9134258bf53852
2020-10-28 10:57:55 +02:00
Alex Schultz fa1bd4ad28 Standalone configure neutron bridge correctly
This change updates the default bridge mapping from datacentre:br-ex to
datacentre:br-ctlplane. We're doing this because in the standalone in
CI, we configure a br-ex before running the standalone (via
undercloud-setup) and want to attach our br-ctlplane to it. We then want
to ensure that we use br-ctlplane for the neutron access to the external
network to prevent weird routing issues when we have two bridges on the
same subnet.

Depends-On: https://review.opendev.org/#/c/757605/
Change-Id: I0e5aa3f58746dc0b92bd35ade7792f323b5647f7
Related-Bug: #1895822
2020-10-19 12:13:03 +00:00
Marios Andreou 8d535ec0f9 Wire up job.registry_ip_address_branch for content provider jobs
Wires up the content provider container registry address into
DockerInsecureRegistryAddress. Makes sure we are using the
_address_branch version in all other references to the
job.registry_ip_address var.

Needed by the upgrade jobs in https://review.opendev.org/753403
Change-Id: If9b516860ad3f102e39cb8755cd8aee6f9aae413
2020-10-15 13:11:35 +03:00
Zuul bacc9fd1e4 Merge "Don't use --standalone for V onward" 2020-09-30 11:35:29 +00:00
Chandan Kumar (raukadah) bc07a5dfc7 Fetch non tripleo containers in provider job and consume it
When provider_job is set to true, it will pull the container
images from quay.io and will push it to local
registry using non_tripleo_containers.yml.

When consumer_job is set to true in child job, then
custom_ceph_parameters will be setted to true and ceph containers
related namespace will be changed to local registry
to pull the ceph containers so that container built and pushed
to local registry in provider job, will be consumed here.

It also adds standalone job which depends on content provider
job and updates the ceph tag.

Setting +standalone_container_ceph_updates to false as with in
tasks it is setted default to false.

Moved local registry host and port to extra-commons role
to easily share between roles.

It also fix the non_tripleo_containers playbook to exclude kolla
containers for train release.

Note to self:
tripleo-standalone-scenarios-pipeline will be added later
once standalone-upgrade job is ported to centent provider.

Change-Id: Ie3f7bafe3b6ee8a7879ebb3d1d5b47b20181b452
Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Co-authored-by: Alex Schultz <aschultz@redhat.com>
2020-09-28 09:29:03 +05:30