tripleo-operator-ansible/roles/tripleo_undercloud_upgrade
Harald Jensås 570c886faa Bump molecule[test] to 3.5.x
CI is failing with conflictiong dependencies:

The conflict is caused by:
    molecule[test] 3.2.4 depends on pluggy<1.0 and >=0.7.1
    molecule[test] 3.2.3 depends on pluggy<1.0 and >=0.7.1
    molecule[test] 3.2.2 depends on pluggy<1.0 and >=0.7.1
    molecule[test] 3.2.1 depends on pluggy<1.0 and >=0.7.1
    molecule[test] 3.2.0 depends on pluggy<1.0 and >=0.7.1
    molecule[test] 3.2.0a2 depends on pluggy<1.0 and >=0.7.1
    molecule[test] 3.2.0a1 depends on pluggy<1.0 and >=0.7.1
    The user requested (constraint) pluggy===1.0.0

Let's try to use molecule[test] 3.5.x

Also set 'role_name' and 'namespace' in meta/main.yaml for
all roles. Namespace cannot container uppercase characters,
so computing fully qualified role name using author 'OpenStack'
does not work.

Also - fix tests in tripleo_overcloud_node_discover

Closes-Bug: #1943269
Change-Id: I1ab9764dd4d24c17c5ee2cb1f26fbc3c4b27d3d7
2021-09-23 15:33:06 +02:00
..
defaults Revert "New parameters in order to set how we want to redirect logs" 2020-07-13 15:34:30 +00:00
meta Bump molecule[test] to 3.5.x 2021-09-23 15:33:06 +02:00
molecule/default Bump molecule version 2020-02-06 17:25:26 -07:00
tasks Revert "New parameters in order to set how we want to redirect logs" 2020-07-13 15:34:30 +00:00
tests Rename roles to use underscore 2020-01-21 10:12:00 -07:00
README.md trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00

README.md

tripleo_undercloud_upgrade

A role to run the upgrade of a TripleO undercloud.

Requirements

None.

Role Variables

  • tripleo_undercloud_upgrade_debug: (Boolean) Flag used to enable the debug version of commands. Default: false
  • tripleo_undercloud_upgrade_generate_scripts: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of tripleo_generate_scripts or False if tripleo_generate_scripts is not defined.
  • tripleo_undercloud_upgrade_generate_scripts_only: (Boolean) Do not run the actual command - to be used in conjunction with tripleo_undercloud_upgrade_generate_scripts. By default uses the value of tripleo_generate_scripts_only or False if tripleo_generate_scripts_only is not defined.
  • tripleo_undercloud_upgrade_dry_run: (Boolean) Flag to add --dry-run to the upgrade command. Default: false
  • tripleo_undercloud_upgrade_force_stack_update: (Boolean) Flag to add --force-stack-update to the upgrade command. Default: false
  • tripleo_undercloud_upgrade_home_dir: (String) Home directory for the undercloud user. Default: "{{ ansible_env.HOME }}"
  • tripleo_undercloud_upgrade_inflight_validations: (Boolean) Flag to add --inflight-validations to the upgrade. Default: false
  • tripleo_undercloud_upgrade_log_combine: (Boolean) Flag to combine stdout and stderr in the logfile. Default: true
  • tripleo_undercloud_upgrade_log_output: (Boolean) Flag to log the output to a file rather than show it in the ansible output. Default: true
  • tripleo_undercloud_upgrade_no_validations: (Boolean) Flag to add --no-validations to the upgrade. Default: false
  • tripleo_undercloud_upgrade_poll: (Integer) Number of seconds to wait between checks to see if the upgrade command has completed. This should be set to a value greater or equal to 1. Default: 10
  • tripleo_undercloud_upgrade_timeout: (Integer) Timeout for the upgrade command. Default: 7200
  • tripleo_undercloud_upgrade_yes: (Boolean) Flag to add --yes to the upgrade. Default: false
  • tripleo_undercloud_upgrade_log: (String) Upgrade log file path. Default: "{{ tripleo_undercloud_upgrade_home_dir }}/undercloud_upgrade.log"

Output Variables

  • tripleo_undercloud_upgrade_result: Ansible shell execution results

Dependencies

None.

Example Playbook

Example upgrade execution playbook

- hosts: undercloud
  gather_facts: true
  tasks:
    - name: Upgrade undercloud
      import_role:
        name: tripleo_undercloud_upgrade
      vars:
        tripleo_undercloud_upgrade_debug: true

License

Apache-2.0