Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Seena Fallah <[email protected]>
  • Loading branch information
clwluvw committed Mar 4, 2024
1 parent 4b30a45 commit e650e0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions tests/functional/tests/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,11 @@ class TestCephExporter(object):
@pytest.mark.ceph_exporter
def test_ceph_exporter_service_enabled_and_running_container(self, node, host):
s = host.service("ceph-exporter@{hostname}".format(hostname=node["vars"]["inventory_hostname"]))
journal_logs = host.run('sudo journalctl -u ceph-exporter@{hostname} --no-pager'.format(hostname=node["vars"]["inventory_hostname"]))
import sys
print(journal_logs.stdout, file=sys.stderr)
import logging
logger = logging.getLogger(__name__)
logger.error(journal_logs.stdout)
assert s.is_enabled
assert s.is_running
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ commands=
"

# test cluster state using ceph-ansible tests
py.test --reruns 20 --reruns-delay 3 -n 8 --durations=0 --sudo -v --connection=ansible --ansible-inventory={changedir}/{env:INVENTORY} --ssh-config={changedir}/vagrant_ssh_config {toxinidir}/tests/functional/tests
py.test -o log_cli=true --reruns 20 --reruns-delay 3 -n 8 --durations=0 --sudo -v --connection=ansible --ansible-inventory={changedir}/{env:INVENTORY} --ssh-config={changedir}/vagrant_ssh_config {toxinidir}/tests/functional/tests

# reboot all vms
all_daemons,all_daemons_ipv6,collocation: ansible-playbook -vv --diff -i {changedir}/{env:INVENTORY} {toxinidir}/tests/functional/reboot.yml
Expand Down

0 comments on commit e650e0c

Please sign in to comment.