Specify Octavia amphora image hw_architecture property in Glance
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
(cherry picked from commit 2f1c0b89ee15ad95e23e23995aa3340d8db59966)
(cherry picked from commit ef5bf9deb83a81364cea39b12de0ba799aa8b8ee)
Reviewed: https:/ /review. openstack. org/640922 /git.openstack. org/cgit/ openstack/ tripleo- common/ commit/ ?id=17a050f13e8 36a1022e640f2e8 a1c6f682c2a7b0
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 17a050f13e836a1 022e640f2e8a1c6 f682c2a7b0
Author: Nir Magnezi <email address hidden>
Date: Thu Feb 28 11:57:00 2019 +0200
Specify Octavia amphora image hw_architecture property in Glance
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: Ia7be6503a40e08 d0d1f7f4d89132c 9e9b5bd6704 5e23e23995aa334 0d8db59966) 64cea39b12de0ba 799aa8b8ee)
(cherry picked from commit 2f1c0b89ee15ad9
(cherry picked from commit ef5bf9deb83a813