Skip to content

hostname changes updating a node to latest stable #1385

@till

Description

@till

Description

The hostname of a node is updated/changed, after the last update.

Impact

Configs are broken.

Environment and steps to reproduce

Here is part of our butane config when we initially create a new node:

        storage:
          files:
            - overwrite: true
              path: /etc/hostname
              contents:
                inline: node-001.docker

Instance boots an older version of Flatcar Linux: Flatcar Container Linux by Kinvolk stable 3510.2.2 for Openstack

Hostname is correct/as expected:

core@node-001 ~ $ hostnamectl status
 Static hostname: node-001.docker
       Icon name: computer-vm
         Chassis: vm 🖴
      Machine ID: 85652647190644dea38c88d448eedbe8
         Boot ID: 07850b59aa6643409786d7e00776723e
  Virtualization: kvm
Operating System: Flatcar Container Linux by Kinvolk 3510.2.2 (Oklo)          
     CPE OS Name: cpe:2.3:o:flatcar-linux:flatcar_linux:3510.2.2:*:*:*:*:*:*:*
          Kernel: Linux 5.15.111-flatcar
    Architecture: x86-64
 Hardware Vendor: Virtuozzo
  Hardware Model: OpenStack Compute
Firmware Version: 1.11.0-2.vz7.1

Then I download updates (update_engine_client -check_for_updates) and eventually reboot into the latest stable: Flatcar Container Linux by Kinvolk stable 3815.2.0 for Openstack

Now the hostname is changed:

core@node-001-docker ~ $ hostnamectl status
 Static hostname: node-001-docker
       Icon name: computer-vm
         Chassis: vm 🖴
      Machine ID: 85652647190644dea38c88d448eedbe8
         Boot ID: b41dad00e6cc4c8d83ac753b2ea30283
  Virtualization: kvm
Operating System: Flatcar Container Linux by Kinvolk 3815.2.0 (Oklo)          
     CPE OS Name: cpe:2.3:o:flatcar-linux:flatcar_linux:3815.2.0:*:*:*:*:*:*:*
          Kernel: Linux 6.1.77-flatcar
    Architecture: x86-64
 Hardware Vendor: Virtuozzo
  Hardware Model: OpenStack Compute
Firmware Version: 1.11.0-2.vz7.1

And /etc/hostname is changed as well.

Expected behavior

Hostname doesn't change, /etc/hostname doesn't change.

Additional information

Please add any information here that does not fit the above format.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions