Commit Graph

25 Commits

Author SHA1 Message Date
digimer
76e66e6fa6 Added anvil.conf to log collection.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-10 10:39:17 -04:00
Tsu-ba-me
468a6d18ee fix(tools): get all logs in audit/ 2024-04-08 14:19:57 -04:00
Tsu-ba-me
11fd4098c4 fix(tools): collect /var/log/audit/audit.log for debug 2024-04-08 14:19:57 -04:00
digimer
937d8ed2ef Added collecting corosync to log collection
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-05 12:45:14 -04:00
Fabio M. Di Nitto
f1584c770d striker-collect-debug: disable screenshot collection by default
Closes: #620

Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2024-03-30 21:51:34 +01:00
Fabio M. Di Nitto
510af7e4b1 striker-collect-debug: remove tempdir when done
Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2024-03-30 21:51:34 +01:00
Fabio M. Di Nitto
b64cf7052a striker-collect-debug: align output format to other parts of the tool
Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2024-03-30 21:51:34 +01:00
Fabio M. Di Nitto
3b018e56c6 striker-collect-debug: create output dir only when necessary
Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2024-03-30 21:51:34 +01:00
Fabio M. Di Nitto
da67156ee1 striker-collect-debug: cleaner messages
Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2024-03-30 21:51:34 +01:00
Fabio M. Di Nitto
635f38b489 anvil-safe-stop: don´t use locked version of pcs
Add pcs_direct tool path and use it for anvil-safe-stop

Closes: #623

Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2024-03-30 07:06:10 +01:00
Fabio M. Di Nitto
50ad874909 striker-collect-debug: fix collection of cib.xml
Closes: #534

Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2024-03-24 14:39:38 +01:00
digimer
f4a314e4b5 Removed compression during log collection
The finishing compression provides all the space saving, and compression
slows down collection.

Signed-off-by: digimer <mkelly@alteeve.ca>
2024-02-23 14:13:22 -05:00
digimer
0795bbb2de Added compression to anvil.log files collected by debug.
Also fixed a bug on validating the collection of remote previous boot
journalctl logs.

Signed-off-by: digimer <mkelly@alteeve.ca>
2024-02-23 11:14:51 -05:00
digimer
741bcfa908 Added default logging level 2 and secure logging in CI tests.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-02-21 21:46:27 -05:00
digimer
a3c3077963 Called pcs directly for CIB data collection.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-01-30 20:07:29 -05:00
digimer
f100bc94cd Bumped logging to debug striker-collect-debug
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-01-29 21:18:32 -05:00
digimer
050891d751 Fixed inverted file copy check logic.
This should resolve issue #534

Signed-off-by: digimer <mkelly@alteeve.ca>
2024-01-28 00:12:13 -05:00
digimer
bb78d65c77 Bumped debug logging.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-01-27 21:36:54 -05:00
digimer
b8fb3d62e3 Added checks for the screenshot directory before collection.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-28 16:30:36 -04:00
digimer
d58521ceca Added screenshot capture to striker-collect-debug.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-09-27 11:46:56 -04:00
digimer
556e91238d * Updated Network->find_access() to clear the data from previous scans, which fixes a bug where checking multiple hosts could return stale data for the previous host.
* Updated anvil-manage-server-storage, striker-collect-debug, and striker-update-cluster to be able to find a connection on an interface when none were found on preferred networks.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-07-24 15:43:54 -04:00
digimer
7bd76c10dc Major thing in this commit is reworking striker-update-cluster to work without expecting anvil-daemon to be running on target machines. Similarly, they had to be able to work when the Striker DBs were not available. This is to account for cases where the Striker dashboards have updated, and the schema has changed, preventing the not-yet-updated DR hosts and subnodes from being able to use the DB. To do this, anvil-safe-stop, anvil-update-system, and anvil-shutdown-server had to be updated to use the new --no-db switch, which tells then to run without the database being available.
* Updated Server->shutdown_virsh() to work without a database connection.
* Updated System->reboot_needed() to store/read from a cache file when the database is not available.
* Updated anvil-safe-start to remove the old --enable/disable/status switches, now that we use anvil-safe-start.service systemd unit.
* Reworked anvil-safe-stop to work without a database connection, and to work on DR hosts.
* Updated anvil-special-operations to add new tasks, but it's likely these new tasks aren't needed and will be removed very shortly.
* Added/updated multiple man pages.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-07-22 18:09:01 -04:00
digimer
d56b7f9a84 * Created (but not finished!) the new striker-update-cluster tool.
* Updated Cluster->get_primary_host_uuid() to only load anvils if not already loaded.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-07-07 17:54:57 -04:00
digimer
3215e178ef * Updated striker-collect-debug to support '--output-file /path/to/file.tar.bz2'.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-07-06 13:02:59 -04:00
digimer
a7ebe45f76 This adds the new 'striker-collect-debug' tool that collects all potentially useful debug info into a single tarball.
* Fixed a bug in Get->anvil_from_switch() to work when the Anvil! name is passed.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-07-05 21:04:05 -04:00