Change package installs for Stein and OS upgrade

After upgrading to a new OS we might not have all the necessary
packages, so install them. The list was taken from deployed-server
preparation script. Also change the UpgradeInitCommonCommand for
Stein. e.g. we no longer require Ansible and Ansible-Pacemaker on the
overcloud, as Ansible is now being executed from undercloud only.

Change-Id: I7381423b9834d6ebe6e29a07fb3996ca79398187
Closes-Bug: #1830882
This commit is contained in:
Jiri Stransky 2019-05-29 10:05:40 +00:00
parent fda0f4284b
commit 7b3d8f786e
2 changed files with 14 additions and 12 deletions

View File

@ -149,13 +149,20 @@ outputs:
- ''
- - "#!/bin/bash\n\n"
- {get_param: UpgradeInitCommonCommand}
- name: Check yum for rpm-python present
package: "name=rpm-python state=present"
register: rpm_python_check
- name: Fail when rpm-python wasn't present
fail: msg="rpm-python package was not present before this run! Check environment before re-running"
when:
- rpm_python_check.changed != false
- name: Ensure TripleO prerequisite packages are installed
package:
name:
- jq
- lvm2
- net-snmp
- openstack-selinux
- os-net-config
- pacemaker
- pcs
- puppet-tripleo
- python3-heat-agent*
state: present
when: ansible_distribution_major_version == '8'
# With the layered product packaging, the key package is rhosp-openvswitch. It depends on
# a openvswitch package that includes the version as part of the name (e.g openvswitch2.10).
# This requires some additional special handling:

View File

@ -12,8 +12,3 @@ parameter_defaults:
UpgradeInitCommonCommand: |
#!/bin/bash
set -eu
yum install -y python-heat-agent-*
yum update -y ansible
yum install -y ansible-pacemaker
# Remove the element os-net-config config.json https://bugs.launchpad.net/tripleo/+bug/1758161/
rm /usr/libexec/os-apply-config/templates/etc/os-net-config/config.json || true