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 [sab...@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.li...@gematik.de<mailto:andre.li...@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<http://vh4.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é



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/R4TISNVWZT7KJW5A7VOXBQNH64IV66ZV/

Reply via email to