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

cassandra_backup module #56332

Open
wants to merge 7 commits into
base: devel
from

Conversation

Projects
None yet
2 participants
@rhysmeister
Copy link
Contributor

commented May 12, 2019

SUMMARY

A simple module for the Apache Cassandra database that allows the incremental backup feature to be managed on the node.

- name: Turn on incremental backup with module
  cassandra_backup:
    state: "enabled"

- name: Turn off incremental backup with module
  cassandra_backup:
    state: "disabled"

This is the first PR for a series of modules for managing the Cassandra database. A further 10 have already been developed and each encapsulates a function of the nodetool utility provided by the Cassandra distribution.

A full suite of integration tests for all these Cassandra modules have been produced and will be submitted in a separate PR from the modules.

ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME

cassandra_backup

rhysmeister added some commits May 12, 2019

@rhysmeister

This comment has been minimized.

Copy link
Contributor Author

commented May 26, 2019

Output of integration tests for the cassandra_backup module.

Running cassandra_backup integration test role
Run command: ansible-playbook cassandra_backup-dfA2rC.yml -i inventory -v
Using /root/.ansible/test/tmp/cassandra_backup-DshXzq-ÅÑŚÌβŁÈ/test/integration/integration.cfg as config file

PLAY [testhost] ****************************************************************

TASK [Gathering Facts] *********************************************************
ok: [testhost] => {"ansible_facts": {"ansible_all_ipv4_addresses": ["172.17.0.2"], "ansible_all_ipv6_addresses": [], "ansible_apparmor": {"status": "disabled"}, "ansible_architecture": "x86_64", "ansible_bios_date": "03/14/2014", "ansible_bios_version": "1.00", "ansible_cmdline": {"BOOT_IMAGE": "/boot/kernel", "console": "ttyS0", "page_poison": "1", "panic": "1", "root": "/dev/sr0", "text": true, "vsyscall": "emulate"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558884858", "hour": "15", "iso8601": "2019-05-26T15:34:18Z", "iso8601_basic": "20190526T153418339624", "iso8601_basic_short": "20190526T153418", "iso8601_micro": "2019-05-26T15:34:18.339706Z", "minute": "34", "month": "05", "second": "18", "time": "15:34:18", "tz": "UTC", "tz_offset": "+0000", "weekday": "Sunday", "weekday_number": "0", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "172.17.0.2", "alias": "eth0", "broadcast": "172.17.255.255", "gateway": "172.17.0.1", "interface": "eth0", "macaddress": "02:42:ac:11:00:02", "mtu": 1500, "netmask": "255.255.0.0", "network": "172.17.0.0", "type": "ether"}, "ansible_default_ipv6": {}, "ansible_device_links": {"ids": {}, "labels": {}, "masters": {}, "uuids": {}}, "ansible_devices": {"loop0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop1": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop2": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop3": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop4": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop5": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop6": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop7": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "nbd0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "0", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "512", "vendor": null, "virtual": 1}, "nbd1": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "0", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "512", "vendor": null, "virtual": 1}, "nbd10": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "0", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "512", "vendor": null, "virtual": 1}, "nbd11": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "0", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "512", "vendor": null, "virtual": 1}, "nbd12": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "0", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "512", "vendor": null, "virtual": 1}, "nbd13": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "0", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "512", "vendor": null, "virtual": 1}, "nbd14": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "0", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "512", "vendor": null, "virtual": 1}, "nbd15": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "0", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "512", "vendor": null, "virtual": 1}, "nbd2": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "0", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "512", "vendor": null, "virtual": 1}, "nbd3": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "0", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "512", "vendor": null, "virtual": 1}, "nbd4": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "0", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "512", "vendor": null, "virtual": 1}, "nbd5": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "0", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "512", "vendor": null, "virtual": 1}, "nbd6": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "0", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "512", "vendor": null, "virtual": 1}, "nbd7": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "0", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "512", "vendor": null, "virtual": 1}, "nbd8": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "0", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "512", "vendor": null, "virtual": 1}, "nbd9": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "0", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "512", "vendor": null, "virtual": 1}, "sda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": "BHYVE SATA DISK", "partitions": {"sda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "sectors": "124997632", "sectorsize": 512, "size": "59.60 GB", "start": "2048", "uuid": null}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "124999680", "sectorsize": "512", "size": "59.60 GB", "support_discard": "4096", "vendor": "ATA", "virtual": 1}, "sr0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": "BHYVE DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "977760", "sectorsize": "2048", "size": "477.42 MB", "support_discard": "0", "vendor": "BHYVE", "virtual": 1}, "sr1": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": "BHYVE DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "284", "sectorsize": "2048", "size": "142.00 KB", "support_discard": "0", "vendor": "BHYVE", "virtual": 1}, "sr2": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": "BHYVE DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "1968348", "sectorsize": "2048", "size": "961.11 MB", "support_discard": "0", "vendor": "BHYVE", "virtual": 1}}, "ansible_distribution": "CentOS", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "7", "ansible_distribution_release": "Core", "ansible_distribution_version": "7", "ansible_dns": {"domain": "home", "nameservers": ["192.168.65.1"]}, "ansible_domain": "", "ansible_effective_group_id": 0, "ansible_effective_user_id": 0, "ansible_env": {"ANSIBLE_CALLBACK_WHITELIST": "junit", "ANSIBLE_CONFIG": "/root/.ansible/test/tmp/cassandra_backup-DshXzq-ÅÑŚÌβŁÈ/test/integration/integration.cfg", "ANSIBLE_DEPRECATION_WARNINGS": "false", "ANSIBLE_FORCE_COLOR": "true", "ANSIBLE_HOST_KEY_CHECKING": "false", "ANSIBLE_LIBRARY": "/dev/null", "ANSIBLE_PYTHON_MODULE_RLIMIT_NOFILE": "1024", "ANSIBLE_RETRY_FILES_ENABLED": "false", "ANSIBLE_ROLES_PATH": "/root/.ansible/test/tmp/cassandra_backup-DshXzq-ÅÑŚÌβŁÈ/test/integration/targets", "ANSIBLE_TEST_CI": "", "ANSIBLE_TEST_COVERAGE": "", "ANSIBLE_TEST_PYTHON_INTERPRETER": "/usr/bin/python2.7", "ANSIBLE_TEST_PYTHON_VERSION": "2.7", "HOME": "/root", "INVENTORY_PATH": "/root/.ansible/test/tmp/cassandra_backup-DshXzq-ÅÑŚÌβŁÈ/test/integration/inventory", "JUNIT_OUTPUT_DIR": "/root/ansible/test/results/junit", "LC_ALL": "en_US.UTF-8", "OUTPUT_DIR": "/root/ansible_testing", "PAGER": "/bin/cat", "PATH": "/tmp/python-jAe9_E-ansible:/root/ansible/test/runner/injector:/root/ansible/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "PWD": "/root/.ansible/test/tmp/cassandra_backup-DshXzq-ÅÑŚÌβŁÈ/test/integration", "PYTHONPATH": "/root/ansible/lib", "SHLVL": "2", "_": "/tmp/python-jAe9_E-ansible/python"}, "ansible_eth0": {"active": true, "device": "eth0", "ipv4": {"address": "172.17.0.2", "broadcast": "172.17.255.255", "netmask": "255.255.0.0", "network": "172.17.0.0"}, "macaddress": "02:42:ac:11:00:02", "mtu": 1500, "promisc": false, "speed": 10000, "type": "ether"}, "ansible_fibre_channel_wwn": [], "ansible_fips": false, "ansible_form_factor": "Unknown", "ansible_fqdn": "9a844e2a482b", "ansible_hostname": "9a844e2a482b", "ansible_hostnqn": "", "ansible_interfaces": ["lo", "tunl0", "ip6tnl0", "eth0"], "ansible_ip6tnl0": {"active": false, "device": "ip6tnl0", "macaddress": "00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00", "mtu": 1452, "promisc": false, "type": "unknown"}, "ansible_is_chroot": false, "ansible_iscsi_iqn": "", "ansible_kernel": "4.9.125-linuxkit", "ansible_lo": {"active": true, "device": "lo", "ipv4": {"address": "127.0.0.1", "broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0"}, "mtu": 65536, "promisc": false, "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "63b7feff05b54972bacbece5ea52eb5e", "ansible_memfree_mb": 1315, "ansible_memory_mb": {"nocache": {"free": 1700, "used": 299}, "real": {"free": 1315, "total": 1999, "used": 684}, "swap": {"cached": 8, "free": 857, "total": 1023, "used": 166}}, "ansible_memtotal_mb": 1999, "ansible_mounts": [{"block_available": 6392504, "block_size": 4096, "block_total": 15313873, "block_used": 8921369, "device": "/dev/sda1", "fstype": "ext4", "inode_available": 3593990, "inode_total": 3907584, "inode_used": 313594, "mount": "/etc/hosts", "options": "rw,relatime,data=ordered,bind", "size_available": 26183696384, "size_total": 62725623808, "uuid": "N/A"}, {"block_available": 6392504, "block_size": 4096, "block_total": 15313873, "block_used": 8921369, "device": "/dev/sda1", "fstype": "ext4", "inode_available": 3593990, "inode_total": 3907584, "inode_used": 313594, "mount": "/run", "options": "rw,relatime,data=ordered,bind", "size_available": 26183696384, "size_total": 62725623808, "uuid": "N/A"}, {"block_available": 6392504, "block_size": 4096, "block_total": 15313873, "block_used": 8921369, "device": "/dev/sda1", "fstype": "ext4", "inode_available": 3593990, "inode_total": 3907584, "inode_used": 313594, "mount": "/etc/hostname", "options": "rw,relatime,data=ordered,bind", "size_available": 26183696384, "size_total": 62725623808, "uuid": "N/A"}, {"block_available": 6392504, "block_size": 4096, "block_total": 15313873, "block_used": 8921369, "device": "/dev/sda1", "fstype": "ext4", "inode_available": 3593990, "inode_total": 3907584, "inode_used": 313594, "mount": "/tmp", "options": "rw,relatime,data=ordered,bind", "size_available": 26183696384, "size_total": 62725623808, "uuid": "N/A"}, {"block_available": 6392504, "block_size": 4096, "block_total": 15313873, "block_used": 8921369, "device": "/dev/sda1", "fstype": "ext4", "inode_available": 3593990, "inode_total": 3907584, "inode_used": 313594, "mount": "/etc/resolv.conf", "options": "rw,relatime,data=ordered,bind", "size_available": 26183696384, "size_total": 62725623808, "uuid": "N/A"}], "ansible_nodename": "9a844e2a482b", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "yum", "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/kernel", "console": "ttyS0", "page_poison": "1", "panic": "1", "root": "/dev/sr0", "text": true, "vsyscall": "emulate"}, "ansible_processor": ["0", "GenuineIntel", "Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz", "1", "GenuineIntel", "Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz"], "ansible_processor_cores": 1, "ansible_processor_count": 2, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 2, "ansible_product_name": "BHYVE", "ansible_product_serial": "None", "ansible_product_uuid": "7BCF4B18-0000-0000-9845-0641873951AD", "ansible_product_version": "1.0", "ansible_python": {"executable": "/tmp/python-jAe9_E-ansible/python", "has_sslcontext": true, "type": "CPython", "version": {"major": 2, "micro": 5, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [2, 7, 5, "final", 0]}, "ansible_python_version": "2.7.5", "ansible_real_group_id": 0, "ansible_real_user_id": 0, "ansible_selinux": {"status": "Missing selinux Python library"}, "ansible_selinux_python_present": false, "ansible_service_mgr": "systemd", "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAOHaqDT0CW/Fz0xvk0QyHETrAZNYv3m+EtkaMHMjMYF8LIycaeJd+DvTt7pOO5dvo4i+Y1tjbed5G5htpcU4sDskOpjb2d26W5gYPXdmWTPJzNjI1VijDyF0ODMr/dWYIaVs6GAOtNR5L5T0ziB6lfZqWh4Vnrpk/lg6MBu0anpDAAAAFQC03hwcLzlkyFOgYbh09LehXDSiyQAAAIAFzJ5W+mSygOSXXQZtohfRZr85PxMs683GdeBWO2h9ldZTIxZQVn9zVImLgx4QoMtzq7B9mXLkG0P5XrSUZsoOIpmSl8GDW6BzjXDyw0Ra2zEMQJDBfIr8+SyiqIdl2lzmr8jDPnq6S505NFb7KzrLbFnui2kapItHN0kA0FbJqQAAAIB63W0AntfwxdVOKG8L7dq5PcEX54rZwztt2/nf5MU4v/MUMSDCrqX7OXvLIWeC7bMgAKkw8mnpuDEyUGZ+ys6cUgknLflgS33mHM1Lbi93dKtUC8b76AYrrfesb//efjzXUSP+Lz+mZkYYtpKnH7HZCMaoPSZGhGVwAW3zxEJq0A==", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPHTevZh/9Qmtt0SbVWf1ouBjuzEevmkHoOxUWKPIVlh6fuppgSKzU8KKW3+gyIknvphzlupk8PCE2aT56NFQQw=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAID1qWy/1CX49bTUO1+mTHSp5YwcexHRWJy6YM5+FOM8+", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCoNvU/ajISJuJbTJBnHQ9ie+mBbL8TJO7Zu0w4H5lG6JSvoFQJZwWDgQCzvaKrhYl/tipAt5cXaOwK4gLgmqwocUdQBlRfJ5OfTW7aboNEzQKX7x3XQp7l59yPa1CWHdEHLDE/kmW+blCM9UAB6tiEfLRQ4WiyJALuQLDagy/WYXIisY8Ay72tHNiIohZQzAmWQlVLxtf+nclVA6tEgJYXUHlprHdCREMoQvHA9TJw7giaostAB2Ey5T7XtAe6RwcAhoqz699D+OQsUMshJCyS+3lnROpeLuHMDRVx6fZxdgGePh3Fjvsd8AoBiJlfUYpCDFs7leCYHu5Z8XpCKn59", "ansible_swapfree_mb": 857, "ansible_swaptotal_mb": 1023, "ansible_system": "Linux", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "35", "36", "37+eip"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "NA", "ansible_tunl0": {"active": false, "device": "tunl0", "macaddress": "00:00:00:00", "mtu": 1480, "promisc": false, "type": "unknown"}, "ansible_uptime_seconds": 18938, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "docker", "gather_subset": ["all"], "module_setup": true}, "changed": false}

TASK [setup_cassandra : command] ***********************************************
changed: [testhost] => {"changed": true, "cmd": ["hostname", "localhost"], "delta": "0:00:00.003107", "end": "2019-05-26 15:34:18.865941", "rc": 0, "start": "2019-05-26 15:34:18.862834", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

TASK [setup_cassandra : Install OpenJDK package] *******************************
changed: [testhost] => {"changed": true, "changes": {"installed": ["java-1.8.0-openjdk"]}, "msg": "", "rc": 0, "results": ["Loaded plugins: fastestmirror, ovl\nLoading mirror speeds from cached hostfile\n * base: pkg.adfinis-sygroup.ch\n * epel: epel.mirror.wearetriple.com\n * extras: pkg.adfinis-sygroup.ch\n * updates: pkg.adfinis-sygroup.ch\nResolving Dependencies\n--> Running transaction check\n---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.212.b04-0.el7_6 will be installed\n--> Processing Dependency: java-1.8.0-openjdk-headless(x86-64) = 1:1.8.0.212.b04-0.el7_6 for package: 1:java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64\n--> Processing Dependency: xorg-x11-fonts-Type1 for package: 1:java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64\n--> Processing Dependency: libjvm.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64\n--> Processing Dependency: libjava.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64\n--> Processing Dependency: libasound.so.2(ALSA_0.9.0rc4)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64\n--> Processing Dependency: libasound.so.2(ALSA_0.9)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64\n--> Processing Dependency: libjvm.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64\n--> Processing Dependency: libjava.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64\n--> Processing Dependency: libgif.so.4()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64\n--> Processing Dependency: libasound.so.2()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64\n--> Processing Dependency: libXtst.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64\n--> Running transaction check\n---> Package alsa-lib.x86_64 0:1.1.6-2.el7 will be installed\n---> Package giflib.x86_64 0:4.1.6-9.el7 will be installed\n---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.212.b04-0.el7_6 will be installed\n--> Processing Dependency: tzdata-java >= 2015d for package: 1:java-1.8.0-openjdk-headless-1.8.0.212.b04-0.el7_6.x86_64\n--> Processing Dependency: copy-jdk-configs >= 3.3 for package: 1:java-1.8.0-openjdk-headless-1.8.0.212.b04-0.el7_6.x86_64\n--> Processing Dependency: pcsc-lite-libs(x86-64) for package: 1:java-1.8.0-openjdk-headless-1.8.0.212.b04-0.el7_6.x86_64\n--> Processing Dependency: lksctp-tools(x86-64) for package: 1:java-1.8.0-openjdk-headless-1.8.0.212.b04-0.el7_6.x86_64\n--> Processing Dependency: jpackage-utils for package: 1:java-1.8.0-openjdk-headless-1.8.0.212.b04-0.el7_6.x86_64\n---> Package libXtst.x86_64 0:1.2.3-1.el7 will be installed\n---> Package xorg-x11-fonts-Type1.noarch 0:7.5-9.el7 will be installed\n--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch\n--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch\n--> Running transaction check\n---> Package copy-jdk-configs.noarch 0:3.3-10.el7_5 will be installed\n---> Package javapackages-tools.noarch 0:3.4.1-11.el7 will be installed\n--> Processing Dependency: python-javapackages = 3.4.1-11.el7 for package: javapackages-tools-3.4.1-11.el7.noarch\n---> Package lksctp-tools.x86_64 0:1.0.17-2.el7 will be installed\n---> Package pcsc-lite-libs.x86_64 0:1.8.8-8.el7 will be installed\n---> Package ttmkfdir.x86_64 0:3.0.9-42.el7 will be installed\n---> Package tzdata-java.noarch 0:2019a-1.el7 will be installed\n--> Running transaction check\n---> Package python-javapackages.noarch 0:3.4.1-11.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository\n Size\n================================================================================\nInstalling:\n java-1.8.0-openjdk x86_64 1:1.8.0.212.b04-0.el7_6 updates 270 k\nInstalling for dependencies:\n alsa-lib x86_64 1.1.6-2.el7 base 424 k\n copy-jdk-configs noarch 3.3-10.el7_5 base 21 k\n giflib x86_64 4.1.6-9.el7 base 40 k\n java-1.8.0-openjdk-headless x86_64 1:1.8.0.212.b04-0.el7_6 updates 32 M\n javapackages-tools noarch 3.4.1-11.el7 base 73 k\n libXtst x86_64 1.2.3-1.el7 base 20 k\n lksctp-tools x86_64 1.0.17-2.el7 base 88 k\n pcsc-lite-libs x86_64 1.8.8-8.el7 base 34 k\n python-javapackages noarch 3.4.1-11.el7 base 31 k\n ttmkfdir x86_64 3.0.9-42.el7 base 48 k\n tzdata-java noarch 2019a-1.el7 updates 187 k\n xorg-x11-fonts-Type1 noarch 7.5-9.el7 base 521 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package (+12 Dependent packages)\n\nTotal download size: 33 M\nInstalled size: 107 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 1.7 MB/s | 33 MB 00:19 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : ttmkfdir-3.0.9-42.el7.x86_64 1/13 \n Installing : xorg-x11-fonts-Type1-7.5-9.el7.noarch 2/13 \n Installing : lksctp-tools-1.0.17-2.el7.x86_64 3/13 \n Installing : pcsc-lite-libs-1.8.8-8.el7.x86_64 4/13 \n Installing : libXtst-1.2.3-1.el7.x86_64 5/13 \n Installing : alsa-lib-1.1.6-2.el7.x86_64 6/13 \n Installing : python-javapackages-3.4.1-11.el7.noarch 7/13 \n Installing : javapackages-tools-3.4.1-11.el7.noarch 8/13 \n Installing : copy-jdk-configs-3.3-10.el7_5.noarch 9/13 \n Installing : giflib-4.1.6-9.el7.x86_64 10/13 \n Installing : tzdata-java-2019a-1.el7.noarch 11/13 \n Installing : 1:java-1.8.0-openjdk-headless-1.8.0.212.b04-0.el7_6.x86_ 12/13 \n Installing : 1:java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64 13/13 \n Verifying : tzdata-java-2019a-1.el7.noarch 1/13 \n Verifying : giflib-4.1.6-9.el7.x86_64 2/13 \n Verifying : xorg-x11-fonts-Type1-7.5-9.el7.noarch 3/13 \n Verifying : copy-jdk-configs-3.3-10.el7_5.noarch 4/13 \n Verifying : python-javapackages-3.4.1-11.el7.noarch 5/13 \n Verifying : alsa-lib-1.1.6-2.el7.x86_64 6/13 \n Verifying : libXtst-1.2.3-1.el7.x86_64 7/13 \n Verifying : pcsc-lite-libs-1.8.8-8.el7.x86_64 8/13 \n Verifying : javapackages-tools-3.4.1-11.el7.noarch 9/13 \n Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.212.b04-0.el7_6.x86_ 10/13 \n Verifying : 1:java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64 11/13 \n Verifying : lksctp-tools-1.0.17-2.el7.x86_64 12/13 \n Verifying : ttmkfdir-3.0.9-42.el7.x86_64 13/13 \n\nInstalled:\n java-1.8.0-openjdk.x86_64 1:1.8.0.212.b04-0.el7_6 \n\nDependency Installed:\n alsa-lib.x86_64 0:1.1.6-2.el7 \n copy-jdk-configs.noarch 0:3.3-10.el7_5 \n giflib.x86_64 0:4.1.6-9.el7 \n java-1.8.0-openjdk-headless.x86_64 1:1.8.0.212.b04-0.el7_6 \n javapackages-tools.noarch 0:3.4.1-11.el7 \n libXtst.x86_64 0:1.2.3-1.el7 \n lksctp-tools.x86_64 0:1.0.17-2.el7 \n pcsc-lite-libs.x86_64 0:1.8.8-8.el7 \n python-javapackages.noarch 0:3.4.1-11.el7 \n ttmkfdir.x86_64 0:3.0.9-42.el7 \n tzdata-java.noarch 0:2019a-1.el7 \n xorg-x11-fonts-Type1.noarch 0:7.5-9.el7 \n\nComplete!\n"]}

TASK [setup_cassandra : Setup Cassandra yum repo] ******************************
changed: [testhost] => {"changed": true, "repo": "cassandra_yum", "state": "present"}

TASK [setup_cassandra : Install cassandra yum package] *************************
changed: [testhost] => {"changed": true, "changes": {"installed": ["cassandra"]}, "msg": "warning: /var/cache/yum/x86_64/7/cassandra_yum/packages/cassandra-3.11.4-1.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID fe4b2bda: NOKEY\nImporting GPG key 0xF2833C93:\n Userid : "Eric Evans eevans@sym-link.com"\n Fingerprint: cec8 6bb4 a0ba 9d0f 9039 7cae f835 8fa2 f283 3c93\n From : https://www.apache.org/dist/cassandra/KEYS\nImporting GPG key 0x8D77295D:\n Userid : "Eric Evans eevans@sym-link.com"\n Fingerprint: c496 5ee9 e301 5d19 2ccc f2b6 f758 ce31 8d77 295d\n From : https://www.apache.org/dist/cassandra/KEYS\nImporting GPG key 0x2B5C1B00:\n Userid : "Sylvain Lebresne (pcmanus) sylvain@datastax.com"\n Fingerprint: 5aed 1bf3 78e9 a19d ade1 bcb3 4bd7 36a8 2b5c 1b00\n From : https://www.apache.org/dist/cassandra/KEYS\nImporting GPG key 0x0353B12C:\n Userid : "T Jake Luciani jake@apache.org"\n Fingerprint: 514a 2ad6 31a5 7a16 dd00 47ec 749d 6eec 0353 b12c\n From : https://www.apache.org/dist/cassandra/KEYS\nImporting GPG key 0xFE4B2BDA:\n Userid : "Michael Shuler michael@pbandjelly.org"\n Fingerprint: a26e 528b 271f 19b9 e5d8 e19e a278 b781 fe4b 2bda\n From : https://www.apache.org/dist/cassandra/KEYS\n", "rc": 0, "results": ["Loaded plugins: fastestmirror, ovl\nLoading mirror speeds from cached hostfile\n * base: pkg.adfinis-sygroup.ch\n * epel: epel.mirror.wearetriple.com\n * extras: pkg.adfinis-sygroup.ch\n * updates: pkg.adfinis-sygroup.ch\nResolving Dependencies\n--> Running transaction check\n---> Package cassandra.noarch 0:3.11.4-1 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n cassandra noarch 3.11.4-1 cassandra_yum 28 M\n\nTransaction Summary\n================================================================================\nInstall 1 Package\n\nTotal download size: 28 M\nInstalled size: 38 M\nDownloading packages:\nPublic key for cassandra-3.11.4-1.noarch.rpm is not installed\nRetrieving key from https://www.apache.org/dist/cassandra/KEYS\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : cassandra-3.11.4-1.noarch 1/1 \n Verifying : cassandra-3.11.4-1.noarch 1/1 \n\nInstalled:\n cassandra.noarch 0:3.11.4-1 \n\nComplete!\n"]}

TASK [setup_cassandra : Setup Cassandra apt repo] ******************************
skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [setup_cassandra : Run the equivalent of "apt-get update"] ****************
skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [setup_cassandra : Install cassandra deb package] *************************
skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [setup_cassandra : Adjust heap size] **************************************
changed: [testhost] => {"backup": "", "changed": true, "msg": "line added"}

TASK [setup_cassandra : Start Cassandra service] *******************************
[WARNING]: The service (cassandra) is actually an init script but the system
is managed by systemd

changed: [testhost] => {"changed": true, "enabled": true, "name": "cassandra", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "cassandra.service", "DevicePolicy": "auto", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "FailureAction": "none", "FileDescriptorStoreMax": "0", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "cassandra.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "83968000", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "65536", "LimitNPROC": "18446744073709551615", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7867", "LimitSTACK": "18446744073709551615", "LoadError": "org.freedesktop.DBus.Error.FileNotFound "No such file or directory"", "LoadState": "not-found", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "cassandra.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "inherit", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "UMask": "0022", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}}

TASK [setup_cassandra : Allow a little time for Cassandra to start listening on ports] ***
ok: [testhost] => {"changed": false, "elapsed": 10, "match_groupdict": {}, "match_groups": [], "path": null, "port": 9042, "search_regex": null, "state": "started"}

TASK [cassandra_backup : Get incremental backup status 1] **********************
changed: [testhost] => {"changed": true, "cmd": "nodetool -h $(hostname) statusbackup", "delta": "0:00:02.365962", "end": "2019-05-26 15:35:45.750226", "rc": 0, "start": "2019-05-26 15:35:43.384264", "stderr": "", "stderr_lines": [], "stdout": "not running", "stdout_lines": ["not running"]}

TASK [cassandra_backup : Assert incremental backup is not running 1] ***********
ok: [testhost] => {
"changed": false,
"msg": "All assertions passed"
}

TASK [cassandra_backup : Turn on incremental backup with module] ***************
changed: [testhost] => {"changed": true, "stdout": "not running", "stdout_lines": ["not running"]}

TASK [cassandra_backup : Get incremental backup status 2] **********************
changed: [testhost] => {"changed": true, "cmd": "nodetool -h $(hostname) statusbackup", "delta": "0:00:02.356701", "end": "2019-05-26 15:35:53.388818", "rc": 0, "start": "2019-05-26 15:35:51.032117", "stderr": "", "stderr_lines": [], "stdout": "running", "stdout_lines": ["running"]}

TASK [cassandra_backup : Assert incremental backup is running] *****************
ok: [testhost] => {
"changed": false,
"msg": "All assertions passed"
}

TASK [cassandra_backup : Turn off incremental backup with module] **************
changed: [testhost] => {"changed": true, "stdout": "running", "stdout_lines": ["running"]}

TASK [cassandra_backup : Get incremental backup status 3] **********************
changed: [testhost] => {"changed": true, "cmd": "nodetool -h $(hostname) statusbackup", "delta": "0:00:02.286071", "end": "2019-05-26 15:36:00.677381", "rc": 0, "start": "2019-05-26 15:35:58.391310", "stderr": "", "stderr_lines": [], "stdout": "not running", "stdout_lines": ["not running"]}

TASK [cassandra_backup : Assert incremental backup is not running 2] ***********
ok: [testhost] => {
"changed": false,
"msg": "All assertions passed"
}

TASK [cassandra_backup : Execute with check_mode = True] ***********************
changed: [testhost] => {"changed": true, "msg": "check mode", "stdout": "not running", "stdout_lines": ["not running"]}

TASK [cassandra_backup : Assert increment backup status has changed (check_mode)] ***
ok: [testhost] => {
"changed": false,
"msg": "All assertions passed"
}

TASK [cassandra_backup : Get incremental backup status 4] **********************
changed: [testhost] => {"changed": true, "cmd": "nodetool -h $(hostname) statusbackup", "delta": "0:00:02.171978", "end": "2019-05-26 15:36:05.566571", "rc": 0, "start": "2019-05-26 15:36:03.394593", "stderr": "", "stderr_lines": [], "stdout": "not running", "stdout_lines": ["not running"]}

TASK [cassandra_backup : Assert incremental backup is not running (after check_mode)] ***
ok: [testhost] => {
"changed": false,
"msg": "All assertions passed"
}

TASK [cassandra_backup : include_tasks] ****************************************
included: /root/.ansible/test/tmp/cassandra_backup-DshXzq-ÅÑŚÌβŁÈ/test/integration/targets/cassandra_backup/tasks/../../setup_cassandra/tasks/cassandra_auth.yml for testhost

TASK [cassandra_backup : Set authenticator in cassandra.yml] *******************
changed: [testhost] => {"backup": "", "changed": true, "msg": "line replaced"}

TASK [cassandra_backup : Set authorizer in cassandra.yml] **********************
changed: [testhost] => {"backup": "", "changed": true, "msg": "line replaced"}

TASK [cassandra_backup : Add lines for nodetool auth to cassandra-env.sh] ******
changed: [testhost] => {"changed": true, "msg": "Block inserted"}

TASK [cassandra_backup : Activate local jmx] ***********************************
changed: [testhost] => {"backup": "", "changed": true, "msg": "line replaced"}

TASK [cassandra_backup : Set jmx password file] ********************************
changed: [testhost] => {"changed": true, "checksum": "f342eef0e1aabd0b62feb5298fe3c348857fc5c2", "dest": "/etc/cassandra/jmxremote.password", "gid": 997, "group": "cassandra", "md5sum": "d736269af2dee8bae7671ab42eb23d62", "mode": "0400", "owner": "cassandra", "size": 20, "src": "/root/.ansible/tmp/ansible-tmp-1558884966.98-63237360318469/source", "state": "file", "uid": 999}

TASK [cassandra_backup : Set jmx access file] **********************************
changed: [testhost] => {"changed": true, "checksum": "fc6eb332c90520f158f7473266092ad640b9e23d", "dest": "/etc/cassandra/jmxremote.access", "gid": 997, "group": "cassandra", "md5sum": "7965b35d08b8a35a04d1335d8078b486", "mode": "0400", "owner": "cassandra", "size": 20, "src": "/root/.ansible/tmp/ansible-tmp-1558884967.72-280429881124895/source", "state": "file", "uid": 999}

TASK [cassandra_backup : Set jmx auth options] *********************************
changed: [testhost] => {"changed": true, "msg": "Block inserted"}

TASK [cassandra_backup : Restart cassandra] ************************************
changed: [testhost] => {"changed": true, "name": "cassandra", "state": "started", "status": {"ActiveEnterTimestamp": "Sun 2019-05-26 15:35:32 UTC", "ActiveEnterTimestampMonotonic": "19013317727", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "nss-lookup.target mdadm.service network-online.target remote-fs.target ntp.service systemd-journald.socket basic.target system.slice time-sync.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sun 2019-05-26 15:35:32 UTC", "AssertTimestampMonotonic": "19012993211", "Before": "shutdown.target multi-user.target graphical.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "ConditionResult": "yes", "ConditionTimestamp": "Sun 2019-05-26 15:35:32 UTC", "ConditionTimestampMonotonic": "19012993197", "Conflicts": "shutdown.target", "ControlGroup": "/docker/9a844e2a482b4307e5a8b3f3d7709eb50d03e9f5904d4755907f777830c54ea1/system.slice/cassandra.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "LSB: distributed storage system for structured data", "DevicePolicy": "auto", "Documentation": "man:systemd-sysv-generator(8)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "570", "ExecMainStartTimestamp": "Sun 2019-05-26 15:35:32 UTC", "ExecMainStartTimestampMonotonic": "19013317633", "ExecMainStatus": "0", "ExecReload": "{ path=/etc/rc.d/init.d/cassandra ; argv[]=/etc/rc.d/init.d/cassandra reload ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/etc/rc.d/init.d/cassandra ; argv[]=/etc/rc.d/init.d/cassandra start ; ignore_errors=no ; start_time=[Sun 2019-05-26 15:35:32 UTC] ; stop_time=[Sun 2019-05-26 15:35:32 UTC] ; pid=486 ; code=exited ; status=0 }", "ExecStop": "{ path=/etc/rc.d/init.d/cassandra ; argv[]=/etc/rc.d/init.d/cassandra stop ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/run/systemd/generator.late/cassandra.service", "GuessMainPID": "no", "IOScheduling": "0", "Id": "cassandra.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "no", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sun 2019-05-26 15:35:32 UTC", "InactiveExitTimestampMonotonic": "19012993687", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "process", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "83968000", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "1048576", "LimitNPROC": "18446744073709551615", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7867", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "570", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "cassandra.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/cassandra/cassandra.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "SourcePath": "/etc/rc.d/init.d/cassandra", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "5min", "TimeoutStopUSec": "5min", "TimerSlackNSec": "50000", "Transient": "no", "Type": "forking", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "bad", "WantedBy": "graphical.target multi-user.target", "Wants": "network-online.target system.slice", "WatchdogTimestamp": "Sun 2019-05-26 15:35:32 UTC", "WatchdogTimestampMonotonic": "19013317674", "WatchdogUSec": "0"}}

TASK [cassandra_backup : Wait for Cassandra to become active] ******************
ok: [testhost] => {"changed": false, "elapsed": 10, "match_groupdict": {}, "match_groups": [], "path": null, "port": 9042, "search_regex": null, "state": "started"}

TASK [cassandra_backup : Test nodetool authentication from shell] **************
changed: [testhost] => {"changed": true, "cmd": ["nodetool", "-u", "cassandra", "-pw", "cassandra", "status"], "delta": "0:00:02.619835", "end": "2019-05-26 15:36:47.418909", "rc": 0, "start": "2019-05-26 15:36:44.799074", "stderr": "", "stderr_lines": [], "stdout": "Datacenter: datacenter1\n=======================\nStatus=Up/Down\n|/ State=Normal/Leaving/Joining/Moving\n-- Address Load Tokens Owns (effective) Host ID Rack\nUN 127.0.0.1 119.36 KiB 256 100.0% a81e0581-3287-4c46-bc5b-708fae886156 rack1", "stdout_lines": ["Datacenter: datacenter1", "=======================", "Status=Up/Down", "|/ State=Normal/Leaving/Joining/Moving", "-- Address Load Tokens Owns (effective) Host ID Rack", "UN 127.0.0.1 119.36 KiB 256 100.0% a81e0581-3287-4c46-bc5b-708fae886156 rack1"]}

TASK [cassandra_backup : Test login fails with bad password] *******************
fatal: [testhost]: FAILED! => {"changed": true, "cmd": ["nodetool", "-u", "cassandra", "-pw", "XXXXXXXXXXXXX", "status"], "delta": "0:00:02.118557", "end": "2019-05-26 15:36:49.742037", "msg": "non-zero return code", "rc": 1, "start": "2019-05-26 15:36:47.623480", "stderr": "nodetool: Failed to connect to '127.0.0.1:7199' - FailedLoginException: 'Invalid username or password'.", "stderr_lines": ["nodetool: Failed to connect to '127.0.0.1:7199' - FailedLoginException: 'Invalid username or password'."], "stdout": "", "stdout_lines": []}
...ignoring

TASK [cassandra_backup : assert] ***********************************************
ok: [testhost] => {
"changed": false,
"msg": "All assertions passed"
}

TASK [cassandra_backup : Test nodetool authentication with passwordFile] *******
changed: [testhost] => {"changed": true, "cmd": ["nodetool", "-u", "cassandra", "-pwf", "/etc/cassandra/jmxremote.password", "status"], "delta": "0:00:02.509040", "end": "2019-05-26 15:36:52.525701", "rc": 0, "start": "2019-05-26 15:36:50.016661", "stderr": "", "stderr_lines": [], "stdout": "Datacenter: datacenter1\n=======================\nStatus=Up/Down\n|/ State=Normal/Leaving/Joining/Moving\n-- Address Load Tokens Owns (effective) Host ID Rack\nUN 127.0.0.1 119.36 KiB 256 100.0% a81e0581-3287-4c46-bc5b-708fae886156 rack1", "stdout_lines": ["Datacenter: datacenter1", "=======================", "Status=Up/Down", "|/ State=Normal/Leaving/Joining/Moving", "-- Address Load Tokens Owns (effective) Host ID Rack", "UN 127.0.0.1 119.36 KiB 256 100.0% a81e0581-3287-4c46-bc5b-708fae886156 rack1"]}

TASK [cassandra_backup : Turn on incremental backup with auth] *****************
changed: [testhost] => {"changed": true, "stdout": "not running", "stdout_lines": ["not running"]}

TASK [cassandra_backup : Get incremental backup status 5] **********************
changed: [testhost] => {"changed": true, "cmd": "nodetool -u cassandra -pw cassandra -h $(hostname) statusbackup", "delta": "0:00:02.103579", "end": "2019-05-26 15:36:59.636575", "rc": 0, "start": "2019-05-26 15:36:57.532996", "stderr": "", "stderr_lines": [], "stdout": "running", "stdout_lines": ["running"]}

TASK [cassandra_backup : Assert incremental backup is running] *****************
ok: [testhost] => {
"changed": false,
"msg": "All assertions passed"
}

TASK [cassandra_backup : Turn off incremental backup using password file] ******
changed: [testhost] => {"changed": true, "stdout": "running", "stdout_lines": ["running"]}

TASK [cassandra_backup : Get incremental backup status 6] **********************
changed: [testhost] => {"changed": true, "cmd": "nodetool -u cassandra -pw cassandra -h $(hostname) statusbackup", "delta": "0:00:02.103427", "end": "2019-05-26 15:37:06.786274", "rc": 0, "start": "2019-05-26 15:37:04.682847", "stderr": "", "stderr_lines": [], "stdout": "not running", "stdout_lines": ["not running"]}

TASK [cassandra_backup : Assert incremental backup is running] *****************
ok: [testhost] => {
"changed": false,
"msg": "All assertions passed"
}

TASK [cassandra_backup : Test login failure handling] **************************
fatal: [testhost]: FAILED! => {"changed": false, "msg": "status command failed", "name": "statusbackup", "stderr": "nodetool: Failed to connect to 'localhost:7199' - FailedLoginException: 'Invalid username or password'.\n", "stderr_lines": ["nodetool: Failed to connect to 'localhost:7199' - FailedLoginException: 'Invalid username or password'."]}
...ignoring

TASK [cassandra_backup : Assert failed login] **********************************
ok: [testhost] => {
"changed": false,
"msg": "All assertions passed"
}

TASK [cassandra_backup : Test incorrect nodetool_path handling] ****************
fatal: [testhost]: FAILED! => {"changed": false, "cmd": "/tmp/nodetool --host localhost --port 7199 statusbackup", "msg": "[Errno 2] No such file or directory", "rc": 2}
...ignoring

TASK [cassandra_backup : Assert no such file] **********************************
ok: [testhost] => {
"changed": false,
"msg": "All assertions passed"
}

RUNNING HANDLER [setup_cassandra : redhat_remove_cassandra] ********************
changed: [testhost] => {"changed": true, "changes": {"removed": ["cassandra"]}, "msg": "", "rc": 0, "results": ["Loaded plugins: fastestmirror, ovl\nResolving Dependencies\n--> Running transaction check\n---> Package cassandra.noarch 0:3.11.4-1 will be erased\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nRemoving:\n cassandra noarch 3.11.4-1 @cassandra_yum 38 M\n\nTransaction Summary\n================================================================================\nRemove 1 Package\n\nInstalled size: 38 M\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Erasing : cassandra-3.11.4-1.noarch 1/1 \nwarning: /etc/cassandra/default.conf/cassandra.yaml saved as /etc/cassandra/default.conf/cassandra.yaml.rpmsave\nwarning: /etc/cassandra/default.conf/cassandra-env.sh saved as /etc/cassandra/default.conf/cassandra-env.sh.rpmsave\n Verifying : cassandra-3.11.4-1.noarch 1/1 \n\nRemoved:\n cassandra.noarch 0:3.11.4-1 \n\nComplete!\n"]}

RUNNING HANDLER [setup_cassandra : redhat_remove_python3] **********************
ok: [testhost] => {"changed": false, "msg": "", "rc": 0, "results": ["python34* is not installed"]}

PLAY RECAP *********************************************************************
testhost : ok=46 changed=29 unreachable=0 failed=0 skipped=3 rescued=0 ignored=3

WARNING: Reviewing previous 1 warning(s):
WARNING: Cannot check pip requirements for conflicts because "pip check" is not supported.
Run command: docker exec 9a844e2a482b4307e5a8b3f3d7709eb50d03e9f5904d4755907f777830c54ea1 tar czf /root/results.tgz -C ...
Run command: docker exec -i 9a844e2a482b4307e5a8b3f3d7709eb50d03e9f5904d4755907f777830c54ea1 dd if=/root/results.tgz b ...
Run command: tar oxzf /var/folders/j2/1gzr80lj0l95hl94p4brqtt40000gn/T/ansible-result-rk2h8h5a.tgz -C test
Run command: docker rm -f 9a844e2a482b4307e5a8b3f3d7709eb50d03e9f5904d4755907f777830c54ea1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.