1. Move minor upgrade content from the install guide to the upgrade guide 2. Revise the overview section to include minor upgrades 3. Restructure the upgrade guide for improved information flow 4. Add configure-keystone.rst to the old install guide that was accidently removed in https://review.openstack.org/#/c/328095/ Change-Id: I602ef4a4f95f5ff46ee9b9eaaaa6ccdfd637d1dc Implements: blueprint osa-install-guide-overhaul
3.1 KiB
Minor upgrades
Note
To avoid issues and simplify troubleshooting during an upgrade, first
disable the security hardening role by setting your variable
apply_security_hardening to False in the user_variables.yml file.
A minor upgrade typically requires the following steps:
Change directory into the repository clone root directory:
# cd /opt/openstack-ansibleEnsure your OpenStack-Ansible code is on the latest Newton release tag (14.x.x):
# git checkout stable/newton # LATEST_TAG=$(git describe --abbrev=0 --tags) # git checkout ${LATEST_TAG}Update all the dependent roles to the latest version:
# ./scripts/bootstrap-ansible.shChange into the playbooks directory:
# cd playbooksUpdate the hosts:
# openstack-ansible setup-hosts.ymlUpdate the infrastructure:
# openstack-ansible -e rabbitmq_upgrade=true \ setup-infrastructure.ymlUpdate all OpenStack services:
# openstack-ansible setup-openstack.yml
Note
Scope upgrades to specific OpenStack components by executing each of the component playbooks using groups.
For example:
Update only the Compute hosts:
# openstack-ansible os-nova-install.yml --limit nova_computeUpdate only a single Compute host:
Note
Skipping the
nova-keytag is necessary as the keys on all Compute hosts will not be gathered.# openstack-ansible os-nova-install.yml --limit <node-name> \ --skip-tags 'nova-key'
To see which hosts belong to which groups, the
inventory-manage.py script shows all groups and their
hosts. For example:
Change directory into the repository clone root directory:
# cd /opt/openstack-ansibleShow all groups and which hosts belong to them:
# ./scripts/inventory-manage.py -GShow all hosts and which groups they belong:
# ./scripts/inventory-manage.py -g
To see which hosts a playbook will execute against, and to see which tasks will execute.
Change directory into the repository clone playbooks directory:
# cd /opt/openstack-ansible/playbooksSee the hosts in the
nova_computegroup which a playbook executes against:# openstack-ansible os-nova-install.yml --limit nova_compute \ --list-hostsSee the tasks which will be executed on hosts in the
nova_computegroup:# openstack-ansible os-nova-install.yml --limit nova_compute \ --skip-tags 'nova-key' \ --list-tasks