<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 15-9-2015 15:26, Simone Tiraboschi
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAN8-ONpcX9oVC0m4ZrjnbLUM0QeH-3UgLdmEUKadeHQFM3hKfg@mail.gmail.com"
      type="cite">
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Tue, Sep 15, 2015 at 2:31 PM, noc
            <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:noc@nieuwland.nl" target="_blank">noc@nieuwland.nl</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 class="">
                  <div>On 15-9-2015 9:31, Simone Tiraboschi wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr"><br>
                      <div class="gmail_extra">
                        <div class="gmail_quote"><br>
                          <div>Yes, can you please attach the logs
                            from  /var/log/ovirt-hosted-engine-ha/ ?</div>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                </span> Attached.</div>
            </blockquote>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>Now the agent correctly reads the VM configuration file
              from the shared domain so no issue there but then it exits
              cause VDSM is not up:</div>
            <div><br>
            </div>
            <div>
              <div>MainThread::INFO::2015-09-14
                20:48:58,007::hosted_engine::667::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_storage_images)
                Reloading vm.conf from the shared storage domain</div>
              <div>MainThread::INFO::2015-09-14
                20:48:58,163::hosted_engine::460::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring)
                Current state EngineUp (score: 3400)</div>
              <div>MainThread::INFO::2015-09-14
                20:49:08,201::hosted_engine::610::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_vdsm)
                Initializing VDSM</div>
              <div>MainThread::INFO::2015-09-14
                20:49:08,317::hosted_engine::655::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_storage_images)
                Connecting the storage</div>
              <div>MainThread::INFO::2015-09-14
                20:49:08,318::storage_server::110::ovirt_hosted_engine_ha.lib.storage_server.StorageServer::(connect_storage_server)
                Connecting storage server</div>
              <div>MainThread::INFO::2015-09-14
                20:49:08,318::storage_server::135::ovirt_hosted_engine_ha.lib.storage_server.StorageServer::(connect_storage_server)
                Connecting storage server</div>
              <div>MainThread::INFO::2015-09-14
                20:49:08,349::hosted_engine::659::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_storage_images)
                Preparing images</div>
              <div>MainThread::INFO::2015-09-14
                20:49:08,349::image::61::ovirt_hosted_engine_ha.lib.image.Image::(prepare_images)
                Preparing images</div>
              <div>MainThread::INFO::2015-09-14
                20:49:08,787::hosted_engine::667::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_storage_images)
                Reloading vm.conf from the shared storage domain</div>
              <div>MainThread::INFO::2015-09-14
                20:49:08,941::hosted_engine::460::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring)
                Current state EngineUp (score: 3400)</div>
              <div>MainThread::INFO::2015-09-14
                20:49:15,104::agent::143::ovirt_hosted_engine_ha.agent.agent.Agent::(run)
                Agent shutting down</div>
              <div>MainThread::INFO::2015-09-14
                21:06:07,601::agent::78::ovirt_hosted_engine_ha.agent.agent.Agent::(run)
                ovirt-hosted-engine-ha agent
                1.3.0-0.0.master.20150909150500 started</div>
              <div>MainThread::INFO::2015-09-14
                21:06:07,632::hosted_engine::246::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_get_hostname)
                Found certificate common name: <a
                  moz-do-not-send="true"
                  href="http://lichthuis.puzzle-it.nu">lichthuis.puzzle-it.nu</a></div>
              <div>MainThread::INFO::2015-09-14
                21:06:07,633::hosted_engine::610::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_vdsm)
                Initializing VDSM</div>
              <div>MainThread::ERROR::2015-09-14
                21:06:18,209::hosted_engine::418::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring)
                Service vdsmd is not running and the admin is
                responsible for starting it. Shutting down.</div>
              <div>MainThread::INFO::2015-09-14
                21:06:18,210::agent::143::ovirt_hosted_engine_ha.agent.agent.Agent::(run)
                Agent shutting down</div>
            </div>
            <div><br>
            </div>
            <div>Martin, any hint there?</div>
            <div><br>
            </div>
            <div>Previously you had an issue there:</div>
            <div>MainThread::ERROR::2015-09-14
              17:34:19,972::agent::201::ovirt_hosted_engine_ha.agent.agent.Agent::(_run_agent)
              Error: '[Errno 13] Permission denied:
              '/var/run/ovirt-hosted-engine-ha/vm.conf'' - trying to
              restart agent<br>
            </div>
            <div><br>
            </div>
            <div>Did you manually created
              /var/run/ovirt-hosted-engine-ha/vm.conf being readable
              only by root or something similar? ovirt-ha-agent is
              running as vdsm user and it should be able to refresh
               /var/run/ovirt-hosted-engine-ha/vm.conf  with the master
              copy on the shared storage.<br>
            </div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    Yes, from the log of setup and forgot to chmod to 36:36<br>
    <br>
    <blockquote
cite="mid:CAN8-ONpcX9oVC0m4ZrjnbLUM0QeH-3UgLdmEUKadeHQFM3hKfg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <div>And previously than that it was failing with:</div>
            <div>MainThread::ERROR::2015-09-12
              13:53:23,727::agent::201::ovirt_hosted_engine_ha.agent.agent.Agent::(_run_agent)
              Error: ''StorageServer' object has no attribute
              'storageType'' - trying to restart agent<br>
            </div>
            <div>cause you were using ovirt-hosted-engine-ha agent
              1.3.0-0.0.master.20150819082341 which was unfortunately
              bugged on that. ovirt-hosted-engine-ha agent
              1.3.0-0.0.master.20150909150500 you are using now should
              be OK.</div>
            <div><br>
            </div>
            <div><br>
            </div>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    Trying a yum upgrade barfs with a depency problem trying to update 2
    or 3 ovirt related packages, one of them ovirt-hosted-engine, that
    was yesterday, maybe today it will work. I'll check<br>
    <br>
    So what is the sanlock error about?<br>
    <br>
    Joop<br>
    <br>
  </body>
</html>