Will Nilges
19b508fe2e
Properly delete keys from Redis
2022-08-31 23:24:37 -04:00
Will Nilges
125d7fae51
Remove target from targets file in tasks
...
This probably isn't necessary and will probably error out....
2022-08-18 19:51:58 -04:00
Will Nilges
433c845a35
Use Redis to link VNC tokens to VMID
2022-08-18 19:51:56 -04:00
Willard Nilges
2c17d6988f
Update VNC functionality for Proxmox 7 ( #148 )
...
Chown `targets`, Add run and kill scripts
Lol Joe figured it out
* Dude it works holy shit
We need to fix some logistical bugs, probably, and also like remove dead
code lol
* Open VNC session on the node that the VM belongs
Figured out why I couldn't open a session on anything but 01. It was
because I was making the API call on proxmox01-nrh. So that's where the
session opened. I hope that by doing this, it will balance the load
(what little there is) from VNC sessions.
* Update websockify-related tasks
* Remove SSH key from build
* Add option to specify VNC port.
Should be 443 for OKD, probably 8081 for development.
This hosts a smattering of fixes, acutally uses gunicorn properly(?),
launches websockify correctly, and introduces MORE DEAD CODE!
TODO: Fix the scheduling system
* Make things not crash as much :)
* Remove obviously dead code
There's still some code in here that may require more careful
extraction, testing, and review, so I'm saving that for another PR.
* Fix Joe's complaints
* Replace hardcoded URL
2022-07-29 20:56:00 -04:00
Will Nilges
8e5f173a94
Merge pull request #111 from harmonherring/boot-order
...
Boot order handling
2021-11-11 19:25:21 -05:00
Will Nilges
e3783a4919
Move schema to homedir, add more docs
...
Update configs
2021-10-21 00:14:11 -04:00
Will Nilges
33a8cdb523
Expand options to not use starrs.
2021-10-21 00:14:11 -04:00
Will Nilges
c641ba1d1c
Update Postgres container w/ required starrs pkgs
...
Streamline creation of database
The user no longer has to configure the database by themself.
2021-10-21 00:14:04 -04:00
Will Nilges
74a0990997
Fix hardcoded variables, tweak schema/dockerfile
...
Change config.local.py to config_local.py
Fix 2AM Willard Moments™
Made a few errors last night that should be corrected.
2021-10-21 00:13:54 -04:00
Harmon Herring
2f0b113b05
Revert "Override boot order defaults on vm creation"
...
This reverts commit d44698a959 .
2021-05-22 16:52:40 -04:00
Max Meinhold
d44698a959
Override boot order defaults on vm creation
2020-12-31 18:44:44 -05:00
Max Meinhold
b02c6bfbc9
Fix config.local.py in tasks
...
Follow up from b95e4468 in tasks.py
2020-12-31 18:44:06 -05:00
Devin Matte
0d95333bab
Running black on code
2020-12-21 15:24:51 -05:00
Galen Guyer
865200cbec
Increase timeout and fix infinite loop if starrs delete fails
2020-01-15 22:24:31 -05:00
Galen Guyer
dba7d0341c
Increase template delay and don't fail deleting VM if starrs doesn't have a record
2020-01-15 20:23:34 -05:00
Galen Guyer
69bad2dac4
Add pylint_quotes and fix all issues
2019-11-01 17:35:51 -04:00
Galen Guyer
e72c83aafc
Fix all pylint issues
2019-11-01 13:25:48 -04:00
Jordan Rodgers
b3f3670e6f
delete starrs first
2019-02-23 13:20:28 -05:00
Jordan Rodgers
d19522cab5
more fixes!
2019-02-19 23:36:43 -05:00
Jordan Rodgers
daa994ba32
fix expire bug, cleanup tasks
2019-02-19 22:46:53 -05:00
Jordan Rodgers
77743af16d
timeouts multiply
2019-01-27 22:31:23 -05:00
Jordan Rodgers
1acb84016d
fix template provisioning by verifying VM is provisioned before doing anything else
2019-01-27 21:43:51 -05:00
Jordan Rodgers
431d2279fe
stop running VMs before deleting
2018-09-28 22:38:09 -04:00
Jordan Rodgers
8bf49a664a
add retries everywhere cuz proxmox sucks, use json for iso list (for marc <3)
2018-09-26 22:40:34 -04:00
Jordan Rodgers
820a1c999e
set version pyoidc, clean up js, fix alumni rtp stuff
2018-09-17 21:34:13 -04:00
Jordan Rodgers
d0995365dd
only send 1 email for rtp expiration notices
2018-09-05 22:11:07 -04:00
Jordan Rodgers
a3f15134f2
use cloud-init for templates, add ssh key for cloud-init, delete expire before vm creation
2018-05-07 01:09:36 -04:00
Jordan Rodgers
dd876a8b2c
tear down SSH tunnel every time console button is clicked and on suspend, yapf a few things
2018-04-26 02:59:09 -04:00
Jordan Rodgers
d9658aaf07
enable vm deletions, wait 7 days before deleting, fix emails, add rtp deletion email
2018-04-16 15:14:36 -04:00
Jordan Rodgers
8808389b46
send vnc teardown commands to proxstar-vnc
2018-04-04 15:30:19 -04:00
Jordan Rodgers
64b8d3983e
add ability to change boot order, a lot more cleanup from conversion to classes
2018-03-18 22:18:20 -04:00
Jordan Rodgers
786fd8ee2d
add ability to view pending vm status on vm list page
2018-03-06 16:28:17 -05:00
Jordan Rodgers
0d5b76c28e
fix import hell... for now...
2018-03-02 00:10:09 -05:00
Jordan Rodgers
06920e1216
convert all vm and user operations to objects, lazy load some attributes, clean up some unneeded code/imports, sort rtp view before displaying
2018-02-28 03:12:18 -05:00
Jordan Rodgers
e5e54d1239
add hourly cleanup of vnc pipelines
2018-02-20 02:01:33 -05:00
Jordan Rodgers
e0c564269f
properly expire password upon user creation for template
2018-02-12 13:15:07 -05:00
Jordan Rodgers
d7541fe356
disable expiring password to troubleshoot
2018-02-12 12:49:06 -05:00
Jordan Rodgers
451f992d8f
enabling VM stop on expire day, add logging for template provisioning
2018-02-12 12:22:46 -05:00
Jordan Rodgers
4a2df4d979
remove ssh queue
2018-02-11 21:15:39 -05:00
Jordan Rodgers
f5a36d6f1e
remove pickle fix and add pyc to gitignore
2018-02-11 21:12:00 -05:00
Jordan Rodgers
b38a4b71f1
update psycopg2 requirement, set max pickle version for ssh tasks
2018-02-10 14:41:22 -05:00
Jordan Rodgers
615549502e
remove extra logging, add separate queue for ssh tasks for python2
2018-02-09 22:05:48 -05:00
Jordan Rodgers
7514293fff
add more logging for troublshooting
2018-02-08 19:21:57 -05:00
Jordan Rodgers
2d06bd0989
add logging for template issue
2018-02-08 19:11:28 -05:00
Jordan Rodgers
df39356c4d
fix rq-scheduler version, most of templates is now working, fix javascript issues
2018-02-08 18:44:04 -05:00
Jordan Rodgers
85a5e74a6b
only retrieve ignored_pools once, add paramter for get_pools in tasks
2018-02-03 00:05:20 -05:00
Jordan Rodgers
8fbae0a071
store ignored pools in db, check ignored pools when getting all pools
2018-02-02 15:18:50 -05:00
Jordan Rodgers
7b4e7fb6e8
remove reset limits, disable debug, improve get next starrs ip, add start of template code
2018-01-31 22:23:22 -05:00
Jordan Rodgers
cab0745707
remove ignored pools config, check valid user when generating pool list, add start for ssh tasks
2018-01-28 21:23:24 -05:00
Jordan Rodgers
b57279788d
change email depending on day, add but comment out power off for 0 days
2018-01-26 02:40:47 -05:00