In commit[1] we removed the use of validate_playbook method,
but it was missed to remove the method definition, removing this
as its not used anywhere. Also, dropping PlaybookNotFound exception
as its not used anywhere else.
[1] https://review.opendev.org/c/openstack/python-tripleoclient/+/794017
Change-Id: Ia646351cfe60d328b809af56ed5a05ec74e46cd5
The patch [1] doesn't work and the validations execution logs are
located in /home/stack/validations by default instead of
/var/log/validations directory.
This patch fixes this issue by overriding correctly the
'validation_log_dir' default value for the run, show history and show
run sub commands.
[1] https://review.opendev.org/c/openstack/python-tripleoclient/+/794577
Related-bz: rhbz#2013575
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
Change-Id: Ic9de63514086d660cfbe87ef6539935366036941
Update converge is largely unnecessary now with
ephemeral Heat. There is no Heat stack to update,
so we are doing nothing more than executing a
standard deployment using Ansible. Removing
the requirement for update converge will simplify
the process and improve user experience by reducing
the time it takes to perform minor updates.
Depends-On: https://review.opendev.org/c/openstack/tripleo-upgrade/+/810134
Change-Id: I750a733b722353d1ea0c6f904bafc769d7ddb9ff
With Ephemeral Heat, we can no longer call
the Heat API while removing nodes, nor is it
necessary. This change removes all calls to
Heat and instead just executes the required
playbooks to perform the scale down actions.
Change-Id: Iba56d41d132275bd55e77290a6fca87b917de9e9
Based on discussions make '--baremtal-deployment' option
control wheater nodes, networks and virtual IPs are
provisioned and deprecate --skip-nodes-and-networks for
removal.
When '--baremetal-deployment' is used without an argument
the dynamic default in the working dir is used. When a
baremetal deployment file is passed as the argument the
file passed is placed in the working dir as the dynamic
default and then used for provisioning.
Change-Id: Idaab1f28c4d645279eff0c01b24435bf8571299b
Commit ecafbae4ee updated tripleo deploy
to use a different working directory. That broke upgrades because the
passwords file was still at the old path, and the passwords can not
change during a tripleo deploy upgrade. This patch checks the old
location for a passwords file, and if present, migrates it to the new
location.
Signed-off-by: James Slagle <jslagle@redhat.com>
Change-Id: I547ba1a7409290f4888e53dd45a883c263f0670f
We no longer need to handle this case and the logic doesn't work now
that packaging uses platform-python.
Change-Id: Ic506842240417142230e39755e7663b9276d4e34
Closes-Bug: #1945357
This validation is no longer helpful, and it prevents deploying for
multi-architecture x86/ppc64le environments.
Change-Id: Ibb71e5dabaf09e45f0d2671aa0dfa60944728a2f
Since policycoreutils-python package is not available on
EL9 and bindep package is used in tripleo-ci
container-build role.
Since the package is not available so it breaks the EL9
container build.
Making it exception for EL9 fixes the issue.
Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Change-Id: I5047980dc4f3a45316be047b4d7ba672297ab07b
ReaR can be configured to use PXE to boot the servers for restoration.
Currently, the default restoration process is using an iso image.
The purpose of this patch is to configure ReaR to PXE boot and use
Ironic to boot/recover the server automatically
Change-Id: I15774ed1988c2765b1e18c2b5db0ec6ea3e9a02c
Now that UpgradeConverge inherits from UpgradePrepare, overcloud
status is left as 'DEPLOYING' after it finishes. Let's set the
status to 'DEPLOY_SUCCESS'.
Note: With ephemeral heat (Wallaby and after) we would not need the
converge step as there is no stack/plan. This change would be
backported to stable/train.
Change-Id: I4329b21adbc4cd568c0a164d2778b79df700ae48
Change the constant OVERCLOUD_NETWORKS_FILE to point
to network_data_default.yaml in THT. (The new v2 default).
Add check, and prompt the user for confirmation in case
legacy networks definition is provided. The check and prompt
can be disabled with the '--allow-deprecated-network-data'
argument.
Also add the '--yes' in 'OvercloudDeploy' and remove it in the
Update nad Upgrade classes that will now inherit it.
blueprint network-data-v2
Depends-On: I618c0a0d99c934fb65a6af30bc76096d52d4679d
Depends-On: I759402fb22a9a3fd0fc06c8e107eee6eb5798c51
Change-Id: I2d14d9e587fce28ea0897bb235c9dedc8f68fa12
Currently, "openstack overcloud status" without debug
returns nothing if overcloud stack is not available.
~~~
$ openstack overcloud status
$
~~~
This was not the case in ussuri[0] and older branches,
Till ussuri :-
~~~
$ openstack overcloud status
No deployment was found for overcloud
~~~
With this patch, We are improvining the user experience
incase no overcloud deployment is found.
[0] https://opendev.org/openstack/python-tripleoclient/src/branch/stable/ussuri/tripleoclient/v1/overcloud_deploy.py#L1198-L1200
Closes-bug: #1943855
Change-Id: Ice40c5000fa3ef22cacdb4ddb0c32bda245245b0
With this patch adding a new argument `--heat-type`
in "overcloud delete" command that will default to `pod` (ephermal
heat) and based on input we will set a var `heat_stack_delete`
which will be passed to cli-overcloud-delete.yaml to decide whether
to run heat stack delete at all.
Depends-On: https://review.opendev.org/c/openstack/tripleo-ansible/+/808537
Closes-bug: #1938618
Change-Id: I74cdac5b96a10ec8baefdf3080fd34e03d8f1933
In patch[1], we have changed the default heat type to be ephermal
heat. We missed to change the help section.
To avoid confusion to users, Updating with this patch.
[1] https://review.opendev.org/c/openstack/python-tripleoclient/+/789930
Change-Id: Iae5ca17dbca64d5b0594138843c99d23797c331d
When using ephemeral Heat, the update run can no
longer rely on the Heat stack being present. Since
we create the stack and update the playbooks during
update prepare. We can simply execute the
update_steps_playbook.yaml now.
With this change, we also change the converge to just
execute the deploy_steps_playbook.yaml without doing
the entire stack update. The stack update is no longer
necessary with Ephemeral Heat.
Related: https://review.opendev.org/c/openstack/tripleo-upgrade/+/806565
Change-Id: I57d788639b651945ad765f810b504529e41f0fbd