Commit Graph

37 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
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
Rabi Mishra 150d5ae8c6 Revert "Add InternalTLSCAFile param when enabling overcloud ssl"
Added default in tripleo-heat-templates.

This reverts commit 271c82dbd7.

Depends-On: https://review.opendev.org/#/c/731386/
Change-Id: Icb0e3137bbfb388f18e4456355ca2ae8638534c6
2020-05-28 07:23:42 +00:00
Rabi Mishra 271c82dbd7 Add InternalTLSCAFile param when enabling overcloud ssl
This is used by the services and without setting this
paramter it would pick up the template default which
does not work.

Related-Bug :#1878540
Change-Id: Ia23e4336752bd639f357e036baad3aa0cf6cbf74
2020-05-15 09:01:42 +00:00
Zuul 2e001a3b11 Merge "lint: enabled whitespace fixes" 2020-01-11 21:29:34 +00:00
Sorin Sbarnea 01c3637a88 lint: bump flake8
- Use recommended flake8 setup in pre-commit
- Removes use of hacking as pre-commit provides the lock-in
- Bumps flake8 to latest stable
- Resolves two ignored rules

Change-Id: I98f382cd2b72345748e40106624c73039e0f0f2c
2020-01-10 13:44:42 +00:00
Sorin Sbarnea 16649df878 lint: bumping to latest versions
- run `pre-commit autoupdate` and fixed new issues
- adopted newer pre-commit config for ansible-lint 4.2.0+
- fixed some reported broken rules
- temporary disabled few rules, just to contain the size of of review,
  planning to drop/fix them in follow-ups.

Change-Id: I807ba4e919527be56c85ec72d0f4c7148f04e994
2020-01-05 19:36:36 +00:00
Sorin Sbarnea fce23f7646 lint: enabled whitespace fixes
Adds two checks that were used in order repos (liketq)but not on this
one.

Change-Id: I4ccaf3dc78777b4b661fa17382f2feef8eb0d03e
2020-01-05 14:07:37 +00:00
Sorin Sbarnea 1c6b947bf2 ansible-lint: removed skip of 206
- Fixes 206 errors and removed the skip.
- Also replaces revision with latest tag (pushed today)

Bug: https://bugs.launchpad.net/tripleo/+bug/1848512
Change-Id: I69d75ba9de8ab0e91eb45fd4f9febfdb28cdcb3a
2019-10-25 17:15:40 +01:00
Sagi Shnaidman 706b9f697c Fix OpenSSL installation
Make SSL python script to work with python3, and add become
to install packages.
Change-Id: I854a02ab76ee7f273d8f4592a3d3dfe1d7dcdf53
2019-08-05 08:50:12 +00:00
Luca Miccini dfe2ff668a Fixup overcloud-ssl templates gen for newton and ocata
Paths to inject-trust-anchor is not valid for newton and ocata.
This commit adds a check to account for the difference
between the old (tht/environments/inject-trust-anchor.yaml) and
new (tht/environments/ssl/inject-trust-anchor.yaml) paths.

Change-Id: Ifa985bdc0d87ef82f6d3fbaad0a23e8932c65322
2019-05-22 10:43:09 +02:00
Juan Antonio Osorio Robles 2f6d455dde Use environments/ssl directory for getting CA environment
Even if we changed to using that directory [1], we had missed this
environment.

[1] I53851edbb8bb562dc4194fb99d6ade259227d2f9

Change-Id: I5a905ec7499a6faa08cbcacfccb19a6e424e4a80
2019-01-18 11:56:19 +02:00
Zuul 6805c3f9f4 Merge "Prefer to use yaml safe_load instead load" 2019-01-11 06:37:06 +00:00
Sorin Sbarnea 72141b7fab Adopt yamllint strict linting
Upgrades yamllint to latest version and adots use of its strict
checking.

Fix all known problems reported by yamllint so we don't have to do
that while touching these files.

Change-Id: I4bdc520d9e2aff086c4b463718bc1e053261a4f5
Story: https://tree.taiga.io/project/tripleo-ci-board/task/381
2018-11-26 12:37:21 +00:00
Michele Baldessari 00ea9d5623 Fix TLS resource_registry key error
Via I1bfdb6d064f3b10b269dedafd36ca367139fe1df we moved to using
environments/ssl/enable-tls.yaml. The problem is that
the code in roles/overcloud-ssl/library/tls_tht.py assumes that
the parsed yaml file already has the 'resource_registry' key in the
dictionary.

That was true with environments/enable-tls.yaml but is not
true any longer for environments/ssl/enable-tls.yaml.

Since Iaf7386207e5bd8b336759f51e4405fe15114123a in rocky
NodeTLSData is not used anymore, so let's just skip the whole assignment
starting with rocky.

Closes-Bug: #1796626

Depends-On: Ibee6ba188585f80f0f7d136c81146096cb4432c2
Change-Id: I53851edbb8bb562dc4194fb99d6ade259227d2f9
2018-10-11 16:25:09 +00:00
Hervé Beraud 97fc73a256 Prefer to use yaml safe_load instead load
It is not safe to call yaml.load. yaml.load is as powerful
as pickle.load and so may call any Python function and introduce
a CVE.

Change-Id: I45bc62d890795656c6ed4d5fd1aff9c4cd094412
2018-10-10 18:29:04 +02:00
Zuul 156d14e573 Merge "Use TLS environment files from environments/ssl/" 2018-10-07 16:41:06 +00:00
Juan Antonio Osorio Robles bf7a2e22df Use TLS environment files from environments/ssl/
This has been the preferred location for a while, so lets use it
instead.

Closes-Bug: #1795452
Change-Id: I1bfdb6d064f3b10b269dedafd36ca367139fe1df
2018-10-02 12:07:57 +00:00
Bogdan Dobrelya e4621e8471 Fix used paths to match custom working dir
Stackrc is used to be referred via the working_dir path.
Fix the $HOME or /home/{{ undercloud_user }} paths, which only mathche
the default working dir of /home/stack.

Fix openssl commands to refer server-req.pem et al from the
working_dir instead of the current dir.

Additionally, when containerized undercloud, copy stackrc
created by the tripleoclient at the UC user $HOME to the working dir,
where it is expected by quickstart, if given a custom working dir.

Change-Id: Ic5834dbf66471802eb5a9319718d3ba02548236c
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2018-09-20 07:50:33 +00:00
Emilien Macchi 0256306ab8 Fix SSL certs creation for ipv6
In cases where TLS and IPv6 is enabled in the overcloud, quickstart
still passed an IPv4 value for PublicVirtualFixedIps. This fixes that.

Co-Author: Juan Antonio Osorio Robles <jaosorior@redhat.com>
Co-Author: Sagi Shnaidman <sshnaidm@redhat.com>
Change-Id: I09849c0915e7de7cf3b6de92457dfb5ff29f05ff
2017-12-01 19:19:12 +00:00
Juan Antonio Osorio Robles d923396ebb Make overcloud trust undercloud CA if undercloud has TLS
When the undercloud is enabled with TLS, the overcloud needs to trust
the CA, even if the overcloud is not using TLS.

The overcloud-ssl module already skips most of the process when
overcloud_ssl is false. So I removed the skipping of the overcloud-ssl
role from the playbooks in order for the CA injection template to be
generated.

Closes-Bug: #1731282
Depends-On: Ib88f6e4d561f9c8b5ba6215bbd9450a704b74eec
Change-Id: Iae6f1768018d37f898da1ad455475036896189c4
2017-11-13 08:33:42 +00:00
Juan Antonio Osorio Robles a49a69316e Make overcloud trust the undercloud's CA certificate
If the undercloud's local CA certificate exists, this sets the overcloud
to trust that certificate. Also, this takes into use the CAMap, which
allows one set several CA certificates for the overcloud to trust.

Change-Id: Ib76fc7bc06f710448226405af20ce18f8e6f3028
2017-08-24 11:11:07 +00:00
Jenkins f61436b4b2 Merge "Use subjectAltName in self-generated SSL certs" 2017-04-25 22:05:54 +00:00
Gael Chamoulaud c377337673 Fix unqualified Ansible boolean variables
When using boolean variables in conditional tests, those variables
should be filtered as '|bool'. Otherwise, they are being evaluated as
a string and return True in any case.

Change-Id: I1e3642cb2d33d839e4808ae79ae991175e32dd0f
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2017-04-05 16:25:53 +02:00
Sagi Shnaidman f791f5b3cd Add pipefail to each command that piped with timestamp
When pipe is added to command, it should still exit with its
result code, so save it by setting pipeline option before each
command.

Close-Bug: #1676156
Change-Id: Ibbe49b4a15a5b7825447a563fe35af85fd48b3ff
2017-03-26 19:49:32 +03:00
Jenkins c9453db00e Merge "Add timestamps to quickstart logs" 2017-03-25 05:47:08 +00:00
Christian Schwede 9ae44151f3 Use subjectAltName in self-generated SSL certs
This patch adds the subjectAltName to the overcloud SSL cert. According
to RFC 3280 [1] this is required, and in fact the Python requests
library issues a warning if it is missing.

[1] https://tools.ietf.org/html/rfc3280#section-4.2.1.7

Change-Id: If15602b3b366117b75a3665d3654139c7541211f
2017-03-24 13:00:26 +01:00
Attila Darazs 6a5db4f9c2 Add timestamps to quickstart logs
Prepend a timestamp with awk to our deployment and test commands. This
allows html linking from the log servers and also better correlation
with the system logs.

We are not using the "ts" command from the moreutils package to avoid
extra dependencies. The drawback is the lack of sub-second timinig.

It is possible to disable the timestamping by setting the
timestamper_cmd to an empty string.

Also add a README file for the extras-common role.

Closes-Bug: #1673046
Change-Id: I8a2a1e4fde2ba805d3361e2e7a2337e873133ef0
2017-03-20 14:52:03 +01:00
Lars Kellogg-Stedman 8977df65d3 derive overcloud_public_ip
derive a default value for overcloud_public_ip from
undercloud_external_network_cidr.  This allows the deployer to set a
single value (undercloud_external_network_cidr) and have all the
defaults adjust accordingly.

Change-Id: Ideaec0e4036785e3c2f3d2859c85df827e624ca1
2017-03-03 23:56:04 -05:00
Gael Chamoulaud 5533b8f7a1 Adds a Bashate target to tox.ini.
This will now run bashate on all shell scripts. We could ignore the
following list of bashate errors:

- E006: Line longer than 79 columns (as many scripts use jinja
        templating, this is very difficult)
- E040: Syntax error determined using `bash -n` (as many scripts
        use jinja templating, this will often fail and the syntax
        error will be discovered in execution anyway)

Change-Id: I6f6d454ac54a0ac98d8b8a092fa522cba092a592
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2017-02-07 12:23:45 +01:00
Gael Chamoulaud 619c512594 Fix and improve flake8 test.
Previously the 'flake8' command was running but didn't seem to
check out something in all cases.

- This patch decouples the 'ansible-lint' and the 'flake8' sections
  into separated 'testenv'.
- And this patch fixes all the 'flake8' issues.

Change-Id: I30169598d086515121175ca322882ee00f05b913
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2017-02-07 12:20:19 +01:00
John Trowbridge 3ae1e2e335 [overcloud-ssl] fix library to work with ocata
Change-Id: Iea069b0c80ffc51f9ef6d23842cefb2ac7dedfc1
2017-02-03 08:43:27 -05:00
Harry Rybacki ce7982192f Integrate undercloud_user var into oooq-extras
We need to differentiate local_working_dir from working_dir
as well as decouple the stack user from `ansible_user` var.
Both of these are causing issues as we begin to automate
deployments in more environments.

- Cleanup duplicate variables that are consumed via extras-common
  - Note: extras-common depends on the common role in OOOQ
- Cleanup redundant var and superfluous quotes from overcloud-scale
  role
- Cleanup redundant comments in <role>/defaults/main.yml

Closes-bug: 1654574
Change-Id: I9c7a3166ed1fc5042c11e420223134ea912b45c5
2017-01-18 09:32:16 -05:00
Wes Hayutin 19933e5f03 Ensure that each role in extras has a dependency on extras-common
As more ansible variables are shared or reused across roles it is
important to define these variables in a role that is always
executed.  In this case that role is extras-common.

Note: This review is a blocker for https://review.openstack.org/#/c/418998/

Change-Id: I31fd13d7bcb98d73e7f16048c57c027d95faeec5
2017-01-18 09:32:16 -05:00
Harry Rybacki 3fdbe98f24 Cleanup unused portions of roles
We have built up a lot of cruft over the months within our roles.
This review aims to clean up the unused sections. Now that we have
each role within a single repository, ensuring a clean house
is even more important than when they were separate.

Change-Id: Ibb34b376c516a09ba0f7fdb02580e8803497fc50
2017-01-09 09:21:37 -05:00
Gabriele Cerami 31f6bcaefa ssl: set IPv6 as certificate CN when necessary
Change-Id: I814f3fbd3eaf1311e8a0883a0d93a8cf9cadd992
2016-12-02 15:50:33 +01:00
Attila Darazs 500b49d77c Cleanup and move files for overcloud-ssl 2016-11-21 11:50:16 +01:00