Madison Kelly
922899ea78
* WIP: Working on a new method of failing over between which Striker is the active database, instead of running N-number of databases all the time.
...
* Created Database->backup_database() that creates a pg_dump of the active database.
* Created Database->load_database() that loads the database from a flat file, optionally creating a backup before doing so, and using iptables to block access during the process.
* Updated Database->configure_pgsql() to not start the postgresql daemon unless it just initialized the DB.
* Much work, not yet complete, to Database->connect() to stop after the first successful connection. Added logic that, if not connection was established and the host is a Striker, to load a peer's backup, if it exists, and then start the local daemon.
* Updated anvil-daemon to now have a section to run tasks on a ten minute cycle, which will later be used for the primary Striker to dump / copy its database to peer(s).
Signed-off-by: Madison Kelly <mkelly@alteeve.ca>
3 years ago
Digimer
6664c5b77f
* Fixed a bug where scan-drbd, with DR configured, was not recording TCP ports assigned to connections properly.
...
* More bugs fixed in anvil-manage-dr, tested repeatedly as a job and so far, so good. Other functionality still to come.
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
da9dc03d04
Updated anvil-manage-dr to update the job progress and convert prints into strings.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
ffd15406e0
* anvil-manage-dr can now protect a server! Still lots to do though.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
20a784baa2
* Continuing work on anvil-manage-dr. Got it to the point where it should (but doesn't yet) create the new DRBD config and the LV(s) on DR.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
5b35204af4
* Updated DRBD->get_next_resource() to take the new 'dr_tcp_ports' ports which, if set, returns two free TCP ports.
...
* Got anvil-manage-dr to the point where it writes the updated resource configuration to enable DR support. (untexted)
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
9edf698c37
Updated Database->get_storage_group_data() to determine when a node or DR host needs to be removed from a Storage group, or when a member of an Anvil! needs to be added to a storage group.
...
Created Storage->get_vg_name() to assist with anvil-manage-dr, which is still a WIP.
Continued work on anvil-manage-dr (which exposed the issue that required the update to Database->get_storage_group_data().
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Tsu-ba-me
f61527edf7
fix(tools): save screenshots to states table
3 years ago
Tsu-ba-me
c1859bc8d8
fix(tools): use netpbm tools instead of imagemagick
3 years ago
Tsu-ba-me
65613f501b
fix(tools): add option to resize server screenshot
3 years ago
Tsu-ba-me
7467036054
build(tools): add anvil-get-server-screenshot script to build
3 years ago
Tsu-ba-me
da6b4d39c6
fix(tools): disable line wrap in image Base64 output
3 years ago
Tsu-ba-me
4ef231b567
fix(tools): prevent too frequent inserts of server VM screenshots
3 years ago
Tsu-ba-me
1014299d38
fix(tools): enable anvil-get-server-screenshot to be a job
3 years ago
Tsu-ba-me
f97a820b48
feat(tools): add script to take screenshot of server VM
3 years ago
Digimer
2f8b1fb72e
Updated anvil-provision-server so that when the OS type is 'win7', set the disk to sata and the NIC to e1000e. Also updated it to store the virt-install call in the 'variables' table and write it out to /mnt/shared/provision.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
4427fe9f0d
* Found the source of the vnet constantly cycling back to 'up' bug. The anvil-update-state tool was marking the vnet device operational state back to 'unknown' and scan-network was marking it back up.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
e40d0e2444
Fixed a bug where if a database is pingable but the pgsql database is down, and it's the first database tested (or local), then the DB handle used to read / quote fails.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
4c7bb45ab9
Fixed a race condition where configuring the IPMI BMC would appear to fail because the BMC wouldn't report the user list after a cold reset.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
6cbdc388d4
Fixed a bug where corosync's configuration of a backup ring was broken.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
04cb116c1b
Updated anvil-parse-fence-agents to validate each fence agent's metadata is valid before adding it to the unified XML.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
8abb5b46e0
* Added support for setting per-agent log-level and log secure values in amvil.conf.
...
* Moved the check for an agent being disabled into ScanCore->agent_startup()
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
3674a47179
WIP - Working a tool to manually load updated server definition files.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
aec22bb79c
Added a check in scan-network that finds/removes duplicate network interface names.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
4800f7181f
* Updated ScanCore to boot a node that is off without a stop reason.
...
* Fixed a bug where anvil-safe-stop was not recording the stop-reason. Also made '--poweroff' an alias for '--power-off'.
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
acaacd9a86
* Created Storage->get_size_of_block_device() that takes a block device path and returns the size of the path, if it's found in the database.
...
* More work on the storage management of anvil-manage-server.
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
606bd8f1f0
Continuing work on anvil-manage-server.
...
Created Storage->get_storage_group_from_path() that takes a block device path and tried to find the Storage Group it belongs to.
Updated Storage->get_storage_group_data() to make it possible to look up a storage group UUID using the SG's name.
Updated DRBD->gather_data() to take a pre-generated XML via the new 'xml' parameter.
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Tsu-ba-me
063840ecb6
fix(tools): correct message_* string keys in striker-manage-vnc-pipes
3 years ago
Tsu-ba-me
8da318c933
fix(tools): patch failure to fix 2nd pipe after server migration
3 years ago
Tsu-ba-me
0f1c3d2435
chore(tools): remove unused function from striker-manage-vnc-pipes
3 years ago
Tsu-ba-me
cdb66019d3
fix(tools): avoid port conflict
3 years ago
Tsu-ba-me
7e447000b4
fix(cgi-bin): use unspecified instead of loopback address in SSH tunnel
3 years ago
Tsu-ba-me
b3b6da8259
chore(cgi-bin): remove debug log level from manage_vnc_pipes and its support scripts
3 years ago
Tsu-ba-me
549758b2f2
build(tools): include support scripts for manager_vnc_pipes endpoint into makefile
3 years ago
Tsu-ba-me
e50bfc7308
fix(tools): correct typo in passing server_uuid to get_vnc_info()
3 years ago
Tsu-ba-me
3a8f4c339b
fix(tools): use VNC port in variables table if available
3 years ago
Tsu-ba-me
e4436be17b
fix(tools): do checks and kills as root
3 years ago
Tsu-ba-me
bb155a5786
fix(tools): update job progress in catch-all case
3 years ago
Tsu-ba-me
ffc1fb096a
fix(tools): correct switch name typo in striker-manage-vnc-pipes
3 years ago
Tsu-ba-me
1fec288ad0
fix(tools): make striker-manage-vnc-pipes executable
3 years ago
Tsu-ba-me
7d9013a60b
fix(tools): allow striker-manage-vnc-pipes to be executed as a job
3 years ago
Tsu-ba-me
0935b9a990
feat(tools): move manage_vnc_pipes endpoint core logic to separate script
3 years ago
Tsu-ba-me
5459e610aa
fix(tools): auto-end tunnel script when connection breaks
3 years ago
Tsu-ba-me
d5724c1457
chore(tools): rename striker-start-ssh-tunnel->striker-open-ssh-tunnel
3 years ago
Tsu-ba-me
23d818cfff
fix(cgi-bin): avoid direct SSH calls
3 years ago
Digimer
e3d65d654c
* Continuing work on anvil-manage-server.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
3f1c2dd38f
* Couple of small cleanups for fence_delay.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
8d2e454d69
* Updated fence_delay to set the ownership of the log file to 'hacluster:haclient'. This should address https://github.com/digimer/fence_delay/issues/1
...
* WIP - COntinuing work on anvil-manage-server, far from done yet.
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
bc8b9274cb
WIP; Reworked anvil-manage-server to have a more interactive menu system (for the sections done so far).
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
28865780f8
* Updated Database->get_server_definitions() to take a specific server UUID, allowing just the one definition to be loaded. Also had it clear previous loads.
...
* Updated Server->parse_definition() to call DRBD->get_devices() so that referenced LVs can be loaded properly.
* Continued WIP in anvil-manage-server
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago