Mount /usr/share/openstack-octavia-amphora-images into mistral-executor

With containerized undercloud, the Octavia playbook shipping with
tripleo-common can no longer install the octavia-amphora-image RPM
available in RHOSP-based environments as the yum repository list is
empty. Thus, the amphora QCOW2 file needs to be made available by the
undercloud base OS via a volume mount. This will also help in
uniformizing default placement of amphora images across different
OpenStack distributions.

Change Icae47e76f71b739cf0e1f5633b15432fd531e645 will close the loop.

Partial-Bug: #1800916

Change-Id: I84943a5e6e2b08baaf8e61a1cd9f2fe92286ad9a
This commit is contained in:
Carlos Goncalves 2018-10-31 18:54:29 +01:00
parent 1ef3efc61f
commit 70162488bf
4 changed files with 25 additions and 3 deletions

View File

@ -158,6 +158,11 @@ outputs:
path: /usr/share/ceph-ansible
state: directory
setype: svirt_sandbox_file_t
- name: create octavia-amphora-images directory
file:
path: /usr/share/openstack-octavia-amphora-images
state: directory
setype: svirt_sandbox_file_t
upgrade_tasks:
- when: step|int == 0
tags: common

View File

@ -42,10 +42,12 @@ parameters:
type: string
default: ''
OctaviaAmphoraImageFilename:
description: Filename for the amphora image. Using the default of an empty
string will cause a distro specific default to be used. (e.g.
description: Filename for the amphora image. Image files are expected to be
located in directory /usr/share/openstack-octavia-amphora-images.
Using the default of an empty string will cause a distro
specific default to be used. (e.g.
/usr/share/openstack-octavia-amphora-images/amphora-x64-haproxy.qcow2
on CentOS and /usr/share/rhosp-director-images/octavia-amphora.qcow2
on CentOS and /usr/share/openstack-octavia-amphora-images/octavia-amphora.qcow2
on Red Hat Enterprise Linux).
type: string
default: ''

View File

@ -146,5 +146,6 @@ parameter_defaults:
connect_timeout: 60
MistralExecutorExtraVolumes:
- /usr/share/ceph-ansible:/usr/share/ceph-ansible:ro
- /usr/share/openstack-octavia-amphora-images:/usr/share/openstack-octavia-amphora-images:ro
NeutronMetadataProxySharedSecret: ''
MetadataNATRule: true

View File

@ -0,0 +1,14 @@
---
upgrade:
- |
Octavia amphora images are now expected to be located in directory
/usr/share/openstack-octavia-amphora-images on the undercloud node
for uniformization across different OpenStack distributions.
deprecations:
- |
Ensure Octavia amphora image files are placed in directory
/usr/share/openstack-octavia-amphora-images on the undercloud node.
fixes:
- |
Fix an issue where Octavia amphora images were not accessible during
overcloud deployment.