Problem when copying template with 2+ discs

Jun 8, 2016
344
75
93
48
Johannesburg, South Africa
We have a template which has two discs:
template-vm.png


When we clone this template the destination disc names are inconsistent. They are however attached in the correct order and everything works as expected, the problem as such is purely cosmetic but has lead to confusion in the past:
1621972796830.png

PS: This doesn't always happen but I just cloned a template 4 times and each one had this quirk.

Herewith the content of the template:
Code:
agent: 0
boot: order=scsi0;ide2;net0
cores: 1
cpu: Broadwell
ide2: none,media=cdrom
memory: 4096
name: template-redacted
net0: virtio=0A:B1:F5:B1:14:B3,bridge=vmbr0,tag=24
numa: 1
onboot: 1
ostype: l26
protection: 1
scsi0: rbd_ssd:base-446-disk-0,cache=writeback,discard=on,size=20G,ssd=1
scsi1: rbd_ssd:base-446-disk-1,cache=writeback,discard=on,size=20G,ssd=1
scsihw: virtio-scsi-pci
smbios1: uuid=979a37c5-ce78-4b6b-811a-964f59ef9990
sockets: 1
template: 1
vmgenid: 77214312-b40b-4753-afb2-dba8226e57aa


cloned VM:
Code:
agent: 0
boot: order=scsi0;ide2;net0
cores: 1
cpu: Broadwell
ide2: none,media=cdrom
memory: 4096
name: test-blahblah
net0: virtio=B2:3C:B9:3C:74:3B,bridge=vmbr0,tag=24
numa: 1
onboot: 1
ostype: l26
protection: 1
scsi0: rbd_ssd:base-446-disk-0/vm-451-disk-1,cache=writeback,discard=on,size=20G,ssd=1
scsi1: rbd_ssd:base-446-disk-1/vm-451-disk-0,cache=writeback,discard=on,size=20G,ssd=1
scsihw: virtio-scsi-pci
smbios1: uuid=5ae2c4b4-8021-4250-87ed-98153a5151a9
sockets: 1
vmgenid: e7e9a462-34a7-4042-8f1b-1e2c89251195


Ceph RBD images:
Code:
[admin@kvm5b ~]# rbd ls rbd_ssd -l | grep 446
base-446-disk-0                          20 GiB                                      2        excl
base-446-disk-0@__base__                 20 GiB                                      2  yes
base-446-disk-1                          20 GiB                                      2        excl
base-446-disk-1@__base__                 20 GiB                                      2  yes
vm-451-disk-0                            20 GiB  rbd_ssd/base-446-disk-1@__base__    2
vm-451-disk-1                            20 GiB  rbd_ssd/base-446-disk-0@__base__    2



Regards
David Herselman
 
Last edited: