Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-325

cf-key fails to remove keys when duplicate keys are present

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: 3.7.0, 3.12.0
    • Fix Version/s: None
    • Component/s: cf-key
    • Labels:
      None

      Description

      cf-key -r fails to remove keys when there are multiple hosts with the same hostname and IP, but different MD5 checksum (for example, when a machine is reinstalled and new keys are generated).

      cf-key -s shows:

      Incoming 146.186.16.188 passgw6.aset.psu.edu Mon Jan 7 14:40:54 2013 MD5=ed60dbecec5dc9f86013baef008eeeee
      Incoming 146.186.16.188 passgw6.aset.psu.edu Thu Jan 10 10:30:50 2013 MD5=556ba31cefb03a1480e40ae020a79696

      Then we run cf-key -r 146.186.16.188, and we still see:

      Incoming 146.186.16.188 passgw6.aset.psu.edu Mon Jan 7 14:40:54 2013 MD5=ed60dbecec5dc9f86013baef008eeeee

      Running cf-key -r a few more times:

      1. cf-key -r 146.186.16.188
        No keys for host 146.186.16.188 were found
      1. cf-key -r ed60dbecec5dc9f86013baef008eeeee
        No keys for host ed60dbecec5dc9f86013baef008eeeee were found

      Is there any way to remove this old key without blowing away the database, or is this a new bug?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              phalenor Andrew Cobaugh
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel