Update openstack overcloud config download to go through the API and use
the workflow added in the depends-on patch.
Change-Id: I65b45c00df65ec910b4fd620c475d4ee1d691e30
Closes-Bug: #1783646
Depends-On: Ic3d3667a7e2d0b445a4ace4d9aa8643062eb9cf3
Adds an argument to config-download that removes the config-dir and
contents before downloading the config, if it exists.
Related-Bug: 1752118
Depends-On: Ie00f71b12f56262985c47810be0e80402e9e558e
Depends-On: Ibb59b044dc0c14bf48dc3d500536195230414c81
Change-Id: I68a72e11dd66d8d5100512683633caa2174f9e6b
This change aim to refactor the way of doing the minor upgrade
via ansible playbook download by the config download
It will depend on a mistral change which will get the
ansible update_task and run it via mistral
The user will have two ways for performing the minor update:
- the stack update command which will make an automatic minor
upgrade (or just upgrade a given set of nodes)
- running it manually via ansible on the undercloud
Closes-Bug: #1715557
Closes-Bug: #1723108
Change-Id: I4fcd443d975894a1da0286b19506d00682c5768c
There was a comment about this in the code, we didn't handle
when lists properly, only strings.
Also fixed the test to avoid leaking temporary files every tox run.
Change-Id: I24f80199ba430870af2b4aab9453387304403215
Closes-Bug: #1715871
Currently the when conditionals in the upgrade tasks aren't evaluated
correctly and as a result the upgrade tasks are skipped. This change
converts the step variable in the when statement to an integer to get
it evaluated properly.
Related-Bug: 1708115
Change-Id: I4ee1a2729d74442570f1b1f38b0d03a95ea7793f
As part of the bug below, this can be used to make sure the
playbooks generated from the heat output can be iterated over
using the loop variable.
This adds a pre-processor for upgrade_tasks that adds a "when
step == N" condition based on the value of the tags. That is
"tags: step1" becomes "when: step == 1". When there is an
existing when statement the new step condition is appended.
Change-Id: Ief593dc758a2ffe33c1cbcbda9289393fcf023e4
Related-Bug: 1708115
This could contain sensitive configuration data so ensure we
set the file modes so they are only accessible to the user
Change-Id: I6a83efe61482f0c24f9a7d8e1035aeb25ce7f5cc
The current flat structure isn't that easy to navigate, and it'll
be a little easier to write e.g top-level wrapper playbooks which
include per-role tasks if we group the per role files using the
same per-role structure as the corresponding heat output.
Change-Id: I32a48134a0d0513dc7c89de69b909c78fa12031c
Add new overcloud cli command in order to dump
all the configs from the overcloud contains in role_data.
All different type of configs are dump in a separate file
per role ex:
ls config/tmpD2nDOd-config/
config_settings-Compute.yaml
global_config_settings-Compute.yaml
logging_sources-Compute.yaml
monitoring_subscriptions-Compute.yaml
service_config_settings-Compute.yaml
service_metadata_settings-Compute.yaml
service_names-Compute.yaml
step_config-Compute.yaml
upgrade_batch_tasks-Compute.yaml
upgrade_tasks-Compute.yaml
The upgrade_tasks is in yaml format and can be directly
call with ansible-playbook command, example:
$ cat config/tmpD2nDOd-config/upgrade_tasks-Compute.yaml
- hosts: Compute
name: Compute playbook
tasks:
- name: Stop snmp service
service: name=snmpd state=stopped
tags: step1
- name: Stop nova-compute service
service: name=openstack-nova-compute state=stopped
tags: step1
This patch to allow operators to run manually
the upgrade tasks via ansible on the Undercloud.
Change-Id: I7d89ffde8a19b30aaf59efb11e41d32cfa644b83
Closes-bug: #1665585