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
(cherry picked from commit 108942079b
)
This commit is contained in:
parent
800e0aaf8f
commit
348f8b878c
|
@ -30,12 +30,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
|
||||
|
|
|
@ -30,12 +30,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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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.
|
|
@ -4,6 +4,13 @@
|
|||
yum:
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue