RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1537439 - cloud-init with config drive does not populate dns information correctly [rhel-7.4.z]
Summary: cloud-init with config drive does not populate dns information correctly [rhe...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: cloud-init
Version: 7.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Ryan McCabe
QA Contact: Udi Shkalim
URL:
Whiteboard:
Depends On: 1454491
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-23 08:35 UTC by Oneata Mircea Teodor
Modified: 2023-02-22 23:02 UTC (History)
15 users (show)

Fixed In Version: cloud-init-0.7.9-9.el7_4.3
Doc Type: Bug Fix
Doc Text:
Prior to this update, the cloud-init service in some cases did not provide newly created virtual machines with appropriate DNS configuration. The underlying code has been fixed, which prevents this problem from occurring.
Clone Of: 1454491
Environment:
Last Closed: 2018-03-06 21:44:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1693251 0 None None None 2018-01-23 08:35:45 UTC
Launchpad 1693265 0 None None None 2018-01-23 08:35:45 UTC
Red Hat Product Errata RHBA-2018:0407 0 normal SHIPPED_LIVE cloud-init bug fix update 2018-03-07 02:54:32 UTC

Description Oneata Mircea Teodor 2018-01-23 08:35:37 UTC
This bug has been copied from bug #1454491 and has been proposed to be backported to 7.4 z-stream (EUS).

Comment 9 Udi Shkalim 2018-02-08 15:31:32 UTC
Verified on: cloud-init-0.7.9-9.el7_4.3.x86_64

$ cat user_data 
#cloud-config
password: fedora
chpasswd: { expire: False }


openstack subnet show d1d03149-a6bc-4022-ab5a-16763098752b
+-------------------+--------------------------------------+
| Field             | Value                                |
+-------------------+--------------------------------------+
| allocation_pools  | 192.168.100.2-192.168.100.254        |
| cidr              | 192.168.100.0/24                     |
| created_at        | 2018-02-06T14:39:21Z                 |
| description       |                                      |
| dns_nameservers   | 10.35.28.28                          |
| enable_dhcp       | False                                |
| gateway_ip        | 192.168.100.1                        |
| host_routes       |                                      |
| id                | d1d03149-a6bc-4022-ab5a-16763098752b |
| ip_version        | 4                                    |
| ipv6_address_mode | None                                 |
| ipv6_ra_mode      | None                                 |
| name              | internal-subnet                      |
| network_id        | 5682affc-7cd8-4413-b824-eccfafd02426 |
| project_id        | 9ba3b3f772a849c8b709644c894bc85e     |
| revision_number   | 3                                    |
| segment_id        | None                                 |
| service_types     |                                      |
| subnetpool_id     | None                                 |
| tags              |                                      |
| updated_at        | 2018-02-08T14:54:38Z                 |
+-------------------+--------------------------------------+


openstack server create --image fedora27 --flavor m1.med --nic net-id=$(openstack network show -c id -f value internal-net) fedora-$(echo $RANDOM) --user-data user_data --config-drive True

###################### Inside the instance ########################
[fedora@cirros-17255 ~]$ cat /etc/NetworkManager/conf.d/99-cloud-init.conf
# Created by cloud-init on instance boot automatically, do not edit.
#
[main]
dns = none
 
 
[fedora@cirros-17255 ~]$ cat /etc/resolv.conf
; Created by cloud-init on instance boot automatically, do not edit.
;
nameserver 10.35.28.28
search localdomain
 
[fedora@cirros-17255 ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Created by cloud-init on instance boot automatically, do not edit.
#
BOOTPROTO=static
DEFROUTE=yes
DEVICE=eth0
GATEWAY=192.168.100.1
HWADDR=fa:16:3e:7d:62:01
IPADDR=192.168.100.4
MTU=1450
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=no

Comment 12 errata-xmlrpc 2018-03-06 21:44:01 UTC
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-2018:0407


Note You need to log in before you can comment on or make changes to this bug.