Upload amphora image in RAW format if RBD backend

When deploying an overcloud with Octavia enabled, the amphora image is
uploaded to Glance as QCOW2. When using the RBD backend for Glance and
Nova, this causes the image to be converted to RAW on each deployment.
With slower storage, this leads to load balancer creation to fail with a
compute timeout exception from Octavia.

This patch makes TripleO oppiniated. If Ceph is being used, it will
automatically convert the QCOW2 file to RAW before uploading to Glance.
The upfront cost of conversion to RAW and uploading to Glance is worth
the performance improvements.

Closes-Bug: #1778303
Depends-On: https://review.openstack.org/#/c/577573/
Change-Id: If36c87e783b532b1e8b368d8e18f5a83b581b933
(cherry picked from commit 6d1a5b6bc2)
This commit is contained in:
Carlos Goncalves 2018-06-22 19:20:21 -04:00
parent be22412959
commit cdeb05ca1f
1 changed files with 5 additions and 0 deletions

View File

@ -67,6 +67,10 @@ parameters:
from user 'centos' (CentOS), 'ubuntu' (Ubuntu) or 'cloud-user' (RHEL)
(depends on how amphora image was created). Logging in to amphorae
provides a convenient way to e.g. debug load balancing services.
NovaEnableRbdBackend:
default: false
description: Whether to enable or not the Rbd backend for Nova
type: boolean
OctaviaControlNetwork:
description: The name for the neutron network used for the amphora
control network
@ -165,6 +169,7 @@ resources:
amp_ssh_key_name: { get_param: OctaviaAmphoraSshKeyName }
amp_ssh_key_path: { get_param: OctaviaAmphoraSshKeyFile }
amp_ssh_key_data: { get_attr: [default_key_pair, public_key] }
amp_to_raw: { get_param: NovaEnableRbdBackend }
auth_username: { get_param: OctaviaUserName }
auth_password: { get_param: OctaviaPassword }
auth_project_name: { get_param: OctaviaProjectName }