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

[dev.icinga.com #8831] TASK fails on /sbin/initctl status icinga2 #36

Open
icinga-migration opened this issue Mar 21, 2015 · 2 comments
Labels

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/8831

Created by thoth on 2015-03-21 14:08:50 +00:00

Assignee: (none)
Status: New
Target Version: (none)
Last Update: 2015-03-25 14:36:17 +00:00 (in Redmine)


I was trying out ansible, and tried to shoehorn the ansible playbook into a docker container with ansible in it and try the install from there. It fails on me at this step:

TASK: [icinga2-ansible-no-ui | Start Icinga2] ********************************* 
failed: [icinga_one] => {"cmd": "/sbin/initctl status icinga2", "failed": true, "rc": 8}
msg: [Errno 8] Exec format error

might be just happening too fast and I need to insert a wait in there. But I thought I'd gather any suggestions here. If you'd like to take a look at my docker container it is here:

https://github.com/joshuacox/docker-ansible-icinga2

@icinga-migration
Copy link
Author

Updated by thoth on 2015-03-21 16:59:42 +00:00

this is due to the architecture of docker containers and merely obscures my original issue, this one can be closed, I'll post another issue that describes my issue in more detail, and a repo with it isolated if I can think of a way to do that.

@icinga-migration
Copy link
Author

Updated by thoth on 2015-03-25 14:36:17 +00:00

looking back at this and the prevalence of docker this might be worth keeping open and working on. I believe the solution involves determining that ansible is indeed running inside a docker environment (maybe a semaphore can be given by the user). And then foregoing the restart kicked off my the playbook, being understood that the creator of the docker container will probably use supervisord or something similar to start icinga2. I have docker containers for all of the configuration management options from the official icinga team, if you look around my github account you'll see I'm forking all sorts of icinga related docker containers, or making my own if they don't exist.

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

No branches or pull requests

1 participant