siderolabs / talos

Talos Linux is a modern Linux distribution built for Kubernetes.
https://www.talos.dev
Mozilla Public License 2.0
6.97k stars 564 forks source link

CLI warns about --wait and --insecure being used together while only --insecure is being used #9401

Open lwbt opened 2 months ago

lwbt commented 2 months ago

Bug Report

CLI warns about --wait and --insecure being used together while only --insecure is being used.

Description

According to https://www.talos.dev/v1.8/reference/cli/#talosctl-reset the CLI can be used to reset a node.

$  talosctl reset --insecure -n 192.168.8.11
cannot use --wait and --insecure together

This should have been executed, even if this node has problems with the cluster or configuration. Instead it warns me about a parameter I'm not using.

$  talosctl reset -n 192.168.8.11
error constructing client: failed to determine endpoints

This does not work in my situation, which means I have to remove the storage device from the SBC board and reset it manually.

Logs

Environment

smira commented 2 months ago

Just use --wait=false,but you won't be able to reset in maintenance mode unless you're connected over SideroLink (which doesn't seem to be the case), so this command is not useful.

If your machine is not in maintenance mode, you don't need --insecure.

I'm not quite sure what is the usecase you're looking for.