freeipa does not work in libvirt environment

Bug #1709333 reported by John Eckersberg on 2017-08-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wes hayutin

Bug Description

The freeipa feature requires overriding the undercloud/overcloud nameservers to point to the freeipa server

However, when using the libvirt environment, undercloud_undercloud_nameservers is ignored.

nameserver_from_virthost is set to true:

and then virthost_nameservers is set:

which is used instead of undercloud_undercloud_nameservers:

The end result is that the undercloud deployment fails, because the ipa client setup fails due to being unable to find the correct records on the wrong nameserver.

Ideally, this could be fixed in the ipa feature by setting nameserver_from_virthost to false, which I tried here:

However, this does not work, because environment configs take precedent over feature configs:

So I'm not sure what the cleanest way to go about fixing this is. Ideally you'd enable the ipa feature and it would sort it out for you. For now, you can workaround this issue by passing '-e nameserver_from_virthost=false' at the end of the commandline, which will successfully override the libvirt environment config. But that's really obtuse for endusers to figure out.

tags: added: quickstart
wes hayutin (weshayutin) wrote :

IMHO I think we should make the config take precedence over the environment. Will discuss it with the team.

Changed in tripleo:
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → wes hayutin (weshayutin)
milestone: none → pike-rc1

Fix proposed to branch: master

Changed in tripleo:
status: Triaged → In Progress
Changed in tripleo:
importance: Critical → High

I agree with wes, would really like it if we could make the config take precedence.

Change abandoned by Alex Schultz (<email address hidden>) on branch: master
Reason: Need to clear out the queue as this is going to fail. Will restore momentarily

Submitter: Jenkins
Branch: master

commit 59344567a2f675e7b4329ed0eb1321f823c6850a
Author: Wes Hayutin <email address hidden>
Date: Tue Aug 8 15:10:06 2017 -0400

    fix FreeIPA dns server issue

    Do not set the nameserver from the virthost if
    FreeIPA is used.

    Closes-Bug: #1709333
    Change-Id: I135b9cdbdc049656d8ad514aedf2b35e4eef7f34

Changed in tripleo:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers