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

cf-key -r cannot remove hash strings but IP

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0
    • Component/s: cf-key
    • Labels:
      None

      Description

      root@hub052:~# cf-key -s | grep 3e3c8f6eb06bcb52db
      Incoming   192.168.2.50      client50.jeang.org        Wed Aug 21 14:00:29 2013   SHA=3e3c8f6eb06bcb52db0574acae3a794647ccbbb5228b780786d134f32a84517f
      Outgoing   192.168.2.50      client50.jeang.org        Wed Aug 21 14:00:43 2013   SHA=3e3c8f6eb06bcb52db0574acae3a794647ccbbb5228b780786d134f32a84517f
      root@hub052:~# cf-key -s | wc -l
      15
      root@hub052:~# cf-key -r "SHA=3e3c8f6eb06bcb52db0574acae3a794647ccbbb5228b780786d134f32a84517f"
      2013-08-21T14:04:22+0200    error: ERROR, could not resolve 'SHA=3e3c8f6eb06bcb52db0574acae3a794647ccbbb5228b780786d134f32a84517f', not removing
      root@hub052:~# cf-key -s | wc -l
      15
      root@hub052:~# cf-key -s | grep 3e3c8f6eb06bcb52db
      Incoming   192.168.2.50      client50.jeang.org        Wed Aug 21 14:00:29 2013   SHA=3e3c8f6eb06bcb52db0574acae3a794647ccbbb5228b780786d134f32a84517f
      Outgoing   192.168.2.50      client50.jeang.org        Wed Aug 21 14:00:43 2013   SHA=3e3c8f6eb06bcb52db0574acae3a794647ccbbb5228b780786d134f32a84517f
      

      Also it would be nice if cf-key -r <IP> and it purges all of them. (client has been reformatted/reinstalled CFE many times) Specific SHA for host by host.

      root@hub052:~# cf-key -r 192.168.2.51
      root@hub052:~# cf-key -r 192.168.2.51
      2013-08-21T14:06:15+0200    error: No keys for host '192.168.2.51' were found
      root@hub052:~# cf-key -r 192.168.2.51
      2013-08-21T14:06:16+0200    error: No keys for host '192.168.2.51' were found
      root@hub052:~# cf-key -r 192.168.2.51
      2013-08-21T14:06:17+0200    error: No keys for host '192.168.2.51' were found
      root@hub052:~# cf-key -s | grep 192.168.2.51
      Incoming   192.168.2.51      -                         Thu Aug 15 20:45:33 2013   SHA=df125bfb2601a08b0c464b38e649228600f52c1e4617650a35b8f4ca9b054304
      Outgoing   192.168.2.51      -                         Thu Aug 15 20:45:51 2013   SHA=df125bfb2601a08b0c464b38e649228600f52c1e4617650a35b8f4ca9b054304
      Incoming   192.168.2.51      -                         Thu Aug 15 21:10:57 2013   SHA=533272ea96b9673e165d981f30ded43b15ca208f5495448a3f8ee0b60030c0c4
      Outgoing   192.168.2.51      -                         Thu Aug 15 21:10:50 2013   SHA=533272ea96b9673e165d981f30ded43b15ca208f5495448a3f8ee0b60030c0c4
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10039 Hichame Jeffali (Inactive)
                Reporter:
                a10005 Nakarin Phooripoom (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel