talm icon indicating copy to clipboard operation
talm copied to clipboard

Error: either install disk or diskSelector should be defined

Open keynight opened this issue 11 months ago • 6 comments

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
        

Image

keynight avatar Feb 14 '25 22:02 keynight

Workaround: add "disk: /dev/sda" to your config yaml

Image

keynight avatar Feb 14 '25 22:02 keynight

srv110.yaml

Show the disk section in srv110.yaml, it might not have been detected when creating the template.

chumkaska avatar Feb 19 '25 06:02 chumkaska

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

spa-skyson avatar Feb 22 '25 06:02 spa-skyson

We probably need to add default value /dev/sda into config generation, if no other values detected.

kvaps avatar Mar 15 '25 20:03 kvaps

Was it resolved in https://github.com/cozystack/talm/pull/41?

NickVolynkin avatar Apr 14 '25 08:04 NickVolynkin

Todo: cover this scenario in the documentation

NickVolynkin avatar Apr 14 '25 08:04 NickVolynkin