<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">13.02.2018 13:42, Simone Tiraboschi
      пишет:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAN8-ONr16qX3xNQ_6fR2nc0a-f=MCQMcksj67EkyiXY2p=2=5g@mail.gmail.com">
      <div dir="ltr"><br>
        <div class="gmail_extra">Yes, ufortunately you are absolutely
          right on that: there is a bug there.<br>
          <div class="gmail_quote">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.<br>
            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.<br>
            <a href="https://bugzilla.redhat.com/1543988"
              moz-do-not-send="true">https://bugzilla.redhat.com/1543988</a><br>
          </div>
        </div>
      </div>
    </blockquote>
    Simon, I'm trying to set the right values ... but unfortunately I
    fail.<br>
    <br>
    [root@h3 ovirt-hosted-engine]# cat hosted-engine.conf | grep conf_<br>
    conf_volume_UUID=a20d9700-1b9a-41d8-bb4b-f2b7c168104f<br>
    conf_image_UUID=b5f353f5-9357-4aad-b1a3-751d411e6278<br>
    <br>
    <br>
    [root@h3 ~]# hosted-engine --set-shared-config conf_image_UUID
    b5f353f5-9357-4aad-b1a3-751d411e6278 --type he_conf<br>
    Traceback (most recent call last):<br>
      File "/usr/lib64/python2.7/runpy.py", line 162, in
    _run_module_as_main<br>
      .....<br>
      File
    "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/env/config.py",
    line 226, in get<br>
        key<br>
    KeyError: 'Configuration value not found:
    file=/etc/ovirt-hosted-engine/hosted-engine.conf,
    key=conf_volume_UUID'<br>
    <br>
    How to fix this, else there is any way to edit hosted-engine.conf on
    shared storage?<br>
    <br>
    <br>
    Regards,<br>
    <br>
    Alex.
  </body>
</html>