ruby-linstor-client 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/codegen.sh +1 -1
- data/generator/custom/one_of_drbd_volume_luks_volume_storage_nvme_volme_writecache_volume.rb +1 -1
- data/generator/custom/one_of_drbd_volume_luks_volume_storage_nvme_volme_writecache_volume_cache_volume.rb +11 -0
- data/lib/ruby-linstor-client/api/developers_api.rb +923 -103
- data/lib/ruby-linstor-client/api_client.rb +2 -2
- data/lib/ruby-linstor-client/api_error.rb +2 -2
- data/lib/ruby-linstor-client/configuration.rb +2 -2
- data/lib/ruby-linstor-client/models/api_call_rc.rb +2 -2
- data/lib/ruby-linstor-client/models/auto_place_request.rb +2 -2
- data/lib/ruby-linstor-client/models/auto_select_filter.rb +25 -3
- data/lib/ruby-linstor-client/models/cache_resource.rb +220 -0
- data/lib/ruby-linstor-client/models/cache_volume.rb +276 -0
- data/lib/ruby-linstor-client/models/candidate.rb +2 -2
- data/lib/ruby-linstor-client/models/controller_config.rb +272 -0
- data/lib/ruby-linstor-client/models/controller_config_config.rb +218 -0
- data/lib/ruby-linstor-client/models/controller_config_db.rb +263 -0
- data/lib/ruby-linstor-client/models/controller_config_db_etcd.rb +227 -0
- data/lib/ruby-linstor-client/models/controller_config_debug.rb +218 -0
- data/lib/ruby-linstor-client/models/controller_config_http.rb +236 -0
- data/lib/ruby-linstor-client/models/controller_config_https.rb +236 -0
- data/lib/ruby-linstor-client/models/controller_config_ldap.rb +263 -0
- data/lib/ruby-linstor-client/models/controller_config_log.rb +315 -0
- data/lib/ruby-linstor-client/models/controller_props_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/controller_version.rb +2 -2
- data/lib/ruby-linstor-client/models/drbd_connection.rb +262 -0
- data/lib/ruby-linstor-client/models/drbd_proxy_enable.rb +2 -2
- data/lib/ruby-linstor-client/models/drbd_proxy_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/drbd_resource.rb +35 -6
- data/lib/ruby-linstor-client/models/drbd_resource_definition_layer.rb +2 -2
- data/lib/ruby-linstor-client/models/drbd_volume.rb +2 -2
- data/lib/ruby-linstor-client/models/drbd_volume_definition.rb +2 -2
- data/lib/ruby-linstor-client/models/error_report.rb +87 -7
- data/lib/ruby-linstor-client/models/error_report_delete.rb +273 -0
- data/lib/ruby-linstor-client/models/event_may_promote_change.rb +237 -0
- data/lib/ruby-linstor-client/models/key_value_store.rb +2 -2
- data/lib/ruby-linstor-client/models/key_value_store_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/layer_type.rb +4 -2
- data/lib/ruby-linstor-client/models/log_level.rb +40 -0
- data/lib/ruby-linstor-client/models/luks_resource.rb +2 -2
- data/lib/ruby-linstor-client/models/luks_volume.rb +2 -2
- data/lib/ruby-linstor-client/models/max_volume_sizes.rb +2 -2
- data/lib/ruby-linstor-client/models/net_interface.rb +2 -2
- data/lib/ruby-linstor-client/models/node.rb +4 -4
- data/lib/ruby-linstor-client/models/node_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/nvme_resource.rb +2 -2
- data/lib/ruby-linstor-client/models/nvme_volume.rb +2 -2
- data/lib/ruby-linstor-client/models/one_of_drbd_volume_luks_volume_storage_nvme_volme_writecache_volume.rb +1 -1
- data/lib/ruby-linstor-client/models/one_of_drbd_volume_luks_volume_storage_nvme_volme_writecache_volume_cache_volume.rb +11 -0
- data/lib/ruby-linstor-client/models/openflex_resource.rb +229 -0
- data/lib/ruby-linstor-client/models/openflex_resource_definition_layer.rb +227 -0
- data/lib/ruby-linstor-client/models/openflex_volume.rb +256 -0
- data/lib/ruby-linstor-client/models/pass_phrase_create.rb +2 -2
- data/lib/ruby-linstor-client/models/physical_storage.rb +2 -2
- data/lib/ruby-linstor-client/models/physical_storage_create.rb +2 -2
- data/lib/ruby-linstor-client/models/physical_storage_device.rb +2 -2
- data/lib/ruby-linstor-client/models/physical_storage_storage_pool_create.rb +2 -2
- data/lib/ruby-linstor-client/models/provider_kind.rb +3 -2
- data/lib/ruby-linstor-client/models/resource.rb +16 -6
- data/lib/ruby-linstor-client/models/resource_connection.rb +2 -2
- data/lib/ruby-linstor-client/models/resource_connection_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/resource_create.rb +2 -2
- data/lib/ruby-linstor-client/models/resource_definition.rb +2 -2
- data/lib/ruby-linstor-client/models/resource_definition_create.rb +2 -2
- data/lib/ruby-linstor-client/models/resource_definition_layer.rb +3 -3
- data/lib/ruby-linstor-client/models/resource_definition_modify.rb +16 -6
- data/lib/ruby-linstor-client/models/resource_group.rb +2 -2
- data/lib/ruby-linstor-client/models/resource_group_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/resource_group_spawn.rb +22 -3
- data/lib/ruby-linstor-client/models/resource_layer.rb +24 -6
- data/lib/ruby-linstor-client/models/resource_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/resource_state.rb +2 -2
- data/lib/ruby-linstor-client/models/resource_with_volumes.rb +13 -3
- data/lib/ruby-linstor-client/models/resource_with_volumes_all_of.rb +2 -2
- data/lib/ruby-linstor-client/models/satellite_config.rb +272 -0
- data/lib/ruby-linstor-client/models/satellite_config_log.rb +245 -0
- data/lib/ruby-linstor-client/models/satellite_config_net.rb +236 -0
- data/lib/ruby-linstor-client/models/snapshot.rb +17 -6
- data/lib/ruby-linstor-client/models/snapshot_node.rb +261 -0
- data/lib/ruby-linstor-client/models/snapshot_restore.rb +2 -2
- data/lib/ruby-linstor-client/models/snapshot_shipping.rb +259 -0
- data/lib/ruby-linstor-client/models/snapshot_shipping_status.rb +279 -0
- data/lib/ruby-linstor-client/models/snapshot_volume_definition.rb +2 -2
- data/lib/ruby-linstor-client/models/storage_pool.rb +2 -2
- data/lib/ruby-linstor-client/models/storage_pool_definition.rb +2 -2
- data/lib/ruby-linstor-client/models/storage_pool_definition_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/storage_resource.rb +2 -2
- data/lib/ruby-linstor-client/models/storage_volume.rb +2 -2
- data/lib/ruby-linstor-client/models/volume.rb +2 -2
- data/lib/ruby-linstor-client/models/volume_definition.rb +2 -2
- data/lib/ruby-linstor-client/models/volume_definition_create.rb +2 -2
- data/lib/ruby-linstor-client/models/volume_definition_layer.rb +2 -2
- data/lib/ruby-linstor-client/models/volume_definition_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/volume_group.rb +2 -2
- data/lib/ruby-linstor-client/models/volume_group_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/volume_layer.rb +3 -3
- data/lib/ruby-linstor-client/models/volume_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/volume_state.rb +2 -2
- data/lib/ruby-linstor-client/models/writecache_resource.rb +2 -2
- data/lib/ruby-linstor-client/models/writecache_volume.rb +2 -2
- data/lib/ruby-linstor-client/version.rb +3 -3
- data/lib/ruby-linstor-client.rb +26 -2
- data/pkg/ruby-linstor-client-1.0.0.gem +0 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/cache_resource_spec.rb +34 -0
- data/spec/models/cache_volume_spec.rb +70 -0
- data/spec/models/controller_config_config_spec.rb +34 -0
- data/spec/models/controller_config_db_etcd_spec.rb +40 -0
- data/spec/models/controller_config_db_spec.rb +64 -0
- data/spec/models/controller_config_debug_spec.rb +34 -0
- data/spec/models/controller_config_http_spec.rb +46 -0
- data/spec/models/controller_config_https_spec.rb +46 -0
- data/spec/models/controller_config_ldap_spec.rb +64 -0
- data/spec/models/controller_config_log_spec.rb +80 -0
- data/spec/models/controller_config_spec.rb +70 -0
- data/spec/models/drbd_connection_spec.rb +44 -0
- data/spec/models/error_report_delete_spec.rb +64 -0
- data/spec/models/event_may_promote_change_spec.rb +46 -0
- data/spec/models/log_level_spec.rb +28 -0
- data/spec/models/openflex_resource_definition_layer_spec.rb +40 -0
- data/spec/models/openflex_resource_spec.rb +40 -0
- data/spec/models/openflex_volume_spec.rb +58 -0
- data/spec/models/satellite_config_log_spec.rb +52 -0
- data/spec/models/satellite_config_net_spec.rb +46 -0
- data/spec/models/satellite_config_spec.rb +70 -0
- data/spec/models/snapshot_node_spec.rb +58 -0
- data/spec/models/snapshot_shipping_spec.rb +52 -0
- data/spec/models/snapshot_shipping_status_spec.rb +56 -0
- data/spec/spec_helper.rb +2 -2
- metadata +77 -3
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Linstor REST API
|
3
3
|
|
4
|
-
#Linstor REST API V1 The V1 rest api of Linstor should stay compatible and only additions are made to the API, If there are breaking changes or redesigned a new major REST API version will be issued. Server runs per default on port `3370` on `::` ipv6 and ipv4. To change the bind address or port you can use the following linstor client commands: ``` linstor controller set-property REST/bindAddress 127.0.0.1 linstor controller set-property REST/port 8080 ``` After setting this properties restart the controller and the new values should be used. Changelog: * 1.0.13 - Fixed broken volume definition modify `flags` handling - Added flags to volume groups (create/modify) * 1.0.12 - Added WritecacheResource and WritecacheVolume schemas. - Removed support for swordfish - Added `with_storage_pool` to PhysicalStorageCreate post request, allowing to create linstor storage pools too - Added `gross` flag for volume-definition size - Added flags to VolumeDefinitionModify (so that `gross` flag can be changed) - Added query-max-volume-size to resource-groups * 1.0.11 - Added /v1/physical-storage endpoint, that lets you query and create lvm/zfs pools - Extended Node with list of supported providers and layers as well as lists of reasons for unsupported providers and layers * 1.0.10 - Added `reports` array field to Volume object, contains ApiCallRcs for problems - Changed `ResourceDefinitions` can now include `VolumeDefinitions` in `volume_definitions` field - Added various filter query parameters * 1.0.9 - Added supports_snapshots to StoragePool * 1.0.8 - Added /v1/resource-groups - Added /v1/resource-groups/{rscgrp}/volume-groups - Moved AutoSelectFilter::place_count default indirectly to create resource implementation - Added diskless_on_remaining to AutoSelectFilter - Changed /v1/view/resources return type to ResourceWithVolumes ResourceWithVolumes is now a child type of Resource (removed volumes from Resource) * 1.0.7 - Added ext_meta_stor_pool to DrbdVolume - Added is_active field to the NetInterface type * 1.0.6 - Added /v1/resource-definitions/{rscName}/resources/{nodeName}/volumes/{vlmnr} PUT * 1.0.5 - Added `reports` field to StoragePool object * 1.0.4 - Added /v1/view/storage-pools overview path - Added uuid fields for objects * 1.0.3 - Added /v1/view/resources overview path - documentation schema extraction * 1.0.2 - Added /v1/storage-pool-definitions object path - added NVME layer object type * 1.0.1 - Documentation review and updates - no functional changes * 1.0.0 - Initial REST API v1
|
4
|
+
#Linstor REST API V1 The V1 rest api of Linstor should stay compatible and only additions are made to the API, If there are breaking changes or redesigned a new major REST API version will be issued. Server runs per default on port `3370` on `::` ipv6 and ipv4. To change the bind address or port you can use the following linstor client commands: ``` linstor controller set-property REST/bindAddress 127.0.0.1 linstor controller set-property REST/port 8080 ``` After setting this properties restart the controller and the new values should be used. Changelog: * 1.5.0 - Added etcd.prefix to ControllerConfigDbEtcd parameters * 1.4.0 - Added promotion_score and may_promote to DrbdResource object - Added /v1/error-reports DELETE method, to delete a range of error reports or single ones - Added SSE (Server Sent Events) url /v1/events/drbd/promotion * 1.3.0 - Added /v1/view/snapshot-shippings * 1.2.0 - Added optional AutoSelectFilter to resource-group/spawn - Added /v1/nodes/{node}/config, that allows you to get and set the satellite config - Added /v1/sos-report to create bug reports you can send to linbit - Added new fields to the ErrorReport object - Added /v1/resource-definitions/{resource}/snapshot-shipping - Allow to modify the resource group in Resource definitions - Added createTimestamp to Resource and Snapshot - Added default value (null) for AutoPlaceRequest's layer_list * 1.1.0 - Added /v1/view/snapshots for a faster all in one snapshot list - Filter lists by properties: - /v1/nodes - /v1/resource-definitions - /v1/resource-groups - /v1/view/storage-pools - /v1/view/resources * 1.0.16 - Added CacheResource and CacheVolume schemas - AutSelectFilter arrays are now null per default * 1.0.15 - Added connections map to the DRBD resource layer data - Added support for Openflex * 1.0.14 - Added /v1/controller/config, that gives you the controller config information * 1.0.13 - Fixed broken volume definition modify `flags` handling - Added flags to volume groups (create/modify) * 1.0.12 - Added WritecacheResource and WritecacheVolume schemas. - Removed support for swordfish - Added `with_storage_pool` to PhysicalStorageCreate post request, allowing to create linstor storage pools too - Added `gross` flag for volume-definition size - Added flags to VolumeDefinitionModify (so that `gross` flag can be changed) - Added query-max-volume-size to resource-groups * 1.0.11 - Added /v1/physical-storage endpoint, that lets you query and create lvm/zfs pools - Extended Node with list of supported providers and layers as well as lists of reasons for unsupported providers and layers * 1.0.10 - Added `reports` array field to Volume object, contains ApiCallRcs for problems - Changed `ResourceDefinitions` can now include `VolumeDefinitions` in `volume_definitions` field - Added various filter query parameters * 1.0.9 - Added supports_snapshots to StoragePool * 1.0.8 - Added /v1/resource-groups - Added /v1/resource-groups/{rscgrp}/volume-groups - Moved AutoSelectFilter::place_count default indirectly to create resource implementation - Added diskless_on_remaining to AutoSelectFilter - Changed /v1/view/resources return type to ResourceWithVolumes ResourceWithVolumes is now a child type of Resource (removed volumes from Resource) * 1.0.7 - Added ext_meta_stor_pool to DrbdVolume - Added is_active field to the NetInterface type * 1.0.6 - Added /v1/resource-definitions/{rscName}/resources/{nodeName}/volumes/{vlmnr} PUT * 1.0.5 - Added `reports` field to StoragePool object * 1.0.4 - Added /v1/view/storage-pools overview path - Added uuid fields for objects * 1.0.3 - Added /v1/view/resources overview path - documentation schema extraction * 1.0.2 - Added /v1/storage-pool-definitions object path - added NVME layer object type * 1.0.1 - Documentation review and updates - no functional changes * 1.0.0 - Initial REST API v1
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.0
|
6
|
+
The version of the OpenAPI document: 1.5.0
|
7
7
|
Contact: rene.peinthor@linbit.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.3.1
|
@@ -19,6 +19,63 @@ module LinstorClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# show controller config
|
23
|
+
# Show Controller config
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [ControllerConfig]
|
26
|
+
def controller_config(opts = {})
|
27
|
+
data, _status_code, _headers = controller_config_with_http_info(opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# show controller config
|
32
|
+
# Show Controller config
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(ControllerConfig, Integer, Hash)>] ControllerConfig data, response status code and response headers
|
35
|
+
def controller_config_with_http_info(opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: DevelopersApi.controller_config ...'
|
38
|
+
end
|
39
|
+
# resource path
|
40
|
+
local_var_path = '/v1/controller/config'
|
41
|
+
|
42
|
+
# query parameters
|
43
|
+
query_params = opts[:query_params] || {}
|
44
|
+
|
45
|
+
# header parameters
|
46
|
+
header_params = opts[:header_params] || {}
|
47
|
+
# HTTP header 'Accept' (if needed)
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
49
|
+
|
50
|
+
# form parameters
|
51
|
+
form_params = opts[:form_params] || {}
|
52
|
+
|
53
|
+
# http body (model)
|
54
|
+
post_body = opts[:debug_body]
|
55
|
+
|
56
|
+
# return_type
|
57
|
+
return_type = opts[:debug_return_type] || 'ControllerConfig'
|
58
|
+
|
59
|
+
# auth_names
|
60
|
+
auth_names = opts[:debug_auth_names] || []
|
61
|
+
|
62
|
+
new_options = opts.merge(
|
63
|
+
:operation => :"DevelopersApi.controller_config",
|
64
|
+
:header_params => header_params,
|
65
|
+
:query_params => query_params,
|
66
|
+
:form_params => form_params,
|
67
|
+
:body => post_body,
|
68
|
+
:auth_names => auth_names,
|
69
|
+
:return_type => return_type
|
70
|
+
)
|
71
|
+
|
72
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
73
|
+
if @api_client.config.debugging
|
74
|
+
@api_client.config.logger.debug "API called: DevelopersApi#controller_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
75
|
+
end
|
76
|
+
return data, status_code, headers
|
77
|
+
end
|
78
|
+
|
22
79
|
# Deletes a controller property
|
23
80
|
# Delete a controller property
|
24
81
|
# @param key [String]
|
@@ -140,7 +197,7 @@ module LinstorClient
|
|
140
197
|
end
|
141
198
|
|
142
199
|
# sets or modifies controller properties
|
143
|
-
# Sets or modifies properties Possible properties are: - `TcpPortAutoRange` - regex[`[0-9]+-[0-9]+`] Range for auto-allocation of resource TCP ports - `MinorNrAutoRange` - regex[`[0-9]+-[0-9]+`] Range for auto-allocation of volume minor numbers - `PeerSlotsNewResource` - range[`1-31`] DRBD peer slots to allocate for newly created resources (default 7), the number of peer slots cannot be changed once the resource is created, so allow sufficient slots to increase redundancy in the future - `StorDriver/DMStats` - boolean_true_false Enable dmstats on lvm create - `GlobSeqApiCalls` - boolean_true_false Globally sequentialize all ctrl -> stlt api calls - `REST/bindAddress` - string Bind address of the REST API - `REST/port` - range[`1-65535`] TCP Port of the REST API - `REST/enabled` - boolean_true_false Bool if REST API should be enabled - `NVMe/enabled` - enum * rdma * tcp - `NVMe/enabled` - range[`1-65535`] - `NVMe/PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `StorDriver/WaitTimeoutAfterCreate` - regex[`[0-9]+`] - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `SearchDomain` - string Search domain node names, if no FQDN is given. - `ExtCmdWaitTimeout` - long Wait timeout for an external command in milliseconds - `DrbdOptions/auto-quorum` - enum Enables automatic setting of the 'quroum' and 'on-no-quroum' property * io-error * suspend-io * disabled - `DrbdOptions/auto-add-quorum-tiebreaker` - boolean_true_false Enables automatic management (creation and deletion) of tie breaking resource - `Writecache/PoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name for writecache - `Writecache/Size` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the writecache in % (0-100) or KiB otherwise - `Writecache/Blocksize` - long 4096 is recommended; the maximum block size is the page size - `Writecache/Options/StartSector` - long offset from the start of cache device in 512-byte sectors - `Writecache/Options/HighWatermark` - long start writeback when the number of used blocks reach this watermark - `Writecache/Options/LowWatermark` - long stop writeback when the number of used blocks drops below this watermark - `Writecache/Options/WritebackJobs` - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - `Writecache/Options/AutocommitBlocks` - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - `Writecache/Options/AutocommitTime` - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - `Writecache/Options/Fua` - enum \"On\" results in \"fua\" as argument, whereas the value \"Off\" results in \"nofua\" argument * On * Off - `Writecache/Options/Additional` - string Additional arguments passed through - `DrbdOptions/Disk/read-balancing` - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - `DrbdOptions/Disk/on-io-error` - enum * pass_on * call-local-io-error * detach - `DrbdOptions/Disk/disk-drain` - boolean - `DrbdOptions/Disk/resync-after` - string - `DrbdOptions/Disk/disk-timeout` - range[`0-6000`] - `DrbdOptions/Disk/disable-write-same` - boolean - `DrbdOptions/Disk/rs-discard-granularity` - range[`0-1048576`] - `DrbdOptions/Disk/disk-flushes` - boolean - `DrbdOptions/Disk/al-extents` - range[`67-65534`] - `DrbdOptions/Disk/al-updates` - boolean - `DrbdOptions/Disk/md-flushes` - boolean - `DrbdOptions/Disk/disk-barrier` - boolean - `DrbdOptions/Disk/discard-zeroes-if-aligned` - boolean - `DrbdOptions/PeerDevice/c-fill-target` - range[`0-1048576`] - `DrbdOptions/PeerDevice/c-max-rate` - range[`250-4194304`] - `DrbdOptions/PeerDevice/resync-rate` - range[`1-8388608`] - `DrbdOptions/PeerDevice/c-delay-target` - range[`1-100`] - `DrbdOptions/PeerDevice/c-min-rate` - range[`0-4194304`] - `DrbdOptions/PeerDevice/bitmap` - boolean - `DrbdOptions/PeerDevice/c-plan-ahead` - range[`0-300`] - `DrbdOptions/Resource/peer-ack-delay` - range[`1-10000`] - `DrbdOptions/Resource/quorum-minimum-redundancy` - enum [`1-32`] * off * majority * all - `DrbdOptions/Resource/max-io-depth` - range[`4-4294967295`] - `DrbdOptions/Resource/auto-promote-timeout` - range[`0-600`] - `DrbdOptions/Resource/quorum` - enum [`1-32`] * off * majority * all - `DrbdOptions/Resource/on-no-data-accessible` - enum * io-error * suspend-io - `DrbdOptions/Resource/auto-promote` - boolean - `DrbdOptions/Resource/cpu-mask` - string - `DrbdOptions/Resource/twopc-timeout` - range[`50-600`] - `DrbdOptions/Resource/twopc-retry-timeout` - range[`1-50`] - `DrbdOptions/Resource/peer-ack-window` - range[`2048-204800`] - `DrbdOptions/Resource/on-no-quorum` - enum * io-error * suspend-io - `DrbdOptions/Net/max-epoch-size` - range[`1-20000`] - `DrbdOptions/Net/protocol` - enum * A * B * C - `DrbdOptions/Net/allow-two-primaries` - boolean - `DrbdOptions/Net/after-sb-0pri` - enum * disconnect * discard-younger-primary * discard-older-primary * discard-zero-changes * discard-least-changes * discard-local * discard-remote - `DrbdOptions/Net/ko-count` - range[`0-200`] - `DrbdOptions/Net/data-integrity-alg` - string - `DrbdOptions/Net/ping-timeout` - range[`1-300`] - `DrbdOptions/Net/sndbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/transport` - string - `DrbdOptions/Net/rcvbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/max-buffers` - range[`32-131072`] - `DrbdOptions/Net/fencing` - enum * dont-care * resource-only * resource-and-stonith - `DrbdOptions/Net/csums-alg` - string - `DrbdOptions/Net/always-asbp` - boolean - `DrbdOptions/Net/congestion-extents` - range[`67-65534`] - `DrbdOptions/Net/on-congestion` - enum * block * pull-ahead * disconnect - `DrbdOptions/Net/ping-int` - range[`1-120`] - `DrbdOptions/Net/rr-conflict` - enum * disconnect * call-pri-lost * violently - `DrbdOptions/Net/tcp-cork` - boolean - `DrbdOptions/Net/use-rle` - boolean - `DrbdOptions/Net/csums-after-crash-only` - boolean - `DrbdOptions/Net/socket-check-timeout` - range[`0-300`] - `DrbdOptions/Net/congestion-fill` - range[`0-20971520`] - `DrbdOptions/Net/cram-hmac-alg` - string - `DrbdOptions/Net/verify-alg` - string - `DrbdOptions/Net/shared-secret` - string - `DrbdOptions/Net/connect-int` - range[`1-120`] - `DrbdOptions/Net/timeout` - range[`1-600`] - `DrbdOptions/Net/after-sb-2pri` - enum * disconnect * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/after-sb-1pri` - enum * disconnect * consensus * discard-secondary * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Handlers/after-resync-target` - string - `DrbdOptions/Handlers/before-resync-target` - string - `DrbdOptions/Handlers/before-resync-source` - string - `DrbdOptions/Handlers/out-of-sync` - string - `DrbdOptions/Handlers/quorum-lost` - string - `DrbdOptions/Handlers/fence-peer` - string - `DrbdOptions/Handlers/unfence-peer` - string - `DrbdOptions/Handlers/initial-split-brain` - string - `DrbdOptions/Handlers/local-io-error` - string - `DrbdOptions/Handlers/pri-lost` - string - `DrbdOptions/Handlers/pri-lost-after-sb` - string - `DrbdOptions/Handlers/pri-on-incon-degr` - string - `DrbdOptions/Handlers/split-brain` - string
|
200
|
+
# Sets or modifies properties Possible properties are: - `TcpPortAutoRange` - regex[`[0-9]+-[0-9]+`] Range for auto-allocation of resource TCP ports - `MinorNrAutoRange` - regex[`[0-9]+-[0-9]+`] Range for auto-allocation of volume minor numbers - `PeerSlotsNewResource` - range[`1-31`] DRBD peer slots to allocate for newly created resources (default 7), the number of peer slots cannot be changed once the resource is created, so allow sufficient slots to increase redundancy in the future - `StorDriver/DMStats` - boolean_true_false Enable dmstats on lvm create - `REST/disable-http-metrics` - boolean_true_false Disable Prometheus /metrics on HTTP, if HTTPS is enabled - `DrbdOptions/AutoEvictAfterTime` - long Time a node can be offline before it is declared EVICTED in minutes - `DrbdOptions/AutoEvictMaxDisconnectedNodes` - range[`0-100`] Percentage(0-100) of nodes that can disconnect at the same time without the controller stopping the max_offline_time timer - `DrbdOptions/AutoEvictMinReplicaCount` - long The minimum amount of replicas that should be present for a resource at all times. - `NVMe/TRType` - enum NVMe transportion type * rdma * tcp - `NVMe/Port` - range[`1-65535`] NVMe port - `NVMe/PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `StorDriver/WaitTimeoutAfterCreate` - regex[`[0-9]+`] - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `sys/fs/blkio_throttle_read_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_iops_device - `sys/fs/blkio_throttle_write_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_iops_device - `SearchDomain` - string Search domain node names, if no FQDN is given. - `ExtCmdWaitTimeout` - long Wait timeout for an external command in milliseconds - `DrbdOptions/auto-quorum` - enum Enables automatic setting of the 'quroum' and 'on-no-quroum' property * io-error * suspend-io * disabled - `DrbdOptions/auto-add-quorum-tiebreaker` - boolean_true_false Enables automatic management (creation and deletion) of tie breaking resource - `DrbdOptions/auto-diskful` - long Makes a resource diskful if it was continously diskless primary for X minutes - `DrbdOptions/auto-diskful-allow-cleanup` - boolean_true_false Allows this resource to be cleaned up after toggle-disk + resync is finished - `Writecache/PoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name for writecache - `Writecache/Size` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the writecache in % (0-100) or KiB otherwise - `Writecache/Options/StartSector` - long offset from the start of cache device in 512-byte sectors - `Writecache/Options/HighWatermark` - long start writeback when the number of used blocks reach this watermark - `Writecache/Options/LowWatermark` - long stop writeback when the number of used blocks drops below this watermark - `Writecache/Options/WritebackJobs` - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - `Writecache/Options/AutocommitBlocks` - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - `Writecache/Options/AutocommitTime` - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - `Writecache/Options/Fua` - enum \"On\" results in \"fua\" as argument, whereas the value \"Off\" results in \"nofua\" argument * On * Off - `Writecache/Options/Additional` - string Additional arguments passed through - `Cache/OpMode` - enum Operation mode * writeback * writethrough * passthrough - `Cache/MetaPool` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Name of the storage pool used for the cache metadata. If not specified, this will default to the CachePool property - `Cache/Metasize` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the cache in % (0-100) or KiB otherwise. - `Cache/CachePool` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Name of the storage pool used for the cache cache device - `Cache/Cachesize` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the cache in % (0-100) or KiB otherwise. - `Cache/Blocksize` - long Block size - `Cache/Policy` - enum Replacemant policy * mq * smq * cleaner - `StorDriver/LvcreateOptions` - regex[`.*`] Additional parameters added to every 'lvcreate ... ' command - `StorDriver/ZfscreateOptions` - regex[`.*`] Additional parameters added to every 'zfs create ... ' command - `StorDriver/Openflex/ApiHost` - regex[`.+`] Openflex API host name - `StorDriver/Openflex/ApiPort` - regex[`[0-9]+`] Openflex API port - `StorDriver/Openflex/UserName` - regex[`.+`] Openflex user name - `StorDriver/Openflex/UserPassword` - regex[`.+`] Openflex password - `StorDriver/Openflex/JobWaitDelay` - regex[`[0-9]+`] Delay in milliseconds linstor waits between fetching the job status - `StorDriver/Openflex/JobWaitMaxCount` - regex[`[0-9]+`] Maximum retries with wait delay until openflex fails - `Autoplacer/Weights/MaxFreeSpace` - regex[`^[0-9]+([.][0-9]+)?`] Weight of 'MaxFreeSpace' autoplacer-strategy - `Autoplacer/Weights/MinReservedSpace` - regex[`^[0-9]+([.][0-9]+)?`] Weight of 'MinReservedSpace' autoplacer-strategy - `Autoplacer/Weights/MinRscCount` - regex[`^[0-9]+([.][0-9]+)?`] Weight of 'MinRscCount' autoplacer-strategy - `Autoplacer/Weights/MaxThroughput` - regex[`^[0-9]+([.][0-9]+)?`] Weight of 'MaxThroughput' autoplacer-strategy - `Autoplacer/PreSelectScript` - string Filename of the preselection script. File must be in /etc/linstor/selector/ - `Autoplacer/PreSelectScriptTimeout` - long Timeout in ms Linstor waits for the script to run. - `Autoplacer/MaxThroughput` - long The maximum throughput the given storage pool is capable of. - `DrbdProxy/AutoEnable` - boolean_true_false - `Site` - string - `UpdateCacheInterval` - long Interval for space cache background updates in seconds - `DrbdOptions/Disk/on-io-error` - enum * pass_on * call-local-io-error * detach - `DrbdOptions/Disk/disk-barrier` - boolean - `DrbdOptions/Disk/disk-flushes` - boolean - `DrbdOptions/Disk/disk-drain` - boolean - `DrbdOptions/Disk/md-flushes` - boolean - `DrbdOptions/Disk/resync-after` - string - `DrbdOptions/Disk/al-extents` - range[`67-65534`] - `DrbdOptions/Disk/al-updates` - boolean - `DrbdOptions/Disk/discard-zeroes-if-aligned` - boolean - `DrbdOptions/Disk/disable-write-same` - boolean - `DrbdOptions/Disk/disk-timeout` - range[`0-6000`] - `DrbdOptions/Disk/read-balancing` - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - `DrbdOptions/Disk/rs-discard-granularity` - range[`0-1048576`] - `DrbdOptions/PeerDevice/resync-rate` - range[`1-8388608`] - `DrbdOptions/PeerDevice/c-plan-ahead` - range[`0-300`] - `DrbdOptions/PeerDevice/c-delay-target` - range[`1-100`] - `DrbdOptions/PeerDevice/c-fill-target` - range[`0-1048576`] - `DrbdOptions/PeerDevice/c-max-rate` - range[`250-4194304`] - `DrbdOptions/PeerDevice/c-min-rate` - range[`0-4194304`] - `DrbdOptions/PeerDevice/bitmap` - boolean - `DrbdOptions/Resource/cpu-mask` - string - `DrbdOptions/Resource/on-no-data-accessible` - enum * io-error * suspend-io - `DrbdOptions/Resource/auto-promote` - boolean - `DrbdOptions/Resource/peer-ack-window` - range[`2048-204800`] - `DrbdOptions/Resource/peer-ack-delay` - range[`1-10000`] - `DrbdOptions/Resource/twopc-timeout` - range[`50-600`] - `DrbdOptions/Resource/twopc-retry-timeout` - range[`1-50`] - `DrbdOptions/Resource/auto-promote-timeout` - range[`0-600`] - `DrbdOptions/Resource/max-io-depth` - range[`4-4294967295`] - `DrbdOptions/Resource/quorum` - enum [`1-32`] * off * majority * all - `DrbdOptions/Resource/on-no-quorum` - enum * io-error * suspend-io - `DrbdOptions/Resource/quorum-minimum-redundancy` - enum [`1-32`] * off * majority * all - `DrbdOptions/Net/transport` - string - `DrbdOptions/Net/protocol` - enum * A * B * C - `DrbdOptions/Net/timeout` - range[`1-600`] - `DrbdOptions/Net/max-epoch-size` - range[`1-20000`] - `DrbdOptions/Net/connect-int` - range[`1-120`] - `DrbdOptions/Net/ping-int` - range[`1-120`] - `DrbdOptions/Net/sndbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/rcvbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/ko-count` - range[`0-200`] - `DrbdOptions/Net/allow-two-primaries` - boolean - `DrbdOptions/Net/cram-hmac-alg` - string - `DrbdOptions/Net/shared-secret` - string - `DrbdOptions/Net/after-sb-0pri` - enum * disconnect * discard-younger-primary * discard-older-primary * discard-zero-changes * discard-least-changes * discard-local * discard-remote - `DrbdOptions/Net/after-sb-1pri` - enum * disconnect * consensus * discard-secondary * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/after-sb-2pri` - enum * disconnect * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/always-asbp` - boolean - `DrbdOptions/Net/rr-conflict` - enum * disconnect * call-pri-lost * violently * retry-connect - `DrbdOptions/Net/ping-timeout` - range[`1-300`] - `DrbdOptions/Net/data-integrity-alg` - string - `DrbdOptions/Net/tcp-cork` - boolean - `DrbdOptions/Net/on-congestion` - enum * block * pull-ahead * disconnect - `DrbdOptions/Net/congestion-fill` - range[`0-20971520`] - `DrbdOptions/Net/congestion-extents` - range[`67-65534`] - `DrbdOptions/Net/csums-alg` - string - `DrbdOptions/Net/csums-after-crash-only` - boolean - `DrbdOptions/Net/verify-alg` - string - `DrbdOptions/Net/use-rle` - boolean - `DrbdOptions/Net/socket-check-timeout` - range[`0-300`] - `DrbdOptions/Net/fencing` - enum * dont-care * resource-only * resource-and-stonith - `DrbdOptions/Net/max-buffers` - range[`32-131072`] - `DrbdOptions/Net/allow-remote-read` - boolean - `DrbdOptions/Handlers/after-resync-target` - string - `DrbdOptions/Handlers/before-resync-target` - string - `DrbdOptions/Handlers/before-resync-source` - string - `DrbdOptions/Handlers/out-of-sync` - string - `DrbdOptions/Handlers/quorum-lost` - string - `DrbdOptions/Handlers/fence-peer` - string - `DrbdOptions/Handlers/unfence-peer` - string - `DrbdOptions/Handlers/initial-split-brain` - string - `DrbdOptions/Handlers/local-io-error` - string - `DrbdOptions/Handlers/pri-lost` - string - `DrbdOptions/Handlers/pri-lost-after-sb` - string - `DrbdOptions/Handlers/pri-on-incon-degr` - string - `DrbdOptions/Handlers/split-brain` - string
|
144
201
|
# @param [Hash] opts the optional parameters
|
145
202
|
# @option opts [ControllerPropsModify] :controller_props_modify
|
146
203
|
# @return [ApiCallRc]
|
@@ -150,7 +207,7 @@ module LinstorClient
|
|
150
207
|
end
|
151
208
|
|
152
209
|
# sets or modifies controller properties
|
153
|
-
# Sets or modifies properties Possible properties are: - `TcpPortAutoRange` - regex[`[0-9]+-[0-9]+`] Range for auto-allocation of resource TCP ports - `MinorNrAutoRange` - regex[`[0-9]+-[0-9]+`] Range for auto-allocation of volume minor numbers - `PeerSlotsNewResource` - range[`1-31`] DRBD peer slots to allocate for newly created resources (default 7), the number of peer slots cannot be changed once the resource is created, so allow sufficient slots to increase redundancy in the future - `StorDriver/DMStats` - boolean_true_false Enable dmstats on lvm create - `GlobSeqApiCalls` - boolean_true_false Globally sequentialize all ctrl -> stlt api calls - `REST/bindAddress` - string Bind address of the REST API - `REST/port` - range[`1-65535`] TCP Port of the REST API - `REST/enabled` - boolean_true_false Bool if REST API should be enabled - `NVMe/enabled` - enum * rdma * tcp - `NVMe/enabled` - range[`1-65535`] - `NVMe/PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `StorDriver/WaitTimeoutAfterCreate` - regex[`[0-9]+`] - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `SearchDomain` - string Search domain node names, if no FQDN is given. - `ExtCmdWaitTimeout` - long Wait timeout for an external command in milliseconds - `DrbdOptions/auto-quorum` - enum Enables automatic setting of the 'quroum' and 'on-no-quroum' property * io-error * suspend-io * disabled - `DrbdOptions/auto-add-quorum-tiebreaker` - boolean_true_false Enables automatic management (creation and deletion) of tie breaking resource - `Writecache/PoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name for writecache - `Writecache/Size` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the writecache in % (0-100) or KiB otherwise - `Writecache/Blocksize` - long 4096 is recommended; the maximum block size is the page size - `Writecache/Options/StartSector` - long offset from the start of cache device in 512-byte sectors - `Writecache/Options/HighWatermark` - long start writeback when the number of used blocks reach this watermark - `Writecache/Options/LowWatermark` - long stop writeback when the number of used blocks drops below this watermark - `Writecache/Options/WritebackJobs` - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - `Writecache/Options/AutocommitBlocks` - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - `Writecache/Options/AutocommitTime` - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - `Writecache/Options/Fua` - enum \"On\" results in \"fua\" as argument, whereas the value \"Off\" results in \"nofua\" argument * On * Off - `Writecache/Options/Additional` - string Additional arguments passed through - `DrbdOptions/Disk/read-balancing` - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - `DrbdOptions/Disk/on-io-error` - enum * pass_on * call-local-io-error * detach - `DrbdOptions/Disk/disk-drain` - boolean - `DrbdOptions/Disk/resync-after` - string - `DrbdOptions/Disk/disk-timeout` - range[`0-6000`] - `DrbdOptions/Disk/disable-write-same` - boolean - `DrbdOptions/Disk/rs-discard-granularity` - range[`0-1048576`] - `DrbdOptions/Disk/disk-flushes` - boolean - `DrbdOptions/Disk/al-extents` - range[`67-65534`] - `DrbdOptions/Disk/al-updates` - boolean - `DrbdOptions/Disk/md-flushes` - boolean - `DrbdOptions/Disk/disk-barrier` - boolean - `DrbdOptions/Disk/discard-zeroes-if-aligned` - boolean - `DrbdOptions/PeerDevice/c-fill-target` - range[`0-1048576`] - `DrbdOptions/PeerDevice/c-max-rate` - range[`250-4194304`] - `DrbdOptions/PeerDevice/resync-rate` - range[`1-8388608`] - `DrbdOptions/PeerDevice/c-delay-target` - range[`1-100`] - `DrbdOptions/PeerDevice/c-min-rate` - range[`0-4194304`] - `DrbdOptions/PeerDevice/bitmap` - boolean - `DrbdOptions/PeerDevice/c-plan-ahead` - range[`0-300`] - `DrbdOptions/Resource/peer-ack-delay` - range[`1-10000`] - `DrbdOptions/Resource/quorum-minimum-redundancy` - enum [`1-32`] * off * majority * all - `DrbdOptions/Resource/max-io-depth` - range[`4-4294967295`] - `DrbdOptions/Resource/auto-promote-timeout` - range[`0-600`] - `DrbdOptions/Resource/quorum` - enum [`1-32`] * off * majority * all - `DrbdOptions/Resource/on-no-data-accessible` - enum * io-error * suspend-io - `DrbdOptions/Resource/auto-promote` - boolean - `DrbdOptions/Resource/cpu-mask` - string - `DrbdOptions/Resource/twopc-timeout` - range[`50-600`] - `DrbdOptions/Resource/twopc-retry-timeout` - range[`1-50`] - `DrbdOptions/Resource/peer-ack-window` - range[`2048-204800`] - `DrbdOptions/Resource/on-no-quorum` - enum * io-error * suspend-io - `DrbdOptions/Net/max-epoch-size` - range[`1-20000`] - `DrbdOptions/Net/protocol` - enum * A * B * C - `DrbdOptions/Net/allow-two-primaries` - boolean - `DrbdOptions/Net/after-sb-0pri` - enum * disconnect * discard-younger-primary * discard-older-primary * discard-zero-changes * discard-least-changes * discard-local * discard-remote - `DrbdOptions/Net/ko-count` - range[`0-200`] - `DrbdOptions/Net/data-integrity-alg` - string - `DrbdOptions/Net/ping-timeout` - range[`1-300`] - `DrbdOptions/Net/sndbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/transport` - string - `DrbdOptions/Net/rcvbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/max-buffers` - range[`32-131072`] - `DrbdOptions/Net/fencing` - enum * dont-care * resource-only * resource-and-stonith - `DrbdOptions/Net/csums-alg` - string - `DrbdOptions/Net/always-asbp` - boolean - `DrbdOptions/Net/congestion-extents` - range[`67-65534`] - `DrbdOptions/Net/on-congestion` - enum * block * pull-ahead * disconnect - `DrbdOptions/Net/ping-int` - range[`1-120`] - `DrbdOptions/Net/rr-conflict` - enum * disconnect * call-pri-lost * violently - `DrbdOptions/Net/tcp-cork` - boolean - `DrbdOptions/Net/use-rle` - boolean - `DrbdOptions/Net/csums-after-crash-only` - boolean - `DrbdOptions/Net/socket-check-timeout` - range[`0-300`] - `DrbdOptions/Net/congestion-fill` - range[`0-20971520`] - `DrbdOptions/Net/cram-hmac-alg` - string - `DrbdOptions/Net/verify-alg` - string - `DrbdOptions/Net/shared-secret` - string - `DrbdOptions/Net/connect-int` - range[`1-120`] - `DrbdOptions/Net/timeout` - range[`1-600`] - `DrbdOptions/Net/after-sb-2pri` - enum * disconnect * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/after-sb-1pri` - enum * disconnect * consensus * discard-secondary * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Handlers/after-resync-target` - string - `DrbdOptions/Handlers/before-resync-target` - string - `DrbdOptions/Handlers/before-resync-source` - string - `DrbdOptions/Handlers/out-of-sync` - string - `DrbdOptions/Handlers/quorum-lost` - string - `DrbdOptions/Handlers/fence-peer` - string - `DrbdOptions/Handlers/unfence-peer` - string - `DrbdOptions/Handlers/initial-split-brain` - string - `DrbdOptions/Handlers/local-io-error` - string - `DrbdOptions/Handlers/pri-lost` - string - `DrbdOptions/Handlers/pri-lost-after-sb` - string - `DrbdOptions/Handlers/pri-on-incon-degr` - string - `DrbdOptions/Handlers/split-brain` - string
|
210
|
+
# Sets or modifies properties Possible properties are: - `TcpPortAutoRange` - regex[`[0-9]+-[0-9]+`] Range for auto-allocation of resource TCP ports - `MinorNrAutoRange` - regex[`[0-9]+-[0-9]+`] Range for auto-allocation of volume minor numbers - `PeerSlotsNewResource` - range[`1-31`] DRBD peer slots to allocate for newly created resources (default 7), the number of peer slots cannot be changed once the resource is created, so allow sufficient slots to increase redundancy in the future - `StorDriver/DMStats` - boolean_true_false Enable dmstats on lvm create - `REST/disable-http-metrics` - boolean_true_false Disable Prometheus /metrics on HTTP, if HTTPS is enabled - `DrbdOptions/AutoEvictAfterTime` - long Time a node can be offline before it is declared EVICTED in minutes - `DrbdOptions/AutoEvictMaxDisconnectedNodes` - range[`0-100`] Percentage(0-100) of nodes that can disconnect at the same time without the controller stopping the max_offline_time timer - `DrbdOptions/AutoEvictMinReplicaCount` - long The minimum amount of replicas that should be present for a resource at all times. - `NVMe/TRType` - enum NVMe transportion type * rdma * tcp - `NVMe/Port` - range[`1-65535`] NVMe port - `NVMe/PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `StorDriver/WaitTimeoutAfterCreate` - regex[`[0-9]+`] - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `sys/fs/blkio_throttle_read_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_iops_device - `sys/fs/blkio_throttle_write_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_iops_device - `SearchDomain` - string Search domain node names, if no FQDN is given. - `ExtCmdWaitTimeout` - long Wait timeout for an external command in milliseconds - `DrbdOptions/auto-quorum` - enum Enables automatic setting of the 'quroum' and 'on-no-quroum' property * io-error * suspend-io * disabled - `DrbdOptions/auto-add-quorum-tiebreaker` - boolean_true_false Enables automatic management (creation and deletion) of tie breaking resource - `DrbdOptions/auto-diskful` - long Makes a resource diskful if it was continously diskless primary for X minutes - `DrbdOptions/auto-diskful-allow-cleanup` - boolean_true_false Allows this resource to be cleaned up after toggle-disk + resync is finished - `Writecache/PoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name for writecache - `Writecache/Size` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the writecache in % (0-100) or KiB otherwise - `Writecache/Options/StartSector` - long offset from the start of cache device in 512-byte sectors - `Writecache/Options/HighWatermark` - long start writeback when the number of used blocks reach this watermark - `Writecache/Options/LowWatermark` - long stop writeback when the number of used blocks drops below this watermark - `Writecache/Options/WritebackJobs` - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - `Writecache/Options/AutocommitBlocks` - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - `Writecache/Options/AutocommitTime` - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - `Writecache/Options/Fua` - enum \"On\" results in \"fua\" as argument, whereas the value \"Off\" results in \"nofua\" argument * On * Off - `Writecache/Options/Additional` - string Additional arguments passed through - `Cache/OpMode` - enum Operation mode * writeback * writethrough * passthrough - `Cache/MetaPool` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Name of the storage pool used for the cache metadata. If not specified, this will default to the CachePool property - `Cache/Metasize` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the cache in % (0-100) or KiB otherwise. - `Cache/CachePool` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Name of the storage pool used for the cache cache device - `Cache/Cachesize` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the cache in % (0-100) or KiB otherwise. - `Cache/Blocksize` - long Block size - `Cache/Policy` - enum Replacemant policy * mq * smq * cleaner - `StorDriver/LvcreateOptions` - regex[`.*`] Additional parameters added to every 'lvcreate ... ' command - `StorDriver/ZfscreateOptions` - regex[`.*`] Additional parameters added to every 'zfs create ... ' command - `StorDriver/Openflex/ApiHost` - regex[`.+`] Openflex API host name - `StorDriver/Openflex/ApiPort` - regex[`[0-9]+`] Openflex API port - `StorDriver/Openflex/UserName` - regex[`.+`] Openflex user name - `StorDriver/Openflex/UserPassword` - regex[`.+`] Openflex password - `StorDriver/Openflex/JobWaitDelay` - regex[`[0-9]+`] Delay in milliseconds linstor waits between fetching the job status - `StorDriver/Openflex/JobWaitMaxCount` - regex[`[0-9]+`] Maximum retries with wait delay until openflex fails - `Autoplacer/Weights/MaxFreeSpace` - regex[`^[0-9]+([.][0-9]+)?`] Weight of 'MaxFreeSpace' autoplacer-strategy - `Autoplacer/Weights/MinReservedSpace` - regex[`^[0-9]+([.][0-9]+)?`] Weight of 'MinReservedSpace' autoplacer-strategy - `Autoplacer/Weights/MinRscCount` - regex[`^[0-9]+([.][0-9]+)?`] Weight of 'MinRscCount' autoplacer-strategy - `Autoplacer/Weights/MaxThroughput` - regex[`^[0-9]+([.][0-9]+)?`] Weight of 'MaxThroughput' autoplacer-strategy - `Autoplacer/PreSelectScript` - string Filename of the preselection script. File must be in /etc/linstor/selector/ - `Autoplacer/PreSelectScriptTimeout` - long Timeout in ms Linstor waits for the script to run. - `Autoplacer/MaxThroughput` - long The maximum throughput the given storage pool is capable of. - `DrbdProxy/AutoEnable` - boolean_true_false - `Site` - string - `UpdateCacheInterval` - long Interval for space cache background updates in seconds - `DrbdOptions/Disk/on-io-error` - enum * pass_on * call-local-io-error * detach - `DrbdOptions/Disk/disk-barrier` - boolean - `DrbdOptions/Disk/disk-flushes` - boolean - `DrbdOptions/Disk/disk-drain` - boolean - `DrbdOptions/Disk/md-flushes` - boolean - `DrbdOptions/Disk/resync-after` - string - `DrbdOptions/Disk/al-extents` - range[`67-65534`] - `DrbdOptions/Disk/al-updates` - boolean - `DrbdOptions/Disk/discard-zeroes-if-aligned` - boolean - `DrbdOptions/Disk/disable-write-same` - boolean - `DrbdOptions/Disk/disk-timeout` - range[`0-6000`] - `DrbdOptions/Disk/read-balancing` - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - `DrbdOptions/Disk/rs-discard-granularity` - range[`0-1048576`] - `DrbdOptions/PeerDevice/resync-rate` - range[`1-8388608`] - `DrbdOptions/PeerDevice/c-plan-ahead` - range[`0-300`] - `DrbdOptions/PeerDevice/c-delay-target` - range[`1-100`] - `DrbdOptions/PeerDevice/c-fill-target` - range[`0-1048576`] - `DrbdOptions/PeerDevice/c-max-rate` - range[`250-4194304`] - `DrbdOptions/PeerDevice/c-min-rate` - range[`0-4194304`] - `DrbdOptions/PeerDevice/bitmap` - boolean - `DrbdOptions/Resource/cpu-mask` - string - `DrbdOptions/Resource/on-no-data-accessible` - enum * io-error * suspend-io - `DrbdOptions/Resource/auto-promote` - boolean - `DrbdOptions/Resource/peer-ack-window` - range[`2048-204800`] - `DrbdOptions/Resource/peer-ack-delay` - range[`1-10000`] - `DrbdOptions/Resource/twopc-timeout` - range[`50-600`] - `DrbdOptions/Resource/twopc-retry-timeout` - range[`1-50`] - `DrbdOptions/Resource/auto-promote-timeout` - range[`0-600`] - `DrbdOptions/Resource/max-io-depth` - range[`4-4294967295`] - `DrbdOptions/Resource/quorum` - enum [`1-32`] * off * majority * all - `DrbdOptions/Resource/on-no-quorum` - enum * io-error * suspend-io - `DrbdOptions/Resource/quorum-minimum-redundancy` - enum [`1-32`] * off * majority * all - `DrbdOptions/Net/transport` - string - `DrbdOptions/Net/protocol` - enum * A * B * C - `DrbdOptions/Net/timeout` - range[`1-600`] - `DrbdOptions/Net/max-epoch-size` - range[`1-20000`] - `DrbdOptions/Net/connect-int` - range[`1-120`] - `DrbdOptions/Net/ping-int` - range[`1-120`] - `DrbdOptions/Net/sndbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/rcvbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/ko-count` - range[`0-200`] - `DrbdOptions/Net/allow-two-primaries` - boolean - `DrbdOptions/Net/cram-hmac-alg` - string - `DrbdOptions/Net/shared-secret` - string - `DrbdOptions/Net/after-sb-0pri` - enum * disconnect * discard-younger-primary * discard-older-primary * discard-zero-changes * discard-least-changes * discard-local * discard-remote - `DrbdOptions/Net/after-sb-1pri` - enum * disconnect * consensus * discard-secondary * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/after-sb-2pri` - enum * disconnect * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/always-asbp` - boolean - `DrbdOptions/Net/rr-conflict` - enum * disconnect * call-pri-lost * violently * retry-connect - `DrbdOptions/Net/ping-timeout` - range[`1-300`] - `DrbdOptions/Net/data-integrity-alg` - string - `DrbdOptions/Net/tcp-cork` - boolean - `DrbdOptions/Net/on-congestion` - enum * block * pull-ahead * disconnect - `DrbdOptions/Net/congestion-fill` - range[`0-20971520`] - `DrbdOptions/Net/congestion-extents` - range[`67-65534`] - `DrbdOptions/Net/csums-alg` - string - `DrbdOptions/Net/csums-after-crash-only` - boolean - `DrbdOptions/Net/verify-alg` - string - `DrbdOptions/Net/use-rle` - boolean - `DrbdOptions/Net/socket-check-timeout` - range[`0-300`] - `DrbdOptions/Net/fencing` - enum * dont-care * resource-only * resource-and-stonith - `DrbdOptions/Net/max-buffers` - range[`32-131072`] - `DrbdOptions/Net/allow-remote-read` - boolean - `DrbdOptions/Handlers/after-resync-target` - string - `DrbdOptions/Handlers/before-resync-target` - string - `DrbdOptions/Handlers/before-resync-source` - string - `DrbdOptions/Handlers/out-of-sync` - string - `DrbdOptions/Handlers/quorum-lost` - string - `DrbdOptions/Handlers/fence-peer` - string - `DrbdOptions/Handlers/unfence-peer` - string - `DrbdOptions/Handlers/initial-split-brain` - string - `DrbdOptions/Handlers/local-io-error` - string - `DrbdOptions/Handlers/pri-lost` - string - `DrbdOptions/Handlers/pri-lost-after-sb` - string - `DrbdOptions/Handlers/pri-on-incon-degr` - string - `DrbdOptions/Handlers/split-brain` - string
|
154
211
|
# @param [Hash] opts the optional parameters
|
155
212
|
# @option opts [ControllerPropsModify] :controller_props_modify
|
156
213
|
# @return [Array<(ApiCallRc, Integer, Hash)>] ApiCallRc data, response status code and response headers
|
@@ -261,7 +318,7 @@ module LinstorClient
|
|
261
318
|
end
|
262
319
|
|
263
320
|
# creates an LVM, LVM-thin or ZFS pool, optional VDO under it
|
264
|
-
# Creates a LVM/LVM-thin, ZFS pool on the given device and if supported VDO(optional) under it. logcal_size_kib parameter is only needed if LVM-thin or vdo is used
|
321
|
+
# Creates a LVM/LVM-thin, ZFS pool on the given device and if supported VDO(optional) under it. logcal_size_kib parameter is only needed if LVM-thin or vdo is used. Also note VDO can only used with LVM-fat.
|
265
322
|
# @param node [String] node to use
|
266
323
|
# @param [Hash] opts the optional parameters
|
267
324
|
# @option opts [PhysicalStorageCreate] :physical_storage_create
|
@@ -272,7 +329,7 @@ module LinstorClient
|
|
272
329
|
end
|
273
330
|
|
274
331
|
# creates an LVM, LVM-thin or ZFS pool, optional VDO under it
|
275
|
-
# Creates a LVM/LVM-thin, ZFS pool on the given device and if supported VDO(optional) under it. logcal_size_kib parameter is only needed if LVM-thin or vdo is used
|
332
|
+
# Creates a LVM/LVM-thin, ZFS pool on the given device and if supported VDO(optional) under it. logcal_size_kib parameter is only needed if LVM-thin or vdo is used. Also note VDO can only used with LVM-fat.
|
276
333
|
# @param node [String] node to use
|
277
334
|
# @param [Hash] opts the optional parameters
|
278
335
|
# @option opts [PhysicalStorageCreate] :physical_storage_create
|
@@ -330,6 +387,196 @@ module LinstorClient
|
|
330
387
|
return data, status_code, headers
|
331
388
|
end
|
332
389
|
|
390
|
+
# creates a SOS report in the log directory of the controller
|
391
|
+
# @param node [String] node to use
|
392
|
+
# @param [Hash] opts the optional parameters
|
393
|
+
# @option opts [Integer] :since Unix epoch milliseconds
|
394
|
+
# @return [ApiCallRc]
|
395
|
+
def create_sos_report(node, opts = {})
|
396
|
+
data, _status_code, _headers = create_sos_report_with_http_info(node, opts)
|
397
|
+
data
|
398
|
+
end
|
399
|
+
|
400
|
+
# creates a SOS report in the log directory of the controller
|
401
|
+
# @param node [String] node to use
|
402
|
+
# @param [Hash] opts the optional parameters
|
403
|
+
# @option opts [Integer] :since Unix epoch milliseconds
|
404
|
+
# @return [Array<(ApiCallRc, Integer, Hash)>] ApiCallRc data, response status code and response headers
|
405
|
+
def create_sos_report_with_http_info(node, opts = {})
|
406
|
+
if @api_client.config.debugging
|
407
|
+
@api_client.config.logger.debug 'Calling API: DevelopersApi.create_sos_report ...'
|
408
|
+
end
|
409
|
+
# verify the required parameter 'node' is set
|
410
|
+
if @api_client.config.client_side_validation && node.nil?
|
411
|
+
fail ArgumentError, "Missing the required parameter 'node' when calling DevelopersApi.create_sos_report"
|
412
|
+
end
|
413
|
+
# resource path
|
414
|
+
local_var_path = '/v1/sos-report'.sub('{' + 'node' + '}', CGI.escape(node.to_s))
|
415
|
+
|
416
|
+
# query parameters
|
417
|
+
query_params = opts[:query_params] || {}
|
418
|
+
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
419
|
+
|
420
|
+
# header parameters
|
421
|
+
header_params = opts[:header_params] || {}
|
422
|
+
# HTTP header 'Accept' (if needed)
|
423
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
424
|
+
|
425
|
+
# form parameters
|
426
|
+
form_params = opts[:form_params] || {}
|
427
|
+
|
428
|
+
# http body (model)
|
429
|
+
post_body = opts[:debug_body]
|
430
|
+
|
431
|
+
# return_type
|
432
|
+
return_type = opts[:debug_return_type] || 'ApiCallRc'
|
433
|
+
|
434
|
+
# auth_names
|
435
|
+
auth_names = opts[:debug_auth_names] || []
|
436
|
+
|
437
|
+
new_options = opts.merge(
|
438
|
+
:operation => :"DevelopersApi.create_sos_report",
|
439
|
+
:header_params => header_params,
|
440
|
+
:query_params => query_params,
|
441
|
+
:form_params => form_params,
|
442
|
+
:body => post_body,
|
443
|
+
:auth_names => auth_names,
|
444
|
+
:return_type => return_type
|
445
|
+
)
|
446
|
+
|
447
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
448
|
+
if @api_client.config.debugging
|
449
|
+
@api_client.config.logger.debug "API called: DevelopersApi#create_sos_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
450
|
+
end
|
451
|
+
return data, status_code, headers
|
452
|
+
end
|
453
|
+
|
454
|
+
# modify controller config
|
455
|
+
# @param [Hash] opts the optional parameters
|
456
|
+
# @option opts [ControllerConfig] :controller_config
|
457
|
+
# @return [ApiCallRc]
|
458
|
+
def ctrl_set_config(opts = {})
|
459
|
+
data, _status_code, _headers = ctrl_set_config_with_http_info(opts)
|
460
|
+
data
|
461
|
+
end
|
462
|
+
|
463
|
+
# modify controller config
|
464
|
+
# @param [Hash] opts the optional parameters
|
465
|
+
# @option opts [ControllerConfig] :controller_config
|
466
|
+
# @return [Array<(ApiCallRc, Integer, Hash)>] ApiCallRc data, response status code and response headers
|
467
|
+
def ctrl_set_config_with_http_info(opts = {})
|
468
|
+
if @api_client.config.debugging
|
469
|
+
@api_client.config.logger.debug 'Calling API: DevelopersApi.ctrl_set_config ...'
|
470
|
+
end
|
471
|
+
# resource path
|
472
|
+
local_var_path = '/v1/controller/config'
|
473
|
+
|
474
|
+
# query parameters
|
475
|
+
query_params = opts[:query_params] || {}
|
476
|
+
|
477
|
+
# header parameters
|
478
|
+
header_params = opts[:header_params] || {}
|
479
|
+
# HTTP header 'Accept' (if needed)
|
480
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
481
|
+
# HTTP header 'Content-Type'
|
482
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
483
|
+
if !content_type.nil?
|
484
|
+
header_params['Content-Type'] = content_type
|
485
|
+
end
|
486
|
+
|
487
|
+
# form parameters
|
488
|
+
form_params = opts[:form_params] || {}
|
489
|
+
|
490
|
+
# http body (model)
|
491
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'controller_config'])
|
492
|
+
|
493
|
+
# return_type
|
494
|
+
return_type = opts[:debug_return_type] || 'ApiCallRc'
|
495
|
+
|
496
|
+
# auth_names
|
497
|
+
auth_names = opts[:debug_auth_names] || []
|
498
|
+
|
499
|
+
new_options = opts.merge(
|
500
|
+
:operation => :"DevelopersApi.ctrl_set_config",
|
501
|
+
:header_params => header_params,
|
502
|
+
:query_params => query_params,
|
503
|
+
:form_params => form_params,
|
504
|
+
:body => post_body,
|
505
|
+
:auth_names => auth_names,
|
506
|
+
:return_type => return_type
|
507
|
+
)
|
508
|
+
|
509
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
510
|
+
if @api_client.config.debugging
|
511
|
+
@api_client.config.logger.debug "API called: DevelopersApi#ctrl_set_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
512
|
+
end
|
513
|
+
return data, status_code, headers
|
514
|
+
end
|
515
|
+
|
516
|
+
# request sos report to download
|
517
|
+
# @param node [String] node to use
|
518
|
+
# @param [Hash] opts the optional parameters
|
519
|
+
# @option opts [Integer] :since Unix epoch milliseconds
|
520
|
+
# @return [File]
|
521
|
+
def download_sos_report(node, opts = {})
|
522
|
+
data, _status_code, _headers = download_sos_report_with_http_info(node, opts)
|
523
|
+
data
|
524
|
+
end
|
525
|
+
|
526
|
+
# request sos report to download
|
527
|
+
# @param node [String] node to use
|
528
|
+
# @param [Hash] opts the optional parameters
|
529
|
+
# @option opts [Integer] :since Unix epoch milliseconds
|
530
|
+
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
531
|
+
def download_sos_report_with_http_info(node, opts = {})
|
532
|
+
if @api_client.config.debugging
|
533
|
+
@api_client.config.logger.debug 'Calling API: DevelopersApi.download_sos_report ...'
|
534
|
+
end
|
535
|
+
# verify the required parameter 'node' is set
|
536
|
+
if @api_client.config.client_side_validation && node.nil?
|
537
|
+
fail ArgumentError, "Missing the required parameter 'node' when calling DevelopersApi.download_sos_report"
|
538
|
+
end
|
539
|
+
# resource path
|
540
|
+
local_var_path = '/v1/sos-report/download'.sub('{' + 'node' + '}', CGI.escape(node.to_s))
|
541
|
+
|
542
|
+
# query parameters
|
543
|
+
query_params = opts[:query_params] || {}
|
544
|
+
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
545
|
+
|
546
|
+
# header parameters
|
547
|
+
header_params = opts[:header_params] || {}
|
548
|
+
# HTTP header 'Accept' (if needed)
|
549
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream', 'application/json'])
|
550
|
+
|
551
|
+
# form parameters
|
552
|
+
form_params = opts[:form_params] || {}
|
553
|
+
|
554
|
+
# http body (model)
|
555
|
+
post_body = opts[:debug_body]
|
556
|
+
|
557
|
+
# return_type
|
558
|
+
return_type = opts[:debug_return_type] || 'File'
|
559
|
+
|
560
|
+
# auth_names
|
561
|
+
auth_names = opts[:debug_auth_names] || []
|
562
|
+
|
563
|
+
new_options = opts.merge(
|
564
|
+
:operation => :"DevelopersApi.download_sos_report",
|
565
|
+
:header_params => header_params,
|
566
|
+
:query_params => query_params,
|
567
|
+
:form_params => form_params,
|
568
|
+
:body => post_body,
|
569
|
+
:auth_names => auth_names,
|
570
|
+
:return_type => return_type
|
571
|
+
)
|
572
|
+
|
573
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
574
|
+
if @api_client.config.debugging
|
575
|
+
@api_client.config.logger.debug "API called: DevelopersApi#download_sos_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
576
|
+
end
|
577
|
+
return data, status_code, headers
|
578
|
+
end
|
579
|
+
|
333
580
|
# create a encryption passphrase
|
334
581
|
# @param [Hash] opts the optional parameters
|
335
582
|
# @option opts [PassPhraseCreate] :pass_phrase_create
|
@@ -516,11 +763,138 @@ module LinstorClient
|
|
516
763
|
return data, status_code, headers
|
517
764
|
end
|
518
765
|
|
766
|
+
# Deletes a range of error-reports
|
767
|
+
# Deletes a range of error-reports
|
768
|
+
# @param [Hash] opts the optional parameters
|
769
|
+
# @option opts [ErrorReportDelete] :error_report_delete
|
770
|
+
# @return [ApiCallRc]
|
771
|
+
def error_report_delete(opts = {})
|
772
|
+
data, _status_code, _headers = error_report_delete_with_http_info(opts)
|
773
|
+
data
|
774
|
+
end
|
775
|
+
|
776
|
+
# Deletes a range of error-reports
|
777
|
+
# Deletes a range of error-reports
|
778
|
+
# @param [Hash] opts the optional parameters
|
779
|
+
# @option opts [ErrorReportDelete] :error_report_delete
|
780
|
+
# @return [Array<(ApiCallRc, Integer, Hash)>] ApiCallRc data, response status code and response headers
|
781
|
+
def error_report_delete_with_http_info(opts = {})
|
782
|
+
if @api_client.config.debugging
|
783
|
+
@api_client.config.logger.debug 'Calling API: DevelopersApi.error_report_delete ...'
|
784
|
+
end
|
785
|
+
# resource path
|
786
|
+
local_var_path = '/v1/error-reports'
|
787
|
+
|
788
|
+
# query parameters
|
789
|
+
query_params = opts[:query_params] || {}
|
790
|
+
|
791
|
+
# header parameters
|
792
|
+
header_params = opts[:header_params] || {}
|
793
|
+
# HTTP header 'Accept' (if needed)
|
794
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
795
|
+
# HTTP header 'Content-Type'
|
796
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
797
|
+
if !content_type.nil?
|
798
|
+
header_params['Content-Type'] = content_type
|
799
|
+
end
|
800
|
+
|
801
|
+
# form parameters
|
802
|
+
form_params = opts[:form_params] || {}
|
803
|
+
|
804
|
+
# http body (model)
|
805
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'error_report_delete'])
|
806
|
+
|
807
|
+
# return_type
|
808
|
+
return_type = opts[:debug_return_type] || 'ApiCallRc'
|
809
|
+
|
810
|
+
# auth_names
|
811
|
+
auth_names = opts[:debug_auth_names] || []
|
812
|
+
|
813
|
+
new_options = opts.merge(
|
814
|
+
:operation => :"DevelopersApi.error_report_delete",
|
815
|
+
:header_params => header_params,
|
816
|
+
:query_params => query_params,
|
817
|
+
:form_params => form_params,
|
818
|
+
:body => post_body,
|
819
|
+
:auth_names => auth_names,
|
820
|
+
:return_type => return_type
|
821
|
+
)
|
822
|
+
|
823
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
824
|
+
if @api_client.config.debugging
|
825
|
+
@api_client.config.logger.debug "API called: DevelopersApi#error_report_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
826
|
+
end
|
827
|
+
return data, status_code, headers
|
828
|
+
end
|
829
|
+
|
830
|
+
# Deletes a single error-report
|
831
|
+
# Deletes a single error-report
|
832
|
+
# @param reportid [String] Error id to select
|
833
|
+
# @param [Hash] opts the optional parameters
|
834
|
+
# @return [ApiCallRc]
|
835
|
+
def error_report_delete_single(reportid, opts = {})
|
836
|
+
data, _status_code, _headers = error_report_delete_single_with_http_info(reportid, opts)
|
837
|
+
data
|
838
|
+
end
|
839
|
+
|
840
|
+
# Deletes a single error-report
|
841
|
+
# Deletes a single error-report
|
842
|
+
# @param reportid [String] Error id to select
|
843
|
+
# @param [Hash] opts the optional parameters
|
844
|
+
# @return [Array<(ApiCallRc, Integer, Hash)>] ApiCallRc data, response status code and response headers
|
845
|
+
def error_report_delete_single_with_http_info(reportid, opts = {})
|
846
|
+
if @api_client.config.debugging
|
847
|
+
@api_client.config.logger.debug 'Calling API: DevelopersApi.error_report_delete_single ...'
|
848
|
+
end
|
849
|
+
# verify the required parameter 'reportid' is set
|
850
|
+
if @api_client.config.client_side_validation && reportid.nil?
|
851
|
+
fail ArgumentError, "Missing the required parameter 'reportid' when calling DevelopersApi.error_report_delete_single"
|
852
|
+
end
|
853
|
+
# resource path
|
854
|
+
local_var_path = '/v1/error-reports/{reportid}'.sub('{' + 'reportid' + '}', CGI.escape(reportid.to_s))
|
855
|
+
|
856
|
+
# query parameters
|
857
|
+
query_params = opts[:query_params] || {}
|
858
|
+
|
859
|
+
# header parameters
|
860
|
+
header_params = opts[:header_params] || {}
|
861
|
+
# HTTP header 'Accept' (if needed)
|
862
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
863
|
+
|
864
|
+
# form parameters
|
865
|
+
form_params = opts[:form_params] || {}
|
866
|
+
|
867
|
+
# http body (model)
|
868
|
+
post_body = opts[:debug_body]
|
869
|
+
|
870
|
+
# return_type
|
871
|
+
return_type = opts[:debug_return_type] || 'ApiCallRc'
|
872
|
+
|
873
|
+
# auth_names
|
874
|
+
auth_names = opts[:debug_auth_names] || []
|
875
|
+
|
876
|
+
new_options = opts.merge(
|
877
|
+
:operation => :"DevelopersApi.error_report_delete_single",
|
878
|
+
:header_params => header_params,
|
879
|
+
:query_params => query_params,
|
880
|
+
:form_params => form_params,
|
881
|
+
:body => post_body,
|
882
|
+
:auth_names => auth_names,
|
883
|
+
:return_type => return_type
|
884
|
+
)
|
885
|
+
|
886
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
887
|
+
if @api_client.config.debugging
|
888
|
+
@api_client.config.logger.debug "API called: DevelopersApi#error_report_delete_single\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
889
|
+
end
|
890
|
+
return data, status_code, headers
|
891
|
+
end
|
892
|
+
|
519
893
|
# list all error reports
|
520
894
|
# List all error reports
|
521
895
|
# @param [Hash] opts the optional parameters
|
522
896
|
# @option opts [String] :node Only show error reports of this node
|
523
|
-
# @option opts [Integer] :since Unix
|
897
|
+
# @option opts [Integer] :since Unix epoch milliseconds
|
524
898
|
# @option opts [Integer] :to Unix timestamp to the ending interval
|
525
899
|
# @option opts [Boolean] :with_content Include error report text in response. (default to false)
|
526
900
|
# @option opts [Integer] :offset number of records to skip for pagination
|
@@ -535,7 +909,7 @@ module LinstorClient
|
|
535
909
|
# List all error reports
|
536
910
|
# @param [Hash] opts the optional parameters
|
537
911
|
# @option opts [String] :node Only show error reports of this node
|
538
|
-
# @option opts [Integer] :since Unix
|
912
|
+
# @option opts [Integer] :since Unix epoch milliseconds
|
539
913
|
# @option opts [Integer] :to Unix timestamp to the ending interval
|
540
914
|
# @option opts [Boolean] :with_content Include error report text in response.
|
541
915
|
# @option opts [Integer] :offset number of records to skip for pagination
|
@@ -608,7 +982,7 @@ module LinstorClient
|
|
608
982
|
# @param reportid [String] Error id to select
|
609
983
|
# @param [Hash] opts the optional parameters
|
610
984
|
# @option opts [String] :node Only show error reports of this node
|
611
|
-
# @option opts [Integer] :since Unix
|
985
|
+
# @option opts [Integer] :since Unix epoch milliseconds
|
612
986
|
# @option opts [Integer] :to Unix timestamp to the ending interval
|
613
987
|
# @option opts [Boolean] :with_content Include error report text in response. (default to true)
|
614
988
|
# @option opts [Integer] :offset number of records to skip for pagination
|
@@ -624,7 +998,7 @@ module LinstorClient
|
|
624
998
|
# @param reportid [String] Error id to select
|
625
999
|
# @param [Hash] opts the optional parameters
|
626
1000
|
# @option opts [String] :node Only show error reports of this node
|
627
|
-
# @option opts [Integer] :since Unix
|
1001
|
+
# @option opts [Integer] :since Unix epoch milliseconds
|
628
1002
|
# @option opts [Integer] :to Unix timestamp to the ending interval
|
629
1003
|
# @option opts [Boolean] :with_content Include error report text in response.
|
630
1004
|
# @option opts [Integer] :offset number of records to skip for pagination
|
@@ -1375,6 +1749,8 @@ module LinstorClient
|
|
1375
1749
|
# Lists nodes registered to the controller
|
1376
1750
|
# Returns an array of all nodes registered to Linstor.
|
1377
1751
|
# @param [Hash] opts the optional parameters
|
1752
|
+
# @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified, no filtering.
|
1753
|
+
# @option opts [Array<String>] :props filter by given properties, full property path
|
1378
1754
|
# @option opts [Integer] :offset number of records to skip for pagination
|
1379
1755
|
# @option opts [Integer] :limit maximum number of records to return
|
1380
1756
|
# @return [Array<Node>]
|
@@ -1386,6 +1762,8 @@ module LinstorClient
|
|
1386
1762
|
# Lists nodes registered to the controller
|
1387
1763
|
# Returns an array of all nodes registered to Linstor.
|
1388
1764
|
# @param [Hash] opts the optional parameters
|
1765
|
+
# @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified, no filtering.
|
1766
|
+
# @option opts [Array<String>] :props filter by given properties, full property path
|
1389
1767
|
# @option opts [Integer] :offset number of records to skip for pagination
|
1390
1768
|
# @option opts [Integer] :limit maximum number of records to return
|
1391
1769
|
# @return [Array<(Array<Node>, Integer, Hash)>] Array<Node> data, response status code and response headers
|
@@ -1410,6 +1788,8 @@ module LinstorClient
|
|
1410
1788
|
|
1411
1789
|
# query parameters
|
1412
1790
|
query_params = opts[:query_params] || {}
|
1791
|
+
query_params[:'nodes'] = @api_client.build_collection_param(opts[:'nodes'], :multi) if !opts[:'nodes'].nil?
|
1792
|
+
query_params[:'props'] = @api_client.build_collection_param(opts[:'props'], :multi) if !opts[:'props'].nil?
|
1413
1793
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1414
1794
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1415
1795
|
|
@@ -1511,7 +1891,7 @@ module LinstorClient
|
|
1511
1891
|
end
|
1512
1892
|
|
1513
1893
|
# modify a node
|
1514
|
-
# Sets or modifies properties Possible properties are: - `PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `
|
1894
|
+
# Sets or modifies properties Possible properties are: - `PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use for external metadata. - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `sys/fs/blkio_throttle_read_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_iops_device - `sys/fs/blkio_throttle_write_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_iops_device - `DrbdOptions/AutoEvictAfterTime` - long Time a node can be offline before it is declared EVICTED in minutes - `Writecache/PoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name for writecache - `Writecache/Size` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the writecache in % (0-100) or KiB otherwise - `Writecache/Options/StartSector` - long offset from the start of cache device in 512-byte sectors - `Writecache/Options/HighWatermark` - long start writeback when the number of used blocks reach this watermark - `Writecache/Options/LowWatermark` - long stop writeback when the number of used blocks drops below this watermark - `Writecache/Options/WritebackJobs` - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - `Writecache/Options/AutocommitBlocks` - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - `Writecache/Options/AutocommitTime` - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - `Writecache/Options/Fua` - enum \"On\" results in \"fua\" as argument, whereas the value \"Off\" results in \"nofua\" argument * On * Off - `Writecache/Options/Additional` - string Additional arguments passed through - `Cache/OpMode` - enum Operation mode * writeback * writethrough * passthrough - `Cache/MetaPool` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Name of the storage pool used for the cache metadata. If not specified, this will default to the CachePool property - `Cache/Metasize` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the cache in % (0-100) or KiB otherwise. - `Cache/CachePool` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Name of the storage pool used for the cache cache device - `Cache/Cachesize` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the cache in % (0-100) or KiB otherwise. - `Cache/Blocksize` - long Block size - `Cache/Policy` - enum Replacemant policy * mq * smq * cleaner - `StorDriver/LvcreateOptions` - regex[`.*`] Additional parameters added to every 'lvcreate ... ' command - `StorDriver/ZfscreateOptions` - regex[`.*`] Additional parameters added to every 'zfs create ... ' command - `StorDriver/Openflex/ApiHost` - regex[`.+`] Openflex API host name - `StorDriver/Openflex/ApiPort` - regex[`[0-9]+`] Openflex API port - `StorDriver/Openflex/UserName` - regex[`.+`] Openflex user name - `StorDriver/Openflex/UserPassword` - regex[`.+`] Openflex password - `StorDriver/Openflex/StorDev` - regex[`.+`] Openflex storage device - `StorDriver/Openflex/StorDevHost` - regex[`.+`] Openflex storage device host - `StorDriver/Openflex/JobWaitDelay` - regex[`[0-9]+`] Delay in milliseconds linstor waits between fetching the job status - `StorDriver/Openflex/JobWaitMaxCount` - regex[`[0-9]+`] Maximum retries with wait delay until openflex fails - `Autoplacer/MaxThroughput` - long The maximum throughput the given storage pool is capable of. - `DrbdProxy/AutoEnable` - boolean_true_false - `Site` - string - `DrbdOptions/auto-diskful-allow-cleanup` - boolean_true_false Allows this resource to be cleaned up after toggle-disk + resync is finished
|
1515
1895
|
# @param node [String] node to use
|
1516
1896
|
# @param [Hash] opts the optional parameters
|
1517
1897
|
# @option opts [NodeModify] :node_modify
|
@@ -1522,7 +1902,7 @@ module LinstorClient
|
|
1522
1902
|
end
|
1523
1903
|
|
1524
1904
|
# modify a node
|
1525
|
-
# Sets or modifies properties Possible properties are: - `PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `
|
1905
|
+
# Sets or modifies properties Possible properties are: - `PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use for external metadata. - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `sys/fs/blkio_throttle_read_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_iops_device - `sys/fs/blkio_throttle_write_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_iops_device - `DrbdOptions/AutoEvictAfterTime` - long Time a node can be offline before it is declared EVICTED in minutes - `Writecache/PoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name for writecache - `Writecache/Size` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the writecache in % (0-100) or KiB otherwise - `Writecache/Options/StartSector` - long offset from the start of cache device in 512-byte sectors - `Writecache/Options/HighWatermark` - long start writeback when the number of used blocks reach this watermark - `Writecache/Options/LowWatermark` - long stop writeback when the number of used blocks drops below this watermark - `Writecache/Options/WritebackJobs` - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - `Writecache/Options/AutocommitBlocks` - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - `Writecache/Options/AutocommitTime` - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - `Writecache/Options/Fua` - enum \"On\" results in \"fua\" as argument, whereas the value \"Off\" results in \"nofua\" argument * On * Off - `Writecache/Options/Additional` - string Additional arguments passed through - `Cache/OpMode` - enum Operation mode * writeback * writethrough * passthrough - `Cache/MetaPool` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Name of the storage pool used for the cache metadata. If not specified, this will default to the CachePool property - `Cache/Metasize` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the cache in % (0-100) or KiB otherwise. - `Cache/CachePool` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Name of the storage pool used for the cache cache device - `Cache/Cachesize` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the cache in % (0-100) or KiB otherwise. - `Cache/Blocksize` - long Block size - `Cache/Policy` - enum Replacemant policy * mq * smq * cleaner - `StorDriver/LvcreateOptions` - regex[`.*`] Additional parameters added to every 'lvcreate ... ' command - `StorDriver/ZfscreateOptions` - regex[`.*`] Additional parameters added to every 'zfs create ... ' command - `StorDriver/Openflex/ApiHost` - regex[`.+`] Openflex API host name - `StorDriver/Openflex/ApiPort` - regex[`[0-9]+`] Openflex API port - `StorDriver/Openflex/UserName` - regex[`.+`] Openflex user name - `StorDriver/Openflex/UserPassword` - regex[`.+`] Openflex password - `StorDriver/Openflex/StorDev` - regex[`.+`] Openflex storage device - `StorDriver/Openflex/StorDevHost` - regex[`.+`] Openflex storage device host - `StorDriver/Openflex/JobWaitDelay` - regex[`[0-9]+`] Delay in milliseconds linstor waits between fetching the job status - `StorDriver/Openflex/JobWaitMaxCount` - regex[`[0-9]+`] Maximum retries with wait delay until openflex fails - `Autoplacer/MaxThroughput` - long The maximum throughput the given storage pool is capable of. - `DrbdProxy/AutoEnable` - boolean_true_false - `Site` - string - `DrbdOptions/auto-diskful-allow-cleanup` - boolean_true_false Allows this resource to be cleaned up after toggle-disk + resync is finished
|
1526
1906
|
# @param node [String] node to use
|
1527
1907
|
# @param [Hash] opts the optional parameters
|
1528
1908
|
# @option opts [NodeModify] :node_modify
|
@@ -1786,7 +2166,7 @@ module LinstorClient
|
|
1786
2166
|
# Lists all storage pools of a node
|
1787
2167
|
# @param node [String] node to use
|
1788
2168
|
# @param [Hash] opts the optional parameters
|
1789
|
-
# @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified no filtering.
|
2169
|
+
# @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified, no filtering.
|
1790
2170
|
# @option opts [Array<String>] :storage_pools Filter only for the specified storage pools, if not specified no filtering.
|
1791
2171
|
# @option opts [Integer] :offset number of records to skip for pagination
|
1792
2172
|
# @option opts [Integer] :limit maximum number of records to return
|
@@ -1800,7 +2180,7 @@ module LinstorClient
|
|
1800
2180
|
# Lists all storage pools of a node
|
1801
2181
|
# @param node [String] node to use
|
1802
2182
|
# @param [Hash] opts the optional parameters
|
1803
|
-
# @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified no filtering.
|
2183
|
+
# @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified, no filtering.
|
1804
2184
|
# @option opts [Array<String>] :storage_pools Filter only for the specified storage pools, if not specified no filtering.
|
1805
2185
|
# @option opts [Integer] :offset number of records to skip for pagination
|
1806
2186
|
# @option opts [Integer] :limit maximum number of records to return
|
@@ -1870,7 +2250,7 @@ module LinstorClient
|
|
1870
2250
|
end
|
1871
2251
|
|
1872
2252
|
# modify a storage pool
|
1873
|
-
# Sets or modifies properties Possible properties are: - `StorDriver/LvmVg` - regex[`[a-zA-Z0-9_-]+`] - `StorDriver/ThinPool` - regex[`[a-zA-Z0-9_-]+`] - `StorDriver/ZPool` - regex[`[a-zA-Z0-9_/-]+`] - `StorDriver/ZPoolThin` - regex[`[a-zA-Z0-9_/-]+`] - `StorDriver/FileDir` - regex[`.*`] - `PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `NVMe/PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `StorDriver/LvcreateType` - enum * linear * striped * mirror * raid0 * raid1 * raid4 * raid5 * raid6 * raid10 * lzma * lz4 - `StorDriver/WaitTimeoutAfterCreate` - regex[`[0-9]+`] - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device
|
2253
|
+
# Sets or modifies properties Possible properties are: - `StorDriver/StorPoolName` - regex[`[a-zA-Z0-9_/-]+`] - `StorDriver/LvmVg` - regex[`[a-zA-Z0-9_-]+`] - `StorDriver/ThinPool` - regex[`[a-zA-Z0-9_-]+`] - `StorDriver/ZPool` - regex[`[a-zA-Z0-9_/-]+`] - `StorDriver/ZPoolThin` - regex[`[a-zA-Z0-9_/-]+`] - `StorDriver/FileDir` - regex[`.*`] - `PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `NVMe/PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `StorDriver/LvcreateType` - enum * linear * striped * mirror * raid0 * raid1 * raid4 * raid5 * raid6 * raid10 * lzma * lz4 - `StorDriver/LvcreateOptions` - regex[`.*`] Additional parameters added to every 'lvcreate ... ' command - `StorDriver/ZfscreateOptions` - regex[`.*`] Additional parameters added to every 'zfs create ... ' command - `StorDriver/WaitTimeoutAfterCreate` - regex[`[0-9]+`] - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `sys/fs/blkio_throttle_read_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_iops_device - `sys/fs/blkio_throttle_write_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_iops_device - `StorDriver/Openflex/ApiHost` - regex[`.+`] Openflex API host name - `StorDriver/Openflex/ApiPort` - regex[`[0-9]+`] Openflex API port - `StorDriver/Openflex/UserName` - regex[`.+`] Openflex user name - `StorDriver/Openflex/UserPassword` - regex[`.+`] Openflex password - `StorDriver/Openflex/StorDev` - regex[`.+`] Openflex storage device - `StorDriver/Openflex/StorDevHost` - regex[`.+`] Openflex storage device host - `StorDriver/Openflex/StorPool` - regex[`[0-9]+`] Openflex storage pool name - `Autoplacer/MaxThroughput` - long The maximum throughput the given storage pool is capable of.
|
1874
2254
|
# @param node [String] node to use
|
1875
2255
|
# @param storagepool [String]
|
1876
2256
|
# @param [Hash] opts the optional parameters
|
@@ -1882,7 +2262,7 @@ module LinstorClient
|
|
1882
2262
|
end
|
1883
2263
|
|
1884
2264
|
# modify a storage pool
|
1885
|
-
# Sets or modifies properties Possible properties are: - `StorDriver/LvmVg` - regex[`[a-zA-Z0-9_-]+`] - `StorDriver/ThinPool` - regex[`[a-zA-Z0-9_-]+`] - `StorDriver/ZPool` - regex[`[a-zA-Z0-9_/-]+`] - `StorDriver/ZPoolThin` - regex[`[a-zA-Z0-9_/-]+`] - `StorDriver/FileDir` - regex[`.*`] - `PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `NVMe/PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `StorDriver/LvcreateType` - enum * linear * striped * mirror * raid0 * raid1 * raid4 * raid5 * raid6 * raid10 * lzma * lz4 - `StorDriver/WaitTimeoutAfterCreate` - regex[`[0-9]+`] - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device
|
2265
|
+
# Sets or modifies properties Possible properties are: - `StorDriver/StorPoolName` - regex[`[a-zA-Z0-9_/-]+`] - `StorDriver/LvmVg` - regex[`[a-zA-Z0-9_-]+`] - `StorDriver/ThinPool` - regex[`[a-zA-Z0-9_-]+`] - `StorDriver/ZPool` - regex[`[a-zA-Z0-9_/-]+`] - `StorDriver/ZPoolThin` - regex[`[a-zA-Z0-9_/-]+`] - `StorDriver/FileDir` - regex[`.*`] - `PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `NVMe/PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `StorDriver/LvcreateType` - enum * linear * striped * mirror * raid0 * raid1 * raid4 * raid5 * raid6 * raid10 * lzma * lz4 - `StorDriver/LvcreateOptions` - regex[`.*`] Additional parameters added to every 'lvcreate ... ' command - `StorDriver/ZfscreateOptions` - regex[`.*`] Additional parameters added to every 'zfs create ... ' command - `StorDriver/WaitTimeoutAfterCreate` - regex[`[0-9]+`] - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `sys/fs/blkio_throttle_read_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_iops_device - `sys/fs/blkio_throttle_write_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_iops_device - `StorDriver/Openflex/ApiHost` - regex[`.+`] Openflex API host name - `StorDriver/Openflex/ApiPort` - regex[`[0-9]+`] Openflex API port - `StorDriver/Openflex/UserName` - regex[`.+`] Openflex user name - `StorDriver/Openflex/UserPassword` - regex[`.+`] Openflex password - `StorDriver/Openflex/StorDev` - regex[`.+`] Openflex storage device - `StorDriver/Openflex/StorDevHost` - regex[`.+`] Openflex storage device host - `StorDriver/Openflex/StorPool` - regex[`[0-9]+`] Openflex storage pool name - `Autoplacer/MaxThroughput` - long The maximum throughput the given storage pool is capable of.
|
1886
2266
|
# @param node [String] node to use
|
1887
2267
|
# @param storagepool [String]
|
1888
2268
|
# @param [Hash] opts the optional parameters
|
@@ -2218,7 +2598,7 @@ module LinstorClient
|
|
2218
2598
|
end
|
2219
2599
|
|
2220
2600
|
# modify a resource connection
|
2221
|
-
# Sets or modifies properties Possible properties are: - `DrbdOptions/PeerDevice/
|
2601
|
+
# Sets or modifies properties Possible properties are: - `DrbdOptions/PeerDevice/resync-rate` - range[`1-8388608`] - `DrbdOptions/PeerDevice/c-plan-ahead` - range[`0-300`] - `DrbdOptions/PeerDevice/c-delay-target` - range[`1-100`] - `DrbdOptions/PeerDevice/c-fill-target` - range[`0-1048576`] - `DrbdOptions/PeerDevice/c-max-rate` - range[`250-4194304`] - `DrbdOptions/PeerDevice/c-min-rate` - range[`0-4194304`] - `DrbdOptions/PeerDevice/bitmap` - boolean - `DrbdOptions/Net/transport` - string - `DrbdOptions/Net/protocol` - enum * A * B * C - `DrbdOptions/Net/timeout` - range[`1-600`] - `DrbdOptions/Net/max-epoch-size` - range[`1-20000`] - `DrbdOptions/Net/connect-int` - range[`1-120`] - `DrbdOptions/Net/ping-int` - range[`1-120`] - `DrbdOptions/Net/sndbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/rcvbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/ko-count` - range[`0-200`] - `DrbdOptions/Net/allow-two-primaries` - boolean - `DrbdOptions/Net/cram-hmac-alg` - string - `DrbdOptions/Net/shared-secret` - string - `DrbdOptions/Net/after-sb-0pri` - enum * disconnect * discard-younger-primary * discard-older-primary * discard-zero-changes * discard-least-changes * discard-local * discard-remote - `DrbdOptions/Net/after-sb-1pri` - enum * disconnect * consensus * discard-secondary * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/after-sb-2pri` - enum * disconnect * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/always-asbp` - boolean - `DrbdOptions/Net/rr-conflict` - enum * disconnect * call-pri-lost * violently * retry-connect - `DrbdOptions/Net/ping-timeout` - range[`1-300`] - `DrbdOptions/Net/data-integrity-alg` - string - `DrbdOptions/Net/tcp-cork` - boolean - `DrbdOptions/Net/on-congestion` - enum * block * pull-ahead * disconnect - `DrbdOptions/Net/congestion-fill` - range[`0-20971520`] - `DrbdOptions/Net/congestion-extents` - range[`67-65534`] - `DrbdOptions/Net/csums-alg` - string - `DrbdOptions/Net/csums-after-crash-only` - boolean - `DrbdOptions/Net/verify-alg` - string - `DrbdOptions/Net/use-rle` - boolean - `DrbdOptions/Net/socket-check-timeout` - range[`0-300`] - `DrbdOptions/Net/fencing` - enum * dont-care * resource-only * resource-and-stonith - `DrbdOptions/Net/max-buffers` - range[`32-131072`] - `DrbdOptions/Net/allow-remote-read` - boolean
|
2222
2602
|
# @param resource [String] resource to use
|
2223
2603
|
# @param node_a [String] source node of the connection
|
2224
2604
|
# @param node_b [String] target node of the connection
|
@@ -2231,7 +2611,7 @@ module LinstorClient
|
|
2231
2611
|
end
|
2232
2612
|
|
2233
2613
|
# modify a resource connection
|
2234
|
-
# Sets or modifies properties Possible properties are: - `DrbdOptions/PeerDevice/
|
2614
|
+
# Sets or modifies properties Possible properties are: - `DrbdOptions/PeerDevice/resync-rate` - range[`1-8388608`] - `DrbdOptions/PeerDevice/c-plan-ahead` - range[`0-300`] - `DrbdOptions/PeerDevice/c-delay-target` - range[`1-100`] - `DrbdOptions/PeerDevice/c-fill-target` - range[`0-1048576`] - `DrbdOptions/PeerDevice/c-max-rate` - range[`250-4194304`] - `DrbdOptions/PeerDevice/c-min-rate` - range[`0-4194304`] - `DrbdOptions/PeerDevice/bitmap` - boolean - `DrbdOptions/Net/transport` - string - `DrbdOptions/Net/protocol` - enum * A * B * C - `DrbdOptions/Net/timeout` - range[`1-600`] - `DrbdOptions/Net/max-epoch-size` - range[`1-20000`] - `DrbdOptions/Net/connect-int` - range[`1-120`] - `DrbdOptions/Net/ping-int` - range[`1-120`] - `DrbdOptions/Net/sndbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/rcvbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/ko-count` - range[`0-200`] - `DrbdOptions/Net/allow-two-primaries` - boolean - `DrbdOptions/Net/cram-hmac-alg` - string - `DrbdOptions/Net/shared-secret` - string - `DrbdOptions/Net/after-sb-0pri` - enum * disconnect * discard-younger-primary * discard-older-primary * discard-zero-changes * discard-least-changes * discard-local * discard-remote - `DrbdOptions/Net/after-sb-1pri` - enum * disconnect * consensus * discard-secondary * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/after-sb-2pri` - enum * disconnect * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/always-asbp` - boolean - `DrbdOptions/Net/rr-conflict` - enum * disconnect * call-pri-lost * violently * retry-connect - `DrbdOptions/Net/ping-timeout` - range[`1-300`] - `DrbdOptions/Net/data-integrity-alg` - string - `DrbdOptions/Net/tcp-cork` - boolean - `DrbdOptions/Net/on-congestion` - enum * block * pull-ahead * disconnect - `DrbdOptions/Net/congestion-fill` - range[`0-20971520`] - `DrbdOptions/Net/congestion-extents` - range[`67-65534`] - `DrbdOptions/Net/csums-alg` - string - `DrbdOptions/Net/csums-after-crash-only` - boolean - `DrbdOptions/Net/verify-alg` - string - `DrbdOptions/Net/use-rle` - boolean - `DrbdOptions/Net/socket-check-timeout` - range[`0-300`] - `DrbdOptions/Net/fencing` - enum * dont-care * resource-only * resource-and-stonith - `DrbdOptions/Net/max-buffers` - range[`32-131072`] - `DrbdOptions/Net/allow-remote-read` - boolean
|
2235
2615
|
# @param resource [String] resource to use
|
2236
2616
|
# @param node_a [String] source node of the connection
|
2237
2617
|
# @param node_b [String] target node of the connection
|
@@ -2639,6 +3019,7 @@ module LinstorClient
|
|
2639
3019
|
# Lists all resource definitions. A single resource definition can be queried by adding its name to the resource string like: /v1/resource-definitions/rsc1
|
2640
3020
|
# @param [Hash] opts the optional parameters
|
2641
3021
|
# @option opts [Array<String>] :resource_definitions Filter only for the specified resource definitions, if not specified no filtering.
|
3022
|
+
# @option opts [Array<String>] :props filter by given properties, full property path
|
2642
3023
|
# @option opts [Integer] :offset number of records to skip for pagination
|
2643
3024
|
# @option opts [Integer] :limit maximum number of records to return
|
2644
3025
|
# @return [Array<ResourceDefinition>]
|
@@ -2651,6 +3032,7 @@ module LinstorClient
|
|
2651
3032
|
# Lists all resource definitions. A single resource definition can be queried by adding its name to the resource string like: /v1/resource-definitions/rsc1
|
2652
3033
|
# @param [Hash] opts the optional parameters
|
2653
3034
|
# @option opts [Array<String>] :resource_definitions Filter only for the specified resource definitions, if not specified no filtering.
|
3035
|
+
# @option opts [Array<String>] :props filter by given properties, full property path
|
2654
3036
|
# @option opts [Integer] :offset number of records to skip for pagination
|
2655
3037
|
# @option opts [Integer] :limit maximum number of records to return
|
2656
3038
|
# @return [Array<(Array<ResourceDefinition>, Integer, Hash)>] Array<ResourceDefinition> data, response status code and response headers
|
@@ -2676,6 +3058,7 @@ module LinstorClient
|
|
2676
3058
|
# query parameters
|
2677
3059
|
query_params = opts[:query_params] || {}
|
2678
3060
|
query_params[:'resource_definitions'] = @api_client.build_collection_param(opts[:'resource_definitions'], :multi) if !opts[:'resource_definitions'].nil?
|
3061
|
+
query_params[:'props'] = @api_client.build_collection_param(opts[:'props'], :multi) if !opts[:'props'].nil?
|
2679
3062
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
2680
3063
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
2681
3064
|
|
@@ -2714,7 +3097,7 @@ module LinstorClient
|
|
2714
3097
|
end
|
2715
3098
|
|
2716
3099
|
# modify a resource-definition
|
2717
|
-
# Sets or modifies properties Possible properties are: - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `DrbdMetaType` - enum * external * internal - `PeerSlotsNewResource` - range[`1-31`] DRBD peer slots to allocate for newly created resources (default 7), the number of peer slots cannot be changed once the resource is created, so allow sufficient slots to increase redundancy in the future - `DrbdProxy/CompressionType` - enum * zlib * lzma * lz4 * zstd - `FileSystem/Type` - enum File system type to use * ext4 * xfs - `FileSystem/MkfsParams` - string Additional parameters for the mkfs command - `NVMe/enabled` - enum * rdma * tcp - `NVMe/enabled` - range[`1-65535`] - `StorDriver/LvcreateType` - enum * linear * striped * mirror * raid0 * raid1 * raid4 * raid5 * raid6 * raid10 * lzma * lz4 - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `DrbdOptions/auto-quorum` - enum Enables automatic setting of the 'quroum' and 'on-no-quroum' property * io-error * suspend-io * disabled - `DrbdOptions/auto-add-quorum-tiebreaker` - boolean_true_false Enables automatic management (creation and deletion) of tie breaking resource - `Writecache/PoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name for writecache - `Writecache/Size` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the writecache in % (0-100) or KiB otherwise - `Writecache/Blocksize` - long 4096 is recommended; the maximum block size is the page size - `Writecache/Options/StartSector` - long offset from the start of cache device in 512-byte sectors - `Writecache/Options/HighWatermark` - long start writeback when the number of used blocks reach this watermark - `Writecache/Options/LowWatermark` - long stop writeback when the number of used blocks drops below this watermark - `Writecache/Options/WritebackJobs` - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - `Writecache/Options/AutocommitBlocks` - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - `Writecache/Options/AutocommitTime` - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - `Writecache/Options/Fua` - enum \"On\" results in \"fua\" as argument, whereas the value \"Off\" results in \"nofua\" argument * On * Off - `Writecache/Options/Additional` - string Additional arguments passed through - `DrbdOptions/Disk/read-balancing` - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - `DrbdOptions/Disk/on-io-error` - enum * pass_on * call-local-io-error * detach - `DrbdOptions/Disk/disk-drain` - boolean - `DrbdOptions/Disk/resync-after` - string - `DrbdOptions/Disk/disk-timeout` - range[`0-6000`] - `DrbdOptions/Disk/disable-write-same` - boolean - `DrbdOptions/Disk/rs-discard-granularity` - range[`0-1048576`] - `DrbdOptions/Disk/disk-flushes` - boolean - `DrbdOptions/Disk/al-extents` - range[`67-65534`] - `DrbdOptions/Disk/al-updates` - boolean - `DrbdOptions/Disk/md-flushes` - boolean - `DrbdOptions/Disk/disk-barrier` - boolean - `DrbdOptions/Disk/discard-zeroes-if-aligned` - boolean - `DrbdOptions/PeerDevice/c-fill-target` - range[`0-1048576`] - `DrbdOptions/PeerDevice/c-max-rate` - range[`250-4194304`] - `DrbdOptions/PeerDevice/resync-rate` - range[`1-8388608`] - `DrbdOptions/PeerDevice/c-delay-target` - range[`1-100`] - `DrbdOptions/PeerDevice/c-min-rate` - range[`0-4194304`] - `DrbdOptions/PeerDevice/bitmap` - boolean - `DrbdOptions/PeerDevice/c-plan-ahead` - range[`0-300`] - `DrbdOptions/Resource/peer-ack-delay` - range[`1-10000`] - `DrbdOptions/Resource/quorum-minimum-redundancy` - enum [`1-32`] * off * majority * all - `DrbdOptions/Resource/max-io-depth` - range[`4-4294967295`] - `DrbdOptions/Resource/auto-promote-timeout` - range[`0-600`] - `DrbdOptions/Resource/quorum` - enum [`1-32`] * off * majority * all - `DrbdOptions/Resource/on-no-data-accessible` - enum * io-error * suspend-io - `DrbdOptions/Resource/auto-promote` - boolean - `DrbdOptions/Resource/cpu-mask` - string - `DrbdOptions/Resource/twopc-timeout` - range[`50-600`] - `DrbdOptions/Resource/twopc-retry-timeout` - range[`1-50`] - `DrbdOptions/Resource/peer-ack-window` - range[`2048-204800`] - `DrbdOptions/Resource/on-no-quorum` - enum * io-error * suspend-io - `DrbdOptions/Net/max-epoch-size` - range[`1-20000`] - `DrbdOptions/Net/protocol` - enum * A * B * C - `DrbdOptions/Net/allow-two-primaries` - boolean - `DrbdOptions/Net/after-sb-0pri` - enum * disconnect * discard-younger-primary * discard-older-primary * discard-zero-changes * discard-least-changes * discard-local * discard-remote - `DrbdOptions/Net/ko-count` - range[`0-200`] - `DrbdOptions/Net/data-integrity-alg` - string - `DrbdOptions/Net/ping-timeout` - range[`1-300`] - `DrbdOptions/Net/sndbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/transport` - string - `DrbdOptions/Net/rcvbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/max-buffers` - range[`32-131072`] - `DrbdOptions/Net/fencing` - enum * dont-care * resource-only * resource-and-stonith - `DrbdOptions/Net/csums-alg` - string - `DrbdOptions/Net/always-asbp` - boolean - `DrbdOptions/Net/congestion-extents` - range[`67-65534`] - `DrbdOptions/Net/on-congestion` - enum * block * pull-ahead * disconnect - `DrbdOptions/Net/ping-int` - range[`1-120`] - `DrbdOptions/Net/rr-conflict` - enum * disconnect * call-pri-lost * violently - `DrbdOptions/Net/tcp-cork` - boolean - `DrbdOptions/Net/use-rle` - boolean - `DrbdOptions/Net/csums-after-crash-only` - boolean - `DrbdOptions/Net/socket-check-timeout` - range[`0-300`] - `DrbdOptions/Net/congestion-fill` - range[`0-20971520`] - `DrbdOptions/Net/cram-hmac-alg` - string - `DrbdOptions/Net/verify-alg` - string - `DrbdOptions/Net/shared-secret` - string - `DrbdOptions/Net/connect-int` - range[`1-120`] - `DrbdOptions/Net/timeout` - range[`1-600`] - `DrbdOptions/Net/after-sb-2pri` - enum * disconnect * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/after-sb-1pri` - enum * disconnect * consensus * discard-secondary * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Handlers/after-resync-target` - string - `DrbdOptions/Handlers/before-resync-target` - string - `DrbdOptions/Handlers/before-resync-source` - string - `DrbdOptions/Handlers/out-of-sync` - string - `DrbdOptions/Handlers/quorum-lost` - string - `DrbdOptions/Handlers/fence-peer` - string - `DrbdOptions/Handlers/unfence-peer` - string - `DrbdOptions/Handlers/initial-split-brain` - string - `DrbdOptions/Handlers/local-io-error` - string - `DrbdOptions/Handlers/pri-lost` - string - `DrbdOptions/Handlers/pri-lost-after-sb` - string - `DrbdOptions/Handlers/pri-on-incon-degr` - string - `DrbdOptions/Handlers/split-brain` - string
|
3100
|
+
# Sets or modifies properties Possible properties are: - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use for external metadata. - `PeerSlotsNewResource` - range[`1-31`] DRBD peer slots to allocate for newly created resources (default 7), the number of peer slots cannot be changed once the resource is created, so allow sufficient slots to increase redundancy in the future - `DrbdProxy/CompressionType` - enum * zlib * lzma * lz4 * zstd - `DrbdOptions/AutoEvictMinReplicaCount` - long The minimum amount of replicas that should be present for a resource at all times. - `FileSystem/Type` - enum File system type to use * ext4 * xfs - `FileSystem/MkfsParams` - string Additional parameters for the mkfs command - `NVMe/TRType` - enum NVMe transportion type * rdma * tcp - `NVMe/Port` - range[`1-65535`] NVMe port - `StorDriver/LvcreateType` - enum * linear * striped * mirror * raid0 * raid1 * raid4 * raid5 * raid6 * raid10 * lzma * lz4 - `StorDriver/LvcreateOptions` - regex[`.*`] Additional parameters added to every 'lvcreate ... ' command - `StorDriver/ZfscreateOptions` - regex[`.*`] Additional parameters added to every 'zfs create ... ' command - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `sys/fs/blkio_throttle_read_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_iops_device - `sys/fs/blkio_throttle_write_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_iops_device - `DrbdOptions/auto-quorum` - enum Enables automatic setting of the 'quroum' and 'on-no-quroum' property * io-error * suspend-io * disabled - `DrbdOptions/auto-add-quorum-tiebreaker` - boolean_true_false Enables automatic management (creation and deletion) of tie breaking resource - `DrbdOptions/auto-diskful` - long Makes a resource diskful if it was continously diskless primary for X minutes - `DrbdOptions/auto-diskful-allow-cleanup` - boolean_true_false Allows this resource to be cleaned up after toggle-disk + resync is finished - `Writecache/PoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name for writecache - `Writecache/Size` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the writecache in % (0-100) or KiB otherwise - `Writecache/Options/StartSector` - long offset from the start of cache device in 512-byte sectors - `Writecache/Options/HighWatermark` - long start writeback when the number of used blocks reach this watermark - `Writecache/Options/LowWatermark` - long stop writeback when the number of used blocks drops below this watermark - `Writecache/Options/WritebackJobs` - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - `Writecache/Options/AutocommitBlocks` - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - `Writecache/Options/AutocommitTime` - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - `Writecache/Options/Fua` - enum \"On\" results in \"fua\" as argument, whereas the value \"Off\" results in \"nofua\" argument * On * Off - `Writecache/Options/Additional` - string Additional arguments passed through - `Cache/OpMode` - enum Operation mode * writeback * writethrough * passthrough - `Cache/MetaPool` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Name of the storage pool used for the cache metadata. If not specified, this will default to the CachePool property - `Cache/Metasize` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the cache in % (0-100) or KiB otherwise. - `Cache/CachePool` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Name of the storage pool used for the cache cache device - `Cache/Cachesize` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the cache in % (0-100) or KiB otherwise. - `Cache/Blocksize` - long Block size - `Cache/Policy` - enum Replacemant policy * mq * smq * cleaner - `SnapshotShipping/SourceNode` - string Node name of the snapshot shipping source - `SnapshotShipping/TargetNode` - string Node name of the snapshot shipping target - `SnapshotShipping/RunEvery` - long Runs every X minutes an auto-snapshot-shipping unless the current snapshot-shipping is still running. In this case a new one will be started asap. - `SnapshotShipping/Keep` - long Keeps the last X sihpped snapshots. Removing this property or having a value <= 0 disables auto-cleanup, all auto-snapshots will be kept - `AutoSnapshot/RunEvery` - long Runs every X minutes an snapshot-creation. Removing this property or having a value <= 0 disables auto-snapshotting. - `AutoSnapshot/Keep` - long Keeps the last X auto-snapshots. Removing this property or having a value <= 0 disables auto-cleanup, all auto-snapshots will be kept - `AutoSnapshot/NextAutoId` - long The next ID to try for auto-snapshots - `DrbdOptions/Disk/on-io-error` - enum * pass_on * call-local-io-error * detach - `DrbdOptions/Disk/disk-barrier` - boolean - `DrbdOptions/Disk/disk-flushes` - boolean - `DrbdOptions/Disk/disk-drain` - boolean - `DrbdOptions/Disk/md-flushes` - boolean - `DrbdOptions/Disk/resync-after` - string - `DrbdOptions/Disk/al-extents` - range[`67-65534`] - `DrbdOptions/Disk/al-updates` - boolean - `DrbdOptions/Disk/discard-zeroes-if-aligned` - boolean - `DrbdOptions/Disk/disable-write-same` - boolean - `DrbdOptions/Disk/disk-timeout` - range[`0-6000`] - `DrbdOptions/Disk/read-balancing` - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - `DrbdOptions/Disk/rs-discard-granularity` - range[`0-1048576`] - `DrbdOptions/PeerDevice/resync-rate` - range[`1-8388608`] - `DrbdOptions/PeerDevice/c-plan-ahead` - range[`0-300`] - `DrbdOptions/PeerDevice/c-delay-target` - range[`1-100`] - `DrbdOptions/PeerDevice/c-fill-target` - range[`0-1048576`] - `DrbdOptions/PeerDevice/c-max-rate` - range[`250-4194304`] - `DrbdOptions/PeerDevice/c-min-rate` - range[`0-4194304`] - `DrbdOptions/PeerDevice/bitmap` - boolean - `DrbdOptions/Resource/cpu-mask` - string - `DrbdOptions/Resource/on-no-data-accessible` - enum * io-error * suspend-io - `DrbdOptions/Resource/auto-promote` - boolean - `DrbdOptions/Resource/peer-ack-window` - range[`2048-204800`] - `DrbdOptions/Resource/peer-ack-delay` - range[`1-10000`] - `DrbdOptions/Resource/twopc-timeout` - range[`50-600`] - `DrbdOptions/Resource/twopc-retry-timeout` - range[`1-50`] - `DrbdOptions/Resource/auto-promote-timeout` - range[`0-600`] - `DrbdOptions/Resource/max-io-depth` - range[`4-4294967295`] - `DrbdOptions/Resource/quorum` - enum [`1-32`] * off * majority * all - `DrbdOptions/Resource/on-no-quorum` - enum * io-error * suspend-io - `DrbdOptions/Resource/quorum-minimum-redundancy` - enum [`1-32`] * off * majority * all - `DrbdOptions/Net/transport` - string - `DrbdOptions/Net/protocol` - enum * A * B * C - `DrbdOptions/Net/timeout` - range[`1-600`] - `DrbdOptions/Net/max-epoch-size` - range[`1-20000`] - `DrbdOptions/Net/connect-int` - range[`1-120`] - `DrbdOptions/Net/ping-int` - range[`1-120`] - `DrbdOptions/Net/sndbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/rcvbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/ko-count` - range[`0-200`] - `DrbdOptions/Net/allow-two-primaries` - boolean - `DrbdOptions/Net/cram-hmac-alg` - string - `DrbdOptions/Net/shared-secret` - string - `DrbdOptions/Net/after-sb-0pri` - enum * disconnect * discard-younger-primary * discard-older-primary * discard-zero-changes * discard-least-changes * discard-local * discard-remote - `DrbdOptions/Net/after-sb-1pri` - enum * disconnect * consensus * discard-secondary * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/after-sb-2pri` - enum * disconnect * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/always-asbp` - boolean - `DrbdOptions/Net/rr-conflict` - enum * disconnect * call-pri-lost * violently * retry-connect - `DrbdOptions/Net/ping-timeout` - range[`1-300`] - `DrbdOptions/Net/data-integrity-alg` - string - `DrbdOptions/Net/tcp-cork` - boolean - `DrbdOptions/Net/on-congestion` - enum * block * pull-ahead * disconnect - `DrbdOptions/Net/congestion-fill` - range[`0-20971520`] - `DrbdOptions/Net/congestion-extents` - range[`67-65534`] - `DrbdOptions/Net/csums-alg` - string - `DrbdOptions/Net/csums-after-crash-only` - boolean - `DrbdOptions/Net/verify-alg` - string - `DrbdOptions/Net/use-rle` - boolean - `DrbdOptions/Net/socket-check-timeout` - range[`0-300`] - `DrbdOptions/Net/fencing` - enum * dont-care * resource-only * resource-and-stonith - `DrbdOptions/Net/max-buffers` - range[`32-131072`] - `DrbdOptions/Net/allow-remote-read` - boolean - `DrbdOptions/Handlers/after-resync-target` - string - `DrbdOptions/Handlers/before-resync-target` - string - `DrbdOptions/Handlers/before-resync-source` - string - `DrbdOptions/Handlers/out-of-sync` - string - `DrbdOptions/Handlers/quorum-lost` - string - `DrbdOptions/Handlers/fence-peer` - string - `DrbdOptions/Handlers/unfence-peer` - string - `DrbdOptions/Handlers/initial-split-brain` - string - `DrbdOptions/Handlers/local-io-error` - string - `DrbdOptions/Handlers/pri-lost` - string - `DrbdOptions/Handlers/pri-lost-after-sb` - string - `DrbdOptions/Handlers/pri-on-incon-degr` - string - `DrbdOptions/Handlers/split-brain` - string
|
2718
3101
|
# @param resource [String] resource to use
|
2719
3102
|
# @param [Hash] opts the optional parameters
|
2720
3103
|
# @option opts [ResourceDefinitionModify] :resource_definition_modify
|
@@ -2725,7 +3108,7 @@ module LinstorClient
|
|
2725
3108
|
end
|
2726
3109
|
|
2727
3110
|
# modify a resource-definition
|
2728
|
-
# Sets or modifies properties Possible properties are: - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `DrbdMetaType` - enum * external * internal - `PeerSlotsNewResource` - range[`1-31`] DRBD peer slots to allocate for newly created resources (default 7), the number of peer slots cannot be changed once the resource is created, so allow sufficient slots to increase redundancy in the future - `DrbdProxy/CompressionType` - enum * zlib * lzma * lz4 * zstd - `FileSystem/Type` - enum File system type to use * ext4 * xfs - `FileSystem/MkfsParams` - string Additional parameters for the mkfs command - `NVMe/enabled` - enum * rdma * tcp - `NVMe/enabled` - range[`1-65535`] - `StorDriver/LvcreateType` - enum * linear * striped * mirror * raid0 * raid1 * raid4 * raid5 * raid6 * raid10 * lzma * lz4 - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `DrbdOptions/auto-quorum` - enum Enables automatic setting of the 'quroum' and 'on-no-quroum' property * io-error * suspend-io * disabled - `DrbdOptions/auto-add-quorum-tiebreaker` - boolean_true_false Enables automatic management (creation and deletion) of tie breaking resource - `Writecache/PoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name for writecache - `Writecache/Size` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the writecache in % (0-100) or KiB otherwise - `Writecache/Blocksize` - long 4096 is recommended; the maximum block size is the page size - `Writecache/Options/StartSector` - long offset from the start of cache device in 512-byte sectors - `Writecache/Options/HighWatermark` - long start writeback when the number of used blocks reach this watermark - `Writecache/Options/LowWatermark` - long stop writeback when the number of used blocks drops below this watermark - `Writecache/Options/WritebackJobs` - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - `Writecache/Options/AutocommitBlocks` - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - `Writecache/Options/AutocommitTime` - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - `Writecache/Options/Fua` - enum \"On\" results in \"fua\" as argument, whereas the value \"Off\" results in \"nofua\" argument * On * Off - `Writecache/Options/Additional` - string Additional arguments passed through - `DrbdOptions/Disk/read-balancing` - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - `DrbdOptions/Disk/on-io-error` - enum * pass_on * call-local-io-error * detach - `DrbdOptions/Disk/disk-drain` - boolean - `DrbdOptions/Disk/resync-after` - string - `DrbdOptions/Disk/disk-timeout` - range[`0-6000`] - `DrbdOptions/Disk/disable-write-same` - boolean - `DrbdOptions/Disk/rs-discard-granularity` - range[`0-1048576`] - `DrbdOptions/Disk/disk-flushes` - boolean - `DrbdOptions/Disk/al-extents` - range[`67-65534`] - `DrbdOptions/Disk/al-updates` - boolean - `DrbdOptions/Disk/md-flushes` - boolean - `DrbdOptions/Disk/disk-barrier` - boolean - `DrbdOptions/Disk/discard-zeroes-if-aligned` - boolean - `DrbdOptions/PeerDevice/c-fill-target` - range[`0-1048576`] - `DrbdOptions/PeerDevice/c-max-rate` - range[`250-4194304`] - `DrbdOptions/PeerDevice/resync-rate` - range[`1-8388608`] - `DrbdOptions/PeerDevice/c-delay-target` - range[`1-100`] - `DrbdOptions/PeerDevice/c-min-rate` - range[`0-4194304`] - `DrbdOptions/PeerDevice/bitmap` - boolean - `DrbdOptions/PeerDevice/c-plan-ahead` - range[`0-300`] - `DrbdOptions/Resource/peer-ack-delay` - range[`1-10000`] - `DrbdOptions/Resource/quorum-minimum-redundancy` - enum [`1-32`] * off * majority * all - `DrbdOptions/Resource/max-io-depth` - range[`4-4294967295`] - `DrbdOptions/Resource/auto-promote-timeout` - range[`0-600`] - `DrbdOptions/Resource/quorum` - enum [`1-32`] * off * majority * all - `DrbdOptions/Resource/on-no-data-accessible` - enum * io-error * suspend-io - `DrbdOptions/Resource/auto-promote` - boolean - `DrbdOptions/Resource/cpu-mask` - string - `DrbdOptions/Resource/twopc-timeout` - range[`50-600`] - `DrbdOptions/Resource/twopc-retry-timeout` - range[`1-50`] - `DrbdOptions/Resource/peer-ack-window` - range[`2048-204800`] - `DrbdOptions/Resource/on-no-quorum` - enum * io-error * suspend-io - `DrbdOptions/Net/max-epoch-size` - range[`1-20000`] - `DrbdOptions/Net/protocol` - enum * A * B * C - `DrbdOptions/Net/allow-two-primaries` - boolean - `DrbdOptions/Net/after-sb-0pri` - enum * disconnect * discard-younger-primary * discard-older-primary * discard-zero-changes * discard-least-changes * discard-local * discard-remote - `DrbdOptions/Net/ko-count` - range[`0-200`] - `DrbdOptions/Net/data-integrity-alg` - string - `DrbdOptions/Net/ping-timeout` - range[`1-300`] - `DrbdOptions/Net/sndbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/transport` - string - `DrbdOptions/Net/rcvbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/max-buffers` - range[`32-131072`] - `DrbdOptions/Net/fencing` - enum * dont-care * resource-only * resource-and-stonith - `DrbdOptions/Net/csums-alg` - string - `DrbdOptions/Net/always-asbp` - boolean - `DrbdOptions/Net/congestion-extents` - range[`67-65534`] - `DrbdOptions/Net/on-congestion` - enum * block * pull-ahead * disconnect - `DrbdOptions/Net/ping-int` - range[`1-120`] - `DrbdOptions/Net/rr-conflict` - enum * disconnect * call-pri-lost * violently - `DrbdOptions/Net/tcp-cork` - boolean - `DrbdOptions/Net/use-rle` - boolean - `DrbdOptions/Net/csums-after-crash-only` - boolean - `DrbdOptions/Net/socket-check-timeout` - range[`0-300`] - `DrbdOptions/Net/congestion-fill` - range[`0-20971520`] - `DrbdOptions/Net/cram-hmac-alg` - string - `DrbdOptions/Net/verify-alg` - string - `DrbdOptions/Net/shared-secret` - string - `DrbdOptions/Net/connect-int` - range[`1-120`] - `DrbdOptions/Net/timeout` - range[`1-600`] - `DrbdOptions/Net/after-sb-2pri` - enum * disconnect * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/after-sb-1pri` - enum * disconnect * consensus * discard-secondary * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Handlers/after-resync-target` - string - `DrbdOptions/Handlers/before-resync-target` - string - `DrbdOptions/Handlers/before-resync-source` - string - `DrbdOptions/Handlers/out-of-sync` - string - `DrbdOptions/Handlers/quorum-lost` - string - `DrbdOptions/Handlers/fence-peer` - string - `DrbdOptions/Handlers/unfence-peer` - string - `DrbdOptions/Handlers/initial-split-brain` - string - `DrbdOptions/Handlers/local-io-error` - string - `DrbdOptions/Handlers/pri-lost` - string - `DrbdOptions/Handlers/pri-lost-after-sb` - string - `DrbdOptions/Handlers/pri-on-incon-degr` - string - `DrbdOptions/Handlers/split-brain` - string
|
3111
|
+
# Sets or modifies properties Possible properties are: - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use for external metadata. - `PeerSlotsNewResource` - range[`1-31`] DRBD peer slots to allocate for newly created resources (default 7), the number of peer slots cannot be changed once the resource is created, so allow sufficient slots to increase redundancy in the future - `DrbdProxy/CompressionType` - enum * zlib * lzma * lz4 * zstd - `DrbdOptions/AutoEvictMinReplicaCount` - long The minimum amount of replicas that should be present for a resource at all times. - `FileSystem/Type` - enum File system type to use * ext4 * xfs - `FileSystem/MkfsParams` - string Additional parameters for the mkfs command - `NVMe/TRType` - enum NVMe transportion type * rdma * tcp - `NVMe/Port` - range[`1-65535`] NVMe port - `StorDriver/LvcreateType` - enum * linear * striped * mirror * raid0 * raid1 * raid4 * raid5 * raid6 * raid10 * lzma * lz4 - `StorDriver/LvcreateOptions` - regex[`.*`] Additional parameters added to every 'lvcreate ... ' command - `StorDriver/ZfscreateOptions` - regex[`.*`] Additional parameters added to every 'zfs create ... ' command - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `sys/fs/blkio_throttle_read_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_iops_device - `sys/fs/blkio_throttle_write_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_iops_device - `DrbdOptions/auto-quorum` - enum Enables automatic setting of the 'quroum' and 'on-no-quroum' property * io-error * suspend-io * disabled - `DrbdOptions/auto-add-quorum-tiebreaker` - boolean_true_false Enables automatic management (creation and deletion) of tie breaking resource - `DrbdOptions/auto-diskful` - long Makes a resource diskful if it was continously diskless primary for X minutes - `DrbdOptions/auto-diskful-allow-cleanup` - boolean_true_false Allows this resource to be cleaned up after toggle-disk + resync is finished - `Writecache/PoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name for writecache - `Writecache/Size` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the writecache in % (0-100) or KiB otherwise - `Writecache/Options/StartSector` - long offset from the start of cache device in 512-byte sectors - `Writecache/Options/HighWatermark` - long start writeback when the number of used blocks reach this watermark - `Writecache/Options/LowWatermark` - long stop writeback when the number of used blocks drops below this watermark - `Writecache/Options/WritebackJobs` - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - `Writecache/Options/AutocommitBlocks` - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - `Writecache/Options/AutocommitTime` - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - `Writecache/Options/Fua` - enum \"On\" results in \"fua\" as argument, whereas the value \"Off\" results in \"nofua\" argument * On * Off - `Writecache/Options/Additional` - string Additional arguments passed through - `Cache/OpMode` - enum Operation mode * writeback * writethrough * passthrough - `Cache/MetaPool` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Name of the storage pool used for the cache metadata. If not specified, this will default to the CachePool property - `Cache/Metasize` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the cache in % (0-100) or KiB otherwise. - `Cache/CachePool` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Name of the storage pool used for the cache cache device - `Cache/Cachesize` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the cache in % (0-100) or KiB otherwise. - `Cache/Blocksize` - long Block size - `Cache/Policy` - enum Replacemant policy * mq * smq * cleaner - `SnapshotShipping/SourceNode` - string Node name of the snapshot shipping source - `SnapshotShipping/TargetNode` - string Node name of the snapshot shipping target - `SnapshotShipping/RunEvery` - long Runs every X minutes an auto-snapshot-shipping unless the current snapshot-shipping is still running. In this case a new one will be started asap. - `SnapshotShipping/Keep` - long Keeps the last X sihpped snapshots. Removing this property or having a value <= 0 disables auto-cleanup, all auto-snapshots will be kept - `AutoSnapshot/RunEvery` - long Runs every X minutes an snapshot-creation. Removing this property or having a value <= 0 disables auto-snapshotting. - `AutoSnapshot/Keep` - long Keeps the last X auto-snapshots. Removing this property or having a value <= 0 disables auto-cleanup, all auto-snapshots will be kept - `AutoSnapshot/NextAutoId` - long The next ID to try for auto-snapshots - `DrbdOptions/Disk/on-io-error` - enum * pass_on * call-local-io-error * detach - `DrbdOptions/Disk/disk-barrier` - boolean - `DrbdOptions/Disk/disk-flushes` - boolean - `DrbdOptions/Disk/disk-drain` - boolean - `DrbdOptions/Disk/md-flushes` - boolean - `DrbdOptions/Disk/resync-after` - string - `DrbdOptions/Disk/al-extents` - range[`67-65534`] - `DrbdOptions/Disk/al-updates` - boolean - `DrbdOptions/Disk/discard-zeroes-if-aligned` - boolean - `DrbdOptions/Disk/disable-write-same` - boolean - `DrbdOptions/Disk/disk-timeout` - range[`0-6000`] - `DrbdOptions/Disk/read-balancing` - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - `DrbdOptions/Disk/rs-discard-granularity` - range[`0-1048576`] - `DrbdOptions/PeerDevice/resync-rate` - range[`1-8388608`] - `DrbdOptions/PeerDevice/c-plan-ahead` - range[`0-300`] - `DrbdOptions/PeerDevice/c-delay-target` - range[`1-100`] - `DrbdOptions/PeerDevice/c-fill-target` - range[`0-1048576`] - `DrbdOptions/PeerDevice/c-max-rate` - range[`250-4194304`] - `DrbdOptions/PeerDevice/c-min-rate` - range[`0-4194304`] - `DrbdOptions/PeerDevice/bitmap` - boolean - `DrbdOptions/Resource/cpu-mask` - string - `DrbdOptions/Resource/on-no-data-accessible` - enum * io-error * suspend-io - `DrbdOptions/Resource/auto-promote` - boolean - `DrbdOptions/Resource/peer-ack-window` - range[`2048-204800`] - `DrbdOptions/Resource/peer-ack-delay` - range[`1-10000`] - `DrbdOptions/Resource/twopc-timeout` - range[`50-600`] - `DrbdOptions/Resource/twopc-retry-timeout` - range[`1-50`] - `DrbdOptions/Resource/auto-promote-timeout` - range[`0-600`] - `DrbdOptions/Resource/max-io-depth` - range[`4-4294967295`] - `DrbdOptions/Resource/quorum` - enum [`1-32`] * off * majority * all - `DrbdOptions/Resource/on-no-quorum` - enum * io-error * suspend-io - `DrbdOptions/Resource/quorum-minimum-redundancy` - enum [`1-32`] * off * majority * all - `DrbdOptions/Net/transport` - string - `DrbdOptions/Net/protocol` - enum * A * B * C - `DrbdOptions/Net/timeout` - range[`1-600`] - `DrbdOptions/Net/max-epoch-size` - range[`1-20000`] - `DrbdOptions/Net/connect-int` - range[`1-120`] - `DrbdOptions/Net/ping-int` - range[`1-120`] - `DrbdOptions/Net/sndbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/rcvbuf-size` - range[`0-10485760`] - `DrbdOptions/Net/ko-count` - range[`0-200`] - `DrbdOptions/Net/allow-two-primaries` - boolean - `DrbdOptions/Net/cram-hmac-alg` - string - `DrbdOptions/Net/shared-secret` - string - `DrbdOptions/Net/after-sb-0pri` - enum * disconnect * discard-younger-primary * discard-older-primary * discard-zero-changes * discard-least-changes * discard-local * discard-remote - `DrbdOptions/Net/after-sb-1pri` - enum * disconnect * consensus * discard-secondary * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/after-sb-2pri` - enum * disconnect * call-pri-lost-after-sb * violently-as0p - `DrbdOptions/Net/always-asbp` - boolean - `DrbdOptions/Net/rr-conflict` - enum * disconnect * call-pri-lost * violently * retry-connect - `DrbdOptions/Net/ping-timeout` - range[`1-300`] - `DrbdOptions/Net/data-integrity-alg` - string - `DrbdOptions/Net/tcp-cork` - boolean - `DrbdOptions/Net/on-congestion` - enum * block * pull-ahead * disconnect - `DrbdOptions/Net/congestion-fill` - range[`0-20971520`] - `DrbdOptions/Net/congestion-extents` - range[`67-65534`] - `DrbdOptions/Net/csums-alg` - string - `DrbdOptions/Net/csums-after-crash-only` - boolean - `DrbdOptions/Net/verify-alg` - string - `DrbdOptions/Net/use-rle` - boolean - `DrbdOptions/Net/socket-check-timeout` - range[`0-300`] - `DrbdOptions/Net/fencing` - enum * dont-care * resource-only * resource-and-stonith - `DrbdOptions/Net/max-buffers` - range[`32-131072`] - `DrbdOptions/Net/allow-remote-read` - boolean - `DrbdOptions/Handlers/after-resync-target` - string - `DrbdOptions/Handlers/before-resync-target` - string - `DrbdOptions/Handlers/before-resync-source` - string - `DrbdOptions/Handlers/out-of-sync` - string - `DrbdOptions/Handlers/quorum-lost` - string - `DrbdOptions/Handlers/fence-peer` - string - `DrbdOptions/Handlers/unfence-peer` - string - `DrbdOptions/Handlers/initial-split-brain` - string - `DrbdOptions/Handlers/local-io-error` - string - `DrbdOptions/Handlers/pri-lost` - string - `DrbdOptions/Handlers/pri-lost-after-sb` - string - `DrbdOptions/Handlers/pri-on-incon-degr` - string - `DrbdOptions/Handlers/split-brain` - string
|
2729
3112
|
# @param resource [String] resource to use
|
2730
3113
|
# @param [Hash] opts the optional parameters
|
2731
3114
|
# @option opts [ResourceDefinitionModify] :resource_definition_modify
|
@@ -3210,6 +3593,7 @@ module LinstorClient
|
|
3210
3593
|
# Lists all resource groups. A single resource group can be queried by adding its name to the resource string like: /v1/resource-groups/rscgrp1
|
3211
3594
|
# @param [Hash] opts the optional parameters
|
3212
3595
|
# @option opts [Array<String>] :resource_groups Filter only for the specified resource groups, if not specified no filtering.
|
3596
|
+
# @option opts [Array<String>] :props filter by given properties, full property path
|
3213
3597
|
# @option opts [Integer] :offset number of records to skip for pagination
|
3214
3598
|
# @option opts [Integer] :limit maximum number of records to return
|
3215
3599
|
# @return [Array<ResourceGroup>]
|
@@ -3222,6 +3606,7 @@ module LinstorClient
|
|
3222
3606
|
# Lists all resource groups. A single resource group can be queried by adding its name to the resource string like: /v1/resource-groups/rscgrp1
|
3223
3607
|
# @param [Hash] opts the optional parameters
|
3224
3608
|
# @option opts [Array<String>] :resource_groups Filter only for the specified resource groups, if not specified no filtering.
|
3609
|
+
# @option opts [Array<String>] :props filter by given properties, full property path
|
3225
3610
|
# @option opts [Integer] :offset number of records to skip for pagination
|
3226
3611
|
# @option opts [Integer] :limit maximum number of records to return
|
3227
3612
|
# @return [Array<(Array<ResourceGroup>, Integer, Hash)>] Array<ResourceGroup> data, response status code and response headers
|
@@ -3247,6 +3632,7 @@ module LinstorClient
|
|
3247
3632
|
# query parameters
|
3248
3633
|
query_params = opts[:query_params] || {}
|
3249
3634
|
query_params[:'resource_groups'] = @api_client.build_collection_param(opts[:'resource_groups'], :multi) if !opts[:'resource_groups'].nil?
|
3635
|
+
query_params[:'props'] = @api_client.build_collection_param(opts[:'props'], :multi) if !opts[:'props'].nil?
|
3250
3636
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
3251
3637
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
3252
3638
|
|
@@ -3662,7 +4048,7 @@ module LinstorClient
|
|
3662
4048
|
end
|
3663
4049
|
|
3664
4050
|
# modify a resource
|
3665
|
-
# Sets or modifies properties Possible properties are: - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use
|
4051
|
+
# Sets or modifies properties Possible properties are: - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use for external metadata. - `PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `PeerSlots` - range[`1-31`] DRBD peer slots present on resource - `FileSystem/Type` - enum File system type to use * ext4 * xfs - `FileSystem/MkfsParams` - string Additional parameters for the mkfs command - `NVMe/PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `sys/fs/blkio_throttle_read_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_iops_device - `sys/fs/blkio_throttle_write_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_iops_device - `DrbdOptions/auto-diskful-allow-cleanup` - boolean_true_false Allows this resource to be cleaned up after toggle-disk + resync is finished
|
3666
4052
|
# @param resource [String] resource to use
|
3667
4053
|
# @param node [String] node to use
|
3668
4054
|
# @param [Hash] opts the optional parameters
|
@@ -3674,7 +4060,7 @@ module LinstorClient
|
|
3674
4060
|
end
|
3675
4061
|
|
3676
4062
|
# modify a resource
|
3677
|
-
# Sets or modifies properties Possible properties are: - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use
|
4063
|
+
# Sets or modifies properties Possible properties are: - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use for external metadata. - `PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `PeerSlots` - range[`1-31`] DRBD peer slots present on resource - `FileSystem/Type` - enum File system type to use * ext4 * xfs - `FileSystem/MkfsParams` - string Additional parameters for the mkfs command - `NVMe/PrefNic` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Preferred network interface to use - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `sys/fs/blkio_throttle_read_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_iops_device - `sys/fs/blkio_throttle_write_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_iops_device - `DrbdOptions/auto-diskful-allow-cleanup` - boolean_true_false Allows this resource to be cleaned up after toggle-disk + resync is finished
|
3678
4064
|
# @param resource [String] resource to use
|
3679
4065
|
# @param node [String] node to use
|
3680
4066
|
# @param [Hash] opts the optional parameters
|
@@ -4403,7 +4789,232 @@ module LinstorClient
|
|
4403
4789
|
fail ArgumentError, "Missing the required parameter 'node' when calling DevelopersApi.resource_toggle_diskless"
|
4404
4790
|
end
|
4405
4791
|
# resource path
|
4406
|
-
local_var_path = '/v1/resource-definitions/{resource}/resources/{node}/toggle-disk/diskless'.sub('{' + 'resource' + '}', CGI.escape(resource.to_s)).sub('{' + 'node' + '}', CGI.escape(node.to_s))
|
4792
|
+
local_var_path = '/v1/resource-definitions/{resource}/resources/{node}/toggle-disk/diskless'.sub('{' + 'resource' + '}', CGI.escape(resource.to_s)).sub('{' + 'node' + '}', CGI.escape(node.to_s))
|
4793
|
+
|
4794
|
+
# query parameters
|
4795
|
+
query_params = opts[:query_params] || {}
|
4796
|
+
|
4797
|
+
# header parameters
|
4798
|
+
header_params = opts[:header_params] || {}
|
4799
|
+
# HTTP header 'Accept' (if needed)
|
4800
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
4801
|
+
|
4802
|
+
# form parameters
|
4803
|
+
form_params = opts[:form_params] || {}
|
4804
|
+
|
4805
|
+
# http body (model)
|
4806
|
+
post_body = opts[:debug_body]
|
4807
|
+
|
4808
|
+
# return_type
|
4809
|
+
return_type = opts[:debug_return_type] || 'ApiCallRc'
|
4810
|
+
|
4811
|
+
# auth_names
|
4812
|
+
auth_names = opts[:debug_auth_names] || []
|
4813
|
+
|
4814
|
+
new_options = opts.merge(
|
4815
|
+
:operation => :"DevelopersApi.resource_toggle_diskless",
|
4816
|
+
:header_params => header_params,
|
4817
|
+
:query_params => query_params,
|
4818
|
+
:form_params => form_params,
|
4819
|
+
:body => post_body,
|
4820
|
+
:auth_names => auth_names,
|
4821
|
+
:return_type => return_type
|
4822
|
+
)
|
4823
|
+
|
4824
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
4825
|
+
if @api_client.config.debugging
|
4826
|
+
@api_client.config.logger.debug "API called: DevelopersApi#resource_toggle_diskless\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4827
|
+
end
|
4828
|
+
return data, status_code, headers
|
4829
|
+
end
|
4830
|
+
|
4831
|
+
# toggle a resource to diskless resource
|
4832
|
+
# toggle a resource to a diskless.
|
4833
|
+
# @param resource [String] resource to use
|
4834
|
+
# @param node [String] node to use
|
4835
|
+
# @param disklesspool [String]
|
4836
|
+
# @param [Hash] opts the optional parameters
|
4837
|
+
# @return [ApiCallRc]
|
4838
|
+
def resource_toggle_diskless_disklesspool(resource, node, disklesspool, opts = {})
|
4839
|
+
data, _status_code, _headers = resource_toggle_diskless_disklesspool_with_http_info(resource, node, disklesspool, opts)
|
4840
|
+
data
|
4841
|
+
end
|
4842
|
+
|
4843
|
+
# toggle a resource to diskless resource
|
4844
|
+
# toggle a resource to a diskless.
|
4845
|
+
# @param resource [String] resource to use
|
4846
|
+
# @param node [String] node to use
|
4847
|
+
# @param disklesspool [String]
|
4848
|
+
# @param [Hash] opts the optional parameters
|
4849
|
+
# @return [Array<(ApiCallRc, Integer, Hash)>] ApiCallRc data, response status code and response headers
|
4850
|
+
def resource_toggle_diskless_disklesspool_with_http_info(resource, node, disklesspool, opts = {})
|
4851
|
+
if @api_client.config.debugging
|
4852
|
+
@api_client.config.logger.debug 'Calling API: DevelopersApi.resource_toggle_diskless_disklesspool ...'
|
4853
|
+
end
|
4854
|
+
# verify the required parameter 'resource' is set
|
4855
|
+
if @api_client.config.client_side_validation && resource.nil?
|
4856
|
+
fail ArgumentError, "Missing the required parameter 'resource' when calling DevelopersApi.resource_toggle_diskless_disklesspool"
|
4857
|
+
end
|
4858
|
+
# verify the required parameter 'node' is set
|
4859
|
+
if @api_client.config.client_side_validation && node.nil?
|
4860
|
+
fail ArgumentError, "Missing the required parameter 'node' when calling DevelopersApi.resource_toggle_diskless_disklesspool"
|
4861
|
+
end
|
4862
|
+
# verify the required parameter 'disklesspool' is set
|
4863
|
+
if @api_client.config.client_side_validation && disklesspool.nil?
|
4864
|
+
fail ArgumentError, "Missing the required parameter 'disklesspool' when calling DevelopersApi.resource_toggle_diskless_disklesspool"
|
4865
|
+
end
|
4866
|
+
# resource path
|
4867
|
+
local_var_path = '/v1/resource-definitions/{resource}/resources/{node}/toggle-disk/diskless/{disklesspool}'.sub('{' + 'resource' + '}', CGI.escape(resource.to_s)).sub('{' + 'node' + '}', CGI.escape(node.to_s)).sub('{' + 'disklesspool' + '}', CGI.escape(disklesspool.to_s))
|
4868
|
+
|
4869
|
+
# query parameters
|
4870
|
+
query_params = opts[:query_params] || {}
|
4871
|
+
|
4872
|
+
# header parameters
|
4873
|
+
header_params = opts[:header_params] || {}
|
4874
|
+
# HTTP header 'Accept' (if needed)
|
4875
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
4876
|
+
|
4877
|
+
# form parameters
|
4878
|
+
form_params = opts[:form_params] || {}
|
4879
|
+
|
4880
|
+
# http body (model)
|
4881
|
+
post_body = opts[:debug_body]
|
4882
|
+
|
4883
|
+
# return_type
|
4884
|
+
return_type = opts[:debug_return_type] || 'ApiCallRc'
|
4885
|
+
|
4886
|
+
# auth_names
|
4887
|
+
auth_names = opts[:debug_auth_names] || []
|
4888
|
+
|
4889
|
+
new_options = opts.merge(
|
4890
|
+
:operation => :"DevelopersApi.resource_toggle_diskless_disklesspool",
|
4891
|
+
:header_params => header_params,
|
4892
|
+
:query_params => query_params,
|
4893
|
+
:form_params => form_params,
|
4894
|
+
:body => post_body,
|
4895
|
+
:auth_names => auth_names,
|
4896
|
+
:return_type => return_type
|
4897
|
+
)
|
4898
|
+
|
4899
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
4900
|
+
if @api_client.config.debugging
|
4901
|
+
@api_client.config.logger.debug "API called: DevelopersApi#resource_toggle_diskless_disklesspool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4902
|
+
end
|
4903
|
+
return data, status_code, headers
|
4904
|
+
end
|
4905
|
+
|
4906
|
+
# lists all volumes of a resources
|
4907
|
+
# Lists all volumes for a resource-definition. A single volume can be queried by adding its volume number to the resource string like: /v1/resource-definitions/rsc1/resources/nodeA/volumes/0
|
4908
|
+
# @param resource [String] resource to use
|
4909
|
+
# @param node [String] node to use
|
4910
|
+
# @param [Hash] opts the optional parameters
|
4911
|
+
# @option opts [Integer] :offset number of records to skip for pagination
|
4912
|
+
# @option opts [Integer] :limit maximum number of records to return
|
4913
|
+
# @return [Array<Volume>]
|
4914
|
+
def resource_volume_list(resource, node, opts = {})
|
4915
|
+
data, _status_code, _headers = resource_volume_list_with_http_info(resource, node, opts)
|
4916
|
+
data
|
4917
|
+
end
|
4918
|
+
|
4919
|
+
# lists all volumes of a resources
|
4920
|
+
# Lists all volumes for a resource-definition. A single volume can be queried by adding its volume number to the resource string like: /v1/resource-definitions/rsc1/resources/nodeA/volumes/0
|
4921
|
+
# @param resource [String] resource to use
|
4922
|
+
# @param node [String] node to use
|
4923
|
+
# @param [Hash] opts the optional parameters
|
4924
|
+
# @option opts [Integer] :offset number of records to skip for pagination
|
4925
|
+
# @option opts [Integer] :limit maximum number of records to return
|
4926
|
+
# @return [Array<(Array<Volume>, Integer, Hash)>] Array<Volume> data, response status code and response headers
|
4927
|
+
def resource_volume_list_with_http_info(resource, node, opts = {})
|
4928
|
+
if @api_client.config.debugging
|
4929
|
+
@api_client.config.logger.debug 'Calling API: DevelopersApi.resource_volume_list ...'
|
4930
|
+
end
|
4931
|
+
# verify the required parameter 'resource' is set
|
4932
|
+
if @api_client.config.client_side_validation && resource.nil?
|
4933
|
+
fail ArgumentError, "Missing the required parameter 'resource' when calling DevelopersApi.resource_volume_list"
|
4934
|
+
end
|
4935
|
+
# verify the required parameter 'node' is set
|
4936
|
+
if @api_client.config.client_side_validation && node.nil?
|
4937
|
+
fail ArgumentError, "Missing the required parameter 'node' when calling DevelopersApi.resource_volume_list"
|
4938
|
+
end
|
4939
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
4940
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DevelopersApi.resource_volume_list, must be greater than or equal to 0.'
|
4941
|
+
end
|
4942
|
+
|
4943
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 50
|
4944
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DevelopersApi.resource_volume_list, must be smaller than or equal to 50.'
|
4945
|
+
end
|
4946
|
+
|
4947
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 0
|
4948
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DevelopersApi.resource_volume_list, must be greater than or equal to 0.'
|
4949
|
+
end
|
4950
|
+
|
4951
|
+
# resource path
|
4952
|
+
local_var_path = '/v1/resource-definitions/{resource}/resources/{node}/volumes'.sub('{' + 'resource' + '}', CGI.escape(resource.to_s)).sub('{' + 'node' + '}', CGI.escape(node.to_s))
|
4953
|
+
|
4954
|
+
# query parameters
|
4955
|
+
query_params = opts[:query_params] || {}
|
4956
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
4957
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
4958
|
+
|
4959
|
+
# header parameters
|
4960
|
+
header_params = opts[:header_params] || {}
|
4961
|
+
# HTTP header 'Accept' (if needed)
|
4962
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
4963
|
+
|
4964
|
+
# form parameters
|
4965
|
+
form_params = opts[:form_params] || {}
|
4966
|
+
|
4967
|
+
# http body (model)
|
4968
|
+
post_body = opts[:debug_body]
|
4969
|
+
|
4970
|
+
# return_type
|
4971
|
+
return_type = opts[:debug_return_type] || 'Array<Volume>'
|
4972
|
+
|
4973
|
+
# auth_names
|
4974
|
+
auth_names = opts[:debug_auth_names] || []
|
4975
|
+
|
4976
|
+
new_options = opts.merge(
|
4977
|
+
:operation => :"DevelopersApi.resource_volume_list",
|
4978
|
+
:header_params => header_params,
|
4979
|
+
:query_params => query_params,
|
4980
|
+
:form_params => form_params,
|
4981
|
+
:body => post_body,
|
4982
|
+
:auth_names => auth_names,
|
4983
|
+
:return_type => return_type
|
4984
|
+
)
|
4985
|
+
|
4986
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
4987
|
+
if @api_client.config.debugging
|
4988
|
+
@api_client.config.logger.debug "API called: DevelopersApi#resource_volume_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4989
|
+
end
|
4990
|
+
return data, status_code, headers
|
4991
|
+
end
|
4992
|
+
|
4993
|
+
# show satellite config
|
4994
|
+
# Show Satellite config
|
4995
|
+
# @param node [String] node to use
|
4996
|
+
# @param [Hash] opts the optional parameters
|
4997
|
+
# @return [SatelliteConfig]
|
4998
|
+
def satellite_config(node, opts = {})
|
4999
|
+
data, _status_code, _headers = satellite_config_with_http_info(node, opts)
|
5000
|
+
data
|
5001
|
+
end
|
5002
|
+
|
5003
|
+
# show satellite config
|
5004
|
+
# Show Satellite config
|
5005
|
+
# @param node [String] node to use
|
5006
|
+
# @param [Hash] opts the optional parameters
|
5007
|
+
# @return [Array<(SatelliteConfig, Integer, Hash)>] SatelliteConfig data, response status code and response headers
|
5008
|
+
def satellite_config_with_http_info(node, opts = {})
|
5009
|
+
if @api_client.config.debugging
|
5010
|
+
@api_client.config.logger.debug 'Calling API: DevelopersApi.satellite_config ...'
|
5011
|
+
end
|
5012
|
+
# verify the required parameter 'node' is set
|
5013
|
+
if @api_client.config.client_side_validation && node.nil?
|
5014
|
+
fail ArgumentError, "Missing the required parameter 'node' when calling DevelopersApi.satellite_config"
|
5015
|
+
end
|
5016
|
+
# resource path
|
5017
|
+
local_var_path = '/v1/nodes/{node}/config'.sub('{' + 'node' + '}', CGI.escape(node.to_s))
|
4407
5018
|
|
4408
5019
|
# query parameters
|
4409
5020
|
query_params = opts[:query_params] || {}
|
@@ -4420,13 +5031,13 @@ module LinstorClient
|
|
4420
5031
|
post_body = opts[:debug_body]
|
4421
5032
|
|
4422
5033
|
# return_type
|
4423
|
-
return_type = opts[:debug_return_type] || '
|
5034
|
+
return_type = opts[:debug_return_type] || 'SatelliteConfig'
|
4424
5035
|
|
4425
5036
|
# auth_names
|
4426
5037
|
auth_names = opts[:debug_auth_names] || []
|
4427
5038
|
|
4428
5039
|
new_options = opts.merge(
|
4429
|
-
:operation => :"DevelopersApi.
|
5040
|
+
:operation => :"DevelopersApi.satellite_config",
|
4430
5041
|
:header_params => header_params,
|
4431
5042
|
:query_params => query_params,
|
4432
5043
|
:form_params => form_params,
|
@@ -4435,50 +5046,40 @@ module LinstorClient
|
|
4435
5046
|
:return_type => return_type
|
4436
5047
|
)
|
4437
5048
|
|
4438
|
-
data, status_code, headers = @api_client.call_api(:
|
5049
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
4439
5050
|
if @api_client.config.debugging
|
4440
|
-
@api_client.config.logger.debug "API called: DevelopersApi#
|
5051
|
+
@api_client.config.logger.debug "API called: DevelopersApi#satellite_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4441
5052
|
end
|
4442
5053
|
return data, status_code, headers
|
4443
5054
|
end
|
4444
5055
|
|
4445
|
-
#
|
4446
|
-
#
|
5056
|
+
# ship a snapshot
|
5057
|
+
# Transfers the resource from one node to another based on snapshot-shipping
|
4447
5058
|
# @param resource [String] resource to use
|
4448
|
-
# @param node [String] node to use
|
4449
|
-
# @param disklesspool [String]
|
4450
5059
|
# @param [Hash] opts the optional parameters
|
5060
|
+
# @option opts [SnapshotShipping] :snapshot_shipping
|
4451
5061
|
# @return [ApiCallRc]
|
4452
|
-
def
|
4453
|
-
data, _status_code, _headers =
|
5062
|
+
def snapshot_shipping(resource, opts = {})
|
5063
|
+
data, _status_code, _headers = snapshot_shipping_with_http_info(resource, opts)
|
4454
5064
|
data
|
4455
5065
|
end
|
4456
5066
|
|
4457
|
-
#
|
4458
|
-
#
|
5067
|
+
# ship a snapshot
|
5068
|
+
# Transfers the resource from one node to another based on snapshot-shipping
|
4459
5069
|
# @param resource [String] resource to use
|
4460
|
-
# @param node [String] node to use
|
4461
|
-
# @param disklesspool [String]
|
4462
5070
|
# @param [Hash] opts the optional parameters
|
5071
|
+
# @option opts [SnapshotShipping] :snapshot_shipping
|
4463
5072
|
# @return [Array<(ApiCallRc, Integer, Hash)>] ApiCallRc data, response status code and response headers
|
4464
|
-
def
|
5073
|
+
def snapshot_shipping_with_http_info(resource, opts = {})
|
4465
5074
|
if @api_client.config.debugging
|
4466
|
-
@api_client.config.logger.debug 'Calling API: DevelopersApi.
|
5075
|
+
@api_client.config.logger.debug 'Calling API: DevelopersApi.snapshot_shipping ...'
|
4467
5076
|
end
|
4468
5077
|
# verify the required parameter 'resource' is set
|
4469
5078
|
if @api_client.config.client_side_validation && resource.nil?
|
4470
|
-
fail ArgumentError, "Missing the required parameter 'resource' when calling DevelopersApi.
|
4471
|
-
end
|
4472
|
-
# verify the required parameter 'node' is set
|
4473
|
-
if @api_client.config.client_side_validation && node.nil?
|
4474
|
-
fail ArgumentError, "Missing the required parameter 'node' when calling DevelopersApi.resource_toggle_diskless_disklesspool"
|
4475
|
-
end
|
4476
|
-
# verify the required parameter 'disklesspool' is set
|
4477
|
-
if @api_client.config.client_side_validation && disklesspool.nil?
|
4478
|
-
fail ArgumentError, "Missing the required parameter 'disklesspool' when calling DevelopersApi.resource_toggle_diskless_disklesspool"
|
5079
|
+
fail ArgumentError, "Missing the required parameter 'resource' when calling DevelopersApi.snapshot_shipping"
|
4479
5080
|
end
|
4480
5081
|
# resource path
|
4481
|
-
local_var_path = '/v1/resource-definitions/{resource}/
|
5082
|
+
local_var_path = '/v1/resource-definitions/{resource}/snapshot-shipping'.sub('{' + 'resource' + '}', CGI.escape(resource.to_s))
|
4482
5083
|
|
4483
5084
|
# query parameters
|
4484
5085
|
query_params = opts[:query_params] || {}
|
@@ -4487,12 +5088,17 @@ module LinstorClient
|
|
4487
5088
|
header_params = opts[:header_params] || {}
|
4488
5089
|
# HTTP header 'Accept' (if needed)
|
4489
5090
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
5091
|
+
# HTTP header 'Content-Type'
|
5092
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
5093
|
+
if !content_type.nil?
|
5094
|
+
header_params['Content-Type'] = content_type
|
5095
|
+
end
|
4490
5096
|
|
4491
5097
|
# form parameters
|
4492
5098
|
form_params = opts[:form_params] || {}
|
4493
5099
|
|
4494
5100
|
# http body (model)
|
4495
|
-
post_body = opts[:debug_body]
|
5101
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'snapshot_shipping'])
|
4496
5102
|
|
4497
5103
|
# return_type
|
4498
5104
|
return_type = opts[:debug_return_type] || 'ApiCallRc'
|
@@ -4501,7 +5107,7 @@ module LinstorClient
|
|
4501
5107
|
auth_names = opts[:debug_auth_names] || []
|
4502
5108
|
|
4503
5109
|
new_options = opts.merge(
|
4504
|
-
:operation => :"DevelopersApi.
|
5110
|
+
:operation => :"DevelopersApi.snapshot_shipping",
|
4505
5111
|
:header_params => header_params,
|
4506
5112
|
:query_params => query_params,
|
4507
5113
|
:form_params => form_params,
|
@@ -4510,85 +5116,66 @@ module LinstorClient
|
|
4510
5116
|
:return_type => return_type
|
4511
5117
|
)
|
4512
5118
|
|
4513
|
-
data, status_code, headers = @api_client.call_api(:
|
5119
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
4514
5120
|
if @api_client.config.debugging
|
4515
|
-
@api_client.config.logger.debug "API called: DevelopersApi#
|
5121
|
+
@api_client.config.logger.debug "API called: DevelopersApi#snapshot_shipping\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4516
5122
|
end
|
4517
5123
|
return data, status_code, headers
|
4518
5124
|
end
|
4519
5125
|
|
4520
|
-
#
|
4521
|
-
# Lists all volumes for a resource-definition. A single volume can be queried by adding its volume number to the resource string like: /v1/resource-definitions/rsc1/resources/nodeA/volumes/0
|
4522
|
-
# @param resource [String] resource to use
|
5126
|
+
# modify satellite config
|
4523
5127
|
# @param node [String] node to use
|
4524
5128
|
# @param [Hash] opts the optional parameters
|
4525
|
-
# @option opts [
|
4526
|
-
# @
|
4527
|
-
|
4528
|
-
|
4529
|
-
data, _status_code, _headers = resource_volume_list_with_http_info(resource, node, opts)
|
5129
|
+
# @option opts [SatelliteConfig] :satellite_config
|
5130
|
+
# @return [ApiCallRc]
|
5131
|
+
def stlt_set_config(node, opts = {})
|
5132
|
+
data, _status_code, _headers = stlt_set_config_with_http_info(node, opts)
|
4530
5133
|
data
|
4531
5134
|
end
|
4532
5135
|
|
4533
|
-
#
|
4534
|
-
# Lists all volumes for a resource-definition. A single volume can be queried by adding its volume number to the resource string like: /v1/resource-definitions/rsc1/resources/nodeA/volumes/0
|
4535
|
-
# @param resource [String] resource to use
|
5136
|
+
# modify satellite config
|
4536
5137
|
# @param node [String] node to use
|
4537
5138
|
# @param [Hash] opts the optional parameters
|
4538
|
-
# @option opts [
|
4539
|
-
# @
|
4540
|
-
|
4541
|
-
def resource_volume_list_with_http_info(resource, node, opts = {})
|
5139
|
+
# @option opts [SatelliteConfig] :satellite_config
|
5140
|
+
# @return [Array<(ApiCallRc, Integer, Hash)>] ApiCallRc data, response status code and response headers
|
5141
|
+
def stlt_set_config_with_http_info(node, opts = {})
|
4542
5142
|
if @api_client.config.debugging
|
4543
|
-
@api_client.config.logger.debug 'Calling API: DevelopersApi.
|
4544
|
-
end
|
4545
|
-
# verify the required parameter 'resource' is set
|
4546
|
-
if @api_client.config.client_side_validation && resource.nil?
|
4547
|
-
fail ArgumentError, "Missing the required parameter 'resource' when calling DevelopersApi.resource_volume_list"
|
5143
|
+
@api_client.config.logger.debug 'Calling API: DevelopersApi.stlt_set_config ...'
|
4548
5144
|
end
|
4549
5145
|
# verify the required parameter 'node' is set
|
4550
5146
|
if @api_client.config.client_side_validation && node.nil?
|
4551
|
-
fail ArgumentError, "Missing the required parameter 'node' when calling DevelopersApi.
|
4552
|
-
end
|
4553
|
-
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
4554
|
-
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DevelopersApi.resource_volume_list, must be greater than or equal to 0.'
|
5147
|
+
fail ArgumentError, "Missing the required parameter 'node' when calling DevelopersApi.stlt_set_config"
|
4555
5148
|
end
|
4556
|
-
|
4557
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 50
|
4558
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DevelopersApi.resource_volume_list, must be smaller than or equal to 50.'
|
4559
|
-
end
|
4560
|
-
|
4561
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 0
|
4562
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DevelopersApi.resource_volume_list, must be greater than or equal to 0.'
|
4563
|
-
end
|
4564
|
-
|
4565
5149
|
# resource path
|
4566
|
-
local_var_path = '/v1/
|
5150
|
+
local_var_path = '/v1/nodes/{node}/config'.sub('{' + 'node' + '}', CGI.escape(node.to_s))
|
4567
5151
|
|
4568
5152
|
# query parameters
|
4569
5153
|
query_params = opts[:query_params] || {}
|
4570
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
4571
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
4572
5154
|
|
4573
5155
|
# header parameters
|
4574
5156
|
header_params = opts[:header_params] || {}
|
4575
5157
|
# HTTP header 'Accept' (if needed)
|
4576
5158
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
5159
|
+
# HTTP header 'Content-Type'
|
5160
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
5161
|
+
if !content_type.nil?
|
5162
|
+
header_params['Content-Type'] = content_type
|
5163
|
+
end
|
4577
5164
|
|
4578
5165
|
# form parameters
|
4579
5166
|
form_params = opts[:form_params] || {}
|
4580
5167
|
|
4581
5168
|
# http body (model)
|
4582
|
-
post_body = opts[:debug_body]
|
5169
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'satellite_config'])
|
4583
5170
|
|
4584
5171
|
# return_type
|
4585
|
-
return_type = opts[:debug_return_type] || '
|
5172
|
+
return_type = opts[:debug_return_type] || 'ApiCallRc'
|
4586
5173
|
|
4587
5174
|
# auth_names
|
4588
5175
|
auth_names = opts[:debug_auth_names] || []
|
4589
5176
|
|
4590
5177
|
new_options = opts.merge(
|
4591
|
-
:operation => :"DevelopersApi.
|
5178
|
+
:operation => :"DevelopersApi.stlt_set_config",
|
4592
5179
|
:header_params => header_params,
|
4593
5180
|
:query_params => query_params,
|
4594
5181
|
:form_params => form_params,
|
@@ -4597,9 +5184,9 @@ module LinstorClient
|
|
4597
5184
|
:return_type => return_type
|
4598
5185
|
)
|
4599
5186
|
|
4600
|
-
data, status_code, headers = @api_client.call_api(:
|
5187
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
4601
5188
|
if @api_client.config.debugging
|
4602
|
-
@api_client.config.logger.debug "API called: DevelopersApi#
|
5189
|
+
@api_client.config.logger.debug "API called: DevelopersApi#stlt_set_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4603
5190
|
end
|
4604
5191
|
return data, status_code, headers
|
4605
5192
|
end
|
@@ -4939,6 +5526,63 @@ module LinstorClient
|
|
4939
5526
|
return data, status_code, headers
|
4940
5527
|
end
|
4941
5528
|
|
5529
|
+
# drbd promotion event changes
|
5530
|
+
# Notifies clients about changes in may_promote of resources
|
5531
|
+
# @param [Hash] opts the optional parameters
|
5532
|
+
# @return [OneOfEventMayPromoteChange]
|
5533
|
+
def v1_events_drbd_promotion_get(opts = {})
|
5534
|
+
data, _status_code, _headers = v1_events_drbd_promotion_get_with_http_info(opts)
|
5535
|
+
data
|
5536
|
+
end
|
5537
|
+
|
5538
|
+
# drbd promotion event changes
|
5539
|
+
# Notifies clients about changes in may_promote of resources
|
5540
|
+
# @param [Hash] opts the optional parameters
|
5541
|
+
# @return [Array<(OneOfEventMayPromoteChange, Integer, Hash)>] OneOfEventMayPromoteChange data, response status code and response headers
|
5542
|
+
def v1_events_drbd_promotion_get_with_http_info(opts = {})
|
5543
|
+
if @api_client.config.debugging
|
5544
|
+
@api_client.config.logger.debug 'Calling API: DevelopersApi.v1_events_drbd_promotion_get ...'
|
5545
|
+
end
|
5546
|
+
# resource path
|
5547
|
+
local_var_path = '/v1/events/drbd/promotion'
|
5548
|
+
|
5549
|
+
# query parameters
|
5550
|
+
query_params = opts[:query_params] || {}
|
5551
|
+
|
5552
|
+
# header parameters
|
5553
|
+
header_params = opts[:header_params] || {}
|
5554
|
+
# HTTP header 'Accept' (if needed)
|
5555
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/event-stream'])
|
5556
|
+
|
5557
|
+
# form parameters
|
5558
|
+
form_params = opts[:form_params] || {}
|
5559
|
+
|
5560
|
+
# http body (model)
|
5561
|
+
post_body = opts[:debug_body]
|
5562
|
+
|
5563
|
+
# return_type
|
5564
|
+
return_type = opts[:debug_return_type] || 'OneOfEventMayPromoteChange'
|
5565
|
+
|
5566
|
+
# auth_names
|
5567
|
+
auth_names = opts[:debug_auth_names] || []
|
5568
|
+
|
5569
|
+
new_options = opts.merge(
|
5570
|
+
:operation => :"DevelopersApi.v1_events_drbd_promotion_get",
|
5571
|
+
:header_params => header_params,
|
5572
|
+
:query_params => query_params,
|
5573
|
+
:form_params => form_params,
|
5574
|
+
:body => post_body,
|
5575
|
+
:auth_names => auth_names,
|
5576
|
+
:return_type => return_type
|
5577
|
+
)
|
5578
|
+
|
5579
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
5580
|
+
if @api_client.config.debugging
|
5581
|
+
@api_client.config.logger.debug "API called: DevelopersApi#v1_events_drbd_promotion_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5582
|
+
end
|
5583
|
+
return data, status_code, headers
|
5584
|
+
end
|
5585
|
+
|
4942
5586
|
# show physical storage on nodes, to be used with LINSTOR
|
4943
5587
|
# Gives a grouped list of physical storage that can be turned into a LINSTOR storage-pool
|
4944
5588
|
# @param [Hash] opts the optional parameters
|
@@ -5017,9 +5661,10 @@ module LinstorClient
|
|
5017
5661
|
# query all resources with their volumes
|
5018
5662
|
# This REST-resource should be used if you want to get an overview of all resources with their volumes.
|
5019
5663
|
# @param [Hash] opts the optional parameters
|
5020
|
-
# @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified no filtering.
|
5664
|
+
# @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified, no filtering.
|
5665
|
+
# @option opts [Array<String>] :resources Filter only for the specified resources, if not specified, no filtering.
|
5021
5666
|
# @option opts [Array<String>] :storage_pools Filter only for the specified storage pools, if not specified no filtering.
|
5022
|
-
# @option opts [Array<String>] :
|
5667
|
+
# @option opts [Array<String>] :props filter by given properties, full property path
|
5023
5668
|
# @option opts [Integer] :offset number of records to skip for pagination
|
5024
5669
|
# @option opts [Integer] :limit maximum number of records to return
|
5025
5670
|
# @return [Array<ResourceWithVolumes>]
|
@@ -5031,9 +5676,10 @@ module LinstorClient
|
|
5031
5676
|
# query all resources with their volumes
|
5032
5677
|
# This REST-resource should be used if you want to get an overview of all resources with their volumes.
|
5033
5678
|
# @param [Hash] opts the optional parameters
|
5034
|
-
# @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified no filtering.
|
5679
|
+
# @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified, no filtering.
|
5680
|
+
# @option opts [Array<String>] :resources Filter only for the specified resources, if not specified, no filtering.
|
5035
5681
|
# @option opts [Array<String>] :storage_pools Filter only for the specified storage pools, if not specified no filtering.
|
5036
|
-
# @option opts [Array<String>] :
|
5682
|
+
# @option opts [Array<String>] :props filter by given properties, full property path
|
5037
5683
|
# @option opts [Integer] :offset number of records to skip for pagination
|
5038
5684
|
# @option opts [Integer] :limit maximum number of records to return
|
5039
5685
|
# @return [Array<(Array<ResourceWithVolumes>, Integer, Hash)>] Array<ResourceWithVolumes> data, response status code and response headers
|
@@ -5059,8 +5705,9 @@ module LinstorClient
|
|
5059
5705
|
# query parameters
|
5060
5706
|
query_params = opts[:query_params] || {}
|
5061
5707
|
query_params[:'nodes'] = @api_client.build_collection_param(opts[:'nodes'], :multi) if !opts[:'nodes'].nil?
|
5062
|
-
query_params[:'storage_pools'] = @api_client.build_collection_param(opts[:'storage_pools'], :multi) if !opts[:'storage_pools'].nil?
|
5063
5708
|
query_params[:'resources'] = @api_client.build_collection_param(opts[:'resources'], :multi) if !opts[:'resources'].nil?
|
5709
|
+
query_params[:'storage_pools'] = @api_client.build_collection_param(opts[:'storage_pools'], :multi) if !opts[:'storage_pools'].nil?
|
5710
|
+
query_params[:'props'] = @api_client.build_collection_param(opts[:'props'], :multi) if !opts[:'props'].nil?
|
5064
5711
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
5065
5712
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
5066
5713
|
|
@@ -5098,11 +5745,182 @@ module LinstorClient
|
|
5098
5745
|
return data, status_code, headers
|
5099
5746
|
end
|
5100
5747
|
|
5748
|
+
# view current snapshot shippings
|
5749
|
+
# @param [Hash] opts the optional parameters
|
5750
|
+
# @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified, no filtering.
|
5751
|
+
# @option opts [Array<String>] :resources Filter only for the specified resources, if not specified, no filtering.
|
5752
|
+
# @option opts [Array<String>] :snapshots Filter only for the specified snapshots, if not specified, no filtering.
|
5753
|
+
# @option opts [Array<String>] :status Filter only for the specified status, if not specified, no filtering.
|
5754
|
+
# @option opts [Integer] :offset number of records to skip for pagination
|
5755
|
+
# @option opts [Integer] :limit maximum number of records to return
|
5756
|
+
# @return [Array<SnapshotShippingStatus>]
|
5757
|
+
def view_snapshot_shippings(opts = {})
|
5758
|
+
data, _status_code, _headers = view_snapshot_shippings_with_http_info(opts)
|
5759
|
+
data
|
5760
|
+
end
|
5761
|
+
|
5762
|
+
# view current snapshot shippings
|
5763
|
+
# @param [Hash] opts the optional parameters
|
5764
|
+
# @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified, no filtering.
|
5765
|
+
# @option opts [Array<String>] :resources Filter only for the specified resources, if not specified, no filtering.
|
5766
|
+
# @option opts [Array<String>] :snapshots Filter only for the specified snapshots, if not specified, no filtering.
|
5767
|
+
# @option opts [Array<String>] :status Filter only for the specified status, if not specified, no filtering.
|
5768
|
+
# @option opts [Integer] :offset number of records to skip for pagination
|
5769
|
+
# @option opts [Integer] :limit maximum number of records to return
|
5770
|
+
# @return [Array<(Array<SnapshotShippingStatus>, Integer, Hash)>] Array<SnapshotShippingStatus> data, response status code and response headers
|
5771
|
+
def view_snapshot_shippings_with_http_info(opts = {})
|
5772
|
+
if @api_client.config.debugging
|
5773
|
+
@api_client.config.logger.debug 'Calling API: DevelopersApi.view_snapshot_shippings ...'
|
5774
|
+
end
|
5775
|
+
allowable_values = ["running", "complete"]
|
5776
|
+
if @api_client.config.client_side_validation && opts[:'status'] && !opts[:'status'].all? { |item| allowable_values.include?(item) }
|
5777
|
+
fail ArgumentError, "invalid value for \"status\", must include one of #{allowable_values}"
|
5778
|
+
end
|
5779
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
5780
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DevelopersApi.view_snapshot_shippings, must be greater than or equal to 0.'
|
5781
|
+
end
|
5782
|
+
|
5783
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 50
|
5784
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DevelopersApi.view_snapshot_shippings, must be smaller than or equal to 50.'
|
5785
|
+
end
|
5786
|
+
|
5787
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 0
|
5788
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DevelopersApi.view_snapshot_shippings, must be greater than or equal to 0.'
|
5789
|
+
end
|
5790
|
+
|
5791
|
+
# resource path
|
5792
|
+
local_var_path = '/v1/view/snapshot-shippings'
|
5793
|
+
|
5794
|
+
# query parameters
|
5795
|
+
query_params = opts[:query_params] || {}
|
5796
|
+
query_params[:'nodes'] = @api_client.build_collection_param(opts[:'nodes'], :multi) if !opts[:'nodes'].nil?
|
5797
|
+
query_params[:'resources'] = @api_client.build_collection_param(opts[:'resources'], :multi) if !opts[:'resources'].nil?
|
5798
|
+
query_params[:'snapshots'] = @api_client.build_collection_param(opts[:'snapshots'], :multi) if !opts[:'snapshots'].nil?
|
5799
|
+
query_params[:'status'] = @api_client.build_collection_param(opts[:'status'], :multi) if !opts[:'status'].nil?
|
5800
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
5801
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
5802
|
+
|
5803
|
+
# header parameters
|
5804
|
+
header_params = opts[:header_params] || {}
|
5805
|
+
# HTTP header 'Accept' (if needed)
|
5806
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
5807
|
+
|
5808
|
+
# form parameters
|
5809
|
+
form_params = opts[:form_params] || {}
|
5810
|
+
|
5811
|
+
# http body (model)
|
5812
|
+
post_body = opts[:debug_body]
|
5813
|
+
|
5814
|
+
# return_type
|
5815
|
+
return_type = opts[:debug_return_type] || 'Array<SnapshotShippingStatus>'
|
5816
|
+
|
5817
|
+
# auth_names
|
5818
|
+
auth_names = opts[:debug_auth_names] || []
|
5819
|
+
|
5820
|
+
new_options = opts.merge(
|
5821
|
+
:operation => :"DevelopersApi.view_snapshot_shippings",
|
5822
|
+
:header_params => header_params,
|
5823
|
+
:query_params => query_params,
|
5824
|
+
:form_params => form_params,
|
5825
|
+
:body => post_body,
|
5826
|
+
:auth_names => auth_names,
|
5827
|
+
:return_type => return_type
|
5828
|
+
)
|
5829
|
+
|
5830
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
5831
|
+
if @api_client.config.debugging
|
5832
|
+
@api_client.config.logger.debug "API called: DevelopersApi#view_snapshot_shippings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5833
|
+
end
|
5834
|
+
return data, status_code, headers
|
5835
|
+
end
|
5836
|
+
|
5837
|
+
# query all snapshots known to linstor
|
5838
|
+
# This REST-resource should be used if you want to get an overview of all snapshots.
|
5839
|
+
# @param [Hash] opts the optional parameters
|
5840
|
+
# @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified, no filtering.
|
5841
|
+
# @option opts [Array<String>] :resources Filter only for the specified resources, if not specified, no filtering.
|
5842
|
+
# @option opts [Integer] :offset number of records to skip for pagination
|
5843
|
+
# @option opts [Integer] :limit maximum number of records to return
|
5844
|
+
# @return [Array<Snapshot>]
|
5845
|
+
def view_snapshots(opts = {})
|
5846
|
+
data, _status_code, _headers = view_snapshots_with_http_info(opts)
|
5847
|
+
data
|
5848
|
+
end
|
5849
|
+
|
5850
|
+
# query all snapshots known to linstor
|
5851
|
+
# This REST-resource should be used if you want to get an overview of all snapshots.
|
5852
|
+
# @param [Hash] opts the optional parameters
|
5853
|
+
# @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified, no filtering.
|
5854
|
+
# @option opts [Array<String>] :resources Filter only for the specified resources, if not specified, no filtering.
|
5855
|
+
# @option opts [Integer] :offset number of records to skip for pagination
|
5856
|
+
# @option opts [Integer] :limit maximum number of records to return
|
5857
|
+
# @return [Array<(Array<Snapshot>, Integer, Hash)>] Array<Snapshot> data, response status code and response headers
|
5858
|
+
def view_snapshots_with_http_info(opts = {})
|
5859
|
+
if @api_client.config.debugging
|
5860
|
+
@api_client.config.logger.debug 'Calling API: DevelopersApi.view_snapshots ...'
|
5861
|
+
end
|
5862
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
5863
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DevelopersApi.view_snapshots, must be greater than or equal to 0.'
|
5864
|
+
end
|
5865
|
+
|
5866
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 50
|
5867
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DevelopersApi.view_snapshots, must be smaller than or equal to 50.'
|
5868
|
+
end
|
5869
|
+
|
5870
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 0
|
5871
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DevelopersApi.view_snapshots, must be greater than or equal to 0.'
|
5872
|
+
end
|
5873
|
+
|
5874
|
+
# resource path
|
5875
|
+
local_var_path = '/v1/view/snapshots'
|
5876
|
+
|
5877
|
+
# query parameters
|
5878
|
+
query_params = opts[:query_params] || {}
|
5879
|
+
query_params[:'nodes'] = @api_client.build_collection_param(opts[:'nodes'], :multi) if !opts[:'nodes'].nil?
|
5880
|
+
query_params[:'resources'] = @api_client.build_collection_param(opts[:'resources'], :multi) if !opts[:'resources'].nil?
|
5881
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
5882
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
5883
|
+
|
5884
|
+
# header parameters
|
5885
|
+
header_params = opts[:header_params] || {}
|
5886
|
+
# HTTP header 'Accept' (if needed)
|
5887
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
5888
|
+
|
5889
|
+
# form parameters
|
5890
|
+
form_params = opts[:form_params] || {}
|
5891
|
+
|
5892
|
+
# http body (model)
|
5893
|
+
post_body = opts[:debug_body]
|
5894
|
+
|
5895
|
+
# return_type
|
5896
|
+
return_type = opts[:debug_return_type] || 'Array<Snapshot>'
|
5897
|
+
|
5898
|
+
# auth_names
|
5899
|
+
auth_names = opts[:debug_auth_names] || []
|
5900
|
+
|
5901
|
+
new_options = opts.merge(
|
5902
|
+
:operation => :"DevelopersApi.view_snapshots",
|
5903
|
+
:header_params => header_params,
|
5904
|
+
:query_params => query_params,
|
5905
|
+
:form_params => form_params,
|
5906
|
+
:body => post_body,
|
5907
|
+
:auth_names => auth_names,
|
5908
|
+
:return_type => return_type
|
5909
|
+
)
|
5910
|
+
|
5911
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
5912
|
+
if @api_client.config.debugging
|
5913
|
+
@api_client.config.logger.debug "API called: DevelopersApi#view_snapshots\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5914
|
+
end
|
5915
|
+
return data, status_code, headers
|
5916
|
+
end
|
5917
|
+
|
5101
5918
|
# query all storage pools
|
5102
5919
|
# This REST-resource should be used if you want to get an overview of all storage pools.
|
5103
5920
|
# @param [Hash] opts the optional parameters
|
5104
|
-
# @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified no filtering.
|
5921
|
+
# @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified, no filtering.
|
5105
5922
|
# @option opts [Array<String>] :storage_pools Filter only for the specified storage pools, if not specified no filtering.
|
5923
|
+
# @option opts [Array<String>] :props filter by given properties, full property path
|
5106
5924
|
# @option opts [Integer] :offset number of records to skip for pagination
|
5107
5925
|
# @option opts [Integer] :limit maximum number of records to return
|
5108
5926
|
# @return [Array<StoragePool>]
|
@@ -5114,8 +5932,9 @@ module LinstorClient
|
|
5114
5932
|
# query all storage pools
|
5115
5933
|
# This REST-resource should be used if you want to get an overview of all storage pools.
|
5116
5934
|
# @param [Hash] opts the optional parameters
|
5117
|
-
# @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified no filtering.
|
5935
|
+
# @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified, no filtering.
|
5118
5936
|
# @option opts [Array<String>] :storage_pools Filter only for the specified storage pools, if not specified no filtering.
|
5937
|
+
# @option opts [Array<String>] :props filter by given properties, full property path
|
5119
5938
|
# @option opts [Integer] :offset number of records to skip for pagination
|
5120
5939
|
# @option opts [Integer] :limit maximum number of records to return
|
5121
5940
|
# @return [Array<(Array<StoragePool>, Integer, Hash)>] Array<StoragePool> data, response status code and response headers
|
@@ -5142,6 +5961,7 @@ module LinstorClient
|
|
5142
5961
|
query_params = opts[:query_params] || {}
|
5143
5962
|
query_params[:'nodes'] = @api_client.build_collection_param(opts[:'nodes'], :multi) if !opts[:'nodes'].nil?
|
5144
5963
|
query_params[:'storage_pools'] = @api_client.build_collection_param(opts[:'storage_pools'], :multi) if !opts[:'storage_pools'].nil?
|
5964
|
+
query_params[:'props'] = @api_client.build_collection_param(opts[:'props'], :multi) if !opts[:'props'].nil?
|
5145
5965
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
5146
5966
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
5147
5967
|
|
@@ -5400,7 +6220,7 @@ module LinstorClient
|
|
5400
6220
|
end
|
5401
6221
|
|
5402
6222
|
# modify a volume-definition
|
5403
|
-
# Sets or modifies properties Possible properties are: - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use
|
6223
|
+
# Sets or modifies properties Possible properties are: - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use for external metadata. - `OverrideVlmId` - regex[`.*`] Overwrites the generated '<resource-name>_<5 digit volume number>' volume name for migration purposes - `FileSystem/Type` - enum File system type to use * ext4 * xfs - `FileSystem/MkfsParams` - string Additional parameters for the mkfs command - `StorDriver/LvcreateType` - enum * linear * striped * mirror * raid0 * raid1 * raid4 * raid5 * raid6 * raid10 * lzma * lz4 - `StorDriver/LvcreateOptions` - regex[`.*`] Additional parameters added to every 'lvcreate ... ' command - `StorDriver/ZfscreateOptions` - regex[`.*`] Additional parameters added to every 'zfs create ... ' command - `DrbdCurrentGi` - regex[`[a-fA-F0-9]{16}`] Initial DRBD generation id, if initial sync is skipped, this ID will be set - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `sys/fs/blkio_throttle_read_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_iops_device - `sys/fs/blkio_throttle_write_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_iops_device - `Writecache/PoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name for writecache - `Writecache/Size` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the writecache in % (0-100) or KiB otherwise - `Writecache/Options/StartSector` - long offset from the start of cache device in 512-byte sectors - `Writecache/Options/HighWatermark` - long start writeback when the number of used blocks reach this watermark - `Writecache/Options/LowWatermark` - long stop writeback when the number of used blocks drops below this watermark - `Writecache/Options/WritebackJobs` - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - `Writecache/Options/AutocommitBlocks` - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - `Writecache/Options/AutocommitTime` - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - `Writecache/Options/Fua` - enum \"On\" results in \"fua\" as argument, whereas the value \"Off\" results in \"nofua\" argument * On * Off - `Writecache/Options/Additional` - string Additional arguments passed through - `Cache/OpMode` - enum Operation mode * writeback * writethrough * passthrough - `Cache/MetaPool` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Name of the storage pool used for the cache metadata. If not specified, this will default to the CachePool property - `Cache/Metasize` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the cache in % (0-100) or KiB otherwise. - `Cache/CachePool` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Name of the storage pool used for the cache cache device - `Cache/Cachesize` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the cache in % (0-100) or KiB otherwise. - `Cache/Blocksize` - long Block size - `Cache/Policy` - enum Replacemant policy * mq * smq * cleaner - `DrbdOptions/Disk/on-io-error` - enum * pass_on * call-local-io-error * detach - `DrbdOptions/Disk/disk-barrier` - boolean - `DrbdOptions/Disk/disk-flushes` - boolean - `DrbdOptions/Disk/disk-drain` - boolean - `DrbdOptions/Disk/md-flushes` - boolean - `DrbdOptions/Disk/resync-after` - string - `DrbdOptions/Disk/al-extents` - range[`67-65534`] - `DrbdOptions/Disk/al-updates` - boolean - `DrbdOptions/Disk/discard-zeroes-if-aligned` - boolean - `DrbdOptions/Disk/disable-write-same` - boolean - `DrbdOptions/Disk/disk-timeout` - range[`0-6000`] - `DrbdOptions/Disk/read-balancing` - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - `DrbdOptions/Disk/rs-discard-granularity` - range[`0-1048576`]
|
5404
6224
|
# @param resource [String] resource to use
|
5405
6225
|
# @param volume_number [Integer]
|
5406
6226
|
# @param [Hash] opts the optional parameters
|
@@ -5412,7 +6232,7 @@ module LinstorClient
|
|
5412
6232
|
end
|
5413
6233
|
|
5414
6234
|
# modify a volume-definition
|
5415
|
-
# Sets or modifies properties Possible properties are: - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use
|
6235
|
+
# Sets or modifies properties Possible properties are: - `StorPoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use. - `StorPoolNameDrbdMeta` - regex[`^|.internal|[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name to use for external metadata. - `OverrideVlmId` - regex[`.*`] Overwrites the generated '<resource-name>_<5 digit volume number>' volume name for migration purposes - `FileSystem/Type` - enum File system type to use * ext4 * xfs - `FileSystem/MkfsParams` - string Additional parameters for the mkfs command - `StorDriver/LvcreateType` - enum * linear * striped * mirror * raid0 * raid1 * raid4 * raid5 * raid6 * raid10 * lzma * lz4 - `StorDriver/LvcreateOptions` - regex[`.*`] Additional parameters added to every 'lvcreate ... ' command - `StorDriver/ZfscreateOptions` - regex[`.*`] Additional parameters added to every 'zfs create ... ' command - `DrbdCurrentGi` - regex[`[a-fA-F0-9]{16}`] Initial DRBD generation id, if initial sync is skipped, this ID will be set - `sys/fs/blkio_throttle_read` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device - `sys/fs/blkio_throttle_write` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_bps_device - `sys/fs/blkio_throttle_read_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.read_iops_device - `sys/fs/blkio_throttle_write_iops` - long Sets the /sys/fs/cgroup/blkio/blkio.throttle.write_iops_device - `Writecache/PoolName` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Linstor storage pool name for writecache - `Writecache/Size` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the writecache in % (0-100) or KiB otherwise - `Writecache/Options/StartSector` - long offset from the start of cache device in 512-byte sectors - `Writecache/Options/HighWatermark` - long start writeback when the number of used blocks reach this watermark - `Writecache/Options/LowWatermark` - long stop writeback when the number of used blocks drops below this watermark - `Writecache/Options/WritebackJobs` - long limit the number of blocks that are in flight during writeback. Setting this value reduces writeback throughput, but it may improve latency of read requests - `Writecache/Options/AutocommitBlocks` - long when the application writes this amount of blocks without issuing the FLUSH request, the blocks are automatically commited - `Writecache/Options/AutocommitTime` - long autocommit time in milliseconds. The data is automatically commited if this time passes and no FLUSH request is received - `Writecache/Options/Fua` - enum \"On\" results in \"fua\" as argument, whereas the value \"Off\" results in \"nofua\" argument * On * Off - `Writecache/Options/Additional` - string Additional arguments passed through - `Cache/OpMode` - enum Operation mode * writeback * writethrough * passthrough - `Cache/MetaPool` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Name of the storage pool used for the cache metadata. If not specified, this will default to the CachePool property - `Cache/Metasize` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the cache in % (0-100) or KiB otherwise. - `Cache/CachePool` - regex[`^[a-zA-Z0-9_][a-zA-Z0-9_-]{2,47}$`] Name of the storage pool used for the cache cache device - `Cache/Cachesize` - regex[`^100%|[0-9]{1,2}([.][0-9]*)?%|[1-9][0-9]{2,}$`] Size of the cache in % (0-100) or KiB otherwise. - `Cache/Blocksize` - long Block size - `Cache/Policy` - enum Replacemant policy * mq * smq * cleaner - `DrbdOptions/Disk/on-io-error` - enum * pass_on * call-local-io-error * detach - `DrbdOptions/Disk/disk-barrier` - boolean - `DrbdOptions/Disk/disk-flushes` - boolean - `DrbdOptions/Disk/disk-drain` - boolean - `DrbdOptions/Disk/md-flushes` - boolean - `DrbdOptions/Disk/resync-after` - string - `DrbdOptions/Disk/al-extents` - range[`67-65534`] - `DrbdOptions/Disk/al-updates` - boolean - `DrbdOptions/Disk/discard-zeroes-if-aligned` - boolean - `DrbdOptions/Disk/disable-write-same` - boolean - `DrbdOptions/Disk/disk-timeout` - range[`0-6000`] - `DrbdOptions/Disk/read-balancing` - enum * prefer-local * prefer-remote * round-robin * least-pending * when-congested-remote * 32K-striping * 64K-striping * 128K-striping * 256K-striping * 512K-striping * 1M-striping - `DrbdOptions/Disk/rs-discard-granularity` - range[`0-1048576`]
|
5416
6236
|
# @param resource [String] resource to use
|
5417
6237
|
# @param volume_number [Integer]
|
5418
6238
|
# @param [Hash] opts the optional parameters
|