In the case of a multi-architecture cloud, Nova will try to schedule an
Amphora to a non-x86_64 architecture compute node, which will fail the
load balancer creation in Octavia.
This patch explicitly specifies the Amphora image hw_architecture
property when the image is being uploaded to Glance. By doing so, it
hints the Nova scheduler which compute nodes to take into
account when it schedules an Amphora instance.
The default for hw_architecture is x86_64, which resembles the current
behavior since this is the only image type that we ship.
Closes-Bug: #1818563
Change-Id: Ia7be6503a40e08d0d1f7f4d89132c9e9b5bd6704
When deploying an overcloud with Octavia, 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 adds an option to allow amphora image to be automatically
uploaded to Glance in raw format.
Partial-Bug: #1778303
Change-Id: I698ed96881756bb547f5338b147b0c795103acb5
TripleO creates that subnet during the Octavia deployment process.
Currently, it is created as a class C subnet with allocation_pools
that essentially limit the number of address in that subnet to 150.
This patch enhances the lb-mgmt-subnet to be class B so the global
amount of Octavia loadbalancers won't be constrained to a very low
number.
Closes-Bug: #1770956
Depends-On: I3465dd9e2f95983a3f3a5dcd85f50781044fd6ec
Change-Id: I41b98f7782f055533bf7dd61e2d73ded2829c895
The previously default /home/stack/.ssh/id_rsa.pub file may not exist or
be readable; exit with explicit error message. Users can still specify a
file path but will need to ensure it is readable. Should a file path not
be specified, default to amp_ssh_key_data. The value is passed by THT
with the public key of the 'default' keypair from the undercloud which
anyway is the public key of the 'stack' user.
This patch also fixes a syntax error in octavia-undercloud role.
Closes-Bug: #1770153
Closes-Bug: #1770641
Depends-On: https://review.openstack.org/568022
Change-Id: I0026343d90b84572c3002fa21001cfb09c742391
This patch adds logic to the octavia image upload to update the
amphora image if a glance image of the same name already exists but has
a different checksum. It also adds some logic for distro specific
default behavior.
Closes-Bug: #1754039
Change-Id: I48ad8971e34ddebd50f5eb36e22a3d072e011d14
Create keypair from a given public key file under the project name for
Octavia ('service' by default). If a public key file is not provided,
the public key of the undercloud stack user will be used.
Depends-On: https://review.openstack.org/#/c/560879/
Change-Id: I3b2e283f6fa081b07cc12a244c14701e431d884e
This patch adds ansible for creating resources required for octavia load
balancers in the overcloud and updating the octavia configuration. While
this can be used directly from the command line, it is intended to be
driven from heat via mistral workflow.
Change-Id: Ia4916e431bf241b92194773a4d55300c7230ebf9