Comments (7)
Sure this only happens since p5? I did change the path handling in p4. I also just checked the tests I added and found that I generate paths in a loop. So to get "/Blub/Baa" I first create "/Blub" and then "/Blub/Baa". The error also says that the REST API only wants to create the last folder given. Or in other words. This behaves like mkdir
and not mkdir -p
. So my assumption is this has happened before.
from ansible-collection-checkmk.general.
Yea I have tested it with p4 and there it worked. And yes it creates like „mkdir“ because „mkdir -p“ was not working in the beginning.. but I don’t understand what this has to do with the problem?!
from ansible-collection-checkmk.general.
The error message you have written says that the parent folder /blub/blub/bla
does not exist. Since the rest endpoint does not create parent folders this message is expected. We can fix this in the rest api or let the ansible module deal with that.
from ansible-collection-checkmk.general.
Ok.. I have copied the module and fixed it locally by myself anyway. So just take it as notice and do what you think is ok..
The parent folder is already existing and its folder ID (not title!) is: ~BLUB~blub~BLA
The module does a .lower()
and then the the ID of the folder is like in the output and it searches for the id ~bla~blub~bla
and does not find it.
The .lower()
is since march in the module so anything real strange was done by the API which did not throw this error and it was working like expected and folders got created. But since p5 ist was not working anymore and I debugged it several hours before I created this issue.
from ansible-collection-checkmk.general.
Btw.. and just fyi - I also fixed the host module which was not working anymore. The API Maybe was sending not the first /
before and now it does.. so to fix the host module just remove the slash which is set by the module:
OLD:
current_folder = "/%s" % extensions.get("folder", "")
NEW:
current_folder = "%s" % extensions.get("folder", "")
from ansible-collection-checkmk.general.
@elwood218 your issue should be fixed with #147. It will be included in version 0.9.0
which will be released today.
Can you verify that the fix works for you too and close this issue if so?
from ansible-collection-checkmk.general.
Closing this due to staleness, as there is another fix in 993b4ce.
If there is anything else, please open a new issue.
from ansible-collection-checkmk.general.
Related Issues (20)
- [BUG] Inconsistent behaviour of Ansible modules (update vs remove + compared to API) HOT 10
- [BUG]: reset_password in user module recreates the user HOT 1
- host_tag_group Endpoint changed the parameters id/ident HOT 1
- [BUG] notification rules is not recognized by checkmk.general.rule HOT 3
- [FEED] HOT 2
- [BUG] idempotency of rule fails on datasource_programs ruleset HOT 8
- [BUG] Register Linux agent for TLS fails with CRE edition HOT 3
- [BUG] Agent role has unecessary changes, when the agent is already registered and added to CheckMK HOT 2
- [Feature Request] Create Host and Service Groups Rules via Ansible HOT 4
- [BUG] folder creation always lowers the foldername HOT 10
- [Feed] folder lookup plugin does not return the title of the folder HOT 3
- fixed downtime? HOT 4
- [BUG] "Register Agent for TLS" does not allow for "!" in checkmk_agent_auth on Linux HOT 1
- [FEED] Only register agent if host was created on the server or agent was installed HOT 4
- [FEED] Implement module for LDAP Connections
- [BUG] module "folder" not idempotent HOT 10
- [BUG] `discovery` module out of sync with the Checkmk REST API HOT 2
- [BUG] Error in the Agent role, Firewall seems to be only installed if checkmk_agent_server is an ip address HOT 3
- [FEED] Configure new web services monitoring HOT 1
- [BUG] rule idempotency check does not work for special_agents:vsphere rules HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-collection-checkmk.general.