From 05e4a733f2141995181a551854d5df929f084adf Mon Sep 17 00:00:00 2001
From: Michael Biebl NM_CLOUD_SETUP_LOG: control the logging verbosity. Set it
to one of TRACE, DEBUG, INFO,
WARN, ERR or OFF. The program
- will print message on stdout and the default level is WARN.WARN. When
+ run as systemd service, the log will be collected by journald can can be seen with
+ journalctl.
NM_CLOUD_SETUP_AZURE: boolean, whether Microsoft Azure support is enabled. Defaults
to no.
NM_CLOUD_SETUP_EC2: boolean, whether Amazon EC2 (AWS) support is enabled. Defaults
@@ -149,6 +151,15 @@
Enable debug logging by setting NM_CLOUD_SETUP_LOG environment variable to TRACE.
In the common case where nm-cloud-setup is running as systemd service, this can be done via systemctl edit nm-cloud-setup.service
+ and add Environment=NM_CLOUD_SETUP_LOG=TRACE to the [Service] section. Afterwards, the log can
+ be found in syslog via journalctl. You may also want to enable debug logging in NetworkManager as descibed
+ in the DEBUGGING section in NetworkManager(5)
+ manual. When sharing logs, it's best to share complete logs and not preemptively filter for NetworkManager or nm-cloud-setup logs.
As detailed before, nm-cloud-setup needs to be explicitly enabled. As it runs as a systemd service and timer, that basically means to enable and configure @@ -182,7 +193,7 @@ ln -s /etc/systemd/system/timers.target.wants/nm-cloud-setup.timer /usr/lib/syst
For AWS, the tools tries to fetch configuration from http://169.254.169.254/. Currently, it only
configures IPv4 and does nothing about IPv6. It will do the following.
For GCP, the meta data is fetched from URIs starting with http://metadata.google.internal/computeMetadata/v1/ with a
HTTP header "Metadata-Flavor: Google".
@@ -267,7 +278,7 @@ ln -s /etc/systemd/system/timers.target.wants/nm-cloud-setup.timer /usr/lib/syst
For Azure, the meta data is fetched from URIs starting with http://169.254.169.254/metadata/instance with a
URL parameter "?format=text&api-version=2017-04-02" and a HTTP header "Metadata:true".
@@ -299,7 +310,7 @@ ln -s /etc/systemd/system/timers.target.wants/nm-cloud-setup.timer /usr/lib/syst
For Aliyun, the tools tries to fetch configuration from http://100.100.100.200/. Currently, it only
configures IPv4 and does nothing about IPv6. It will do the following.