Skip to content
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

Centreon' object has no attribute host_list' #9

Open
natman opened this issue Feb 13, 2019 · 4 comments
Open

Centreon' object has no attribute host_list' #9

natman opened this issue Feb 13, 2019 · 4 comments

Comments

@natman
Copy link

natman commented Feb 13, 2019

Hello
I can add/delete a host, but when changing status to disabled, I first get issue "Centreon' object has no attribute host_list".
So into centreon_host.py, I change the syntax to host.list(), but this time the issue is "'unicode' object has no attribute 'name'"
Thank you for your help.

@guillaumewatteeux
Copy link
Owner

Hi,

Witch branch ?

I works on dev branch with new centreonapi version. Could you try with this environment ?

@natman
Copy link
Author

natman commented Feb 13, 2019

So... I gave a try to many combinations but no one works, I may misunderstood.
I'm pretty sure you're talking about the dev branch ansible-centreon, but what about the centreonapi repo? Should I use your own forked repo, or the official centreon one? And with which branch?

Our centreon production is not a https one, so the only way I found to make your centreon_host module (present/absent state only ) work is to use the eaa757898e32450510b8460ccd481be3c61c186c branch of your forked centreonapi with the master branch of ansible-centreon.

Tell me which kind of branch I should use with a http connection to centreon and I will perform the test and will give you the result.

@guillaumewatteeux
Copy link
Owner

Hi,

I'm works on both projects. Fork from centreonapi is temporary. I'll merge my stuff after beta test period. (join slack #centreon-iac)
For Ansible modules (and roles). I'm works on dev branch before release a stable version.

Ansible modules on master branch not work with current centreonapi package (>0.1.3)

@natman
Copy link
Author

natman commented Feb 14, 2019

okay,
so, for a 3.4 centreon, the good combination for make all modules work with an http connection is:

  • master branch from ansible-centreon (awful issues with dev branch)
  • detached from origin/features/ansible-centreon from your forked centreonapi

All work as expected, and it is a very useful stuff for all-in-one playbook automation, from vm creation to monitoring.

none of other branches combinations work.

I'll next install a 18.10 vm to give a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants