openvstorage / framework

The Framework is a set of components and tools which brings the user an interface (GUI / API) to setup, extend and manage an Open vStorage platform.
Other
27 stars 23 forks source link

ovs get-key key #888

Closed wimpers closed 7 years ago

wimpers commented 8 years ago

Add to the ovs cli an option to easiliy set/get/list configuration keys

ovs list key-prefix : lists all keys starting with key-prefix ovs set key value : set key/value ovs get key : get the key

The above options should work for all configuration mgmt systems.

khenderick commented 7 years ago

Fixed by #914, packaged in openvstorage-2.7.3-rev.3962.304ec6e

khenderick commented 7 years ago

Implemented as:

JeffreyDevloo commented 7 years ago

Steps

Output

root@ovs-node2:~# ovs config get ovs/arakoon/voldrv/config
[s6zN7RABK1NsFljX]
crash_log_sinks = console:
ip = 10.100.199.152
tlog_compression = snappy
client_port = 26416
home = /mnt/hdd1/arakoon/voldrv/db
log_level = info
name = s6zN7RABK1NsFljX
fsync = true
log_sinks = console:
messaging_port = 26417
tlog_dir = /mnt/hdd1/arakoon/voldrv/tlogs

[global]
cluster = 52GAMfFlswlIaI2U,OlUD8NlOApLn5SNO,s6zN7RABK1NsFljX
cluster_id = voldrv
tlog_max_entries = 5000
plugins = 

[52GAMfFlswlIaI2U]
crash_log_sinks = console:
ip = 10.100.199.151
tlog_compression = snappy
client_port = 26416
home = /mnt/hdd1/arakoon/voldrv/db
log_level = info
name = 52GAMfFlswlIaI2U
fsync = true
log_sinks = console:
messaging_port = 26417
tlog_dir = /mnt/hdd1/arakoon/voldrv/tlogs

[OlUD8NlOApLn5SNO]
crash_log_sinks = console:
ip = 10.100.199.153
tlog_compression = snappy
client_port = 26416
home = /mnt/hdd1/arakoon/voldrv/db
log_level = info
name = OlUD8NlOApLn5SNO
fsync = true
log_sinks = console:
messaging_port = 26417
tlog_dir = /mnt/hdd1/arakoon/voldrv/tlogs
root@ovs-node2:~# ovs config edit ovs/arakoon/voldrv/config

selection_084

EDITOR=vim ovs config edit ovs/arakoon/voldrv/config

selection_085

root@ovs-node2:~# ovs config list ovs/arakoon
ovsdb
vm-backend-abm
vm-backend-nsm_0
vm-backend2-abm
vm-backend2-nsm_0
vm-backend3-abm
vm-backend3-nsm_0
voldrv

Test result

Get: passed Edit: Nano editor:

VIM editor

Setup

Hyperconverged setup

Package information