[Bug 232456] release/tools/gce.conf: cannot query NTP because of the non resolved hostname
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Oct 19 17:51:58 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232456
Bug ID: 232456
Summary: release/tools/gce.conf: cannot query NTP because of
the non resolved hostname
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: conf
Assignee: bugs at FreeBSD.org
Reporter: lucas.kanashiro at collabora.com
Created attachment 198376
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=198376&action=edit
Patch release/tools/gce.conf to allow NTP queries
After create a VM on GCE using a FreeBSD 12 image
(projects/freebsd-org-cloud-dev/global/images/family/freebsd-12-0) for some
reason I cannot query NTP because of non resolved hostname.
# ntpq -p
hostname nor servname provided, or not known
After adding '127.0.0.1 localhost' to /etc/hosts I am able to do the query.
# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*metadata.google 71.79.79.71 2 u 42 64 377 0.530 65.006 121.795
I attached a patch that instead of overwrite the /etc/hosts with this content:
echo '169.254.169.254 metadata.google.internal metadata' > \
${DESTDIR}/etc/hosts
We simply append this line to the base /etc/hosts file.
One of the tests that the Google Cloud team runs against images is to query NTP
this way that I described, so this is making some tests failures.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list