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
Ansible runner does not seralize nested dicts correctly and
also raises argument list too long error.
Change-Id: I758b5d51d4fa3ea921e032b51f06d2486f137a45
Closes-Bug: #1914369
This adds the user provided environment files to the archive
which would help in reproducing the deployment with the
archive and the deploy command.
Change-Id: Id5607234b47314d5db36d7caaaeeed19f7d39bd6
This changes to use the stack environment instead for
passwords when using ``overcloud export`` or
``overcloud cell export``.
Change-Id: Iae58a6415cc12e2035e0d3b62327e59e038d1b2c
The undercloud currently defines the auth token life time in the
undercloud.yaml environment in tripleo-heat-templates. At certain scale,
it makes sense to increase this so we should make it a top level
configuration item.
Change-Id: Ibf917826a2d6b2662215c58c9dd8ec8007e57881
The reproducer command, ansible-playbook-command.sh, should not be
written to playbook_dir, as that directory may not always be writeable.
It is in fact commonly set to /usr/share/ansible/tripleo-playbooks,
which is not writeable by a non-privileged user.
Instead, write the command to workdir, which is either the
config-download directory, or the directory setup for use by ansible
runner.
Change-Id: I4ac0c2aaf8b6a8f4a9b5e5f40fa68929be32ee38
Signed-off-by: James Slagle <jslagle@redhat.com>
$@ should be quoted within the generated ansible-playbook-command.sh
shell script, so that if any of the additional args contain quotes
themselves they will be handled appropriately.
Change-Id: I2ab141d676088042260c6456b59f22b2ba474e68
Signed-off-by: James Slagle <jslagle@redhat.com>
When loading user parameters the stack-vstate-dropin.yaml
is not yet available. It was ignored for the undercloud
case already, but not for the minion. This caused the
minion install to fail.
This changes it to ignore any file ending with
'-stack-vstate-dropin.yaml' to cover both undercloud and
minion cases.
Closes-Bug: #1913209
Change-Id: I464db87f8b2fa8c03ae9adea775c4567d44cd1e5
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