Closed wimpers closed 7 years ago
Fixed by #914, packaged in openvstorage-2.7.3-rev.3962.304ec6e
Implemented as:
ovs config edit some/key
to edit that key in your $EDITOR
. If it doesn't exist, it is createdovs config list some
to list all keys with the given prefixovs config get some/key
print the contents of the given keyroot@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
EDITOR=vim ovs config edit ovs/arakoon/voldrv/config
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
Get: passed Edit: Nano editor:
VIM editor
Hyperconverged setup
Add to the ovs cli an option to easiliy set/get/list configuration keys
ovs list key-prefix
: lists all keys starting with key-prefixovs set key value
: set key/valueovs get key
: get the keyThe above options should work for all configuration mgmt systems.