{"action":"created","issue":{"url":"https://api.github.com/repos/ceph/ceph/issues/24445","repository_url":"https://api.github.com/repos/ceph/ceph","labels_url":"https://api.github.com/repos/ceph/ceph/issues/24445/labels{/name}","comments_url":"https://api.github.com/repos/ceph/ceph/issues/24445/comments","events_url":"https://api.github.com/repos/ceph/ceph/issues/24445/events","html_url":"https://github.com/ceph/ceph/pull/24445","id":367154810,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwNjU3NzUw","number":24445,"title":"mgr/ansible: Ansible orchestrator module","user":{"login":"jmolmo","id":1820049,"node_id":"MDQ6VXNlcjE4MjAwNDk=","avatar_url":"https://avatars2.githubusercontent.com/u/1820049?v=4","gravatar_id":"","url":"https://api.github.com/users/jmolmo","html_url":"https://github.com/jmolmo","followers_url":"https://api.github.com/users/jmolmo/followers","following_url":"https://api.github.com/users/jmolmo/following{/other_user}","gists_url":"https://api.github.com/users/jmolmo/gists{/gist_id}","starred_url":"https://api.github.com/users/jmolmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmolmo/subscriptions","organizations_url":"https://api.github.com/users/jmolmo/orgs","repos_url":"https://api.github.com/users/jmolmo/repos","events_url":"https://api.github.com/users/jmolmo/events{/privacy}","received_events_url":"https://api.github.com/users/jmolmo/received_events","type":"User","site_admin":false},"labels":[{"id":134774006,"node_id":"MDU6TGFiZWwxMzQ3NzQwMDY=","url":"https://api.github.com/repos/ceph/ceph/labels/feature","name":"feature","color":"00ff24","default":false},{"id":454906768,"node_id":"MDU6TGFiZWw0NTQ5MDY3Njg=","url":"https://api.github.com/repos/ceph/ceph/labels/mgr","name":"mgr","color":"c2e0c6","default":false},{"id":340048817,"node_id":"MDU6TGFiZWwzNDAwNDg4MTc=","url":"https://api.github.com/repos/ceph/ceph/labels/needs-review","name":"needs-review","color":"d4c5f9","default":false},{"id":1111279478,"node_id":"MDU6TGFiZWwxMTExMjc5NDc4","url":"https://api.github.com/repos/ceph/ceph/labels/orchestrator","name":"orchestrator","color":"ff00c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2018-10-05T10:38:15Z","updated_at":"2018-11-23T08:35:08Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/ceph/ceph/pulls/24445","html_url":"https://github.com/ceph/ceph/pull/24445","diff_url":"https://github.com/ceph/ceph/pull/24445.diff","patch_url":"https://github.com/ceph/ceph/pull/24445.patch"},"body":"A Ceph Manager Orchestrator that uses a external REST API service to execute Ansible playbooks.\r\nSigned-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>\r\n\r\nA first running version of this orchestrator manager module.\r\n\r\nStill lot of things to do, but this allows to start getting feedback from the community.\r\n\r\nJust manual tests ran:\r\n\r\nenable/disable module and check logs\r\ntest command line (get inventory)\r\n\r\n**Details**\r\n```\r\n[root@ceph build]# ./bin/ceph mgr module ls\r\n*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***\r\n2018-10-04 13:09:12.430 7fa64be26700 -1 WARNING: all dangerous and experimental features are enabled.\r\n2018-10-04 13:09:12.499 7fa64be26700 -1 WARNING: all dangerous and experimental features are enabled.\r\n{\r\n    \"enabled_modules\": [\r\n        \"balancer\",\r\n        \"dashboard\",\r\n        \"devicehealth\",\r\n        \"iostat\",\r\n        \"prometheus\",\r\n        \"restful\",\r\n        \"status\"\r\n    ],\r\n    \"disabled_modules\": [\r\n        {\r\n            \"name\": \"ansible_orchestrator\",\r\n            \"can_run\": true,\r\n            \"error_string\": \"\"\r\n        },\r\n        {\r\n            \"name\": \"diskprediction\",\r\n            ...\r\n------------------------------------------------------------------------------------------------------------\r\n[root@ceph build]# ./bin/ceph mgr module enable ansible_orchestrator\r\n*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***\r\n2018-10-04 13:10:34.121 7f91d0c71700 -1 WARNING: all dangerous and experimental features are enabled.\r\n2018-10-04 13:10:34.237 7f91d0c71700 -1 WARNING: all dangerous and experimental features are enabled.\r\n\r\n------------------------------------------------------------------------------------------------------------\r\nCeph Mgr logs:\r\n2018-10-04 13:10:34.638 7ff6ecc646c0  1 mgr[py] Loading python module 'ansible_orchestrator'\r\n2018-10-04 13:10:34.663 7ff6ecc646c0  4 mgr[py] load_subclass_of: found class: 'ansible_orchestrator.Module'\r\n2018-10-04 13:10:34.663 7ff6ecc646c0  4 mgr[py] Standby mode not provided by module 'ansible_orchestrator'\r\n2018-10-04 13:10:35.608 7ff6c869b700  4 mgr[py] Starting ansible_orchestrator\r\n2018-10-04 13:10:35.608 7ff6c869b700  1 mgr load Constructed class from module: ansible_orchestrator\r\n2018-10-04 13:10:35.608 7ff6c869b700  4 mgr start_one Starting thread for ansible_orchestrator\r\n2018-10-04 13:10:35.609 7ff6c6697700  4 mgr entry Entering thread for ansible_orchestrator\r\n2018-10-04 13:10:35.609 7ff6c6697700  4 mgr[ansible_orchestrator] Starting Ansible Orchestrator module ...\r\n2018-10-04 13:10:35.609 7ff6c6697700  4 mgr[ansible_orchestrator] No pending operations\r\n2018-10-04 13:10:45.609 7ff6c6697700  4 mgr[ansible_orchestrator] No pending operations\r\n....\r\n\r\n------------------------------------------------------------------------------------------------------------\r\n\r\n[root@ceph build]# ./bin/ceph  inventory\r\n*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***\r\n2018-10-04 13:11:36.733 7f7247aeb700 -1 WARNING: all dangerous and experimental features are enabled.\r\n2018-10-04 13:11:36.794 7f7247aeb700 -1 WARNING: all dangerous and experimental features are enabled.\r\nTextual result of the playbook execution\r\n<<<Textual result of the playbook execution>>>\r\n\r\n```\r\n\r\n- [ ] References tracker ticket\r\n- [x] Updates documentation if necessary\r\n- [ ] Includes tests for new functionality or reproducer for bug\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ceph/ceph/issues/comments/441179964","html_url":"https://github.com/ceph/ceph/pull/24445#issuecomment-441179964","issue_url":"https://api.github.com/repos/ceph/ceph/issues/24445","id":441179964,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTE3OTk2NA==","user":{"login":"sebastian-philipp","id":2574405,"node_id":"MDQ6VXNlcjI1NzQ0MDU=","avatar_url":"https://avatars2.githubusercontent.com/u/2574405?v=4","gravatar_id":"","url":"https://api.github.com/users/sebastian-philipp","html_url":"https://github.com/sebastian-philipp","followers_url":"https://api.github.com/users/sebastian-philipp/followers","following_url":"https://api.github.com/users/sebastian-philipp/following{/other_user}","gists_url":"https://api.github.com/users/sebastian-philipp/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastian-philipp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastian-philipp/subscriptions","organizations_url":"https://api.github.com/users/sebastian-philipp/orgs","repos_url":"https://api.github.com/users/sebastian-philipp/repos","events_url":"https://api.github.com/users/sebastian-philipp/events{/privacy}","received_events_url":"https://api.github.com/users/sebastian-philipp/received_events","type":"User","site_admin":false},"created_at":"2018-11-23T08:35:08Z","updated_at":"2018-11-23T08:35:08Z","author_association":"MEMBER","body":"Jenkins says:\r\n```\r\nThe following tests FAILED:\r\n\t  8 - run-tox-mgr-ansible (Failed)\r\n```"}}
{"actor":{"display_login":"sebastian-philipp"}}