<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 9, 2015 at 11:44 AM, Stefano Danzi <span dir="ltr">&lt;<a href="mailto:s.danzi@hawai.it" target="_blank">s.danzi@hawai.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Your trick work fine! Thanks!<br>
    <br>
    Now I see that emails sent from brocker has &quot;corrupted&quot; headers:<br>
    <br>
    At the ent of message we can see:<br>
    <br>
    <pre>Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Date: Mon, 09 Nov 2015 11:33:37 +0100
Message-Id: <a href="mailto:20151109103337.D9C7D1260001@my.server.lan" target="_blank">&lt;20151109103337.D9C7D1260001@my.server.lan&gt;</a>
From: <a href="mailto:mysender@server.lan" target="_blank">mysender@server.lan</a>
To: undisclosed-recipients:;

From: <a href="mailto:mysender@server.lan" target="_blank">mysender@server.lan</a>
To: <a href="mailto:myreceiver@server.lan" target="_blank">myreceiver@server.lan</a>
Subject: ovirt-hosted-engine state transition EngineUp-GlobalMaintenance

The state machine changed state.</pre>
    <br></div></blockquote><div><br></div><div>Adding Roy and Martin, looks like a separate issue</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
    <br>
    From and To are repeated twice. This cause that email client show
    correctly the sender,<br>
    an empty recipient and an empty subject.<br>
    <br>
    On message body I see everything after &quot;To:
    undisclosed-recipients:;&quot;
    <br><div><div class="h5">
    <br>
    <div>Il 06/11/2015 20.01, Simone Tiraboschi
      ha scritto:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Thu, Nov 5, 2015 at 7:10 PM,
            Stefano Danzi <span dir="ltr">&lt;<a href="mailto:s.danzi@hawai.it" target="_blank">s.danzi@hawai.it</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"><span> <br>
                  <br>
                  <div><br>
                  </div>
                  <blockquote type="cite"> the content is:<br>
                    <br>
                    [email]<br>
                    smtp-server=localhost<br>
                    smtp-port=25<br>
                    destination-emails=root@localhost<br>
                    source-email=root@localhost<br>
                    <br>
                    [notify]<br>
state_transition=maintenance|start|stop|migrate|up|down<br>
                    <br>
                  </blockquote>
                  and is the default. My conf was lost during upgrade.<br>
                  If I restart ovirt-ha-broker the broker.conf is
                  replaced with the default<br>
                  <br>
                </span> If I don&#39;t restart ovirt-ha-broker, the
                broker.conf is silently replaced after a while.<br>
                <br>
                Looking here <a href="http://lists.ovirt.org/pipermail/engine-commits/2015-June/022940.html" target="_blank">http://lists.ovirt.org/pipermail/engine-commits/2015-June/022940.html</a><br>
                I understand that broker.conf is stored in another place
                and overwrite at runtime.</div>
            </blockquote>
            <div><br>
            </div>
            <div>The broker.conf is now on the shared storage (as other
              hosted-engine related configuration files) so that in the
              future they&#39;ll be easily editable from the web UI.</div>
            <div><br>
            </div>
            <div>The issue here seams to be that the upgrade overwrite
              it with the default file before copying to the shared
              storage.</div>
            <div>I&#39;m opening a bug against that.</div>
            <div><br>
            </div>
            <div>Let&#39;s try to fix in your instance (please substitute
              &#39;192.168.1.115:_Virtual_ext35u36&#39; with the mount point on
              your system):</div>
          </div>
          <div class="gmail_quote"><br>
            <font face="monospace, monospace">dir=`mktemp -d` &amp;&amp;
              cd $dir<br>
              systemctl stop ovirt-ha-broker<br>
              sdUUID_line=$(grep sdUUID
              /etc/ovirt-hosted-engine/hosted-engine.conf)<br>
              sdUUID=${sdUUID_line:7:36}<br>
              conf_volume_UUID_line=$(grep conf_volume_UUID
              /etc/ovirt-hosted-engine/hosted-engine.conf)<br>
              conf_volume_UUID=${conf_volume_UUID_line:17:36}<br>
              conf_image_UUID_line=$(grep conf_image_UUID
              /etc/ovirt-hosted-engine/hosted-engine.conf)<br>
              conf_image_UUID=${conf_image_UUID_line:16:36}<br>
              dd
              if=/rhev/data-center/mnt/192.168.1.115:_Virtual_ext35u36/$sdUUID/images/$conf_image_UUID/$conf_volume_UUID
              2&gt;/dev/null| tar -xvf -<br>
              cp /etc/ovirt-hosted-engine-ha/broker.conf.rpmsave </font><span style="font-family:monospace,monospace">broker.conf </span><font face="monospace, monospace"># or edit broker.conf as you
              need </font></div>
          <div class="gmail_quote"><font face="monospace, monospace">tar
              -cO * | dd
of=/rhev/data-center/mnt/192.168.1.115:_Virtual_ext35u36/$sdUUID/images/$conf_image_UUID/$conf_volume_UUID<br>
            </font><span style="font-family:monospace,monospace">systemctl
              start ovirt-ha-broker</span><br>
          </div>
          <div class="gmail_quote">
            <div><br>
            </div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"><span><br>
                  <br>
                  <blockquote type="cite"> <br>
                    <div>Il 05/11/2015 18.44, Simone Tiraboschi ha
                      scritto:<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">Can you please paste here the
                        content of
                        /var/lib/ovirt-hosted-engine-ha/broker.conf ?
                        <div>eventually make it anonymous if you prefer<br>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                        </div>
                      </div>
                      <div class="gmail_extra"><br>
                        <div class="gmail_quote">On Thu, Nov 5, 2015 at
                          6:42 PM, Stefano Danzi <span dir="ltr">&lt;<a href="mailto:s.danzi@hawai.it" target="_blank"></a><a href="mailto:s.danzi@hawai.it" target="_blank">s.danzi@hawai.it</a>&gt;</span>
                          wrote:<br>
                          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">After

                            upgrading from 3.5 to 3.6 Hosted engine
                            notifications stop to work.<br>
                            I think that broker.conf was lost during
                            upgrade.<br>
                            <br>
                            I found this: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1260757" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1260757</a><br>
                            But I don&#39;t undertand how to change the
                            configuration now.<br>
_______________________________________________<br>
                            Users mailing list<br>
                            <a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
                            <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
                          </blockquote>
                        </div>
                        <br>
                      </div>
                    </blockquote>
                    <br>
                  </blockquote>
                  <br>
                </span></div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
    <pre cols="72"></pre>
  </div></div></div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Sandro Bonazzola<br>Better technology. Faster innovation. Powered by community collaboration.<br>See how it works at <a href="http://redhat.com" target="_blank">redhat.com</a><br></div></div></div></div>
</div></div>