Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1585

Facter can't resolve metadata on google cloud instances

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: FACT 2.4.6
    • Fix Version/s: FACT 3.6.3
    • Component/s: None
    • Labels:
      None
    • Environment:

      Google Cloud instances

    • Template:
    • Team:
      Agent
    • Sprint:
      Agent 2017-04-05
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      GCE metadata collection now works correctly when Google's DNS is not used
    • QA Risk Assessment:
      Automate
    • QA Risk Assessment Reason:
      We should try to automate testing this

      Description

      On Google Cloud instances , sometimes facter does not work if non Google DNS is used

      2017-03-09 14:22:25.242346 ERROR puppetlabs.facter - GCE metadata request failed: Couldn't resolve host name

      Long hostname is automatically added by google
      /etc/host

      <some ip> metadata.google.internal # Added by Google

      Moreover google docs are using long hostname in examples. (https://cloud.google.com/compute/docs/storing-retrieving-metadata)

        Attachments

          Activity

            People

            Assignee:
            branan Branan Riley
            Reporter:
            szmateusz Mateusz
            QA Contact:
            Eric Delaney Eric Delaney
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support