Commit graph

185 commits

Author SHA1 Message Date
Joe Abbate
1fc875fa7d
Pylint2 2022-09-25 01:11:42 -04:00
Joe Abbate
b39ec59dcd
Pylint Linting 2022-09-25 01:08:52 -04:00
Joe Abbate
0665cae5c4
Black Linting 2022-09-25 01:07:29 -04:00
Joe Abbate
dff517d822
Shared Pools 2022-09-25 00:58:29 -04:00
Joe Abbate
f308ae5519
Pylint linting 2022-09-07 16:40:15 -04:00
Joe Abbate
71e75ed1ab
Black linting 2022-09-07 16:38:25 -04:00
Joe Abbate
b3d4a3206e
Remove unneeded rtp_view 2022-09-07 16:31:14 -04:00
Joe Abbate
da8aa85bde
Split views to different files 2022-09-07 16:23:30 -04:00
Joe Abbate
844dfd0f56
Update RTP view of VM Page 2022-09-07 16:10:25 -04:00
Will Nilges
240001c357 lint 2022-08-31 23:30:24 -04:00
Will Nilges
19b508fe2e Properly delete keys from Redis 2022-08-31 23:24:37 -04:00
Will Nilges
5a28460db0 Check if vnc_target is None before trying to use
Haha oops
2022-08-31 21:33:34 -04:00
Will Nilges
60d4e89404 linttttttt 2022-08-25 23:46:22 -04:00
Will Nilges
63a2bab3cd Fix vnc target redis crash 2022-08-25 23:36:41 -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
Will Nilges
aa1c4834f4 Remove deprecated library
No, seriously
2022-08-18 19:51:55 -04:00
Will Nilges
8d4a7d52a9 Remove SSH functionality to Proxmox 2022-08-18 19:51:50 -04:00
Will Nilges
c809d70c68 Remove old TODO 2022-07-29 22:00:02 -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
Devin Matte
20f523b2ca Increase disk allotment 2022-06-29 16:33:04 -04:00
Devin Matte
a67380c500 Removing .items() 2022-05-28 19:03:13 -04:00
Devin Matte
7a2c3374ca Update to latest noVNC 2022-05-28 18:20:04 -04:00
Devin Matte
62490d6858 Fixing black and pylint 2022-05-28 14:28:26 -04:00
Tyler Holewinski
2647aa8474
update jquery CDN 2022-04-13 19:56:06 -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
9ae763e6ea Remove disabled boot devices from boot order display
Disabled boot devices will no longer show up in the boot order
display on the vm details page in the resources section.
2021-06-18 00:45:40 -04:00
Harmon Herring
b9860a10ff Update UI boot order selection element
Update the UI boot order selection element. It has been modified to
support the new 'order=' format for the Proxmox boot order option
in a more intuitive way for the user. The new element allows users
to enable any bootable device and choose the order for these
devices to boot in.

The new UI element is a table with four columns. The first column
indicates the order of the corresponding device. The second column
indicates whether the device is enabled as bootable. The third
column contains the device name. The fourth column contains the
device description. The order of the columns is changed by
dragging, enabled by SortableJS.

In cases of legacy nodes, the older dropdown boxes are used.
2021-06-18 00:09:22 -04:00
Harmon Herring
fae4e9f059 Clean VM boot order code 2021-06-10 18:06:10 -04:00
Harmon Herring
085f5c09d8 Update format of VM boot order JSON
Change format of the VM boot order JSON. This new format allows
the UI to mimic the Proxmox boot order selection system.

The new format is as follows
{
  'legacy': False,
  'order': [
    {
      'device': 'virtio0',
      'description': 'local-lvm:vm-102-disk-0,size=8G',
      'enabled': True
    },
    ...
  ]
}
2021-06-10 17:05:37 -04:00
Harmon Herring
6da1095d1c Propose new boot order to users
Propose new boot order to owners of VMs that exist on nodes
running Proxmox version 6.3 or greater.

Instead of returning the legacy boot order to the UI, a new boot
order is created and sent instead. The new order mimics the old
order, but is compliant with the new format. The new order will
take effect only if the user explicitly updates.
2021-05-27 19:21:06 -04:00
Harmon Herring
27a6b2136e Create method to get a vm's cd-roms
Create a method to get the drives attached to a vm that have
media type cdrom.
2021-05-27 15:02:25 -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
Harmon Herring
c16c383b36 Update boot device order parsing
Update boot order parsing so as to be compatible with the new
Proxmox syntax for virtual machine boot device ordering.

Maintain support for the deprecated boot device order syntax. Virtual
machines using the deprecated syntax are not updated to use the new
syntax.
2021-05-22 03:47:45 -04:00
Harmon Herring
488caa323e Update bootstrap js cdn link
Update the link to the bootstrap js cdn. As a result, the navbar
no longer fails to dropdown.
2021-05-18 17:55:22 -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
Max Meinhold
778a5c3f8e
Rename get_boot_order -> set_boot_order
s/get/set, since it sets the boot order
2020-12-31 18:37:13 -05:00
Max Meinhold
38e8e71cd6
Create basic __repr__ for all classes for debug
Help to make sentry traces more readable by simply printing out each
class's __dict__.
2020-12-28 14:55:40 -05:00
Devin Matte
2876971795 Adding datadog RUM to Proxstar 2020-12-25 18:05:18 -05:00
Devin Matte
ecd4127972
Revert "Upgrading to pyoidc 3.7.0" (#78) 2020-12-22 17:37:51 -05:00
Devin Matte
dac0dd2a29 Upgrading to pyoidc 3.7.0 2020-12-22 12:18:06 -05:00
Devin Matte
9caaf2bae0
Revert "Simple ldap cache" 2020-12-22 00:16:33 -05:00
Devin Matte
724c6e0f58 Smaller cache 2020-12-21 17:32:32 -05:00
Devin Matte
e1c64cb322 Using single ldap connection 2020-12-21 17:25:24 -05:00
Devin Matte
d4e42555f2 Slightly smaller cache for active 2020-12-21 17:14:48 -05:00