kinvolk / lokomotive

🪦 DISCONTINUED Further Lokomotive development has been discontinued. Lokomotive is a 100% open-source, easy to use and secure Kubernetes distribution from the volks at Kinvolk
https://kinvolk.io/lokomotive-kubernetes/
Apache License 2.0
321 stars 49 forks source link

Document os_version requirement of ipxe_script_url on Packet #1008

Open ipochi opened 4 years ago

ipochi commented 4 years ago

In order to use a different version of Flatcar for a alpha/beta channel, I need to specify the version in the os_version field.

This causes an error as lokoctl also expects to provide ipxe_script_url which shouldn't be the case:

 ~/go/src/github.com/kinvolk/lokomotive/lokoctl cluster apply --skip-components --verbose
ERRO[0000] <nil>: os_version is unexpected; os_version may only be specified with ipxe_script_url for worker pool "greenland"  args="[]" command="lokoctl cluster apply"
FATA[0000] Errors found while loading cluster configuration  args="[]" command="lokoctl cluster apply"

lokocfg

variable "packet_project_id" {}
variable "ssh_public_keys" {}

cluster "packet" {
  controller_count=1
  management_cidrs = ["0.0.0.0/0"]
  node_private_cidr = "10.0.0.0/8"
  ssh_pubkeys = var.ssh_public_keys
  facility = "sjc1"
  project_id = var.packet_project_id
  asset_dir = "/home/imran/work/clusters/packet-master/hacluster/assets"
  cluster_name = "imran"
  controller_type = "t1.small.x86"

  dns {
    zone = "lokomotive-k8s.net"
    provider = "route53"
 }

  #oidc {}

  worker_pool "greenland" {
    node_type = "t1.small.x86"
    os_channel = "alpha"
    os_version = "2632.0.0"
    count = 1
  }
invidian commented 4 years ago

How is this a bug? Packet does not support selecting Flatcar version if using their provisioning system. It is possible to specify OS version when using iPXE installation though.

If you need this feature, AWS should support it as well.

ipochi commented 4 years ago

removing the offending code and applying the same config again works.

core@imran-controller-0 ~ $ cat /etc/os-release
NAME="Flatcar Container Linux by Kinvolk"
ID=flatcar
ID_LIKE=coreos
VERSION=2632.0.0
VERSION_ID=2632.0.0
BUILD_ID=2020-09-14-2219
PRETTY_NAME="Flatcar Container Linux by Kinvolk 2632.0.0 (Oklo)"
ANSI_COLOR="38;5;75"
HOME_URL="https://flatcar-linux.org/"
BUG_REPORT_URL="https://issues.flatcar-linux.org"
FLATCAR_BOARD="amd64-usr"
invidian commented 4 years ago

removing the offending code and applying the same config again works.

Can you try some older version?

pothos commented 4 years ago

I think it only makes sense on an auto-updating OS if you also disabled the updates which is not recommended.

invidian commented 3 years ago

I think we should mention the limitation in reference documentation in addition to the test logic we have. Then close this issue.