Open JesusRo opened 3 years ago
Hi, can you share your cloud-config userdata?
I understood that REBOOT_STRATEGY
stays part of the cloud-config userdata. It is expected for it to be written to the file again because the cloud-config data gets processed on every boot.
Hi,
I did have nothing on user_data related to this (my goal is actually to provision the update config afterwards), and I hardly think it comes from there as this only happens after an update. If I just reboot the vm, there is no issue, the update.conf file is ok
core@flatcar-test-2 ~ $ cat /etc/flatcar/update.conf
GROUP=My-dev.stable
SERVER=https://mylocal-nebraska.local/v1/update/
MACHINE_ALIAS=flatcar-test-2.local
core@flatcar-test-2 ~ $ cat /usr/share/flatcar/release
FLATCAR_RELEASE_VERSION=2765.2.3
FLATCAR_RELEASE_BOARD=amd64-usr
FLATCAR_RELEASE_APPID={e96281a6-d1af-4bde-9a0a-97b76e56dc57}
core@flatcar-test-2 ~ $ sudo reboot
Connection to flatcar-test-2.local closed by remote host.
Connection to flatcar-test-2.local closed.
✘ ~ ssh flatcar-test-2.local
Last login: Thu Jun 17 06:43:03 UTC 2021 from 10.123.44.53 on pts/0
Flatcar Container Linux by Kinvolk flatcar.lttwdev (2765.2.3)
core@flatcar-test-2 ~ $ cat /etc/flatcar/update.conf
GROUP=My-dev.stable
SERVER=https://mylocal-nebraska.local/v1/update/
MACHINE_ALIAS=flatcar-test-2.local
core@flatcar-test-2 ~ $ cat /usr/share/flatcar/release
FLATCAR_RELEASE_VERSION=2765.2.3
FLATCAR_RELEASE_BOARD=amd64-usr
FLATCAR_RELEASE_APPID={e96281a6-d1af-4bde-9a0a-97b76e56dc57}
core@flatcar-test-2 ~ $ logout
user-data:
#cloud-config
write_files:
- path: /etc/systemd/network/80-app.network
owner: "root:root"
permissions: "0644"
content: |
[Network]
DHCP=yes
[DHCP]
UseMTU=true
UseDomains=false
[Match]
Name=eth0
- path: /etc/systemd/network/90-storage.network
owner: "root:root"
permissions: "0644"
content: |
[Network]
DHCP=yes
[DHCP]
UseMTU=true
UseDomains=false
UseRoutes=false
[Match]
Name=eth*
- path: /etc/systemd/network/zz-default.network
owner: "root:root"
permissions: "0644"
content: |
[Network]
DHCP=yes
[DHCP]
UseMTU=true
UseDomains=false
[Match]
Name=*
Thanks for taking a look
Hi, is this still happening with a recent release?
I suggest modifying oem-cloudinit.service
from ExecStart=/usr/bin/coreos-cloudinit
to ExecStart=/usr/bin/strace -f /usr/bin/coreos-cloudinit
and share the unit log.
I still think there is some logical bug around
https://github.com/flatcar-linux/coreos-cloudinit/blob/cfcc44197d11f44441e5aa2c9db34bcd0bf16015/system/update.go#L58
but if coreos-cloudinit is not writing the file we can search elsewhere.
Description
Custom
GROUP
configured on /etc/flatcar/update.conf is reset tostable
(the channel of the group) after an upgrade.Impact
When vms are updated, reconfiguration of the group on /etc/flatcar/update.conf is needed
Environment and steps to reproduce
Set-up: VMs deployed on Openstack using cloud-init update.conf manually configured afterwards Nebraska instance deployed via helm chart
Task: Updating node
Action(s): Create group on Nebraska:
Logging into node and update /etc/flatcar/update.conf
Run:
/usr/bin/update_engine_client -status
says we are ready for reboot, reboot the nodeError: Logging back to the node, /etc/flatcar/update.conf has
GROUP
changed to stable andREBOOT_STRATEGY
is added as belowExpected behavior
Logging back to the node, /etc/flatcar/update.conf should have been not modified
Additional information
Followed https://kinvolk.io/docs/nebraska/latest/managing-updates/#existing-machines for setting up updates.conf file
Actually I could reproduced always via reseting the release as shown below
ssh to flatcar-test-2.local again