]> git.proxmox.com Git - pve-manager-legacy.git/log
pve-manager-legacy.git
3 years agoui: snapshot tree: add separator between rollback and edit button
Thomas Lamprecht [Mon, 23 Nov 2020 13:00:07 +0000 (14:00 +0100)]
ui: snapshot tree: add separator between rollback and edit button

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoclose #3114: ui: snapshots: switch Edit and Remove Button & add warning logo
Moayad Almalat [Mon, 9 Nov 2020 11:40:10 +0000 (12:40 +0100)]
close #3114: ui: snapshots: switch Edit and Remove Button & add warning logo

Signed-off-by: Moayad Almalat <m.almalat@proxmox.com>
3 years agopveceph: update octopus repository
Thomas Lamprecht [Mon, 23 Nov 2020 11:01:52 +0000 (12:01 +0100)]
pveceph: update octopus repository

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph install wizard: fix indentation
Thomas Lamprecht [Sun, 22 Nov 2020 17:51:19 +0000 (18:51 +0100)]
ui: ceph install wizard: fix indentation

Hi to the people from the future which came here due to git blame or
the like. `git show -w` should proof that you got the wrong one.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: make remaining content views not stateful
Fabian Ebner [Wed, 18 Nov 2020 10:04:19 +0000 (11:04 +0100)]
ui: make remaining content views not stateful

Commit c2b949f05bb8942b4827df4aeec91e10e09c1b2f removed the statefulness from
the other storage content views, so remove it from the remaining ones too.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoui: storage: get content types from resources
Fabian Ebner [Wed, 18 Nov 2020 10:04:18 +0000 (11:04 +0100)]
ui: storage: get content types from resources

to avoid waiting for a status API call.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agocluster resources: include content type for storages
Fabian Ebner [Wed, 18 Nov 2020 10:04:17 +0000 (11:04 +0100)]
cluster resources: include content type for storages

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoui: ceph install mask: avoid showing version
Thomas Lamprecht [Sun, 22 Nov 2020 16:58:52 +0000 (17:58 +0100)]
ui: ceph install mask: avoid showing version

we do not know yet which version will get installed for real, so just
drop that part.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph: allow selecting which version to install
Thomas Lamprecht [Sun, 22 Nov 2020 16:56:23 +0000 (17:56 +0100)]
ui: ceph: allow selecting which version to install

Try to find out the newest version in the cluster and select that (if
in the known OK list).

Slightly hacky, but nothing really out of the ordinary, so should be
OK.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: ceph wizard: move out info panel to separate component
Thomas Lamprecht [Sun, 22 Nov 2020 14:46:18 +0000 (15:46 +0100)]
ui: ceph wizard: move out info panel to separate component

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoceph: do not require allow-experimental flag for octopus anymore
Thomas Lamprecht [Sun, 22 Nov 2020 14:29:02 +0000 (15:29 +0100)]
ceph: do not require allow-experimental flag for octopus anymore

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: console: add beforeLoad callback
Thomas Lamprecht [Sun, 22 Nov 2020 14:26:13 +0000 (15:26 +0100)]
ui: console: add beforeLoad callback

we sometimes need to adapt parameters, but in a lot contexts the
component is already created, and the activate event order of
components may make this hard to do in a deterministic way.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoapi: nodes: allow root to pass arbitrary arguments to commands
Thomas Lamprecht [Sun, 22 Nov 2020 14:23:16 +0000 (15:23 +0100)]
api: nodes: allow root to pass arbitrary arguments to commands

If the command itself allows it, which normally means it has good
verification of passed arguments.

We may want to re-evaluate security here if we allow execution for a
group of non-root users.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoapi: cluster/ceph: allow version metadata call on non-ceph nodes
Thomas Lamprecht [Sun, 22 Nov 2020 15:12:58 +0000 (16:12 +0100)]
api: cluster/ceph: allow version metadata call on non-ceph nodes

the information comes only from the key value store in the pmxcfs, so
we do not actually require ceph to be installed.

So only check if ceph is locally initialized and create the rados
connection after the early return when only versions scope is set.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoceph services: cleanup variable names
Thomas Lamprecht [Sun, 22 Nov 2020 16:58:17 +0000 (17:58 +0100)]
ceph services: cleanup variable names

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: lxc: code cleanup ssh key upload
Thomas Lamprecht [Sun, 22 Nov 2020 09:22:10 +0000 (10:22 +0100)]
ui: lxc: code cleanup ssh key upload

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: metrics: set default for port
Thomas Lamprecht [Sat, 21 Nov 2020 19:55:13 +0000 (20:55 +0100)]
ui: metrics: set default for port

while it may not be always correct, we can only win by setting a
reasonable default, taken from

* graphite:
  https://graphite.readthedocs.io/en/stable/feeding-carbon.html#the-plaintext-protocol
* influxdb, udp port:
  https://docs.influxdata.com/influxdb/v1.8/administration/ports/

Also, changing that is easy for the admin and can always be done
afterwards.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: metrics: move server and port on same line
Thomas Lamprecht [Sat, 21 Nov 2020 19:55:04 +0000 (20:55 +0100)]
ui: metrics: move server and port on same line

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: metrics: style cleanup: defined xtype first, name second
Thomas Lamprecht [Sat, 21 Nov 2020 19:43:08 +0000 (20:43 +0100)]
ui: metrics: style cleanup: defined xtype first, name second

those are both the most important for what the field is, so they
should come first.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: metrics: advancedColumn1 may now be empty
Thomas Lamprecht [Sat, 21 Nov 2020 19:42:10 +0000 (20:42 +0100)]
ui: metrics: advancedColumn1 may now be empty

we have now improved detection in widget toolkit, not yet packaged
though

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: metrics: use icons for add server
Thomas Lamprecht [Sat, 21 Nov 2020 19:39:54 +0000 (20:39 +0100)]
ui: metrics: use icons for add server

we could use the official influxdata one, they provide it in their
branding guide - and the use here would seem to comply with their
rules, and would fall under fair-user, probably.

Still, not 100% clear for me and Graphite is not easy to find a good
one with clear rules, so just reuse the bar-graph Font Awesome one,
better than nothing (looks empty-wrong)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui/api: metrics: move server to subpath, post to path with ID
Thomas Lamprecht [Sat, 21 Nov 2020 19:36:31 +0000 (20:36 +0100)]
ui/api: metrics: move server to subpath, post to path with ID

We actually wanted to use that scheme for more new API paths, lets
see if it is really fitting starting with this.

Use the new widget-toolkit submitUrl helper to add the ID on create.

And unify the edit/create window creation, which may fit better in a
separate commit, it's quite small and was to cumbersome to untangle,
so just go against my one rules here... :(

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: metrics: add server base edit window
Thomas Lamprecht [Sat, 21 Nov 2020 19:31:54 +0000 (20:31 +0100)]
ui: metrics: add server base edit window

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: add MetricServerView to Datacenter
Dominik Csapak [Fri, 20 Nov 2020 14:12:28 +0000 (15:12 +0100)]
ui: add MetricServerView to Datacenter

adds ui support for configuring the External Metric servers.
for now, influxdb and graphite edit windows do not share code,
it would be ideal to do that once we add more plugins

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoapi: drop Config from MetricServer module name
Thomas Lamprecht [Fri, 20 Nov 2020 15:45:37 +0000 (16:45 +0100)]
api: drop Config from MetricServer module name

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoapi2/cluster: add 'metricserver' api endpoints
Dominik Csapak [Fri, 20 Nov 2020 14:12:27 +0000 (15:12 +0100)]
api2/cluster: add 'metricserver' api endpoints

modeled after our typical api endpoints for sectionschema configs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoinfluxdb: avoid three line comment if one is enough
Thomas Lamprecht [Sat, 21 Nov 2020 19:39:22 +0000 (20:39 +0100)]
influxdb: avoid three line comment if one is enough

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: manager: use eslint for lint target
Thomas Lamprecht [Sat, 21 Nov 2020 19:28:51 +0000 (20:28 +0100)]
ui: manager: use eslint for lint target

not yet linting by default, we need to fix a few thousands linter
errors before that (most are trivial though)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agohttp server: allow duplicate params (URI and form) if equal
Thomas Lamprecht [Sat, 21 Nov 2020 19:33:47 +0000 (20:33 +0100)]
http server: allow duplicate params (URI and form) if equal

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: fix 'no iommu found' message for setups
Dominik Csapak [Fri, 20 Nov 2020 14:29:13 +0000 (15:29 +0100)]
ui: fix 'no iommu found' message for setups

sometimes, the first device in the pci api call is not in a separate
iommu group (see e.g. [0]), but it is active and should work

instead of testing the first, test all, and only show the message
if no device has a set iommu group

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agofix iteration over hash without keys
Dominik Csapak [Fri, 20 Nov 2020 14:14:22 +0000 (15:14 +0100)]
fix iteration over hash without keys

without 'keys' we iterate also over the values and use them as keys

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoStatus/Plugin: add id to schema
Dominik Csapak [Fri, 20 Nov 2020 09:50:47 +0000 (10:50 +0100)]
Status/Plugin: add id to schema

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoStatus/Plugin: fix jsonschema for MTU
Dominik Csapak [Fri, 20 Nov 2020 09:50:46 +0000 (10:50 +0100)]
Status/Plugin: fix jsonschema for MTU

jsonschema wants 'minimum' not 'min'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agovzdump mail: Refactor text part
Dominic Jäger [Tue, 17 Nov 2020 10:46:52 +0000 (11:46 +0100)]
vzdump mail: Refactor text part

Less lines exeeding the character limit, less nesting, less duplicate code,
more readable sprintf arguments.

Co-authored-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
3 years agoui: fix column behavior with browser scaling
Aaron Lauterer [Mon, 2 Nov 2020 14:01:01 +0000 (15:01 +0100)]
ui: fix column behavior with browser scaling

especially on chromium based browser (e.g. chrome, edge) it can happen,
depending on the zoom level, that the last column does not fit next to
the other columns and is moved below the other columns.

This results in an ugly looking UI and in the worst case makes it
unusable.

This can also be triggered if the monitor is set to a higher scaling /
different DPI settings. I was able to have the same problem in Edge when
setting the scaling in the windows display settings to 125% (Clone VM).

Changing the layout from columns with 0.5 width to extjs HBOXes with
flex 1 works as expected.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agofix maxfiles behavior
Fabian Ebner [Mon, 9 Nov 2020 08:56:33 +0000 (09:56 +0100)]
fix maxfiles behavior

Commit 5ba2a605ac14de58572f7b8d6e04b45b34724b0a hard-coded 0 as the default
for maxfiles in the --storage case, but the actual default should be the
value from read_vzdump_defaults(), which obtains the value from
/etc/vzdump.conf or the VZDump schema if the value has not been modified in
that file. The initial default from the schema is 1, not 0.
Tested on PVE 6.1 to verify that behavior.

Move the sanity check for zero-ness to where we have the final value for
maxfiles. Like this, we also have an implicit definedness check and more
importantly, it is more future-proof in case we ever allow maxfiles 0 in the
VZDump schema itself.

Also, force conversion to int to be extra safe.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoaplinfo: update shipped index
Thomas Lamprecht [Mon, 16 Nov 2020 16:35:19 +0000 (17:35 +0100)]
aplinfo: update shipped index

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agovzdump mail: fix #3136: Add name to plain/text part
Dominic Jäger [Mon, 16 Nov 2020 09:44:11 +0000 (10:44 +0100)]
vzdump mail: fix #3136: Add name to plain/text part

The html/text part already has VMID NAME STATUS TIME..., but the text part only
had VMID STATUS TIME... so far. Therefore, add the missing "name" column.

Limit the length of names so that the content of the following columns remains
aligned to the headings. Note that (like before, too) this only works with
monospaced fonts.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
3 years agoui: remove sum for percentages of ceph pools
Dominik Csapak [Fri, 13 Nov 2020 12:01:12 +0000 (13:01 +0100)]
ui: remove sum for percentages of ceph pools

because different pools can have different crush rules, etc.
the sum of the 'percentage used' column makes no real sense, so we
remove it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: storage content view: add clear trigger to search
Thomas Lamprecht [Mon, 16 Nov 2020 08:58:22 +0000 (09:58 +0100)]
ui: storage content view: add clear trigger to search

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: storage content view: eslint fixes and code cleanup
Thomas Lamprecht [Mon, 16 Nov 2020 08:58:04 +0000 (09:58 +0100)]
ui: storage content view: eslint fixes and code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: storage: re-order navigation tree entries, avoid state saving
Thomas Lamprecht [Sun, 15 Nov 2020 18:38:36 +0000 (19:38 +0100)]
ui: storage: re-order navigation tree entries, avoid state saving

So we have first backups, then disk images (VM, CT), then templates
(VM, CT) and finally snippets.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: reverse showColumns to hideColumns, default to hide comment
Thomas Lamprecht [Sun, 15 Nov 2020 18:37:21 +0000 (19:37 +0100)]
ui: reverse showColumns to hideColumns, default to hide comment

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: makefile: fix order
Thomas Lamprecht [Sun, 15 Nov 2020 18:34:52 +0000 (19:34 +0100)]
ui: makefile: fix order

else some panels try to use conetent view before it is defined,
triggering the ExtJS auto-load from server magic, which fails - while
it does not breaks the UI, it generates a warning in the console and
an unnecessary request doomed to fail anyway.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agocontent view: allow specifying which columns to show on init
Fabian Ebner [Fri, 13 Nov 2020 13:16:29 +0000 (14:16 +0100)]
content view: allow specifying which columns to show on init

depending on the content type, we might want to show different information, e.g.
parent for cloned VM/CT images, verification for backups, etc. Of course the
properties would have to be added to the model and the availableColumns first

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agosimplify reload call
Fabian Ebner [Fri, 13 Nov 2020 13:16:28 +0000 (14:16 +0100)]
simplify reload call

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agocreate ImageView and use it for VM and CT images
Fabian Ebner [Fri, 13 Nov 2020 13:16:27 +0000 (14:16 +0100)]
create ImageView and use it for VM and CT images

The enableFn's that were responsible for switching
between the image remove button and the standard remove button
are not needed anymore.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoget rid of unneccessary enableFn's
Fabian Ebner [Fri, 13 Nov 2020 13:16:26 +0000 (14:16 +0100)]
get rid of unneccessary enableFn's

There's only backups in this view.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agocreate and use BackupView
Fabian Ebner [Fri, 13 Nov 2020 13:16:25 +0000 (14:16 +0100)]
create and use BackupView

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agocreate and use TemplateView
Fabian Ebner [Fri, 13 Nov 2020 13:16:24 +0000 (14:16 +0100)]
create and use TemplateView

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoadd upload button conditionally
Fabian Ebner [Fri, 13 Nov 2020 13:16:23 +0000 (14:16 +0100)]
add upload button conditionally

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoturn {nodename, storage, sm} into object variables
Fabian Ebner [Fri, 13 Nov 2020 13:16:22 +0000 (14:16 +0100)]
turn {nodename, storage, sm} into object variables

so they can be used and specified in derived classes.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agocontent view: allow specifying title bar elements for init
Fabian Ebner [Fri, 13 Nov 2020 13:16:21 +0000 (14:16 +0100)]
content view: allow specifying title bar elements for init

in preparation to create derived classes.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoremove the now unneccessary content type column
Fabian Ebner [Fri, 13 Nov 2020 13:16:20 +0000 (14:16 +0100)]
remove the now unneccessary content type column

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoremove the now unnecessary grouping by content type
Fabian Ebner [Fri, 13 Nov 2020 13:16:19 +0000 (14:16 +0100)]
remove the now unnecessary grouping by content type

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agouse separate view for each content type
Fabian Ebner [Fri, 13 Nov 2020 13:16:18 +0000 (14:16 +0100)]
use separate view for each content type

Organized as separate "if"s to allow changing properties easily later.

The StorageContentView now serves as a parent class, so the stateId
cannot be fixed there. Instead make each individual view stateful with a
unique stateId.

statusStore is not needed anymore, now there is a single fixed content type,
and the template and upload button are disabled depending on that type.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoadd CD ROM and lxc icons for treelist-item-icon
Fabian Ebner [Fri, 13 Nov 2020 13:16:17 +0000 (14:16 +0100)]
add CD ROM and lxc icons for treelist-item-icon

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agostorage panel/browser: use insertNodes function
Fabian Ebner [Fri, 13 Nov 2020 13:16:16 +0000 (14:16 +0100)]
storage panel/browser: use insertNodes function

in preparation for dynamically loading nodes for content-type-specific views.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoconfig panel: allow new nodes to be added later
Fabian Ebner [Fri, 13 Nov 2020 13:16:15 +0000 (14:16 +0100)]
config panel: allow new nodes to be added later

in preparation for dynamically loading nodes for content-type-specific views.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agofix extension filter for upload window
Fabian Ebner [Fri, 13 Nov 2020 13:16:14 +0000 (14:16 +0100)]
fix extension filter for upload window

so that it selects the correct filter for container templates

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoui: storage/PBS: allow to download/print new encryption key
Thomas Lamprecht [Sun, 15 Nov 2020 13:54:19 +0000 (14:54 +0100)]
ui: storage/PBS: allow to download/print new encryption key

note that the key is really important, add our recommended backup
strategy (copy to PW manager, save onto secured USB drive, print
paperkey and secure it) with the respective buttons to do so.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: storage: implement apiCallDone callback for storage input panels
Thomas Lamprecht [Sun, 15 Nov 2020 13:52:55 +0000 (14:52 +0100)]
ui: storage: implement apiCallDone callback for storage input panels

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: storage/PBS: drop beta hint
Thomas Lamprecht [Sun, 15 Nov 2020 13:53:29 +0000 (14:53 +0100)]
ui: storage/PBS: drop beta hint

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: token create: use clipboard icon
Thomas Lamprecht [Sun, 15 Nov 2020 13:51:43 +0000 (14:51 +0100)]
ui: token create: use clipboard icon

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: save cluster name in PVE global
Thomas Lamprecht [Sun, 15 Nov 2020 13:51:13 +0000 (14:51 +0100)]
ui: save cluster name in PVE global

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: content/backup-view: move comment to second col, make flex
Thomas Lamprecht [Thu, 12 Nov 2020 17:34:36 +0000 (18:34 +0100)]
ui: content/backup-view: move comment to second col, make flex

to make it more look like what we to in PBS

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: storage content: fix verify time tooltip
Thomas Lamprecht [Thu, 12 Nov 2020 17:24:36 +0000 (18:24 +0100)]
ui: storage content: fix verify time tooltip

this was partial copied over from PBS, but there we pull out the task
startime alreay when building the store.

As eslint mentions, task was unused, verify_time not defined, fix
that.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoeslint fixes
Thomas Lamprecht [Thu, 12 Nov 2020 17:23:47 +0000 (18:23 +0100)]
eslint fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: add comment/verification columns to backup/content grid
Dominik Csapak [Thu, 12 Nov 2020 15:26:03 +0000 (16:26 +0100)]
ui: add comment/verification columns to backup/content grid

verification column only shows in the backup grid and for
pbs storages

(renderer is mostly copied from proxmox-backup)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: package versions: make taller, add copy button
Thomas Lamprecht [Thu, 5 Nov 2020 18:44:21 +0000 (19:44 +0100)]
ui: package versions: make taller, add copy button

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: package versions: code cleanup, use template strings
Thomas Lamprecht [Thu, 5 Nov 2020 18:43:54 +0000 (19:43 +0100)]
ui: package versions: code cleanup, use template strings

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agorestore default value of 0 for remove/maxfiles
Stefan Reiter [Thu, 5 Nov 2020 15:21:51 +0000 (16:21 +0100)]
restore default value of 0 for remove/maxfiles

If neither the 'remove' option of vzdump nor the 'maxfiles' option in
the storage config are set, assume a value of 0, i.e. do not delete
anything and allow unlimited backups.

Restores previous behaviour that was broken in 7ab7d6f15f.

Also fixes a warning about using '== 0' on a non-number type.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agoui: qemu: set correct disabled state for start button
Stefan Reiter [Mon, 19 Oct 2020 12:18:42 +0000 (14:18 +0200)]
ui: qemu: set correct disabled state for start button

If a guest's QEMU process is 'running', but QMP says 'shutdown' or
'prelaunch', the VM is ready to be booted anew, so we can show the
button.

The 'shutdown' button is intentionally not touched, as we always want to
give the user the ability to 'stop' a VM (and thus kill any potentially
leftover processes).

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agoapt: add libproxmox-backup-qemu0 to displayed packages
Stefan Reiter [Thu, 5 Nov 2020 09:21:06 +0000 (10:21 +0100)]
apt: add libproxmox-backup-qemu0 to displayed packages

Can provide important information for debugging issues in forum etc...

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agobump version to 6.2-15
Thomas Lamprecht [Sun, 1 Nov 2020 19:35:03 +0000 (20:35 +0100)]
bump version to 6.2-15

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agovzdump: fix regression with keep forever logic
Thomas Lamprecht [Sun, 1 Nov 2020 19:10:59 +0000 (20:10 +0100)]
vzdump: fix regression with keep forever logic

fixes commit 43ff41c6c58ea8f6c28ef0a4012b4af706fa280b, which changed
the logic to the newer storage prune helpers, but those are designed
in the spirits of PBS, with a keep-option not set meaning to keep
none.

This does not respects the storage special handling of maxfiles.
While in the API/CLI that option must be > 0m in can be zero when set
in a storage configuration entry, and then it means keep all. So, set
the internal remove option to false if that special condition is met.

This would have been a clearer, and less prone to changes,
implementation to begin with.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: Utils: add product specific task descriptions
Dominik Csapak [Fri, 30 Oct 2020 13:02:57 +0000 (14:02 +0100)]
ui: Utils: add product specific task descriptions

move them from widget-toolkit to here
i took the chance, and sorted them alphabetically

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: Add verify SSL cert checkbox for active directory
Dominic Jäger [Tue, 27 Oct 2020 11:34:25 +0000 (12:34 +0100)]
ui: Add verify SSL cert checkbox for active directory

Like for LDAP, the option is too important to be hidden in CLI.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
3 years agofollouwp whitespace fix
Thomas Lamprecht [Thu, 29 Oct 2020 08:12:22 +0000 (09:12 +0100)]
follouwp whitespace fix

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agostatus/metrics: make MTU configurable
Fabian Grünbichler [Thu, 29 Oct 2020 07:32:30 +0000 (08:32 +0100)]
status/metrics: make MTU configurable

since some users don't even have a full 1500 (and some systems might
have links with bigger MTU and not require as much fragmentation).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoui: osd: do not confuse view and controller scopes
Thomas Lamprecht [Wed, 28 Oct 2020 09:46:57 +0000 (10:46 +0100)]
ui: osd: do not confuse view and controller scopes

The me variable should only be assigned from `this`, else it gets
confusing and wrong fast.

here the managed listener tried to do a this.reload, but this is
ambiguous here, and not the controller.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: osd: eslint fixes
Thomas Lamprecht [Wed, 28 Oct 2020 09:46:05 +0000 (10:46 +0100)]
ui: osd: eslint fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobuildsys: fix JS source makefile order
Thomas Lamprecht [Wed, 28 Oct 2020 09:35:24 +0000 (10:35 +0100)]
buildsys: fix JS source makefile order

they cannot really be alphabetically sorted, as else some elements
are tried to be accessed before they are defined, which makes ExtJS
do a HTTP request for them.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: window notes: refactor and code cleanup
Thomas Lamprecht [Wed, 28 Oct 2020 08:52:30 +0000 (09:52 +0100)]
ui: window notes: refactor and code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.2-14
Thomas Lamprecht [Fri, 23 Oct 2020 08:38:09 +0000 (10:38 +0200)]
bump version to 6.2-14

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agovzdump: avoid passing zero to prune in legacy handling of maxfiles
Thomas Lamprecht [Fri, 23 Oct 2020 08:05:19 +0000 (10:05 +0200)]
vzdump: avoid passing zero to prune in legacy handling of maxfiles

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 6.2-13
Thomas Lamprecht [Thu, 22 Oct 2020 16:50:47 +0000 (18:50 +0200)]
bump version to 6.2-13

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofollowup: correct NVMe casing
Thomas Lamprecht [Thu, 22 Oct 2020 16:49:54 +0000 (18:49 +0200)]
followup: correct NVMe casing

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoceph: gui: add device class select on OSD create
Alwin Antreich [Thu, 15 Oct 2020 08:12:45 +0000 (10:12 +0200)]
ceph: gui: add device class select on OSD create

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
3 years agoui: boot order: handle cloudinit correctly
Thomas Lamprecht [Thu, 22 Oct 2020 16:43:45 +0000 (18:43 +0200)]
ui: boot order: handle cloudinit correctly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: boot order: eslint fixes
Thomas Lamprecht [Thu, 22 Oct 2020 16:43:31 +0000 (18:43 +0200)]
ui: boot order: eslint fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofollowup: do not name field as me, which is reserverd for this
Thomas Lamprecht [Thu, 22 Oct 2020 16:24:24 +0000 (18:24 +0200)]
followup: do not name field as me, which is reserverd for this

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: Fix #2827: Add verify SSL cert checkbox for ldap
Dominic Jäger [Thu, 15 Oct 2020 10:00:18 +0000 (12:00 +0200)]
ui: Fix #2827: Add verify SSL cert checkbox for ldap

Because the option is too important to be hidden in CLI.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
3 years agoperlcritic fixes
Thomas Lamprecht [Thu, 22 Oct 2020 16:16:13 +0000 (18:16 +0200)]
perlcritic fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofollowup: simplify dropping defaults from common ceph options
Thomas Lamprecht [Thu, 22 Oct 2020 16:17:10 +0000 (18:17 +0200)]
followup: simplify dropping defaults from common ceph options

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoceph: gui: add autoscale mode to pool create
Alwin Antreich [Mon, 19 Oct 2020 10:39:34 +0000 (12:39 +0200)]
ceph: gui: add autoscale mode to pool create

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
3 years agoceph: add pg_autoscale_mode to pool create
Alwin Antreich [Mon, 19 Oct 2020 10:39:33 +0000 (12:39 +0200)]
ceph: add pg_autoscale_mode to pool create

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
3 years agoceph: use pool common options pool create
Alwin Antreich [Mon, 19 Oct 2020 10:39:32 +0000 (12:39 +0200)]
ceph: use pool common options pool create

to keep the pool create & set in sync.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
3 years agoceph: allow to alter pool settings
Alwin Antreich [Mon, 19 Oct 2020 10:39:31 +0000 (12:39 +0200)]
ceph: allow to alter pool settings

after creation, so that users don't need to go the ceph tooling route.
Separate common pool options to reuse them in other places.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
3 years agoceph: split out pool set into own method
Alwin Antreich [Mon, 19 Oct 2020 10:39:30 +0000 (12:39 +0200)]
ceph: split out pool set into own method

to reduce code duplication and make it easier to add more options for
pool commands.

Use a new rados object for each 'osd pool set', as each command can set
an option independent of the previous commands success/failure. On
failure a new rados object would need to be created and that will
confuse task tracking of the REST environment.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>