Thanks, that worked! I should have read man page instead of googling around and use wrong arguments (via https://ovirt.org/develop/release-management/features/sla/hosted-engine-edit-configuration-on-shared-storage/)



Von: Sahina Bose [sabose@redhat.com]
Gesendet: Montag, 9. Juli 2018 15:27
An: Liebe, André-Sebastian
Cc: Hesham Ahmed; users
Betreff: Re: [ovirt-users] Re: hyperconverged cluster - how to change the mount path?



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é