Dogtag installation fails due to wrong dnsdomainname

Bug #1477118 reported by Juan Antonio Osorio Robles
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Barbican
Fix Released
Medium
Juan Antonio Osorio Robles

Bug Description

Since the dogtag gate now requires a proper dns domain name to be configured, the gate started failing, since we were overwritting the /etc/hosts file in the wrong manner.

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

Reviewed: https://review.openstack.org/202146
Committed: https://git.openstack.org/cgit/openstack/barbican/commit/?id=f8073466c4b3fd204e05cf8e9da7a956eadba406
Submitter: Jenkins
Branch: master

commit f8073466c4b3fd204e05cf8e9da7a956eadba406
Author: Juan Antonio Osorio Robles <email address hidden>
Date: Wed Jul 15 17:58:17 2015 +0300

    Configure dogtag installation's domain name

    It seems that previously we were overriding the /etc/hosts in an
    incorrect way. The gate had already several aliases for localhost which
    we were completely discarding, and this might cause some issues with
    some assumptions that were being taken in the gate.

    On the other hand, a newer version of dogtag that is now being used in
    the gate requires there to be a proper DNS domain name configured, and
    this was causing the installation to fail in the gate.

    So as a solution, we now force the fqdn to be localhost.localdomain. And
    on the other hand, we explicitly configure dogtag to use localhost as a
    hostname, since it was actually getting an alias from the hostname
    command, which was not being found with the domain it was fetching from
    the dnsdomainname command.

    Closes-Bug: #1477118
    Change-Id: I7ea518ddc35ac96fb8594d57a1a46a32f30bf3c0

Changed in barbican:
status: New → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to barbican (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/205042

Thierry Carrez (ttx)
Changed in barbican:
milestone: none → liberty-2
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to barbican (stable/kilo)

Reviewed: https://review.openstack.org/205042
Committed: https://git.openstack.org/cgit/openstack/barbican/commit/?id=6467361a5d5bd78203c70b3ac174a04870f17bbb
Submitter: Jenkins
Branch: stable/kilo

commit 6467361a5d5bd78203c70b3ac174a04870f17bbb
Author: Juan Antonio Osorio Robles <email address hidden>
Date: Wed Jul 15 17:58:17 2015 +0300

    Configure dogtag installation's domain name

    It seems that previously we were overriding the /etc/hosts in an
    incorrect way. The gate had already several aliases for localhost which
    we were completely discarding, and this might cause some issues with
    some assumptions that were being taken in the gate.

    On the other hand, a newer version of dogtag that is now being used in
    the gate requires there to be a proper DNS domain name configured, and
    this was causing the installation to fail in the gate.

    So as a solution, we now force the fqdn to be localhost.localdomain. And
    on the other hand, we explicitly configure dogtag to use localhost as a
    hostname, since it was actually getting an alias from the hostname
    command, which was not being found with the domain it was fetching from
    the dnsdomainname command.

    cherry-picked from: f8073466c4b3fd204e05cf8e9da7a956eadba406
    Closes-Bug: #1477118
    Change-Id: I7ea518ddc35ac96fb8594d57a1a46a32f30bf3c0

tags: added: in-stable-kilo
Changed in barbican:
assignee: nobody → Juan Antonio Osorio Robles (juan-osorio-robles)
Thierry Carrez (ttx)
Changed in barbican:
milestone: liberty-2 → 1.0.0
Changed in barbican:
importance: Undecided → Medium
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.