Don't fail tripleo-bootstrap on package installs

This changes the package install task to not fail if there is a problem
installing the bootstrap packages. This is inline with existing
expectations that we don't require a working package manager with
enabled repos on initial images.

A followup task is added which will cause an error if any of the
required bootstrap packages are not already installed.

This patch also fixes the image yaml files that were not using the
parent package openstack-heat-agents which uncovered this issue.

Change-Id: I5df6193a0d72e8b52a2d95e1827173fc74885d37
Closes-Bug: #1792994
This commit is contained in:
James Slagle 2018-09-17 13:51:31 -04:00
parent 1e13e461cd
commit 108942079b
5 changed files with 18 additions and 18 deletions

View File

@ -32,12 +32,7 @@ disk_images:
- plotnetcfg
- sos
- device-mapper-multipath
- python-heat-agent-puppet
- python-heat-agent-hiera
- python-heat-agent-apply-config
- python-heat-agent-ansible
- python-heat-agent-docker-cmd
- python-heat-agent-json-file
- openstack-heat-agents
- screen
- os-net-config
- jq

View File

@ -32,12 +32,7 @@ disk_images:
- plotnetcfg
- sos
- device-mapper-multipath
- python-heat-agent-puppet
- python-heat-agent-hiera
- python-heat-agent-apply-config
- python-heat-agent-ansible
- python-heat-agent-docker-cmd
- python-heat-agent-json-file
- openstack-heat-agents
- screen
- os-net-config
- jq

View File

@ -17,12 +17,7 @@ disk_images:
- java-1.8.0-openjdk
- ntp
- opendaylight
- python-heat-agent-puppet
- python-heat-agent-hiera
- python-heat-agent-apply-config
- python-heat-agent-ansible
- python-heat-agent-docker-cmd
- python-heat-agent-json-file
- openstack-heat-agents
- os-net-config
- jq
options:

View File

@ -0,0 +1,8 @@
---
fixes:
- The tripleo-bootstrap ansible role will no longer fail if yum fails to
install the required packages. This fixed behavior aligns with previous
requirements where enabled package repositories and a working package
manager are not required on the initially deployed images. Errors are
ignored on the package install task, and then a subsequent task will cause
a failure indicating the required packages are not present.

View File

@ -4,6 +4,13 @@
package:
name: "{{ packages_bootstrap }}"
become: true
ignore_errors: true
- name: Check required packages are installed
command:
rpm -q {{ item }}
with_items: "{{ packages_bootstrap }}"
- name: Create /var/lib/heat-config/tripleo-config-download directory for deployment data
file: