Commit Graph

881 Commits

Author SHA1 Message Date
digimer
8dc3a8262f Updated pod on requiring 'new' for manifest_uuid when creating new
manifests.

Signed-off-by: digimer <mkelly@alteeve.ca>
2024-05-28 22:22:47 -04:00
digimer
566887462e Fixed parameter names being sent to Striker->generate_manifest().
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-05-28 20:23:52 -04:00
digimer
3c52d1e28e Changed how parameters are picked up in Striker->generate_manifest
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-05-28 18:16:32 -04:00
digimer
a3ac5cf7f8 Fixed a bug that prevented install manifests from being saved.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-05-28 14:27:16 -04:00
digimer
f08df75384 Made resync checks happen on any striker running for less than two
hours.

Signed-off-by: digimer <mkelly@alteeve.ca>
2024-05-27 23:27:27 -04:00
digimer
d6c5aa3903 Added a timeout to Database->query() calls.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-05-27 21:11:54 -04:00
digimer
ab33c716cb Created a specific check that there's a hosts entry for each DB
* This is meant to deal with a case where, when a DB is added to
  anvil.conf but that new entry is not yet in hosts, the program crashes
  because of a duplicate key when calling insert_or_update_hosts for all
  DBs.

Signed-off-by: digimer <mkelly@alteeve.ca>
2024-05-25 20:19:26 -04:00
digimer
3d50f45984 Added a 1 second delay to nmcli calls
* Also fixed a bug Database->get_storage_group_data() to add a missing
  column to adding members.

Signed-off-by: digimer <mkelly@alteeve.ca>
2024-05-24 14:20:41 -04:00
digimer
8e53993f67 Shortened the anvil-daemon job start up delay.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-05-15 23:00:31 -04:00
digimer
6826b12188 Added a start for configured interfaces found to be down after boot.
* Added the 'up' parameter to Network->collect_data() that will bring up
  an interface we configured that is down.
* Updated scan-network to call Network->collect_data() with 'up' if the
  uptime is less than ten minutes.

Signed-off-by: digimer <mkelly@alteeve.ca>
2024-05-08 13:25:56 -04:00
digimer
6d121dc0c0 Mapped each interface name in match.interface-name to a UUID lookup.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-05-08 00:17:16 -04:00
Fabio M. Di Nitto
ef8bb19e60 fence: do not load switches for deprecated agents options
loading deprecated options causes switches to be overwritten during
xml parsing, generating incorrect pacemaker configs

Closes: https://github.com/ClusterLabs/anvil/issues/636

Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2024-04-20 13:33:26 +02:00
digimer
5c3d1860c8 Made the host_key check conditional on an available DB
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-19 01:44:42 -04:00
digimer
9775612de7 Added an explicit check that IPs for a hostname are added in known_hosts
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-17 23:17:22 -04:00
digimer
e00dec7cba Added loading existing corosync/authkey from peer during rebuild.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-13 17:46:19 -04:00
digimer
ec6acdd6d8 Reworked host validation to avoid warnings in logs.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-13 17:14:08 -04:00
digimer
bd2e4c46ae Updated Network->load_ips() to use the device_name when available.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-13 16:55:18 -04:00
digimer
45e3a1e8a9 Updated Remote->_check_known_hosts_for_target() to replace updated keys
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-13 16:52:33 -04:00
digimer
9999d6f522 Fixed a bug where nics were not being found by their NM device name
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-13 01:54:09 -04:00
digimer
863a7b1b07 Added missing data being recorded in crm_mon parser
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-10 17:10:52 -04:00
digimer
014136ddd0 Added manual parsing of crm_mon XML when parsing resource states.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-10 10:39:17 -04:00
digimer
76e66e6fa6 Added anvil.conf to log collection.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-10 10:39:17 -04:00
digimer
12bb45aa37 Added a secure check for password logging.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-10 10:39:17 -04:00
digimer
caf5e9550e Made lanplus default, secondary for Fujitsu only.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-10 10:39:17 -04:00
digimer
82341df508 Added logging the PID
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-10 10:39:17 -04:00
Tsu-ba-me
5d086f5e79 fix(tools): log websockify output 2024-04-09 15:13:54 -04:00
digimer
259febeb5c Added password changing for IPMI back in.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-06 23:10:30 -04:00
digimer
e9ed7ed4d4 Prevent IPMI IP change on simengine-backed IPMI.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-06 16:40:10 -04:00
digimer
b706ffa195 Cleaned up logging
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-06 16:39:53 -04:00
digimer
f38b47f1e2 Reworked stonight levels; This should fix issue #522 and #613
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-05 00:25:31 -04:00
digimer
f65f760c8a Improved Convert->to_ipmi_password()
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-04 13:39:56 -04:00
digimer
8f090a1f43 Set IPMI passwords to always be 16 char long and special chars removed.
* Created Convert->to_ipmi_password() which takes a password string,
  strips special characters, and shortens the results to 16 characters
  long. This should work with all v1.5, v2 and newer IPMI BMCs.
* Updated System->configure_ipmi() to remove the attempts to step-down
  the password to find one that fits the current IPMI host, now simply
  using the Convert->to_ipmi_password() password.

Signed-off-by: digimer <mkelly@alteeve.ca>
2024-04-03 22:22:24 -04: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
digimer
21c8084b2f Updated to support Sys::Virt::Domain generating PNG screenshots
* This should work with older versions still generating PPM screenshots.

Signed-off-by: digimer <mkelly@alteeve.ca>
2024-03-26 18:56:07 -04:00
digimer
ad0a353a89 Fixed a bug where unused interfaces were not being ignored.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-03-25 22:41:34 -04:00
digimer
36525cdeab Added a work-around for an LVM JSON formatting issue
* Related to https://issues.redhat.com/browse/RHEL-29680
* Updated Storage->manage_lvm_conf() to be stricter about when to add
  the filter to lvm.conf

Signed-off-by: digimer <mkelly@alteeve.ca>
2024-03-19 15:33:43 -04:00
digimer
2d92f339c2 Fixed a bug related to changing the hostname during a manifest run
* The original hostname would be used to form the cluster, even though
  the hostname was updated.

Signed-off-by: digimer <mkelly@alteeve.ca>
2024-03-18 23:28:42 -04:00
digimer
870c990632 Added support for multiple IP's per interface
* Created Database->get_mac_to_ip()
* Updated Database->insert_or_update_mac_to_ip() to find an entry using
  both the IP and MAC address.
* Updated Network->get_ips() to store only the first IP it finds on an
  interface as the main IP (for use in /etc/hosts, etc) and to store it
  and any other IPs in a new hash.
* Updated scan-network to use the new hash above to record them in the
  'mac_to_ip' table. Similarly, before marking an IP as removed, it
  checks to see if it's an alternate IP.

Signed-off-by: digimer <mkelly@alteeve.ca>
2024-03-06 19:06:05 -05:00
digimer
ab0b1a262b Reworked Network->wait_for_bonds() to be ->wait_for_networks()
* Renamed the old ->wait_for_networks() to be ->wait_for_nm_online().
* The new ->wait_for_networks() waits for all interfaces we manage to be
  'activated' before returning.

Signed-off-by: digimer <mkelly@alteeve.ca>
2024-02-29 01:32:32 -05:00
digimer
fe2806b5df Bumped up timeouts
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-02-28 23:38:50 -05:00
digimer
0f1ff02e78 Added alarms around remote calls to better handle dropped networks.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-02-28 20:35:00 -05:00
digimer
480745c889 Disabled printing of the countdown.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-02-28 16:37:31 -05:00
digimer
fef0d8f83f Fixed a spacing issue.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-02-27 21:54:05 -05:00
digimer
b8c73fd3f2 Replaced hosts management in anvil-join-anvil with System->update_hosts.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-02-26 18:29:55 -05:00
digimer
495cb90ca6 Created Network->wait_for_network to hold startup for NM to be up.
Added the call to Network->wait_for_network to pause scancore and
anvil-daemon startups until NetworkManager says it's up and running.

Signed-off-by: digimer <mkelly@alteeve.ca>
2024-02-24 17:16:46 -05:00
digimer
b3d1e53623 Added a log message if waiting for bonds times out.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-02-23 19:15:50 -05:00
digimer
6a193bf710 Added extra checks to Network->wait_for_bonds()
* Added a default timeout of 180 seconds, and updated
  anvil-configure-host to reduce this to 60 seconds while configuring
  the host.
* Added a check for interfaces configured under a bond. If none are
  found, the bond is ignored.
* Updated Storage->update_config() to take the new 'append' attribute to
  allow adding a variable if it wasn't found already in the config.
* Added the new 'network::wait_for_bonds::timeout' variable to enable
  changing the default timeout for Network->wait_for_bonds().

Signed-off-by: digimer <mkelly@alteeve.ca>
2024-02-22 23:46:49 -05:00
digimer
d5ceca3dc6 Added a message when holding on a bond to activate.
Signed-off-by: digimer <mkelly@alteeve.ca>
2024-02-22 02:06:44 -05:00
digimer
05de34c7bc Scancore and anvil-daemon now holds for bonds to be up.
Created Network->wait_for_bonds(), and added it to the startup for
scancore and anvil-daemon.

Signed-off-by: digimer <mkelly@alteeve.ca>
2024-02-22 02:01:33 -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