Skip to content

Consider removing userdata (startup) script from VM when the machine has been bootstrapped successfully #990

@oliver-goetz

Description

@oliver-goetz

How to categorize this issue?

/area robustness
/kind enhancement
/priority 3

What would you like to be added:
The userdata script added to VMs by MCM usually contains the operating system config of type provision and some OS extensions specific enhancements. This content is meant to be used once when the VM is bootstrapped.
Thus, removing the script from the VM when the machine has been bootstrapped successfully avoids issues which might occur when the script runs multiple times.

Why is this needed:
The userdata script turned out to be a startup script at many cloud providers which runs every time the VM is booting. Since the script is only created when the VM is bootstrapped its content is outdated pretty soon.
When the VM restarts after a while the userdata script might overwrite parts of the config with outdated data.

While we created certain measurements to avoid such issues (see gardener/gardener#11208) there is still a risk of corrupted configs, e.g. VMs created before the mentioned fix has been applied are still writing outdated config data to the disk when they are rebooted.

At the moment we could still get rid of those machines by rolling them. However, this won't be possible for machines where in-place updates are enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/robustnessRobustness, reliability, resilience relatedkind/enhancementEnhancement, improvement, extensionpriority/3Priority (lower number equals higher priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions