Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Oct 2018 17:51:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 232456] release/tools/gce.conf: cannot query NTP because of the non resolved hostname
Message-ID:  <bug-232456-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232456

            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@FreeBSD.org
          Reporter: lucas.kanashiro@collabora.com

Created attachment 198376
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D198376&action=
=3Dedit
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  jit=
ter
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
*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 conte=
nt:

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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232456-227>