Bug 2222571
| Summary: | [Azure][ondemand] Suggest to enable nm-cloud-setup in Azure images | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Yuxin Sun <yuxisun> |
| Component: | NetworkManager | Assignee: | Yuxin Sun <yuxisun> |
| Status: | NEW --- | QA Contact: | Yuxin Sun <yuxisun> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.3 | CC: | anujmaurya, bgalvani, desktop-qa-list, litian, lrintel, rkhan, sfaye, sukulkar, thaller, till, xuli, xxiong, yacao |
| Target Milestone: | rc | Keywords: | TestOnly |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Yuxin Sun
2023-07-13 06:52:48 UTC
> 2. There's "Environment=NM_CLOUD_SETUP_AZURE=yes" in /usr/lib/systemd/system/nm-cloud-setup.service
Files in /usr/lib are provided by the RPM package. It's not good to modify them.
Instead, systemd supports overlaying configuration in /etc.
See "EXAMPLE SETUP FOR CONFIGURING AND PREDEPLOYING NM-CLOUD-SETUP" in `man nm-cloud-setup` for how to enable nm-cloud-setup.
(In reply to Thomas Haller from comment #1) > > 2. There's "Environment=NM_CLOUD_SETUP_AZURE=yes" in /usr/lib/systemd/system/nm-cloud-setup.service > > Files in /usr/lib are provided by the RPM package. It's not good to modify > them. > Instead, systemd supports overlaying configuration in /etc. > > See "EXAMPLE SETUP FOR CONFIGURING AND PREDEPLOYING NM-CLOUD-SETUP" in `man > nm-cloud-setup` for how to enable nm-cloud-setup. Thank you so much Thomas! According to 'man nm-cloud-setup', the step 2 should be: mkdir -p /etc/systemd/system/nm-cloud-setup.service.d cat > /etc/systemd/system/nm-cloud-setup.service.d/10-enable-azure.conf << EOF [Service] Environment=NM_CLOUD_SETUP_AZURE=yes EOF I'll correct my step in the comment 0. Thanks! |