puppet generates wrong dnsmasq.upstream in cobbler container

Bug #1327799 reported by frido
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Matthew Mosesohn
5.0.x
Fix Committed
High
Matthew Mosesohn

Bug Description

When entering two different DNS resolvers in the UI, the puppet template in the cobbler container generates a corrupt dnsmasq.upstream file causing resolving to break:

/etc/dnsmasq.upstream:

domain vm.zolder.org
search domain.tld
nameserver 212.79.255.18,212.79.255.19

last line doesn't except a comma.

Revision history for this message
frido (fga) wrote :

attached puppet template solved problem for me

Revision history for this message
Nastya Urlapova (aurlapova) wrote :

Please, provide iso version and diagnostic shapshot.

Changed in fuel:
status: New → Incomplete
Changed in fuel:
milestone: none → 5.1
assignee: nobody → Matthew Mosesohn (raytrac3r)
importance: Undecided → High
status: Incomplete → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

Fix proposed to branch: master
Review: https://review.openstack.org/100609

Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

Hi Frido,
Thanks for the bug post. I was able to reproduce this quite easily. It's easier to fix this in fuelmenu, so I've added a commit there.

Revision history for this message
frido (fga) wrote :

Matthew,

Note that with multiple dns servers the entries should be on seperate lines:

domain domain.tld
search domain.tld
nameserver 212.79.255.18
nameserver 212.79.255.19

Also how will this change propagate into the cobbler docker instance ?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/100899

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/100609
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=1512e723c76dd2abaf7ae834dedc14012864545d
Submitter: Jenkins
Branch: master

commit 1512e723c76dd2abaf7ae834dedc14012864545d
Author: Matthew Mosesohn <email address hidden>
Date: Tue Jun 17 20:00:07 2014 +0400

    Write correct upstream nameservers

    Fuelmenu was saving DNS_UPSTREAM with the format
    server1,server2 instead of server1 server2,
    breaking DNS lookups.

    Change-Id: I0c06454d867b995bc7d51df0a0199a21e1481384
    Partial-Bug: #1327799

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (stable/5.0)

Fix proposed to branch: stable/5.0
Review: https://review.openstack.org/101066

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (stable/5.0)

Reviewed: https://review.openstack.org/101066
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=3c3298ededbf876f08fa3937e434516f3e874c40
Submitter: Jenkins
Branch: stable/5.0

commit 3c3298ededbf876f08fa3937e434516f3e874c40
Author: Matthew Mosesohn <email address hidden>
Date: Tue Jun 17 20:00:07 2014 +0400

    Write correct upstream nameservers

    Fuelmenu was saving DNS_UPSTREAM with the format
    server1,server2 instead of server1 server2,
    breaking DNS lookups.

    Change-Id: I0c06454d867b995bc7d51df0a0199a21e1481384
    Partial-Bug: #1327799
    (cherry picked from commit 1512e723c76dd2abaf7ae834dedc14012864545d)

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/100899
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=25fc895bc845ab8269745bd4c71e8f229f4a6a39
Submitter: Jenkins
Branch: master

commit 25fc895bc845ab8269745bd4c71e8f229f4a6a39
Author: Matthew Mosesohn <email address hidden>
Date: Wed Jun 18 16:54:01 2014 +0400

    Fix support for multiple upstream dns servers

    Added handler to dnsmasq.upstream template to
    properly write nameserver entries for multiple
    upstream DNS servers.

    Change-Id: Ide20e0472962c99562b6618abd7d766e7de6db22
    Partial-Bug: #1327799

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.