Skip to content
This repository was archived by the owner on Dec 8, 2023. It is now read-only.

Token not created on install, only some config options picked up on install #840

Open
heytcass opened this issue Jan 24, 2022 · 0 comments
Labels
kind/bug Something isn't working

Comments

@heytcass
Copy link

Version (k3OS / kernel)

v0.21.5-k3s2r1

Architecture

Proxmox x86_64 host
QEMU VM with 2 CPUs, 4 Gb of RAM, UEFI

Describe the bug

Run the installer off of the k3OS ISO, with this config file:

---
ssh_authorized_keys:
- "ssh-rsa <key>"
- "github:heytcass"
hostname: k30s-01
write_files:
- path: /var/lib/conman/default.config
  content: |-
    [service_eth0]
    Type=ethernet
    IPv4=192.168.25.14/255.255.255.0/192.168.25.1
    IPv6=off
    Nameservers=192.168.53.3
k3os:
  password: <redacted>
  ntp_servers:
  - 0.us.pool.ntp.org
  - 1.us.pool.ntp.org
  dns_nameservers:
  - 8.8.8.8
  - 1.1.1.1
  k3s_args:
  - server
  - --datastore-endpoint=mysql://rancher:<redacted>@tcp(192.168.25.12:3306)/k3s
  - --tls-san=<redacted>
  - --node-external-ip=192.168.25.14
  labels:
    k3os.io/upgrade: latest

After completing the installation, it says everything went well and reboots, and after the reboot, settings like the hostname, authorized keys, and password are picked up. However the static IP isn't honored, no new tables show up in my datastore, and most interestingly, no token can be found at /var/lib/rancher/k3s/server, only the cred, manifests, and tls directories are in that folder.

To Reproduce

Boot from k3OS iso, select install option, provide cloud-init file, finish installation. Log into shell after boot, cat /var/lib/rancher/k3s/server/node-token. No such file or directory.

Expected behavior

Expect a token to be found at /var/lib/rancher/k3s/server/node-token to be used to join other nodes to the cluster.

Actual behavior

No token is found, and some settings from the config file don't seem to be picked up.

Additional context

@heytcass heytcass added the kind/bug Something isn't working label Jan 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant