Skip to content

Make GetCloudinitStatus() more robust #768

@ani-sinha

Description

@ani-sinha

Describe the bug

Cloud-init now returns three types of return codes 0 (success), 1(irrecoverable error) and 2 (recoverable error) [1]. The status parsing code needs to be improved so that it does not prematurely reboot the node even when cloud-init has indicated recoverable error and is still running cloud-final stage.

Expected behavior

open-vm-tools waits until cloud-init has completed cloud-final stage even when there is reoverable errors (schema parsing issues).

Additional context

  1. https://cloudinit.readthedocs.io/en/latest/explanation/return_codes.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions