talm
talm copied to clipboard
Error: either install disk or diskSelector should be defined
I have vm on ESXi with Virtual SATA SSD *(/dev/sda)
Logs
tail --version
tail (GNU coreutils) 8.32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Paul Rubin, David MacKenzie, Ian Lance Taylor,
and Jim Meyering.
talm init --preset cozystack
Created secrets.yaml
generating PKI and tokens
Created talosconfig
Created charts/talm/Chart.yaml
Created Chart.yaml
Created templates/_helpers.tpl
Created values.yaml
Created charts/talm/templates/_helpers.tpl
Created templates/controlplane.yaml
Created templates/worker.yaml
mkdir nodes
talm template -e 192.168.100.110 -n 192.168.100.110 -t templates/controlplane.yaml -i > nodes/srv110.yaml
talm apply -f nodes/srv110.yaml -i
- talm: file=nodes/srv110.yaml, nodes=[192.168.100.110], endpoints=[192.168.100.110]
error applying new configuration: rpc error: code = InvalidArgument desc = configuration validation failed: 1 error occurred:
* either install disk or diskSelector should be defined
Workaround: add "disk: /dev/sda" to your config yaml
srv110.yaml
Show the disk section in srv110.yaml, it might not have been detected when creating the template.
Have some issue.
# talm: nodes=["192.168.100.16"], endpoints=["192.168.100.16"], templates=["templates/controlplane.yaml"]
# THIS FILE IS AUTOGENERATED. DO NOT EDIT IT!
machine:
type: controlplane
kubelet:
nodeIP:
validSubnets:
- 192.168.100.0/24
network:
hostname: talos-a0031
# -- Discovered interfaces:
# enxbc2411aed34b:
# id: ens18
# hardwareAddr:bc:24:11:ae:d3:4b
# busPath: 0000:00:12.0
# driver: virtio_net
# vendor: Red Hat, Inc.
# product: Virtio network device)
interfaces:
- deviceSelector:
busPath: "0000:00:12.0"
addresses:
- 192.168.100.16/24
routes:
- network: 0.0.0.0/0
gateway: 192.168.100.1
nameservers:
- 192.168.100.1
cluster:
controlPlane:
endpoint: https://192.168.100.10:6443
clusterName: talos-1
network:
serviceSubnets:
- 10.96.0.0/16
etcd:
advertisedSubnets:
- 192.168.100.0/24
We probably need to add default value /dev/sda into config generation, if no other values detected.
Was it resolved in https://github.com/cozystack/talm/pull/41?
Todo: cover this scenario in the documentation