Skip to content

Commit 424d1a9

Browse files
authored
Merge pull request #452 from stackhpc/bugfix/xena/ngs-batching
Sync wallaby into xena
2 parents 05d5eae + 2b4279c commit 424d1a9

File tree

5 files changed

+25
-4
lines changed

5 files changed

+25
-4
lines changed

.github/workflows/stackhpc-all-in-one.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222
vm_image:
2323
description: Image for the all-in-one VM
2424
type: string
25-
default: CentOS-stream8
25+
default: bb8c0a34-533f-42fb-a49b-3461e677f3f6
2626
vm_interface:
2727
description: Default network interface name
2828
type: string

etc/kayobe/kolla.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,16 @@ kolla_build_blocks:
291291
RUN sed -i 's/"pc-q35-rhel8.5.0"/"pc-q35-*"/' /usr/share/qemu/firmware/50-edk2-ovmf-cc.json
292292
{% endif %}
293293
{% endraw %}
294+
neutron_server_footer: |
295+
# This is a workaround for a bug in etcd3gw that was fixed in 1.0.1, but not in v0.2.3.
296+
# https://opendev.org/openstack/etcd3gw/commit/ed899b34e464862525f76fff2377a2cceeb65af7
297+
{% raw %}
298+
{% if base_distro == 'centos' %}
299+
RUN sed -i 's/decode_unicode=True/decode_unicode=False/' /var/lib/kolla/venv/lib/python3.6/site-packages/etcd3gw/watch.py
300+
{% elif base_distro == 'ubuntu' %}
301+
RUN sed -i 's/decode_unicode=True/decode_unicode=False/' /var/lib/kolla/venv/lib/python3.8/site-packages/etcd3gw/watch.py
302+
{% endif %}
303+
{% endraw %}
294304
295305
# Dict mapping image customization variable names to their values.
296306
# Each variable takes the form:

etc/kayobe/kolla/globals.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ blazar_tag: xena-20230315T122920
1313
caso_tag: xena-20230315T122920
1414
ironic_tag: xena-20230316T162305
1515
ironic_dnsmasq_tag: xena-20230214T150257
16-
neutron_tag: xena-20230307T142413
16+
neutron_tag: xena-20230320T143013
1717
prometheus_node_exporter_tag: xena-20230310T170439
1818
{% else %}
1919
bifrost_tag: xena-20230215T195824
@@ -22,7 +22,7 @@ caso_tag: xena-20230315T122918
2222
ironic_tag: xena-20230317T090705
2323
ironic_dnsmasq_tag: xena-20230215T164524
2424
keystone_tag: xena-20230308T120251
25-
neutron_tag: xena-20230307T142414
25+
neutron_tag: xena-20230320T143007
2626
prometheus_node_exporter_tag: xena-20230315T164024
2727
{% endif %}
2828

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
The etcdgw library in the neutron-server container has been patched to
5+
workaround a python3 incompatability. This affects the batching feature in
6+
networking generic switch.

terraform/aio/vm.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,14 @@ variable "aio_vm_subnet" {
3333
type = string
3434
}
3535

36+
locals {
37+
image_is_uuid = length(regexall("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", var.aio_vm_image)) > 0
38+
}
39+
3640
data "openstack_images_image_v2" "image" {
3741
name = var.aio_vm_image
3842
most_recent = true
43+
count = local.image_is_uuid ? 0 : 1
3944
}
4045

4146
data "openstack_networking_subnet_v2" "network" {
@@ -52,7 +57,7 @@ resource "openstack_compute_instance_v2" "kayobe-aio" {
5257
}
5358

5459
block_device {
55-
uuid = data.openstack_images_image_v2.image.id
60+
uuid = local.image_is_uuid ? var.aio_vm_image: data.openstack_images_image_v2.image[0].id
5661
source_type = "image"
5762
volume_size = 100
5863
boot_index = 0

0 commit comments

Comments
 (0)