Commit graph

185 commits

Author SHA1 Message Date
Jordan Rodgers
513e4bc1c3 fix user/pool deletion 2018-04-23 00:56:20 -04:00
Jordan Rodgers
be432989b5 Merge branch 'master' of github.com:com6056/proxstar 2018-04-16 15:14:49 -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
Michael Francis
226af9d7ad
Remove duplicate </body> tag 2018-04-11 13:04:42 -04:00
Max
5683f7cd3c
Integrates Themeswitcher 2018-04-09 22:29:19 -04:00
Jordan Rodgers
8808389b46 send vnc teardown commands to proxstar-vnc 2018-04-04 15:30:19 -04:00
Jordan Rodgers
03baef5be0 teardown ssh/vnc stuff after shutdown and reset requests 2018-04-02 13:47:57 -04:00
Jordan Rodgers
3f03d9ab69 remove SSH tunnel and VNC stuff for deleted VMs 2018-03-26 23:32:01 -04:00
Jordan Rodgers
e608c0dc10 properly validate hostname properly (hopefully for the last time) 2018-03-21 22:20:41 -04:00
Jordan Rodgers
7db17ab91d upgrade to bootstrap 4 2018-03-21 14:58:01 -04:00
Jordan Rodgers
7b38f00a69 fix ordering of boot order when reading request data 2018-03-19 15:19:34 -04:00
Jordan Rodgers
32f7c1eb01 add the logging back because it broke again 2018-03-19 15:09:49 -04:00
Jordan Rodgers
1f21d0a175 remove logging because it works now wtf 2018-03-19 14:33:50 -04:00
Jordan Rodgers
f189b00932 add logging to debug boot order issue on openshift 2018-03-19 14:28:04 -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
cefe605bb9 instead of getting all pools, try to get the pool and then create it on failure 2018-03-08 01:14:43 -05:00
Jordan Rodgers
88ef6daa8a check if job before verifying args 2018-03-08 01:02:53 -05:00
Jordan Rodgers
1e27f863c9 account for both paused and suspended vm states because proxmox is dumb 2018-03-07 02:24:58 -05:00
Jordan Rodgers
df100a25b8 add proper 404 and 403 pages 2018-03-07 01:49:42 -05:00
Jordan Rodgers
2317fddeac convert all names to lowercase 2018-03-07 01:20:02 -05:00
Jordan Rodgers
635e4c0f9f add rq dashboard for RTPs 2018-03-06 20:49:49 -05: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
3cc8268b9d change vm status paused to suspended 2018-03-04 18:02:29 -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
bea806e964 somewhat fix button colors and remove unused reset limits function 2018-02-24 18:33:04 -05:00
Jordan Rodgers
df8e1cf62c remove settings button in dropdown, add ability to edit templates 2018-02-24 17:12:53 -05:00
Jordan Rodgers
019dae3502 add db param for usage limits 2018-02-24 14:28:38 -05:00
Jordan Rodgers
e375e452e2 remove template desc, add way to resize disks 2018-02-22 18:29:40 -05:00
Jordan Rodgers
cebad26e6b properly readd targets during cleanup 2018-02-20 14:24:27 -05:00
Jordan Rodgers
e5e54d1239 add hourly cleanup of vnc pipelines 2018-02-20 02:01:33 -05:00
Jordan Rodgers
7166650a4a change route to console for vnc deployment 2018-02-20 01:15:57 -05:00
Jordan Rodgers
115909b5cd add cleanup code for vnc connections 2018-02-20 01:10:42 -05:00
Jordan Rodgers
b05109af83 workaround for cors issue 2018-02-19 23:49:26 -05:00
Jordan Rodgers
f84b205f15 rework console so migrating vms isnt dumb and ssh tunnels can be torn down 2018-02-19 23:31:02 -05:00
Jordan Rodgers
08821b0b75 stop creating users since console access works now 2018-02-16 02:54:57 -05:00
Jordan Rodgers
ece3cea8a5 add current_student to active check for user_dict 2018-02-14 16:59:06 -05:00
Jordan Rodgers
227060dd77 actually fail to other proxmox nodes, yapf everything 2018-02-14 01:25:14 -05:00
Jordan Rodgers
7aadd423e7 add allowed users setting for current students, replace all user stuff with user dict, add beginning of vnc cleanup 2018-02-14 00:57:28 -05:00
Jordan Rodgers
6d71f49a7a open console in new tab 2018-02-13 01:31:06 -05:00
Jordan Rodgers
be0cba852d actually use the right port when starting proxmox vnc session 2018-02-12 23:46:50 -05:00
Jordan Rodgers
63fd8c3e2f only add tunnel to list if it gets set up 2018-02-12 23:30:44 -05:00
Jordan Rodgers
545ca65930 ignore already set up ssh tunnels, use correct params for novnc 2018-02-12 23:29:18 -05:00
Jordan Rodgers
8e48bb1c95 start websockify once with gunicorn config 2018-02-12 21:48:00 -05:00
Jordan Rodgers
3b1740c641 add proxmox vnc command, check if targets file exists before retrieving entries 2018-02-12 21:25:06 -05:00
Jordan Rodgers
576c6c1338 beginning of vnc work, hopefully some of this works 2018-02-12 20:55:09 -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
c2c91b9f37 remove secrets module for generating passwords until this works with python 3.6 2018-02-11 22:02:06 -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
5fb7f66624 add settings page, add way to add/remove ignored pools 2018-02-06 23:51:30 -05:00
Jordan Rodgers
ecd7809749 allow for multiple proxmox hosts in case one fails 2018-02-06 22:27:08 -05:00
Jordan Rodgers
423e5ad119 add db parameter for get_pool 2018-02-05 16:37:47 -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
e96c8cf4cf add db paramter for get_user_usage 2018-02-02 15:32:37 -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
51de0b69af add default value for disk field when creating vms 2018-02-02 00:40:58 -05:00
Jordan Rodgers
96d1670d47 fix time for expiring vm task 2018-02-02 00:00:52 -05:00
Jordan Rodgers
6e6e4d5a3d ignore rtp pool 2018-02-01 16:46:46 -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
8fbe4de70f fix resource usage circle layout on create page 2018-01-28 21:46:17 -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
Jordan Rodgers
1fd989d6c2 add scheduler script, store rtp view cache in db and schedule generation 2018-01-26 02:03:45 -05:00
Jordan Rodgers
59836baf74 fix all rtp/perms checks, add db parameter to necessary functions 2018-01-24 23:07:59 -05:00
Jordan Rodgers
9405d5b6cc add rq scheduler and fix memory perms check 2018-01-24 22:23:49 -05:00
Jordan Rodgers
d0368e743f fix vm_power parameter, add basic vm expire email 2018-01-24 21:47:18 -05:00
Jordan Rodgers
3fd24e42ea add db parameter for renewing vms 2018-01-24 03:32:47 -05:00
Jordan Rodgers
bf19241bed fix renewals, add email for vm expiration 2018-01-24 03:26:15 -05:00
Jordan Rodgers
0df186f5c3 only retrieve vms for user if active 2018-01-24 01:22:27 -05:00
Jordan Rodgers
8487d86044 use the correct starrs procedure to check hostnames 2018-01-24 01:12:05 -05:00
Jordan Rodgers
05f43852ee add db parameter for usage check in create 2018-01-24 00:56:45 -05:00
Jordan Rodgers
6d36ced3b3 set redis host and port from config 2018-01-24 00:30:08 -05:00
Jordan Rodgers
74f65827bf change redis host 2018-01-23 23:58:54 -05:00
Jordan Rodgers
1d094b1e25 change db to postgres, fix rtp functions, change how db is connected 2018-01-23 23:12:19 -05:00
Jordan Rodgers
af451f6176 revert bootstrap submodule to 3 2018-01-23 15:36:39 -05:00
Jordan Rodgers
37748ef638 fix bootstrap submodule 2018-01-23 03:42:00 -05:00
Jordan Rodgers
22e70ee8fd prep project for openshift 2018-01-23 03:36:08 -05:00