Slow hostname resolution on fuel master

Bug #1410226 reported by Bartosz Kupidura
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Tomasz 'Zen' Napierala
5.0.x
Won't Fix
Medium
Tomasz 'Zen' Napierala
5.1.x
Won't Fix
Medium
Tomasz 'Zen' Napierala
6.0.x
Fix Committed
High
Tomasz 'Zen' Napierala
6.1.x
Fix Released
Medium
Tomasz 'Zen' Napierala

Bug Description

During ssh from fuel master to nodes using names, ssh tries to resolves hostname->ip.

SSH tries to resolve hostname to IPv4 and IPv6.

Cobbler/dnsmasq knows only IPv4. IPv6 is forwarded to internet (google DNS).

In case where Fuel master dont have internet connection (ex. internal network), ssh will be slow.

DNSmasq logs:
Jan 13 14:07:00 dnsmasq[3860]: query[A] node-3.domain.tld from 172.17.42.1
Jan 13 14:07:00 dnsmasq[3860]: /var/lib/cobbler/cobbler_hosts node-3.domain.tld is 192.168.4.153
Jan 13 14:07:00 dnsmasq[3860]: query[AAAA] node-3.domain.tld from 172.17.42.1
Jan 13 14:07:00 dnsmasq[3860]: forwarded node-3.domain.tld to 8.8.8.8

Workaround for this is to force SSH to use only IPv4.

Patch: https://review.openstack.org/#/c/146839/

description: updated
description: updated
Changed in fuel:
assignee: nobody → Fuel Library Team (fuel-library)
importance: Undecided → Medium
milestone: none → 6.1
status: New → Confirmed
no longer affects: fuel/7.0.x
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/146839
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=45fcf34771613a0668a48ae0048efa0a72224330
Submitter: Jenkins
Branch: master

commit 45fcf34771613a0668a48ae0048efa0a72224330
Author: Bartosz Kupidura <email address hidden>
Date: Tue Jan 13 13:16:33 2015 +0100

    Force ssh client on fuel master to use IPv4

    Related-bug: #1410226

    Change-Id: Iaaaa3cf53d1c78484f49b07aeaa547e1cb7386b6

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-library (stable/6.0)

Related fix proposed to branch: stable/6.0
Review: https://review.openstack.org/156687

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-library (stable/6.0)

Reviewed: https://review.openstack.org/156687
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=8d37d08a99a8968765741398fb8bdfa72656f1fe
Submitter: Jenkins
Branch: stable/6.0

commit 8d37d08a99a8968765741398fb8bdfa72656f1fe
Author: Bartosz Kupidura <email address hidden>
Date: Tue Jan 13 13:16:33 2015 +0100

    Force ssh client on fuel master to use IPv4

    Related-bug: #1410226

    Change-Id: Iaaaa3cf53d1c78484f49b07aeaa547e1cb7386b6
    (cherry picked from commit 45fcf34771613a0668a48ae0048efa0a72224330)

Revision history for this message
Maksym Strukov (unbelll) wrote :

{"build_id": "2015-03-16_22-54-44", "ostf_sha": "e86c961ceacfa5a8398b6cbda7b70a5f06afb476", "build_number": "202", "release_versions": {"2014.2-6.1": {"VERSION": {"build_id": "2015-03-16_22-54-44", "ostf_sha": "e86c961ceacfa5a8398b6cbda7b70a5f06afb476", "build_number": "202", "api": "1.0", "nailgun_sha": "874df0d06e32f14db77746cfeb2dd74d4a6e528c", "production": "docker", "python-fuelclient_sha": "2509c9b72cdcdbe46c141685a99b03cd934803be", "astute_sha": "93e427ac49109fa3fd8b0e1d0bb3d14092be2e8c", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "608b72a6f79a719cf01c35a19d0091fe20c8288a", "fuellib_sha": "924d73ae4766646e1c3a44d7b59c4120985e45f0"}}}, "auth_required": true, "api": "1.0", "nailgun_sha": "874df0d06e32f14db77746cfeb2dd74d4a6e528c", "production": "docker", "python-fuelclient_sha": "2509c9b72cdcdbe46c141685a99b03cd934803be", "astute_sha": "93e427ac49109fa3fd8b0e1d0bb3d14092be2e8c", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "608b72a6f79a719cf01c35a19d0091fe20c8288a", "fuellib_sha": "924d73ae4766646e1c3a44d7b59c4120985e45f0"}

Verified in 6.1

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.