Skip to content

Commit a43e3a5

Browse files
committed
fix volume to device mapping for RL8.9
1 parent 87fe735 commit a43e3a5

File tree

1 file changed

+1
-1
lines changed
  • environments/skeleton/{{cookiecutter.environment}}/terraform

1 file changed

+1
-1
lines changed

environments/skeleton/{{cookiecutter.environment}}/terraform/nodes.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ resource "openstack_compute_instance_v2" "control" {
127127
fqdn: ${var.cluster_name}-${each.key}.${var.cluster_name}.${var.cluster_domain_suffix}
128128
bootcmd:
129129
%{for volume in [openstack_blockstorage_volume_v3.state, openstack_blockstorage_volume_v3.home]}
130-
- mke2fs -t ext4 -L ${lower(split(" ", volume.description)[0])} $(readlink -f $(ls /dev/disk/by-id/*${volume.id} | head -n1 ))
130+
- mke2fs -t ext4 -L ${lower(split(" ", volume.description)[0])} $(readlink -f $(ls /dev/disk/by-id/*${substr(volume.id, 0, 20)}* | head -n1 ))
131131
%{endfor}
132132
mounts:
133133
- [LABEL=state, ${var.state_dir}, auto, "x-systemd.after=cloudinit.service"]

0 commit comments

Comments
 (0)