]>
git.proxmox.com Git - proxmox-backup.git/log
Dietmar Maurer [Fri, 29 May 2020 05:59:42 +0000 (07:59 +0200)]
src/bin/proxmox-backup-proxy.rs: add test if last prune job is still running
Dietmar Maurer [Fri, 29 May 2020 05:58:12 +0000 (07:58 +0200)]
src/bin/proxmox-backup-proxy.rs: test if last sync job is still running
Dietmar Maurer [Fri, 29 May 2020 06:05:10 +0000 (08:05 +0200)]
src/server/worker_task.rs: make worker_is_active_local pub
Dietmar Maurer [Fri, 29 May 2020 05:52:09 +0000 (07:52 +0200)]
src/tools/systemd/time.rs: add test for "daily" schedule
Dietmar Maurer [Fri, 29 May 2020 05:50:59 +0000 (07:50 +0200)]
src/bin/proxmox-backup-proxy.rs: use correct id to lookup sync jobs
Dietmar Maurer [Fri, 29 May 2020 04:46:56 +0000 (06:46 +0200)]
remote config gui: add comment field
Thomas Lamprecht [Thu, 28 May 2020 19:02:54 +0000 (21:02 +0200)]
BACKUP_REPO_URL_REGEX: move to api2::types and allow all valid data store names
The repo URL consists of
* optional userid
* optional host
* datastore name
All three have defined regex or format, but none of that is used, so
for example not all valid datastore names are accepted.
Move definition of the regex over to api2::types where we can access
all required regexes easily.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 28 May 2020 19:02:53 +0000 (21:02 +0200)]
api2::types: factor out USER_ID regex
allows for better reuse in a next patch
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dietmar Maurer [Fri, 29 May 2020 04:12:49 +0000 (06:12 +0200)]
www/ServerStatus.js: use term "IO wait" for CPU iowait
Because we already use "IO delay" for the storage statistics.
Dietmar Maurer [Thu, 28 May 2020 17:11:37 +0000 (19:11 +0200)]
rrd stats: improve io delay stats
Thomas Lamprecht [Thu, 28 May 2020 15:39:41 +0000 (17:39 +0200)]
bump version to 0.2.1-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 28 May 2020 15:29:54 +0000 (17:29 +0200)]
ui: remotes: fix remote remove buttons base url
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Thu, 28 May 2020 15:15:15 +0000 (17:15 +0200)]
ui: fix RemoteEdit password change
we have to remove the password from the submitvalues if it did not
change
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dietmar Maurer [Thu, 28 May 2020 10:30:54 +0000 (12:30 +0200)]
src/bin/proxmox-backup-proxy.rs: simplify code
and gather all stats for the root disk
Dietmar Maurer [Thu, 28 May 2020 09:45:34 +0000 (11:45 +0200)]
src/tools/disks/zfs.rs: use wtime + rtime (wait + run time)
Dietmar Maurer [Thu, 28 May 2020 08:20:29 +0000 (10:20 +0200)]
www/DataStoreStatistic.js: add transfer rate
Dietmar Maurer [Thu, 28 May 2020 08:09:13 +0000 (10:09 +0200)]
src/bin/proxmox-backup-proxy.rs: gather zpool io stats
Dietmar Maurer [Thu, 28 May 2020 08:07:52 +0000 (10:07 +0200)]
src/tools/disks/zfs.rs: helper to read zfs pool io stats
Dietmar Maurer [Thu, 28 May 2020 08:06:44 +0000 (10:06 +0200)]
depend on proxmox 0.1.38, use new fs helper functions
Dominik Csapak [Wed, 27 May 2020 14:42:24 +0000 (16:42 +0200)]
use the sync id for the scheduled sync worker task
this way, multiple sync jobs with the same local store, can get scheduled
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Wed, 27 May 2020 14:42:23 +0000 (16:42 +0200)]
fix 'remove_vanished' cli arg again
since the target side wants this to be a boolean and
serde interprets a None Value as 'null' we have to only
add this when it is really set via cli
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Wed, 27 May 2020 14:42:22 +0000 (16:42 +0200)]
fix inserting of worker tasks
when starting a new task, we do two things to keep track of tasks
(in that order):
* updating the 'active' file with a list of tasks with
'update_active_workers'
* updating the WORKER_TASK_LIST
the second also updates the status of running tasks in the file by
checking if it is still running by checking the WORKER_TASK_LIST
since those two things are not locked, it can happend that
we update the file, and before updating the WORKER_TASK_LIST,
another thread calls update_active_workers and tries to
get the status from the task log, which won't have any data yet
so the status is 'unknown'
(we do not update that status ever, likely for performance reasons,
so we have to fix this here)
by switching the order of the two operations, we make sure that only
tasks reach the 'active' file which are inserted in the WORKER_TASK_LIST
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dietmar Maurer [Wed, 27 May 2020 05:25:39 +0000 (07:25 +0200)]
src/tools.rs - command_output: add parameter to check exit code
Dietmar Maurer [Wed, 27 May 2020 04:52:21 +0000 (06:52 +0200)]
src/tools.rs: new helper to handle command_output (std::process::Output)
Thomas Lamprecht [Tue, 26 May 2020 16:58:19 +0000 (18:58 +0200)]
ui: acl view: only update if component is activated
Avoid triggering non-required background updates during browsing a
datastores content or statistics panels. They're not expensive, but I
do not like such behavior at all (having traveled with trains and
spotty network to often)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 26 May 2020 16:35:50 +0000 (18:35 +0200)]
ui: tasks: add sync description+
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 26 May 2020 16:17:01 +0000 (18:17 +0200)]
ui: tasks: render reader with full info
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 26 May 2020 16:16:38 +0000 (18:16 +0200)]
ui: factor out render_datetime_utc
will be reused in the next patch
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 26 May 2020 11:37:57 +0000 (13:37 +0200)]
ui: task: improve rendering of backup/prune worker entries
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dietmar Maurer [Tue, 26 May 2020 10:58:22 +0000 (12:58 +0200)]
depend on proxmox 0.1.37
Thomas Lamprecht [Tue, 26 May 2020 10:50:06 +0000 (12:50 +0200)]
ui: datastore prune: remove debug logging
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 26 May 2020 10:46:45 +0000 (12:46 +0200)]
ui: rework datastore content panel controller
Mostly refactoring, but actually fixes an issue where one seldom run
into a undefined dereference due to the store onLoad callback getting
triggered after some of the componet was destroyed - on quick
switching through the datastores.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Tue, 26 May 2020 10:23:27 +0000 (12:23 +0200)]
fix cli pull api call
there is no 'delete' parameter, only 'remove-vanished', so fix that
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Tue, 26 May 2020 10:23:26 +0000 (12:23 +0200)]
ui: add missing monStoreErrors
to actually show api errors on the list call
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Tue, 26 May 2020 10:23:25 +0000 (12:23 +0200)]
ui: add crud for remotes
listing/adding/editing/removing
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Tue, 26 May 2020 10:23:24 +0000 (12:23 +0200)]
remotes: save passwords as base64
to avoid having arbitrary characters in the config (e.g. newlines)
note that this breaks existings configs
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dietmar Maurer [Tue, 26 May 2020 10:19:04 +0000 (12:19 +0200)]
src/api2/admin/datastore.rs: add rrd api
Dietmar Maurer [Tue, 26 May 2020 09:20:59 +0000 (11:20 +0200)]
src/bin/proxmox-backup-proxy.rs: gather block device stats on datastore
Dietmar Maurer [Tue, 26 May 2020 09:20:22 +0000 (11:20 +0200)]
src/tools/disks.rs: add helper to read block device stats
Dietmar Maurer [Tue, 26 May 2020 07:48:36 +0000 (09:48 +0200)]
src/tools/disks.rs: export read_sys
Thomas Lamprecht [Tue, 26 May 2020 07:37:03 +0000 (09:37 +0200)]
d/control: proxmox-backup-server: depend on proxmox-backup-docs
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Fri, 22 May 2020 12:51:45 +0000 (14:51 +0200)]
remote: try to use Struct for api
with a catch: password is in the struct but we do not want it to return
via the api, so we only 'serialize' it when the string is not empty
(this can only happen when the format is not checked by us, iow.
when its returned from the api) and setting it manually to ""
when we return remotes from the api
this way we can still use the type but do not return the password
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Fri, 22 May 2020 12:51:44 +0000 (14:51 +0200)]
ui: acls: include roleid into id and sort by it
this fixes missing acls on the gui
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Fri, 22 May 2020 12:51:43 +0000 (14:51 +0200)]
api2/config/remote: remove password from read_remote
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Fri, 22 May 2020 12:51:42 +0000 (14:51 +0200)]
api2/config/remote: lock and use digest for removal
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Fri, 22 May 2020 12:51:41 +0000 (14:51 +0200)]
api2/config/remote: use rpcenv for digest for read_remote
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Fri, 22 May 2020 12:51:40 +0000 (14:51 +0200)]
config/remote: add 'name' to Remote struct
and use it as section id, like with User
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dietmar Maurer [Tue, 26 May 2020 05:32:05 +0000 (07:32 +0200)]
gui: move system stat RRDs to ServerStatus panel.
Thomas Lamprecht [Mon, 25 May 2020 17:53:14 +0000 (19:53 +0200)]
re-bump to 0.2.0-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Mon, 25 May 2020 18:10:25 +0000 (20:10 +0200)]
docs: sync version with the package versions
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Mon, 25 May 2020 17:46:43 +0000 (19:46 +0200)]
ui: navigation: sort datastores entries
adding a new one after load will append it still at the end, though.
But datastores are not something which get frequently added after
initial setup, so don't care about that for now..
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Mon, 25 May 2020 17:06:47 +0000 (19:06 +0200)]
ui: add some task log description mappings
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Mon, 25 May 2020 16:41:11 +0000 (18:41 +0200)]
css: fix load mask background image path
We're not using the exact same paths as in PVE/PMG here.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Mon, 25 May 2020 14:41:04 +0000 (16:41 +0200)]
ui: system config: reorder big panel to bottom
Gives a better look and feel if the flex'd big panel is at the bottom
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dietmar Maurer [Mon, 25 May 2020 14:19:55 +0000 (16:19 +0200)]
src/bin/proxmox-backup-proxy.rs: simplify code
Dietmar Maurer [Mon, 25 May 2020 14:00:03 +0000 (16:00 +0200)]
src/bin/proxmox-backup-proxy.rs: gather datastore usage stats
Thomas Lamprecht [Mon, 25 May 2020 13:40:14 +0000 (15:40 +0200)]
ui: index: load widget toolkit CSS
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Mon, 25 May 2020 10:50:55 +0000 (12:50 +0200)]
d/control: proxmox-widget-toolkit depend on 2.2-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dietmar Maurer [Mon, 25 May 2020 10:48:07 +0000 (12:48 +0200)]
bump version to 0.2.0
Dietmar Maurer [Mon, 25 May 2020 10:13:45 +0000 (12:13 +0200)]
depend on proxmox 0.1.36
Dietmar Maurer [Mon, 25 May 2020 09:49:30 +0000 (11:49 +0200)]
www/DataStoreStatus.js: display loadavg stats
Dietmar Maurer [Mon, 25 May 2020 09:48:44 +0000 (11:48 +0200)]
src/bin/proxmox-backup-proxy.rs: gather iowait stats
Dietmar Maurer [Mon, 25 May 2020 09:40:20 +0000 (11:40 +0200)]
src/bin/proxmox-backup-proxy.rs: gather loadavg stats
Dietmar Maurer [Mon, 25 May 2020 09:34:34 +0000 (11:34 +0200)]
depend on proxmox 0.1.35
Dietmar Maurer [Mon, 25 May 2020 09:10:44 +0000 (11:10 +0200)]
www/DataStoreStatus.js: display root disk stats
Dietmar Maurer [Mon, 25 May 2020 09:10:07 +0000 (11:10 +0200)]
src/bin/proxmox-backup-proxy.rs: gather root disk stats
Dietmar Maurer [Mon, 25 May 2020 08:39:54 +0000 (10:39 +0200)]
www/DataStoreStatus.js: display swap stats
Dietmar Maurer [Mon, 25 May 2020 08:30:04 +0000 (10:30 +0200)]
src/rrd/rrd.rs: do not wrap error and return ErrorKind::NotFound
Dietmar Maurer [Mon, 25 May 2020 08:25:58 +0000 (10:25 +0200)]
src/bin/proxmox-backup-proxy.rs: gather swap usage stats
Dietmar Maurer [Mon, 25 May 2020 08:18:53 +0000 (10:18 +0200)]
src/rrd/cache.rs: display/log error when RRD load fails
Dietmar Maurer [Mon, 25 May 2020 07:21:54 +0000 (09:21 +0200)]
src/rrd/rrd.rs: store/verify magic number
Dietmar Maurer [Mon, 25 May 2020 06:30:59 +0000 (08:30 +0200)]
src/bin/proxmox-backup-proxy.rs: use block_in_place for rrd update
Dietmar Maurer [Mon, 25 May 2020 06:14:30 +0000 (08:14 +0200)]
src/rrd/rrd.rs: implement DST_COUNTER
Dietmar Maurer [Mon, 25 May 2020 05:02:04 +0000 (07:02 +0200)]
src/rrd/rrd.rs: correctly compute derived values
use f64 for time.
Dietmar Maurer [Sun, 24 May 2020 15:47:26 +0000 (17:47 +0200)]
www/DataStoreStatus.js: display netin/netout
Dietmar Maurer [Sun, 24 May 2020 15:28:05 +0000 (17:28 +0200)]
src/bin/proxmox-backup-proxy.rs: gather netin/netout stats
Dietmar Maurer [Sun, 24 May 2020 15:27:33 +0000 (17:27 +0200)]
src/config/network.rs: implement is_physical_nic() helper
Dietmar Maurer [Sun, 24 May 2020 15:03:02 +0000 (17:03 +0200)]
src/rrd/rrd.rs: implement DST_DERIVE
Dietmar Maurer [Sun, 24 May 2020 14:51:28 +0000 (16:51 +0200)]
src/rrd/rrd.rs: restructure whole code
Dietmar Maurer [Sun, 24 May 2020 07:09:09 +0000 (09:09 +0200)]
src/rrd/rrd.rs: reduce size by using f64:NAN as UNKNOWN
Dietmar Maurer [Sun, 24 May 2020 04:44:06 +0000 (06:44 +0200)]
src/rrd/rrd.rs: simplify an fix old value deletion
Dietmar Maurer [Sat, 23 May 2020 14:03:43 +0000 (16:03 +0200)]
rrd: fix display interval, try to avoid numeric errors
Dietmar Maurer [Sat, 23 May 2020 13:37:17 +0000 (15:37 +0200)]
rrd: simplify code
Dietmar Maurer [Sat, 23 May 2020 12:03:44 +0000 (14:03 +0200)]
rrd: pack multiple rrd values into th estat list
Dietmar Maurer [Sat, 23 May 2020 09:52:26 +0000 (11:52 +0200)]
www/DataStoreStatus.js: add test for RRD api
Dietmar Maurer [Sat, 23 May 2020 09:10:02 +0000 (11:10 +0200)]
add experimental rrd api to get cpu stats
Dietmar Maurer [Sat, 23 May 2020 08:43:08 +0000 (10:43 +0200)]
start gathering stats using new rrd module
Dietmar Maurer [Sat, 23 May 2020 07:29:33 +0000 (09:29 +0200)]
add simple rrd implementation
Dietmar Maurer [Fri, 22 May 2020 06:04:20 +0000 (08:04 +0200)]
src/client/pull.rs: split out pull related code
Dietmar Maurer [Fri, 22 May 2020 05:50:59 +0000 (07:50 +0200)]
src/bin/proxmox-backup-proxy.rs: schedule sync jobs
Dietmar Maurer [Fri, 22 May 2020 05:24:17 +0000 (07:24 +0200)]
src/api2/pull.rs: aquire try_shared_chunk_store_lock inside pull_store
Dietmar Maurer [Thu, 21 May 2020 09:44:45 +0000 (11:44 +0200)]
proxmox-backup-manager: add sync-job cli
Dietmar Maurer [Thu, 21 May 2020 09:22:20 +0000 (11:22 +0200)]
proxmox-backup-manager: split out cert.rs
Dietmar Maurer [Thu, 21 May 2020 09:14:34 +0000 (11:14 +0200)]
proxmox-backup-manager: split out datastore.rs
Dietmar Maurer [Thu, 21 May 2020 09:10:58 +0000 (11:10 +0200)]
proxmox-backup-manager: split out dns.rs
Dietmar Maurer [Thu, 21 May 2020 09:08:38 +0000 (11:08 +0200)]
proxmox-backup-manager: split out network.rs
Dietmar Maurer [Thu, 21 May 2020 08:56:46 +0000 (10:56 +0200)]
proxmox-backup-manager: split out acl.rs
Dietmar Maurer [Thu, 21 May 2020 08:53:06 +0000 (10:53 +0200)]
proxmox-backup-manager: split out users.rs
Dietmar Maurer [Thu, 21 May 2020 08:46:07 +0000 (10:46 +0200)]
roxmox-backup-manager: start splitting command into several files
Dietmar Maurer [Thu, 21 May 2020 08:29:25 +0000 (10:29 +0200)]
rename 'job' to 'sync'