This also moves some helper functions from tripleo-common
mistral action to utils.py. A subsequent patch would
cleanup the mistral actions in tripleo-common.
Closes-Bug: #1915780
Change-Id: I8cf4c983c8810a42bd703b097dc1cb8034798314
- '--init' flag was marked with WARNING indicating it will be
deprecated and replaced by '--setup-nfs' and '--setup-rear'.
Now it receives arguments: 'rear' and 'nfs'. Defaults to: rear,
so it doesn't break interface.
- '--setup-nfs' flag added which installs and configure NFS
on the 'BackupNode' host.
- '--setup-rear' flag added which installs and configure ReaR
on the 'Undercloud' or the 'Controller' nodes.
- '--extra-vars' was enabled to pass variables to the playbooks
by specifying JSON/YAML string or full path of the file.
- Now 'tags' parameter is used internally to specify which
tasks to run.
- '--storage-ip' flag on overcloud backup command was marked with
WARNING indicating it will be deprecated in favor of '--extra-vars'
which allows to pass this and more properties.
Thought, it has precedence over '--extra-vars'. If used it will replace
the '--extra-vars' property 'tripleo_backup_and_restore_nfs_server'.
Bugzilla: #1824806
Change-Id: I31f2a554b03677fe29bd1186dee5d278b6d0554b
We need to use default image parameters as we create all
service chains irrespective of role count. We don't seem
to use the default resource registry that would have
service mappings OS::Heat::None that should be used for
filtering.
Closes-Bug: #1914396
Change-Id: Ie3fcb2ab509e73d4631e3ef4c9d6ecfad9894112
This changes to use the stack environment instead for
passwords when using ``overcloud export`` or
``overcloud cell export``.
Change-Id: Iae58a6415cc12e2035e0d3b62327e59e038d1b2c
As we now manage the stack without the plan, lets
remove create/update of plan from deployment.
We'll remove the plan management commands in a
later patch.
Depends-On: https://review.opendev.org/c/openstack/tripleo-common/+/770884
Change-Id: I634a76ea262a9bbc653fc2caec5db3c5461be057
This changes to update the stack without using
the plan and also enables server side env merging
as we don't use the plan-environment.
Also makes changes to call derive params playbooks
without plan.
Depends-On: https://review.opendev.org/c/openstack/tripleo-ansible/+/772197
Change-Id: I8caad3e9185f1c6d23b0941b966192957ca8320b
This changes to use the stack environment instead
of swift plan for overcloudrc generation. Also simplifies
it by making a direct tripleo-common api call.
Change-Id: Id0458bfdf1b819fe783e721741cd56c89b03ecd1
The need of disabling validations when deploying an OC over pre-deployed
nodes is no longer a thing. Let's drop this requirement from now on and
get a validated deploy!
Change-Id: Ic8f1b9aa61327c246ac062243b7b17844998698a
The client utils will now run a new playbook to ensure that the local
archive directory is created early in the deployment process. This
change will allow us to build toward a swift-less deployment. All of
the client calls, save one, has been moved to use tripleo-common which
will assist us to better manage, and migrate from swift storage to a
local archive.
> As a product of this change all of the "webhook" calls have been
removed. which was deprecated as part of the Zaqar and Mistral work.
These calls were removed because several swift calls were tied into
them, and because mistral is no longer part of the stack, and has
been gone for a few cycles, we can safely remove these calls which
do nothing.
Depends-On: Ibe9b2ffe94cdf493fc84366979d1d78b8528ea1b
Change-Id: I7531612a49527f8a21df415c648acb41ac7a0b10
Signed-off-by: Kevin Carter <kecarter@redhat.com>
Do not add extra host entries for VIPs for stacks deployed off the
exported data, since it already contains those entries
This is done by setting AddVipsToEtcHosts to False.
Then a stack is deployed, no more VIPs will be added into /etc/hosts
of the targeted hosts.
Change-Id: Iba03aed76fab1977e2b51ef69e8e08a493152ed6
Closes-bug: #1911792
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
This patch remove tripleo validator from tripleoclient to
tripleo-validations repository.
The change is related to the effort to make the validation
act as a plugin/component on top of tripleo and not being
part of the core of tripleo.
Change-Id: I1e08eb07ce1f0d138f9c5101b9fe770c5da9b3f9
We can set the heat parameters in the client itslef and there
would be no need to update plan environment and can get rid of
the ansible tasks for those.
Same applies for RootStackName.
Also, removes multiple redundant calls to _update_parameters()
Change-Id: I54762eb6881113c67744207f53fd92cf003e0559
The `-e` and `--templates ` switches have been deprecated for a while, at least
since newton, it's time to remove them because it causes confusion to
operators.
Related: https://bugzilla.redhat.com/show_bug.cgi?id=1909347
Change-Id: I4000638be5ec5e95b36e38f1a93ceb5cf2851905
... because these options were supposed to be removed from the deploy
command during Ussuri release[1].
[1] 200d20a71c
Change-Id: I01cd598f090568283d1684e9f5a4d741d14ef4a0
- Replace logging with logging from oslo_log
In order to have timestamps as well as other features this patch
replaces python logging to extended logging from oslo_log. This allows
to produce timestamps in output messages
- Replace some prints with log.info to have timing information in logs
Change-Id: I3569272795a52bb25f3de502fdfd5006ff6b8be1
Related-Bug: #1890389
In [1] we added protection for yum not being available.
We should just default to dnf for anything newer than
ussuri.
[1] 9c53cb3ef5
Change-Id: I5056579ae117c46944f20868c5cd1edfc1b86036
Users may want to skip the container prepare process to ensure they
don't update their containers. This change adds a
--disable-container-prepare flag to the following actions which should
skip the preparation actions.
- overcloud deploy (and updates)
- overcloud plan actions
- undercloud deploy (and upgrades)
- tripleo deploy (and standalone deploy)
Closes-Bug: #1896757
Depends-On: https://review.opendev.org/#/c/737522/
Change-Id: I30b448930f53aef108d9bdb544a6d02b18658b0d
As an alternative to switching this process to ansible, we can handle
the installation of the required packages for the overcloud image
building process in the command itself. This change adds an install for
tripleo-common and the image element packages required to build the
overcloud images as part of the `openstack overcloud image build`
command itself.
Change-Id: I32eb04c81cba0f9688ddf6e40874790f033e84e8
As we've moved to a new way of generating nic configs
with only ansible, this would ensure that we check
if there is any custom heat nic config mapping and
only allow if user sets the 'NetworkConfigWithAnsible'
parameter as false.
Depends-On: https://review.opendev.org/758333
Change-Id: Ief2e6bb41687233d226ab5cb186fc6dbae191ce2