RETIRED, A set of tools for Upgrading a TripleO environment
Go to file
Alex Schultz 87bca89c73 Setup tox
Setup tox with pep8, linters and reno jobs so that CI passes for the
tripleo-upgrades repo.

Change-Id: I2cd200eb77501717211c0db3f52c96c2c7b22663
2017-12-06 14:02:27 -07:00
ci-scripts Setup tox 2017-12-06 14:02:27 -07:00
defaults Add option for upgrade workarounds and upstream-container-images 2017-07-26 17:27:33 +02:00
files RHOP 11 to 12 upgrade 2017-06-12 13:33:21 +02:00
handlers Add empty role structure 2017-05-31 16:28:55 +02:00
infrared_plugin Add option for upgrade workarounds and upstream-container-images 2017-07-26 17:27:33 +02:00
meta Add empty role structure 2017-05-31 16:28:55 +02:00
releasenotes Setup tox 2017-12-06 14:02:27 -07:00
tasks Merge "Add option for upgrade workarounds and upstream-container-images" 2017-07-28 04:07:04 -04:00
templates Setup tox 2017-12-06 14:02:27 -07:00
tests RHOP 11 to 12 upgrade 2017-06-12 13:33:21 +02:00
vars Move variables from vars to default 2017-06-23 10:35:52 +02:00
.gitignore Setup tox 2017-12-06 14:02:27 -07:00
.gitreview Add gitreview config 2017-05-31 16:25:03 +02:00
LICENSE Initial commit 2017-05-31 15:43:01 +02:00
README.md Add option for upgrade workarounds and upstream-container-images 2017-07-26 17:27:33 +02:00
ansible-requirements.txt Setup tox 2017-12-06 14:02:27 -07:00
ansible.cfg Add setuptools config files 2017-06-23 10:55:30 +02:00
requirements.txt Add setuptools config files 2017-06-23 10:55:30 +02:00
setup.cfg Add setuptools config files 2017-06-23 10:55:30 +02:00
setup.py Add setuptools config files 2017-06-23 10:55:30 +02:00
test-requirements.txt Setup tox 2017-12-06 14:02:27 -07:00
tox.ini Setup tox 2017-12-06 14:02:27 -07:00

README.md

tripleo-upgrade

This role aims to provide a unified tool for upgrading TripleO based deploments.

Requirements

This role requires:

  • An ansible inventory file containing reacheable undercloud and overcloud nodes

  • Nodes in the inventory file are placed in groups based on their roles (e.g compute nodes are part of the 'compute' group)

  • Repositories containing packages to be upgraded are already installed on undercloud and overcloud nodes

  • The initial overcloud deploy command is placed in a script file located in the path set by the overcloud_deploy_script var. Each option/environment file should be placed on a separate new line, e.g:

    source ~/stackrc export THT=/usr/share/openstack-tripleo-heat-templates/

    openstack overcloud deploy --templates $THT
    -r ~/openstack_deployment/roles/roles_data.yaml
    -e $THT/environments/network-isolation.yaml
    -e $THT/environments/network-management.yaml
    -e $THT/environments/storage-environment.yaml
    -e ~/openstack_deployment/environments/nodes.yaml
    -e ~/openstack_deployment/environments/network-environment.yaml
    -e ~/openstack_deployment/environments/disk-layout.yaml
    -e ~/openstack_deployment/environments/neutron-settings.yaml
    --log-file overcloud_deployment.log &> overcloud_install.log

Role Variables

Available variables are listed below:

overcloud_deploy_script: "~/overcloud_deploy.sh"

Location of the initial overcloud deploy script.

undercloud_upgrade_script: "~/undercloud_upgrade.sh"

Location of the undercloud upgrade script which is going to be generated by this role.

overcloud_composable_upgrade_script: "~/composable_docker_upgrade.sh"

Location of the upgrade script used in the composable docker upgrade step which is going to be generated by this role.

overcloud_converge_upgrade_script: "~/converge_docker_upgrade.sh"

Location of the upgrade script used in the converge docker upgrade step which is going to be generated by this role.

undercloud_rc: "~/stackrc"

Location of the undercloud credentials file.

overcloud_rc: "~/overcloudrc"

Location of the overcloud credentials file.

upgrade_workarounds: false

Allows the user to apply known issues workarounds during the upgrade process. The list of patches/commands used for workarounds should be passed via --extra-vars and it should include dictionaries for undercloud/overcloud workarounds.

Dependencies

None.

Example Playbook

An example playbook is provided in tests/test.yml:

- hosts: all
  gather_facts: true

- hosts: undercloud
  gather_facts: false
  become: yes
  become_method: sudo
  become_user: stack
  roles:
    - tripleo-upgrade

License

BSD

Author Information

An optional section for the role authors to include contact information, or a website (HTML is not allowed).