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

Facter leaves behind cached facts if you enable fact TTLs in facter.conf and then remove those TTLs

    Details

    • Template:
    • Team:
      Agent
    • Story Points:
      2
    • Sprint:
      AP 2017-02-08, AP 2017-02-22
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Cache files will now be deleted once their associated entry in the TTL list in the config file is removed.
    • QA Risk Assessment:
      Automate
    • QA Risk Assessment Reason:
      Customer has seen this issue

      Description

      The problem

      I set a TTL on the "disk" group and then later removed it from facter.conf. I noticed that this doesn't remove the cached fact from the cache dir. I suppose it's OK if the cache file isn't consulted, but it's confusing to have a file in the cachedir that isn't actually valid.

      Suggested Solution

      Any cached fact groups that don't currently have a TTL set in facter.conf should be removed from the cachedir. However, we'd want to make sure that running with --no-cache ( not sure if that's the exact setting ) doesn't clear it out.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                maggie Maggie Dreyer
                Reporter:
                nick.walker Nick Walker
                QA Contact:
                Stan Duffy
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: