Skip to content

cc_final_message will create /var/lib/cloud/instance as a directory if the symlink does not exist #3710

@ubuntu-server-builder

Description

@ubuntu-server-builder

This bug was originally filed in Launchpad as LP: #1883903

Launchpad details
affected_projects = []
assignee = oddbloke
assignee_name = Dan Watkins
date_closed = 2020-08-25T19:31:41.906557+00:00
date_created = 2020-06-17T13:01:57.401578+00:00
date_fix_committed = 2020-06-23T12:33:10.634757+00:00
date_fix_released = 2020-08-25T19:31:41.906557+00:00
id = 1883903
importance = undecided
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1883903
milestone = None
owner = oddbloke
owner_name = Dan Watkins
private = False
status = fix_released
submitter = oddbloke
submitter_name = Dan Watkins
tags = []
duplicates = []

Launchpad user Dan Watkins(oddbloke) wrote on 2020-06-17T13:01:57.401578+00:00

cc_final_message calls util.write_file, which calls ensure_dir; if nothing has caused the symlink to be created, then this means that /var/lib/cloud/instance will be a directory, and future boots will fail because they fail to remove it (because it's a directory, so can't just be rmd.)

(We're seeing this in bug 1883661; I don't think it's the root cause, hence this separate bug.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    launchpadMigrated from Launchpad

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions