Commit graph

276 commits

Author SHA1 Message Date
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
Max Meinhold
ff094bc686
Merge pull request #99 from harmonherring/dropdown-navbar
Update bootstrap js cdn link
2021-05-19 15:33:50 -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
f8af77469e
Merge pull request #84 from mxmeinhold/boot-order-and-fixes
Boot Ordering and other fixes
2021-01-02 13:45:55 -05: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
c49ae38e10
Merge pull request #82 from mxmeinhold/readable-repr
Enrich Sentry traces using a basic repr
2020-12-28 18:13:38 -05:00
Max Meinhold
3e1608aca1
Add black to readme 2020-12-28 14:57:19 -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
bb6e4696d0
Merge pull request #80 from ComputerScienceHouse/datadog_rum
Adding datadog RUM to Proxstar
2020-12-25 18:39:16 -05:00
Devin Matte
2876971795 Adding datadog RUM to Proxstar 2020-12-25 18:05:18 -05:00
dependabot[bot]
bea2008754
Bump websockify from 0.8.0 to 0.9.0 (#75)
Bumps [websockify](https://github.com/novnc/websockify) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/novnc/websockify/releases)
- [Changelog](https://github.com/novnc/websockify/blob/master/CHANGES.txt)
- [Commits](https://github.com/novnc/websockify/compare/v0.8.0...v0.9.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-25 17:39:55 -05:00
Devin Matte
ecd4127972
Revert "Upgrading to pyoidc 3.7.0" (#78) 2020-12-22 17:37:51 -05:00
Devin Matte
a58a23cc52
Merge pull request #69 from ComputerScienceHouse/py_oidc_upgrade
Upgrading to pyoidc 3.7.0
2020-12-22 17:00:46 -05:00
Devin Matte
30262fd360
Merge branch 'master' into py_oidc_upgrade 2020-12-22 15:51:28 -05:00
dependabot[bot]
c5280a93ad
Bump flask from 1.0.2 to 1.1.2 (#77)
Bumps [flask](https://github.com/pallets/flask) from 1.0.2 to 1.1.2.
- [Release notes](https://github.com/pallets/flask/releases)
- [Changelog](https://github.com/pallets/flask/blob/master/CHANGES.rst)
- [Commits](https://github.com/pallets/flask/compare/1.0.2...1.1.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-22 15:08:35 -05:00
dependabot[bot]
f2df36a1ab
Bump paramiko from 2.4.2 to 2.7.2 (#53)
Bumps [paramiko](https://github.com/paramiko/paramiko) from 2.4.2 to 2.7.2.
- [Release notes](https://github.com/paramiko/paramiko/releases)
- [Changelog](https://github.com/paramiko/paramiko/blob/master/NEWS)
- [Commits](https://github.com/paramiko/paramiko/compare/2.4.2...2.7.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-22 14:40:45 -05:00
dependabot[bot]
32feaf93c1
Bump python-dateutil from 2.7.3 to 2.8.1 (#50)
Bumps [python-dateutil](https://github.com/dateutil/dateutil) from 2.7.3 to 2.8.1.
- [Release notes](https://github.com/dateutil/dateutil/releases)
- [Changelog](https://github.com/dateutil/dateutil/blob/master/NEWS)
- [Commits](https://github.com/dateutil/dateutil/compare/2.7.3...2.8.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-22 14:27:01 -05:00
dependabot[bot]
e06659b4ab
Bump gunicorn from 19.9.0 to 20.0.4 (#70)
Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 19.9.0 to 20.0.4.
- [Release notes](https://github.com/benoitc/gunicorn/releases)
- [Commits](https://github.com/benoitc/gunicorn/compare/19.9.0...20.0.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-22 13:33:04 -05:00
Devin Matte
1118662b03
Revert "Update csh-ldap requirement from ~=2.2.0 to ~=2.3.0 (#71)" (#73)
This reverts commit 433ae1ae59.
2020-12-22 12:45:11 -05:00
dependabot[bot]
433ae1ae59
Update csh-ldap requirement from ~=2.2.0 to ~=2.3.0 (#71)
Updates the requirements on [csh-ldap](https://github.com/liam-middlebrook/csh_ldap) to permit the latest version.
- [Release notes](https://github.com/liam-middlebrook/csh_ldap/releases)
- [Changelog](https://github.com/liam-middlebrook/csh_ldap/blob/master/ChangeLog)
- [Commits](https://github.com/liam-middlebrook/csh_ldap/compare/2.2.0...2.3.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-22 12:31:13 -05:00
dependabot[bot]
643bd944a8
Bump sqlalchemy from 1.3.20 to 1.3.22 (#68)
Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.3.20 to 1.3.22.
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/master/CHANGES)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-22 12:21:32 -05:00
Devin Matte
dac0dd2a29 Upgrading to pyoidc 3.7.0 2020-12-22 12:18:06 -05:00
dependabot[bot]
31eb977e61
Bump psutil from 5.6.6 to 5.8.0 (#66)
Bumps [psutil](https://github.com/giampaolo/psutil) from 5.6.6 to 5.8.0.
- [Release notes](https://github.com/giampaolo/psutil/releases)
- [Changelog](https://github.com/giampaolo/psutil/blob/master/HISTORY.rst)
- [Commits](https://github.com/giampaolo/psutil/compare/release-5.6.6...release-5.8.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-22 11:59:25 -05:00
Devin Matte
ea4510bb64
Merge pull request #64 from ComputerScienceHouse/updating_proxmoxer
Updating proxmoxer api
2020-12-22 11:47:38 -05:00
Devin Matte
cc73b300ec
Merge pull request #67 from ComputerScienceHouse/revert-63-ldap_cache
Revert "Simple ldap cache"
2020-12-22 00:16:47 -05:00
Devin Matte
9caaf2bae0
Revert "Simple ldap cache" 2020-12-22 00:16:33 -05:00
Devin Matte
d601efe560 Hotfix roll back csh_ldap 2020-12-22 00:07:28 -05:00
Devin Matte
e5a7033386
Merge pull request #63 from ComputerScienceHouse/ldap_cache
Simple ldap cache
2020-12-21 23:55:17 -05:00
Devin Matte
63fd38b606 Hotfix timeout value 2020-12-21 23:36:29 -05:00
Devin Matte
36f52e5938
Merge pull request #65 from ComputerScienceHouse/extending_timeout
Extending gunicorn timeout
2020-12-21 23:15:40 -05:00
dependabot[bot]
2d4426eaba
Bump requests from 2.24.0 to 2.25.1 (#62)
Bumps [requests](https://github.com/psf/requests) from 2.24.0 to 2.25.1.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/master/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.24.0...v2.25.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-21 20:15:15 -05:00
Devin Matte
f900b5d4bf Extending gunicorn timeout 2020-12-21 18:44:26 -05:00
Devin Matte
c5fb88bfc3 Updating proxmoxer api 2020-12-21 18:23:06 -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
Devin Matte
53faa084c2 Adding some basic ldap cache 2020-12-21 17:14:11 -05:00
Devin Matte
d93c413983
Merge pull request #60 from ComputerScienceHouse/new-ci
Updating pylint, adding black, adding GitHub ci
2020-12-21 16:28:32 -05:00
Devin Matte
8e263e8604 Adding ci 2020-12-21 15:26:01 -05:00
Devin Matte
0d95333bab Running black on code 2020-12-21 15:24:51 -05:00
Devin Matte
7a312f1f79 Adding requirements, deleting travis, updating pylint 2020-12-21 15:24:29 -05:00