On Fri, Jul 6, 2018 at 1:55 PM, Liebe, André-Sebastian <andre.liebe@gematik.de> wrote:
> To edit the entry of storage connection in database, you can use
> hosted-engine --set-shared-config mnt_options backup-volfile-servers=<server2>:<server3>

I tried editing shared configuration but it failed.
----
# hosted-engine --get-shared-config mnt_options --type=vm
Invalid configuration key mnt_options.
Available keys are:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_setup/get_shared_config.py", line 71, in <module>
    value_and_type = get_shared_config.get_shared_config(*sys.argv)
  File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_setup/get_shared_config.py", line 55, in get_shared_config
    for c_type in config_keys_for_type:
TypeError: 'NoneType' object is not iterable

# hosted-engine --get-shared-config mnt_options --type=broker
Invalid configuration key mnt_options.
Available keys are:
broker : ['email.smtp-server', 'email.smtp-port', 'email.source-email', 'email.destination-emails', 'notify.state_transition']

# hosted-engine --set-shared-config mnt_options backup-volfile-servers=lvh2:lvh4
Duplicate key mnt_options, please specify the key type
#  hosted-engine --set-shared-config mnt_options backup-volfile-servers=lvh2:lvh4 --type=broker
Invalid configuration key mnt_options.
Available keys are:
broker : ['email.smtp-server', 'email.smtp-port', 'email.source-email', 'email.destination-emails', 'notify.state_transition']

# hosted-engine --set-shared-config mnt_options backup-volfile-servers=lvh2.lab.gematik.de:lvh4.lab.gematik.de --type=vm
Invalid configuration key mnt_options.
Available keys are:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_setup/set_shared_config.py", line 71, in <module>
    if not set_shared_config.set_shared_config(*sys.argv):
  File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_setup/set_shared_config.py", line 54, in set_shared_config
    for c_type in config_keys_for_type:
TypeError: 'NoneType' object is not iterable


Can you try

#  hosted-engine --get-shared-config mnt_options --type=he_shared


----


André