forked from canonical/cloud-init
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug(schema): only write network-config if instance dir present (canon…
…ical#4635) In Local boot stage (pre-systemnetworking) only write /var/lib/cloud/instance/network-config.json if the symlink /v/l/c/instance already exits. This instance symlink is created only once a datasource is discovered in either Local or Network boot stage. This bug affects any environment where the detected datasource is only discovered in the Network boot stage. If no viable datasource is detected during the Local boot stage, cloud-init calls apply_network_config to minimally setup a basic fallback network config with DHCP on the primary NIC. In this case, cloud-init will no longer attempt to write the fallback network-config.json during Local boot. Defer writing the networ-config.json to Network boot stage once /var/lib/cloud/instance exists for a detected datasource. Fixes canonicalGH-4630
- Loading branch information
1 parent
05f039c
commit 3fe919f
Showing
2 changed files
with
28 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters