]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/ansible: Host ls implementation 26185/head
authorJuan Miguel Olmo Martínez <jolmomar@redhat.com>
Tue, 29 Jan 2019 10:24:12 +0000 (11:24 +0100)
committerJuan Miguel Olmo Martínez <jolmomar@redhat.com>
Wed, 24 Apr 2019 16:00:08 +0000 (18:00 +0200)
commit5cd4c038d6b025b57a14aaa2d7cde6d000c96411
treeb60f0a20a52345362d4380583048c758e86ab062
parentdd93973894ae81d77a20d2c2963eadbe96a198fb
mgr/ansible: Host ls implementation

Implement the <<host ls>> operation in the orchestrator

Example:
[ ~]$ ceph orchestrator host ls
Hosts
192.168.121.20
192.168.121.170
192.168.121.213
192.168.121.212

Followed @sebastian-philipp suggestions
- Improved exception management in process_hosts_ls
- use the orchestrator <get_host> function instead <host_ls>
- Orchestrator now returns a list of Inventory Node
- Orchestrator-cli use the list of inventory nodes to print the hosts names
- Fixed comparation error
- <process_hosts_ls> method: include json errors in output
- removed <host_ls> orchestrator method stuff (<get_hosts> is the new method to use)
- Fixed wrong assignations
- rebased
02/01/19:
- Addressed @sebastian-philipp suggestions
- Housekeeping tasks.
- Refactor completion's result management. Created Output wizards and basic unit tests for them.
- rebased

Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
src/pybind/mgr/ansible/module.py
src/pybind/mgr/ansible/output_wizards.py [new file with mode: 0644]
src/pybind/mgr/ansible/tests/test_output_wizards.py [new file with mode: 0644]
src/pybind/mgr/orchestrator.py