Install Octavia amphora image if Red Hat

For a one-click deployment, the Octavia amphora image must be present in
the undercloud node. Currently users need to ensure the image file
exists before overcloud deployment. For Red Hat-based deployments, the
image is provided by package octavia-amphora-image. Thus the package
should be installed for a better user experience leading to a truly
one-click deployment.

Closes-Bug: #1770117
Change-Id: I3ed8144b52ba528f449a4abe5c2106a5c61f9d61
(cherry picked from commit 411514dea3)
This commit is contained in:
Carlos Goncalves 2018-05-08 16:41:48 +02:00 committed by Nir Magnezi
parent 7045f929ab
commit fe487706b4
2 changed files with 11 additions and 3 deletions

View File

@ -9,9 +9,14 @@
image_filename: "/usr/share/openstack-octavia-amphora-images/amphora-x64-haproxy.qcow2"
when: ansible_distribution == 'CentOS' and not image_filename is defined
- name: set location if Red Hat
set_fact:
image_filename: "/usr/share/rhosp-director-images/octavia-amphora.qcow2"
- block:
- name: install Octavia amphora image if Red Hat
yum:
name: octavia-amphora-image
state: latest
- name: set location if Red Hat
set_fact:
image_filename: "/usr/share/rhosp-director-images/octavia-amphora.qcow2"
when: ansible_distribution == 'RedHat' and not image_filename is defined
- name: check if amphora image file exists

View File

@ -0,0 +1,3 @@
---
features:
- Install Octavia amphora image on the undercloud if Red Hat.