Skip to content

ENT-6035 Added duplicate host cleanup during FR import#1807

Merged
craigcomstock merged 1 commit intocfengine:masterfrom
craigcomstock:ENT-6035/master
Aug 27, 2020
Merged

ENT-6035 Added duplicate host cleanup during FR import#1807
craigcomstock merged 1 commit intocfengine:masterfrom
craigcomstock:ENT-6035/master

Conversation

@craigcomstock
Copy link
Copy Markdown
Contributor

@craigcomstock craigcomstock commented Jul 24, 2020

@craigcomstock craigcomstock added the WIP Work in Progress label Jul 24, 2020
@craigcomstock craigcomstock removed the WIP Work in Progress label Aug 11, 2020
@craigcomstock
Copy link
Copy Markdown
Contributor Author

@nickanderson do you feel we should enable this de-dupe call by default? Or have it be an optional thing to enable by editing templates/federated_reporting/config.sh.mustache or even augments maybe?

Copy link
Copy Markdown
Member

@nickanderson nickanderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems simple enough, though I dunno the details of handle_duplicate_hostkeys_in_import. And looking forward to this being tunable off/on.

Copy link
Copy Markdown
Contributor

@vpodzime vpodzime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me otherwise.

Comment thread templates/federated_reporting/import.sh
Comment thread templates/federated_reporting/import.sh
Copy link
Copy Markdown
Contributor

@vpodzime vpodzime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me otherwise.

Comment thread cfe_internal/enterprise/federation/federation.cf Outdated
Comment thread templates/federated_reporting/import.sh
@craigcomstock craigcomstock requested a review from vpodzime August 26, 2020 20:18
Copy link
Copy Markdown
Contributor

@vpodzime vpodzime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash the review fixes.

This feature removes duplicate hostkey entries during federated reporting
import based on lastreporttimestamp in __hosts table.

Enable this feature by defining a class in augments (def.json):

{
  "classes": {
    "cfengine_mp_fr_handle_duplicate_hostkeys": ["any::"]
  }
}

Ticket: ENT-6035
Changelog: title
@craigcomstock craigcomstock merged commit cbc4ed3 into cfengine:master Aug 27, 2020
@craigcomstock craigcomstock deleted the ENT-6035/master branch August 27, 2020 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants