/etc/resolv.conf is garbage on CentOS 7

Bug #1719864 reported by Tapio Tallgren
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bifrost
Fix Released
Medium
Unassigned

Bug Description

I am trying to launch a system using Bifrost on CentOS 7. With the following config drive file,

-bash-4.2# cat /mnt/config/openstack/latest/network_data.json
{
    "links": [
        {
            "ethernet_mac_address": "52:54:00:f9:fb:7d",
            "id": "52:54:00:f9:fb:7d",
            "mtu": "1500",
            "type": "phy"
        }
    ],
    "networks": [
        {
            "dns_nameservers": [
                "8.8.8.8"
            ],
            "id": "ipv4-52:54:00:f9:fb:7d",
            "ip_address": "192.168.122.3",
            "link": "52:54:00:f9:fb:7d",
            "netmask": "255.255.255.0",
            "routes": [
                {
                    "gateway": "192.168.122.1",
                    "netmask": "0.0.0.0",
                    "network": "0.0.0.0"
                }
            ],
            "type": "ipv4"
        }
    ],
    "services": [
        {
            "address": [
                "8.8.8.8"
            ],
            "type": "dns"
        }
    ]
}

glean --noop produces

...
### Write /etc/resolv.conf
nameserver [u'8.8.8.8']
...

which is also what I see in /etc/resolv.conf. No idea if this bug is in Bifrost or in Glean part, but Glean development does not seem very active.
I tried setting the locales in Glean

    import locale
    locale.setlocale(locale.LC_ALL,'')

but that did not help. I was able to verify that LC_ALL was set to en_US.UTF-8.

Tags: glean
Revision history for this message
Tapio Tallgren (tapio-tallgren) wrote :

The patch https://review.openstack.org/508113 seems to fix this. The bug was in bifrost, in the yaml format

Revision history for this message
Mark Goddard (mgoddard) wrote :

Cherry picked to stable/pike: https://review.openstack.org/#/c/526007

Changed in bifrost:
status: New → Fix Committed
importance: Undecided → Medium
Dmitry Tantsur (divius)
Changed in bifrost:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.