RETIRED, python utility to manage a tripleo based cloud
Go to file
Emilien Macchi a29f42a531 [ussuri] squash for overcloud_deploy raise changes
This squash allows to backport a feature without a regression that was
introduced. It has 2 commits:

1) overcloud_deploy: raise at the end if Ansible Runner had exception

In the context of MaxFailPercentage, if a node (e.g. one of 100
computes) has any fatal error during an Ansible play and we tolerate
some percentage of failure; we want to raise the error but at the very
end of the deployment.

So this patch puts the following actions in a "finally" block so they
always execute:

* Create overcloudrc
* Sets the right permissions to the clouds.yaml
* Execute _deploy_postconfig
* Print infos like Keystone entpoint, Horizon URL, RC file location
  and deploy message (saying if there is an error or not)

And at the very end we raise the actual AnsibleRunner trace if the
deployment failed.

So even if a node failed and we tolerate it, we'll still finish the
deployment until the end, but for UX purpose we want to raise it at the
very end.
Note that when it fails and it's tolerated, Ansible prints the node as
"ignored":

PLAY RECAP ******************************************************************
compute-0    : ok=555  (...)  failed=0    skipped=484  rescued=0    ignored=0
compute-1    : ok=60   (...)  failed=1    skipped=40   rescued=0    ignored=1
controller-0 : ok=960  (...)  failed=0    skipped=709  rescued=0    ignored=0
controller-1 : ok=920  (...)  failed=0    skipped=693  rescued=0    ignored=0
controller-2 : ok=919  (...)  failed=0    skipped=693  rescued=0    ignored=0
undercloud   : ok=86   (...)  failed=0    skipped=57   rescued=0    ignored=0

To improve UX, we'll investigate an Ansible callback to properly tell
what nodes needs to be re-deployed.

Note: also mock copy_clouds_yaml since it wasn't tested before but it's
failing to reach the files on the filesystem.
Change-Id: I7d733499e74abe2cdf91526df608dc7c273bf19e

(cherry picked from commit 5b63958105)

2) Don't run config-download for --stack-only

We now seem to run config-download irrespective of the
--stack-only flag. This moves the config-download
related code within the if block.

Change-Id: I0185cb54ac32e1ac8558d22ba4c735a02e80a470
Closes-Bug: #1887811
(cherry picked from commit 5805ee4dbe)
2020-07-20 09:30:50 -04:00
config-generator Add minion installation 2019-06-21 07:44:21 -06:00
doc Cleanup py27 support 2020-04-04 17:19:56 +02:00
releasenotes Add "yes" prompt for update/upgrades commands 2020-07-17 15:26:56 +00:00
tripleoclient [ussuri] squash for overcloud_deploy raise changes 2020-07-20 09:30:50 -04:00
zuul.d Run tripleo-build-containers-ubi-8 under specific conditions 2020-07-07 19:08:54 +00:00
.coveragerc Update .coveragerc after the removal of respective directory 2016-10-18 17:37:29 +05:30
.gitignore Add minion installation 2019-06-21 07:44:21 -06:00
.gitreview make default brach ussuri in ussuri .gitreview 2020-05-26 12:14:55 +00:00
.mailmap Initial commit 2015-03-17 09:33:52 -04:00
.stestr.conf Switch to stestr 2019-01-04 17:31:21 +00:00
CONTRIBUTING.rst PDF documentation build 2019-09-11 16:33:21 +02:00
LICENSE Initial commit 2015-03-17 09:33:52 -04:00
README.rst PDF documentation build 2019-09-11 16:33:21 +02:00
babel.cfg Initial commit 2015-03-17 09:33:52 -04:00
bindep.txt Add openstack tripleo container image build 2020-07-06 12:54:32 +00:00
lower-constraints.txt Bump tripleo-common 2020-07-06 12:53:10 +00:00
requirements.txt Bump tripleo-common 2020-07-06 12:53:10 +00:00
setup.cfg Remove ffwd-upgrade commands from tripleoclient. 2020-07-13 09:37:55 +00:00
setup.py Cleanup py27 support 2020-04-04 17:19:56 +02:00
test-requirements.txt Bump hacking min version to 3.0.1 2020-05-19 10:16:23 +05:30
tox.ini Update TOX_CONSTRAINTS_FILE for stable/ussuri 2020-07-03 02:30:27 +00:00

README.rst

About tripleoclient

General information

tripleoclient is an OpenStackClient (OSC) plugin implementation that implements commands useful for TripleO and the install and management of both an undercloud and an overcloud.

See the TripleO Documentation for details on using tripleoclient.

See the Release Notes

Team and repository tags

image