-
Notifications
You must be signed in to change notification settings - Fork 55
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
[BUG] update_attributes on folder with network scan enabled (and a network scan result present) fails #531
Comments
Small addition: if we remove the network scan alone and try it again it still fails. If we remove the network_scan_result also (from the .wato file of the folder) it succeeds. |
Hi @Mik3yZ, sorry for the late answer, and thanks for reporting this. Did you test this with the REST API directly as well? I have a feeling, that this is an upstream issue. If you could test that quickly, that'd be great, then I can report it internally. |
Hi Robin, If we execute this via the API it just works. I Checked the code of the folders module, and what it does it that it fetches all the folder attributes with the function Somewhere in here, i would say, we should exclude the |
Hi @Mik3yZ, I recently rewrote the folder module (see #536), but it's not yet merged into the devel branch. Best regards |
This was actually implemented with #558. |
@robin-checkmk it seems this issue isn't really resolved. I'm running the latest collection (5.1.0) and still get this error:
Ansible-collection list output:
To me, it looks like the issue isn't really fixed in the latest releases. By the looks of it, the update-module still takes the 'network_scan_result', which fails since I think it should be ommited as it's read-only (should be, although it reports about incorrect type). Easy steps to recreate:
More details can be found in OP of Mik3yZ. Can we re-open this issue or should I create a new issue for it? |
@lgetwan can you take a gander at this, when you find the time? Thanks! |
Fixed in #648 (which is under review). |
Describe the bug
When a network scan is defined and a result is there for a folder, we can't update the folder attributes.
Component Name
Component Name: folder_module
Ansible Version
Checkmk Version and Edition
Checkmk Enterprise Edition 2.2.0p17
Collection Version
To Reproduce
We create our folder structure via a var file:
And we then create the folders with a loop.
The first time this runs succesfully, but when we define a network scan on this folder (and wait for it to finish so a network scan result is there) and run the playbook we receive the failure on the "Update folder contactgroups" play:
Expected behavior
We expect the folder to just be updated
Actual behavior
Error message
The text was updated successfully, but these errors were encountered: