Bug 1363633
Summary: | [cloud-init] - cloud-init should finish before NetworkManager starts or run ifdown ifup after cloud-init is finished | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Michael Burman <mburman> | ||||
Component: | cloud-init | Assignee: | Lars Kellogg-Stedman <lars> | ||||
Status: | CLOSED ERRATA | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 7.2 | CC: | danken, erich, huzhao, jherrman, mbracho, mburman, sasha, yacao | ||||
Target Milestone: | rc | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | cloud-init-0.7.9-1.el7 | Doc Type: | Bug Fix | ||||
Doc Text: |
Due to a race condition between the cloud-init application and the NetworkManager utility, systems with cloud-init set up in some cases booted with an incorrect network configuration. This update ensures that the cloud-init-local service runs before NetworkManager starts and that the cloud-init service runs afterwards. As a result, the described problem no longer occurs.
|
Story Points: | --- | ||||
Clone Of: | |||||||
: | 1413151 (view as bug list) | Environment: | |||||
Last Closed: | 2017-04-04 15:26:03 UTC | 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1413151 | ||||||
Attachments: |
|
Description
Michael Burman
2016-08-03 09:07:27 UTC
The systemd units in upstream cloud-init have gone through a number of changes recently to improve the ordering of things w/r/t networking. These changes will be available in the next release of our cloud-init package, which I am working on right now. How are you providing a static ip configuration? If you are doing that via a userdata script, would you please attach that to this bug report? If you are doing that via some other mechanism, let me know. Thanks! Hello Lars I'm using the rhv-m ui in order to configure the static ip in the clout-init. And there is a custom-script in cloud-init via run once or edit vm. I think that the custom-script should be similar to something like: network-interfaces: | auto lo iface lo inet loopback iface eth0 inet static address xxx.xxx.xxx.xxx (static ip) netmask xxx.xxx.xxx.xxx gateway xxx.xxx.xxx.xxx (gateway ip, usually ip address of router) Awesome, thank you for verifying the fix! Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:0871 |