1e17594e74
add missing parameter descriptions
2018-08-09 09:52:44 +02:00
48dccd2fbe
cleanup return property descriptions
2018-08-09 09:29:10 +02:00
2654942813
PVE::API2::Storage::Content::index - document return values
2018-08-09 08:53:24 +02:00
d347322a63
PVE::API2::Storage::Status::index - document return schema properties
...
And add property "used_fraction" - I want to use that for the CLI tool.
2018-08-07 13:24:27 +02:00
6d3b36e1b0
api add: remove now uneeded $cred_file variable
...
was used for cleanup, which is now handled by on_delete_hook
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com >
2018-07-03 12:27:34 +02:00
f9602323c6
lvm: use add hook
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com >
2018-07-03 12:27:34 +02:00
2e109b4bc2
rbd: use add/delete hooks
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com >
2018-07-03 12:27:34 +02:00
ab5e32bb1d
cifs: use add/delete hooks
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com >
2018-07-03 12:27:34 +02:00
3932ca0d1b
add on_add and on_delete hooks
...
on_add_hook allows to encapsulate storage specific add steps, like
copying a keyring (RDB) or creating a volume group (LVM) in a clean
manner.
The same for deletion with on_delete_hook, here all should be cleaned
up, as much as possible.
Until now, this was done directly in the api config CREATE and DELETE
code, respectively, with a series of
if ($storage_type eq 'foo) {
...
} elsif ($storage_type eq 'bar') {
...
}
which isn't really that nice...
Another nice result of this approach is that also external plugins
can use those hooks and to their setup/cleanup steps sanely.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com >
2018-07-03 12:27:34 +02:00
d7b707626a
storage add: always extract password from parameters
...
as else we write it to /etc/pve/storage.cfg which is readable by
www-data, a not really private group...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com >
2018-06-29 13:16:17 +02:00
2d4404fc63
add cifs: fix variable declaration in post if
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com >
2018-06-29 13:15:26 +02:00
8b3d5c1f12
PVE/API2/Storage/Config.pm - set type in returns schema
2018-06-22 07:52:51 +02:00
d68c7bca46
whitespace fixup
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com >
2018-05-14 08:35:22 +02:00
fee2cb61e3
Fix typo.
2018-05-14 08:10:19 +02:00
ee8c176d3a
Simplify image/template upload check.
...
All storage's witch are able to store images must have a path.
2018-05-14 08:10:19 +02:00
566639d518
cifs: use correct pluging class name
2018-03-16 13:23:47 +01:00
a9db2ca8a5
cifs: move plugin related code into plugin
2018-03-16 13:08:32 +01:00
304344ce34
add missing "use PVE::Storage::LVMPlugin;"
2018-03-16 12:54:06 +01:00
fa1b42dd98
cifs plugin cleanups
2018-03-16 12:35:55 +01:00
c6fb7b80fc
remove useless "use PVE::PTY;"
2018-03-16 12:09:37 +01:00
b9cfb8cac7
Add cifsscan to API
2018-03-16 12:07:14 +01:00
ba7e9ba9c9
Add remove cifs in API call.
2018-03-16 12:05:02 +01:00
a4a9405d76
Add cifs in create API call.
...
In this patch the nodes will be deleted if the nodes parameter comes with a empty string.
We need this in the GUI when update the nodes in the config to reset if a nodes.
If we do not erase the empty hash the storage online check would be skipped.
Also the password and user would not be verified.
2018-03-16 12:03:37 +01:00
f79a699c13
Add set CIFS credentials.
2018-03-16 11:58:34 +01:00
f6c03d367d
whitespace cleanup
...
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com >
2017-11-14 13:23:52 +01:00
856c54bd75
add 'format' parameter to storage list call
...
we will use this for the gui to figure out if we have to show
a size selector, a file selector, which formats are there, etc.
we have to include this data even for not active storages, else
we cannot show the correct fields
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com >
2017-11-14 13:23:52 +01:00
8143f49038
rbd: create ceph keyring dir before copying
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com >
2017-09-07 12:51:31 +02:00
5a39d0a111
rbd: manage keyring for pveceph storages
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com >
2017-09-07 11:35:00 +02:00
030f6e1a97
Fix #1424 : allow tar.xz templates upload
2017-06-22 14:32:27 +02:00
cd0b3d5bc2
Revert "free: added snapshot parameter"
...
This reverts commit a26e1abc70 .
2017-05-23 13:31:21 +02:00
acd27197ce
migrate: replace target ip parameter with sshinfo parameter
2017-05-23 09:31:19 +02:00
a26e1abc70
free: added snapshot parameter
2017-05-12 14:42:16 +02:00
f88846ea3b
do not install replication code
...
The code introduces a cyclic package dependency, so we need to
move it to pve-manager package.
2017-05-10 07:06:35 +02:00
8b38cdaf67
PVE::API2::Storage::Replication - add reasonable permission checks
2017-05-05 11:55:34 +02:00
1d3ddfaf2c
pvesr: move destroy_job into API class, remove wrong permission checks.
2017-05-05 11:18:30 +02:00
339ca30a5b
PVE::API2::Storage::Replication->jobs(): return array
2017-05-05 10:54:10 +02:00
e0992d57e1
pvesr: rename list => jobs, call API
...
to avoid code duplication. I also removed the functioanlity to query
jobs on other nodes, because it is clumsy and not really needed.
2017-05-05 10:31:51 +02:00
07dff26749
PVE::API2::Storage::Replication - add directory index
2017-05-05 10:01:26 +02:00
76c358149a
renamed: PVE/API2/StorageReplication.pm -> PVE/API2/Storage/Replication.pm
2017-05-05 09:25:43 +02:00
ec73c0ff67
fix bug #1280 : Can't locate object method "root@pam"
...
This was introduced by commit 04a13668b9 .
2017-02-12 09:55:50 +01:00
04a13668b9
PVE::Storage: new helper check_volume_access()
...
Copied from PVE::RPCEnvironment to avoid cyclic dependency
(pve-storgae => pve-access-control => pve-storage).
2017-01-19 09:14:41 +01:00
38e1eb3d87
upload: whitelist filename chars instead of blacklisting
2016-06-09 18:14:55 +02:00
83d7192ff9
Add write_config, drop cfs_read_file
...
Use PVE::Storage::config() and the new
PVE::Storage::write_config() instead of cfs_read_file and
cfs_write_file with a hardcoded filename.
2016-03-30 10:42:12 +02:00
668f6d9faf
add lvmthinscan to CLI
2016-02-20 10:11:59 +01:00
d0ea89e564
prepare storage for lvmthin gui
...
this patch adds an lvmthin scan to the api, so that we can get a list
of thinpools for a specific vg via an api call
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com >
2016-02-20 09:51:12 +01:00
f3bd890d98
add missing completion hooks
2015-10-01 07:59:48 +02:00
98437f4c85
add bash completion for content type
2015-10-01 07:16:59 +02:00
37ba0aea5b
volume_list: moved code from PVE::API2::Storage::Content
...
For better code reuse.
2015-10-01 06:50:19 +02:00
ba0cf557f4
pvesm list fix
2015-09-29 17:25:05 +02:00
f7621c0126
improve bash completions
2015-09-18 09:33:09 +02:00