Commit Graph

3169 Commits

Author SHA1 Message Date
Tsu-ba-me
506956f539 docs(libvirt): note hooks execute with uid=0, gid=0 2023-07-20 22:28:04 -04:00
Tsu-ba-me
04bcaec9a5 fix(tools): remove all remote calls in manage vnc pipes 2023-07-20 22:28:04 -04:00
Tsu-ba-me
9ecdb4269d fix(tools): enable remote forward in open ssh tunnel 2023-07-20 22:28:04 -04:00
Tsu-ba-me
962bf52225 fix: add signal INT, TERM hooks to Tools.pm 2023-07-20 22:28:04 -04:00
Yanhao Lei
a1f7ad41e3
Merge pull request #366 from ClusterLabs/dependabot/npm_and_yarn/striker-ui/word-wrap-1.2.4
build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 in /striker-ui
2023-07-20 05:20:13 -04:00
dependabot[bot]
abf6e2ce96 build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 in /striker-ui
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-18 23:37:37 -04:00
Digimer
5f40522cdb
Merge pull request #362 from ClusterLabs/anvil-tools-dev
* Updated anvil-update-system to detect kmod-drbd upgrade problems an…
2023-07-18 22:54:15 -04:00
digimer
541381e317 * Finished getting anvil-manage-server-storage to add new volumes to running servers.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-07-18 13:31:52 -04:00
digimer
afaf129733 * Updated anvil-manage-server-storage to connect the new drive to the VM. Still need to update the on-disk and in-DB definitions though.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-07-17 21:33:46 -04:00
digimer
de86cf88fe * Updated anvil-manage-server-storage to now handle a new volume stuck in 'Negotiating', and to do the initial sync when there are three connected peers.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-07-17 21:04:36 -04:00
digimer
9bc78860a6 * Updated anvil-update-system to detect kmod-drbd upgrade problems and fix them.
* Updated striker-update-cluster and anvil-update-system to take '--reboot' to request a reboot if any packages are updated.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-07-16 20:45:47 -04:00
Digimer
bf288fda49
Merge pull request #361 from ClusterLabs/anvil-tools-dev
Anvil tools dev
2023-07-16 10:42:46 -04:00
digimer
f262da544d Removed '--best --allowerasing' from dnf update.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-07-16 00:18:29 -04:00
digimer
42b44ac864 * Updated the log showing why anvil-daemon isn't exiting when a job is running with the job's current progress.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-07-16 00:08:53 -04:00
digimer
d741f4aa6f * Updated anvil-daemon to not exit on high RAM use is any job is running.
* Updated anvil-update-system to reboot a target whose kernel updated using an anvil-manage-power job,
* Started making striker-update-cluster run as a job (not at all complete). Fixed a bug where the wrong IP was being used when finding access to a target.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-07-15 22:23:30 -04:00
digimer
751687129a * Updated anvil-daemon to not exit on RAM use if anvil-update-system is running.
* Fixed a bug in anvil-safe-stop where it wouldn't trigger a migration when the peer is online.
* Updated anvil-update-system to set job_data to 'failed' and exit with rc 4 if the os update failed.
* Got striker-update-cluster to error out and exit if a called 'anvil-update-system' job failed.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-07-15 16:23:38 -04:00
Digimer
c1e4380a64
Merge branch 'main' into anvil-tools-dev 2023-07-15 00:06:49 -04:00
digimer
458cb267da * Fixed a bug in Cluster->get_primary_host_uuid() where servers were not loaded before trying to calculate RAM use.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-07-15 00:04:12 -04:00
digimer
4dc1b0e117 * Added a check to Network->get_company_from_mac() to manually set the company to KVM/qemu if the prefix is 52:54:00.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-07-14 23:00:16 -04:00
digimer
02c3d204ea * Updated anvil-update-system to set 'job_data' to track reboots, and striker-update-cluster to read it.
Signed-off-by: digimer <mkelly@alteeve.ca>
2023-07-14 22:52:51 -04:00
digimer
3016fb875b * Reworded striker-update-cluster to use anvil-update-system for on-system OS updates.
* Updated DRBD->get_status() to take the new 'host' paramter to allow the caller to define the hash key string used in the stored data.
* Updated Get->anvil_version() (and a few other places) to use the new 'striker-ui-api' shell user, replacing the 'apache' user.
* Updated Remote->test_access() to take the new 'close' parameter to close the SSH session used when testing access to the target.
* Fixed a logging bug in anvil-manage-power.
* Updated anvil-update-system to take the '--no-reboot' and 'clear-cache' command line switches.

Signed-off-by: digimer <mkelly@alteeve.ca>
2023-07-14 22:29:07 -04:00
Fabio M. Di Nitto
12635e0a0a
Merge pull request #360 from ylei-tsubame/server-vm-screenshot
Move server screenshot fetching to `scan-server`
2023-07-14 09:23:42 +02:00
Tsu-ba-me
a8523843ac build: set 'netcat' package as conflict to 'nmap-ncat' 2023-07-13 02:48:37 -04:00
Tsu-ba-me
7645f6adbe build: add nmap-ncat as dependency to nodes/drs 2023-07-13 02:40:04 -04:00
Tsu-ba-me
e072f9ecf6 build(striker-ui-api): rebuild 2023-07-13 02:11:27 -04:00
Tsu-ba-me
4b3343c421 fix(striker-ui-api): convert, read server screenshot in get server detail 2023-07-13 02:09:06 -04:00
Tsu-ba-me
4f46bb43eb fix(tools): remove server screenshot fetching in anvil-daemon 2023-07-13 01:54:04 -04:00
Tsu-ba-me
dac247f66e fix(scancore-agents): get screenshot of server(s) running on local node in scan-server 2023-07-13 01:52:15 -04:00
Tsu-ba-me
b549ff2c1f fix(tools): reduce unnecessary operations in anvil-get-server-screenshot 2023-07-13 00:40:39 -04:00
Tsu-ba-me
09a9194ec2 build: move netpbm-progs (screenshot scale/convert) to striker dependencies 2023-07-12 20:20:40 -04:00
Tsu-ba-me
a7751da153 fix: rename, relocate function to find qemu-kvm processes 2023-07-12 18:40:11 -04:00
Tsu-ba-me
c3c69733d9 fix: correct base port check, server info extract, vnc alive assign in Server.pm 2023-07-12 18:27:50 -04:00
Tsu-ba-me
4647062111 fix(tools): set script source in anvil-access-module 2023-07-12 18:24:21 -04:00
Tsu-ba-me
3cce3c39b8 fix: add Server subroutine to extract server VM info from qemu-kvm process(es) 2023-07-12 02:27:26 -04:00
Yanhao Lei
90a0c19cd7
Merge pull request #357 from ClusterLabs/dependabot/npm_and_yarn/striker-ui/semver-5.7.2
build(deps): bump semver from 5.7.1 to 5.7.2 in /striker-ui
2023-07-11 17:06:26 -04:00
dependabot[bot]
c627b7258a
build(deps): bump semver from 5.7.1 to 5.7.2 in /striker-ui
Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-11 05:49:16 +00: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
292b2b6342
Merge pull request #356 from ylei-tsubame/ducktape-libvirt-deadlock
Disable web VNC, screenshot pieces to avoid libvirt deadlock
2023-07-06 13:23:11 -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
Tsu-ba-me
d95eb699f9 chore: disable web VNC, screenshot pieces to avoid libvirt deadlock 2023-07-05 17:06:11 -04:00
Digimer
6076a45ccf
Merge pull request #350 from ylei-tsubame/replace-cgi-bin
Web UI: pre-3.0-beta
2023-07-04 17:36:18 -04:00
Tsu-ba-me
9009fd23cb build(striker-ui-api): rebuild web UI API 2023-07-03 04:54:18 -04:00
Tsu-ba-me
a6e0cfac35 build(striker-ui): rebuild web UI 2023-07-03 04:53:03 -04:00
Tsu-ba-me
22f85171c7 fix(striker-ui): correct, organize file location checkboxes 2023-07-03 04:46:07 -04:00
Tsu-ba-me
f7350bef9f fix(striker-ui-api): correct update file location (pre an to per host) 2023-07-03 04:46:07 -04:00
Tsu-ba-me
76ab36e1f9 fix(striker-ui): test after repop in general, network config forms 2023-07-03 04:46:07 -04:00
Tsu-ba-me
ffe7f1884e fix(striker-ui): repop, connect reconfig striker 2023-07-03 04:46:07 -04:00
Tsu-ba-me
e436b4de11 fix(striker-ui): connect prepare network submission with endpoint 2023-07-03 04:46:07 -04:00
Tsu-ba-me
9728f56927 fix(striker-ui): allow message setter override in submit form 2023-07-03 04:46:07 -04:00