13.02.2018 13:42, Simone Tiraboschi пишет:


Yes, ufortunately you are absolutely right on that: there is a bug there.
As a side effect, hosted-engine --set-shared-config and hosted-engine --get-shared-config always refresh the local copy of hosted-engine configuration files with the copy on the shared storage and so you will always end with host_id=1 in /etc/ovirt-hosted-engine/hosted-engine.conf which can lead to SPM conflicts. I'd suggest to manually fix host_id parameter in /etc/ovirt-hosted-engine/hosted-engine.conf to its original value (double check with engine DB with 'sudo -u postgres psql engine -c "SELECT vds_spm_id, vds.vds_name FROM vds"' on the engine VM) to avoid that.
https://bugzilla.redhat.com/1543988
Simon, I'm trying to set the right values ... but unfortunately I fail.

[root@h3 ovirt-hosted-engine]# cat hosted-engine.conf | grep conf_
conf_volume_UUID=a20d9700-1b9a-41d8-bb4b-f2b7c168104f
conf_image_UUID=b5f353f5-9357-4aad-b1a3-751d411e6278


[root@h3 ~]# hosted-engine --set-shared-config conf_image_UUID b5f353f5-9357-4aad-b1a3-751d411e6278 --type he_conf
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
  .....
  File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/env/config.py", line 226, in get
    key
KeyError: 'Configuration value not found: file=/etc/ovirt-hosted-engine/hosted-engine.conf, key=conf_volume_UUID'

How to fix this, else there is any way to edit hosted-engine.conf on shared storage?


Regards,

Alex.
_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

Reply via email to