Skip to content

Bugfix host creation for agent role #818

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: devel
Choose a base branch
from

Conversation

robin-checkmk
Copy link
Member

@robin-checkmk robin-checkmk commented Jul 15, 2025

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: #743

What is the new behavior?

The agent role now properly moves hosts based on the checkmk_agent_folder variable.
Before, there were two possible behaviors. Either the host was in the expected folder and its atrributes were updated if set. Or the agent role would fail, if the host was in a different folder than defined in checkmk_agent_folder and had attributes set. While the new behavior now actually is idempotent, it might be surprising, that hosts would be moved in the folder structure,if the checkmk_agent_folder variable does not match the current folder of the host. So while this is a bug fix by definition, please take note and check your configuration!

Other information

ToDo

  • Add test case to molecule?

@robin-checkmk robin-checkmk changed the title Make hosts moveable Bugfix host creation for agent role Jul 16, 2025
@robin-checkmk robin-checkmk added the bug Something isn't working label Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working role:agent This affects the agent role
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Conflict updating a host's attributes while moving it to another folder
1 participant