05d755b282 
					 
					
						
						
							
							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 > 
						
						
					 
					
						2020-05-28 06:24:42 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						143b654550 
					 
					
						
						
							
							src/tools.rs - command_output: add parameter to check exit code  
						
						
						
						
					 
					
						2020-05-27 07:25:39 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						97fab7aa11 
					 
					
						
						
							
							src/tools.rs: new helper to handle command_output (std::process::Output)  
						
						
						
						
					 
					
						2020-05-27 06:53:25 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						40dc103103 
					 
					
						
						
							
							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 > 
						
						
					 
					
						2020-05-26 12:39:19 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						de4db62c57 
					 
					
						
						
							
							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 > 
						
						
					 
					
						2020-05-26 12:38:06 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1a0d3d11d2 
					 
					
						
						
							
							src/api2/admin/datastore.rs: add rrd api  
						
						
						
						
					 
					
						2020-05-26 12:26:14 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8c03041a2c 
					 
					
						
						
							
							src/bin/proxmox-backup-proxy.rs: gather block device stats on datastore  
						
						
						
						
					 
					
						2020-05-26 11:20:59 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3fcc4b4e5c 
					 
					
						
						
							
							src/tools/disks.rs: add helper to read block device stats  
						
						
						
						
					 
					
						2020-05-26 11:20:22 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3ed07ed2cd 
					 
					
						
						
							
							src/tools/disks.rs: export read_sys  
						
						
						
						
					 
					
						2020-05-26 09:49:13 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						83fd4b3b1b 
					 
					
						
						
							
							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 > 
						
						
					 
					
						2020-05-26 08:55:07 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5dcdcea293 
					 
					
						
						
							
							api2/config/remote: remove password from read_remote  
						
						... 
						
						
						
						Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-05-26 08:49:12 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						99f443c6ae 
					 
					
						
						
							
							api2/config/remote: lock and use digest for removal  
						
						... 
						
						
						
						Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-05-26 08:48:45 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4f966d0592 
					 
					
						
						
							
							api2/config/remote: use rpcenv for digest for read_remote  
						
						... 
						
						
						
						Signed-off-by: Dominik Csapak <d.csapak@proxmox.com > 
						
						
					 
					
						2020-05-26 08:48:28 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						db0c228719 
					 
					
						
						
							
							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 > 
						
						
					 
					
						2020-05-26 08:48:05 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						309ef20d6d 
					 
					
						
						
							
							src/bin/proxmox-backup-proxy.rs: simplify code  
						
						
						
						
					 
					
						2020-05-25 16:20:32 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d0833a70f7 
					 
					
						
						
							
							src/bin/proxmox-backup-proxy.rs: gather datastore usage stats  
						
						
						
						
					 
					
						2020-05-25 16:20:32 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d8dc281992 
					 
					
						
						
							
							www/DataStoreStatus.js: display loadavg stats  
						
						
						
						
					 
					
						2020-05-25 11:54:15 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2c66a590c0 
					 
					
						
						
							
							src/bin/proxmox-backup-proxy.rs: gather iowait stats  
						
						
						
						
					 
					
						2020-05-25 11:54:15 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						485841da2c 
					 
					
						
						
							
							src/bin/proxmox-backup-proxy.rs: gather loadavg stats  
						
						
						
						
					 
					
						2020-05-25 11:40:20 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3e930f2bdc 
					 
					
						
						
							
							www/DataStoreStatus.js: display root disk stats  
						
						
						
						
					 
					
						2020-05-25 11:34:24 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						dd15c0aa3b 
					 
					
						
						
							
							src/bin/proxmox-backup-proxy.rs: gather root disk stats  
						
						
						
						
					 
					
						2020-05-25 11:10:07 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c1b24fbf0b 
					 
					
						
						
							
							www/DataStoreStatus.js: display swap stats  
						
						
						
						
					 
					
						2020-05-25 10:39:54 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3f23b17298 
					 
					
						
						
							
							src/rrd/rrd.rs: do not wrap error and return ErrorKind::NotFound  
						
						
						
						
					 
					
						2020-05-25 10:30:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c25c9d8dd1 
					 
					
						
						
							
							src/bin/proxmox-backup-proxy.rs: gather swap usage stats  
						
						
						
						
					 
					
						2020-05-25 10:25:58 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						84dc6adcc1 
					 
					
						
						
							
							src/rrd/cache.rs: display/log error when RRD load fails  
						
						
						
						
					 
					
						2020-05-25 10:18:53 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0c4344650d 
					 
					
						
						
							
							src/rrd/rrd.rs: store/verify magic number  
						
						
						
						
					 
					
						2020-05-25 09:21:54 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4f9513996c 
					 
					
						
						
							
							src/bin/proxmox-backup-proxy.rs: use block_in_place for rrd update  
						
						
						
						
					 
					
						2020-05-25 08:30:59 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						736edc7a7e 
					 
					
						
						
							
							src/rrd/rrd.rs: implement DST_COUNTER  
						
						
						
						
					 
					
						2020-05-25 08:14:30 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2b55de407e 
					 
					
						
						
							
							src/rrd/rrd.rs: correctly compute derived values  
						
						... 
						
						
						
						use f64 for time. 
						
						
					 
					
						2020-05-25 07:02:04 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a608806f65 
					 
					
						
						
							
							www/DataStoreStatus.js: display netin/netout  
						
						
						
						
					 
					
						2020-05-24 19:02:35 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8f0cec2642 
					 
					
						
						
							
							src/bin/proxmox-backup-proxy.rs: gather netin/netout stats  
						
						
						
						
					 
					
						2020-05-24 19:02:35 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0ed9a2b3ae 
					 
					
						
						
							
							src/config/network.rs: implement is_physical_nic() helper  
						
						
						
						
					 
					
						2020-05-24 19:02:35 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						58edd33d2b 
					 
					
						
						
							
							src/rrd/rrd.rs: implement DST_DERIVE  
						
						
						
						
					 
					
						2020-05-24 19:02:35 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4fb05fde17 
					 
					
						
						
							
							src/rrd/rrd.rs: restructure whole code  
						
						
						
						
					 
					
						2020-05-24 16:51:28 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						daca4f7888 
					 
					
						
						
							
							src/rrd/rrd.rs: reduce size by using f64:NAN as UNKNOWN  
						
						
						
						
					 
					
						2020-05-24 09:09:09 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4e6585839b 
					 
					
						
						
							
							src/rrd/rrd.rs: simplify an fix old value deletion  
						
						
						
						
					 
					
						2020-05-24 06:44:06 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8c981ae379 
					 
					
						
						
							
							rrd: fix display interval, try to avoid numeric errors  
						
						
						
						
					 
					
						2020-05-23 16:03:43 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						803ab12ad4 
					 
					
						
						
							
							rrd: simplify code  
						
						
						
						
					 
					
						2020-05-23 15:37:17 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a4a3f7ca5e 
					 
					
						
						
							
							rrd: pack multiple rrd values into th estat list  
						
						
						
						
					 
					
						2020-05-23 14:03:44 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a2f862eed6 
					 
					
						
						
							
							add experimental rrd api to get cpu stats  
						
						
						
						
					 
					
						2020-05-23 11:50:53 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						eaeda365e0 
					 
					
						
						
							
							start gathering stats using new rrd module  
						
						
						
						
					 
					
						2020-05-23 10:43:08 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6359dc891a 
					 
					
						
						
							
							add simple rrd implementation  
						
						
						
						
					 
					
						2020-05-23 10:42:48 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						07ad6470ca 
					 
					
						
						
							
							src/client/pull.rs: split out pull related code  
						
						
						
						
					 
					
						2020-05-22 08:04:20 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a6160cdfeb 
					 
					
						
						
							
							src/bin/proxmox-backup-proxy.rs: schedule sync jobs  
						
						
						
						
					 
					
						2020-05-22 07:50:59 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						183125d576 
					 
					
						
						
							
							src/api2/pull.rs: aquire try_shared_chunk_store_lock inside pull_store  
						
						
						
						
					 
					
						2020-05-22 07:24:17 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a3016d6583 
					 
					
						
						
							
							proxmox-backup-manager: add sync-job cli  
						
						
						
						
					 
					
						2020-05-21 11:44:45 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b29d046e89 
					 
					
						
						
							
							proxmox-backup-manager: split out cert.rs  
						
						
						
						
					 
					
						2020-05-21 11:22:20 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						380bd7df97 
					 
					
						
						
							
							proxmox-backup-manager: split out datastore.rs  
						
						
						
						
					 
					
						2020-05-21 11:14:34 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ea6f404e55 
					 
					
						
						
							
							proxmox-backup-manager: split out dns.rs  
						
						
						
						
					 
					
						2020-05-21 11:10:58 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a35a211d9e 
					 
					
						
						
							
							proxmox-backup-manager: split out network.rs  
						
						
						
						
					 
					
						2020-05-21 11:08:38 +02:00