Commit Graph

337 Commits

Author SHA1 Message Date
Tsu-ba-me
70075ba690 fix(cgi-bin): add login cookie guard to manage_vnc_pipes endpoint 2021-08-04 13:40:02 -04:00
Tsu-ba-me
214ef00647 fix(cgi-bin): allow VNC pipes for different servers to be managed in parallel 2021-08-04 13:40:02 -04:00
Tsu-ba-me
b3b6da8259 chore(cgi-bin): remove debug log level from manage_vnc_pipes and its support scripts 2021-08-04 13:40:02 -04:00
Tsu-ba-me
1f8e35ad0a build(cgi-bin): include manage_vnc_pipes endpoint into makefile 2021-08-04 13:40:02 -04:00
Tsu-ba-me
f8b45f5a74 fix(cgi-bin): avoid concat blank to job_data in manage_vnc_pipes endpoint 2021-08-04 13:40:02 -04:00
Tsu-ba-me
e79a3989eb fix(cgi-bin): repair wait until job is complete before responding 2021-08-04 13:40:02 -04:00
Tsu-ba-me
b2555f2337 fix(cgi-bin): correct typo in job data in manage_vnc_pipes endpoint 2021-08-04 13:38:28 -04:00
Tsu-ba-me
2bef084118 fix(cgi-bin): always wait until job is done before responding 2021-08-04 13:38:28 -04:00
Tsu-ba-me
64de564472 fix(cgi-bin): avoid concat error on undefined --is-open 2021-08-04 13:38:28 -04:00
Tsu-ba-me
1d61c8fff7 fix(cgi-bin): modify manage_vnc_pipes endpoint to trigger a job 2021-08-04 13:38:28 -04:00
Tsu-ba-me
5cceb09f2a fix(cgi-bin): insert record on new of either websockify or ssh tunnel 2021-08-04 13:34:58 -04:00
Tsu-ba-me
fa15c715e4 fix(cgi-bin): revise is process checks to match tunnel script 2021-08-04 13:34:58 -04:00
Tsu-ba-me
d5724c1457 chore(tools): rename striker-start-ssh-tunnel->striker-open-ssh-tunnel 2021-08-04 13:34:58 -04:00
Tsu-ba-me
23d818cfff fix(cgi-bin): avoid direct SSH calls 2021-08-04 13:34:58 -04:00
Tsu-ba-me
c7f63f4a4b fix(cgi-bin): allow update all pipe pieces 2021-08-04 13:34:58 -04:00
Tsu-ba-me
742af987e9 fix(cgi-bin): provide proper params to check if websockify is in-use 2021-08-04 13:34:58 -04:00
Tsu-ba-me
b528456f45 fix(cgi-bin): update records after comparisons are done 2021-08-04 13:34:58 -04:00
Tsu-ba-me
4bd7cd6f62 fix(cgi-bin): respond with connect info after open VNC pipe 2021-08-04 13:34:58 -04:00
Tsu-ba-me
2ca5ee232b fix(cgi-bin): don't kill websockify instances in-use 2021-08-04 13:34:57 -04:00
Tsu-ba-me
9df976712a fix(cgi-bin): only insert when not repairing pipe 2021-08-04 13:34:57 -04:00
Tsu-ba-me
2531252e3f fix(cgi-bin): compare UUID with string comparison operators 2021-08-04 13:34:57 -04:00
Tsu-ba-me
85375d69b1 fix(cgi-bin): param name mismatch in is_ssh_tunnel_exists 2021-08-04 13:34:57 -04:00
Tsu-ba-me
7f8532dbb9 fix(cgi-bin): draft pipe repair without destruction 2021-08-04 13:34:57 -04:00
Tsu-ba-me
dfa3990417 fix(cgi-bin): handle kill SSH tunnel on peer striker 2021-08-04 13:34:57 -04:00
Tsu-ba-me
ef27e30160 fix(cgi-bin): don't insert when using existing pipe 2021-08-04 13:34:57 -04:00
Tsu-ba-me
6711b65151 fix(cgi-bin): include command when logging shell calls 2021-08-04 13:34:57 -04:00
Tsu-ba-me
699400a62c fix(cgi-bin): add missing field when recording VNC pipe 2021-08-04 13:34:57 -04:00
Tsu-ba-me
d2b43f1d59 fix(cgi-bin): add missing host_uuid param to start SSH tunnel 2021-08-04 13:34:57 -04:00
Tsu-ba-me
424fdd70dd fix(cgi-bin): try SIGTERM before SIGKILL when stopping processes 2021-08-04 13:34:57 -04:00
Tsu-ba-me
0f4198155f fix(cgi-bin): prevent start-websockify-in-background from hanging 2021-08-04 13:34:57 -04:00
Tsu-ba-me
3adbd8bca1 fix(cgi-bin): add missing server_uuid variables 2021-08-04 13:34:57 -04:00
Tsu-ba-me
6ba6819078 chore(cgi-bin): rename manage_vnc_ports->manage_vnc_pipes 2021-08-04 13:34:57 -04:00
Tsu-ba-me
5208332b2d fix(cgi-bin): complete draft of open and close VNC pipes 2021-08-04 13:34:57 -04:00
Tsu-ba-me
154b4a7e15 fix(cgi-bin): default function return to undefined 2021-08-04 13:34:57 -04:00
Tsu-ba-me
9603974c24 fix(cgi-bin): complete draft for clean up 2021-08-04 13:34:57 -04:00
Tsu-ba-me
df33c2d193 fix(cgi-bin): draft logic for websockify setup and clean up 2021-08-04 13:34:57 -04:00
Tsu-ba-me
39ecca7eaf fix(cgi-bin): draft function to setup websockify 2021-08-04 13:34:57 -04:00
Tsu-ba-me
ad01ed75ec fix(cgi-bin): add functions to insert and delete vnc pipes 2021-08-04 13:34:57 -04:00
Tsu-ba-me
ac6f7e3898 fix(cgi-bin): add functions to create and drop vnc_pipes table 2021-08-04 13:34:57 -04:00
Tsu-ba-me
6c4f817a58 fix(cgi-bin): handle VMs without VNC port in get_vnc_info 2021-08-04 13:34:57 -04:00
Tsu-ba-me
454ab7bc84 fix(cgi-bin): add draft endpoint to setup VNC connection 2021-08-04 13:34:57 -04:00
Tsu-ba-me
62bc1a9579 fix(cgi-bin): correct typo in network bond link speed comparison 2021-07-20 11:42:24 -04:00
Tsu-ba-me
2d1987f91a fix(cgi-bin): enable sending power on/off server VM jobs 2021-06-25 16:13:31 -04:00
Tsu-ba-me
824213f205 fix(cgi-bin): add logic to power on/off server VM 2021-06-25 16:13:30 -04:00
Tsu-ba-me
900e24c7c1 chore(cgi-bin): set log level for debug 2021-06-25 16:13:30 -04:00
Tsu-ba-me
e33d6398d6 fix(cgi-bin): accept server UUID list in set_power 2021-06-25 16:13:30 -04:00
Digimer
80bdac8e34 * Updated the pacemaker server config to drop the stop timeout to 5 minutes and the migration timeout to 10 minutes. This will avoid blocking the entire cluster when a stop or migrate operation times out. Will update scan-server to clean these up when they happen.
* Updated Database->archive_table() and ->_find_behind_databases() to loop through connected databases, instead of configured databases.
* Updated Network->get_ips() to only record the real MAC addresses on network interfaces (not bonds or bridges) in the "network::${host}::interface::${in_iface}::mac_address" hash. This should help avoid reboot loops caused by anvil-configure-host thinking the network needs to be reconfigured when it doesn't actually need to be.

Signed-off-by: Digimer <digimer@alteeve.ca>
2021-06-11 03:17:07 -04:00
Digimer
daca6c887b * This contains a fairly major change to how time stamps are handled. All INSERT and UPDATE calls now generate a new timestamp via Database->refresh_timestamp, instead of using 'sys::database::timestamp'. This was done in responce to finding a bug where tables in a database differed in both counts of public and private schemas (ip_addresses table, specifically) that failed to resync because the timestamps were re-used too often.
* WIP - Continuing work on the new anvil-manage-server tool.
* Updated Database->get_anvils() to load information on the files available on each Anvil! system.
* Updated Database->insert_or_update_network_interfaces() to no longer take the 'timestamp' parameter.
* Removed all logging from Database->refresh_timestamp() to speed it up, given how often it will be called now.

Signed-off-by: Digimer <digimer@alteeve.ca>
2021-06-08 15:23:15 -04:00
Digimer
930b0b6729
Merge branch 'master' into anvil-tools-dev 2021-06-06 00:05:15 -04:00
Digimer
e15c1651ed * Fixed a bug with deleting bad keys where jobs to delete keys on non-dashboard machine wasn't being assigned to the proper target machine.
* Fixed a bug with anvil-manage-keys where a state_uuid entry recorded on one database may not be read from a machine reading from another database.

Signed-off-by: Digimer <digimer@alteeve.ca>
2021-06-05 19:07:25 -04:00