<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 08/27/2013 11:10 AM, higkoohk wrote:<br>
    </div>
    <blockquote
cite="mid:CAMkC2Wg4-mEVnHJJF5PrTXCHG7oLkMDnOx9H537+iMDJvOOYdw@mail.gmail.com"
      type="cite">
      <div dir="ltr">the vdsm.log :
        <div>
          <div>Thread-3817::DEBUG::2013-08-27
            13:38:30,980::persistentDict::234::Storage.PersistentDict::(refresh)
            read lines (FileMetadataRW)=['CLASS=Data',
            'DESCRIPTION=GlusterDomain', 'IOOPTIMEOUTSEC=10',
            'LEASERETRIES=3', 'LEASETIMESEC=60', 'LOCKPOLICY=',
            'LOCKRENEWALINTERVALSEC=5', 'POOL_UUID=',
            'REMOTE_PATH=172.28.26.102:vm-storage', 'ROLE=Regular',
            'SDUUID=9a8554b5-c514-4e46-91cc-b0490a977d55',
            'TYPE=GLUSTERFS', 'VERSION=3',
            '_SHA_CKSUM=7329f71f34ccd201c574c9e06dd9d5c07084d17f']</div>
          <div>Thread-3817::WARNING::2013-08-27
            13:38:30,981::fileUtils::167::Storage.fileUtils::(createdir)
            Dir /rhev/data-center/e8f568cf-e9db-4cf1-b812-1e4b8ae530cc
            already exists</div>
          <div>Thread-3817::DEBUG::2013-08-27
            13:38:30,981::persistentDict::167::Storage.PersistentDict::(transaction)
            Starting transaction</div>
          <div>Thread-3817::DEBUG::2013-08-27
            13:38:30,981::persistentDict::175::Storage.PersistentDict::(transaction)
            Finished transaction</div>
          <div>Thread-3817::<a class="moz-txt-link-freetext" href="INFO::2013-08-27">INFO::2013-08-27</a>
            13:38:30,981::clusterlock::174::SANLock::(acquireHostId)
            Acquiring host id for domain
            9a8554b5-c514-4e46-91cc-b0490a977d55 (id: 250)</div>
          <div>Thread-3817::ERROR::2013-08-27
            13:38:31,982::task::850::TaskManager.Task::(_setError)
            Task=`e2ec1d1f-c94d-46bd-8db3-ef83fed0fd79`::Unexpected
            error</div>
          <div>Traceback (most recent call last):</div>
          <div>&nbsp; File "/usr/share/vdsm/storage/task.py", line 857, in
            _run</div>
          <div>&nbsp; &nbsp; return fn(*args, **kargs)</div>
          <div>&nbsp; File "/usr/share/vdsm/logUtils.py", line 45, in wrapper</div>
          <div>&nbsp; &nbsp; res = f(*args, **kwargs)</div>
          <div>&nbsp; File "/usr/share/vdsm/storage/hsm.py", line 960, in
            createStoragePool</div>
          <div>&nbsp; &nbsp; masterVersion, leaseParams)</div>
          <div>&nbsp; File "/usr/share/vdsm/storage/sp.py", line 617, in
            create</div>
          <div>&nbsp; &nbsp; self._acquireTemporaryClusterLock(msdUUID,
            leaseParams)</div>
          <div>&nbsp; File "/usr/share/vdsm/storage/sp.py", line 559, in
            _acquireTemporaryClusterLock</div>
          <div>&nbsp; &nbsp; msd.acquireHostId(<a moz-do-not-send="true"
              href="http://self.id">self.id</a>)</div>
          <div>&nbsp; File "/usr/share/vdsm/storage/sd.py", line 458, in
            acquireHostId</div>
          <div>&nbsp; &nbsp; self._clusterLock.acquireHostId(hostId, async)</div>
          <div>
            &nbsp; File "/usr/share/vdsm/storage/clusterlock.py", line 189,
            in acquireHostId</div>
          <div>&nbsp; &nbsp; raise se.AcquireHostIdFailure(self._sdUUID, e)</div>
          <div>AcquireHostIdFailure: Cannot acquire host id:
            ('9a8554b5-c514-4e46-91cc-b0490a977d55',
            SanlockException(22, 'Sanlock lockspace add failure',
            'Invalid argument'))</div>
          <div>Thread-3817::DEBUG::2013-08-27
            13:38:31,982::task::869::TaskManager.Task::(_run)
            Task=`e2ec1d1f-c94d-46bd-8db3-ef83fed0fd79`::Task._run:
            e2ec1d1f-c94d-46bd-8db3-ef83fed0fd79 (None,
            'e8f568cf-e9db-4cf1-b812-1e4b8ae530cc', 'GlusterDataCenter',
            '9a8554b5-c514-4e46-91cc-b0490a977d55',
            ['9a8554b5-c514-4e46-91cc-b0490a977d55'], 7, None, 5, 60,
            10, 3) {} failed - stopping task</div>
        </div>
      </div>
    </blockquote>
    <br>
    I'm not very aware of the VDSM error, adding Deepak to look at it.<br>
    If you're trying to use GlusterFS as storage domain, have you
    followed the&nbsp; "Important Pre-requisites" in
    <a class="moz-txt-link-freetext" href="http://www.ovirt.org/Features/GlusterFS_Storage_Domain">http://www.ovirt.org/Features/GlusterFS_Storage_Domain</a>?<br>
    <br>
    thank!<br>
    sahina<br>
    <blockquote
cite="mid:CAMkC2Wg4-mEVnHJJF5PrTXCHG7oLkMDnOx9H537+iMDJvOOYdw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">2013/8/27 higkoohk <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:higkoohk@gmail.com"
              target="_blank">higkoohk@gmail.com</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>Hello everyone!</div>
              <div><br>
              </div>
              <div>I'm init a glusterfs vm center , and now doing
                storage domain fail torage .</div>
              <div><br>
              </div>
              <div>Still get 'Cannot acquire host id'.</div>
              <div><br>
              </div>
              Env:
              <div>
                <table
                  style="padding-top:10px;width:1603px;font-family:'Arial
                  Unicode MS',Arial,sans-serif" cellpadding="0"
                  cellspacing="0">
                  <tbody>
                    <tr>
                      <td style="font-family:'Arial Unicode
                        MS',Arial,sans-serif;vertical-align:top"
                        align="left">
                        <table
style="display:block;padding-left:16px;padding-right:16px;line-height:18px">
                          <tbody>
                            <tr>
                              <td style="font-family:'Arial Unicode
                                MS',Arial,sans-serif;vertical-align:top"
                                align="left">
                                <table
                                  style="display:block;padding-left:16px;padding-right:16px">
                                  <tbody>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">OS
                                          Version:RHEL - 6 -
                                          4.el6.centos.10</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <input readonly="readonly"
                                          title="RHEL - 6 -
                                          4.el6.centos.10"
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px;border-width:0px;width:361px"
                                          type="text"></td>
                                    </tr>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">Kernel
                                          Version:2.6.32 -
                                          358.14.2.el6.x86_64</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <input readonly="readonly"
                                          title="2.6.32 -
                                          358.14.2.el6.x86_64"
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px;border-width:0px;width:361px"
                                          type="text"></td>
                                    </tr>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">KVM
                                          Version:0.12.1.2 - 2.355.el6</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <input readonly="readonly"
                                          title="0.12.1.2 - 2.355.el6"
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px;border-width:0px;width:361px"
                                          type="text"></td>
                                    </tr>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">LIBVIRT
                                          Version:</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <span
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">libvirt-1.1.1-1.el6</span></td>
                                    </tr>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">VDSM
                                          Version:</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif"><span
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">vdsm-4.12.0-0.1.rc3.el6</span></td>
                                    </tr>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">SPICE
                                          Version:0.12.0 - 12.el6</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <input readonly="readonly"
                                          title="0.12.0 - 12.el6"
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px;border-width:0px;width:361px"
                                          type="text"></td>
                                    </tr>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">iSCSI
                                          Initiator
                                          Name:iqn.1994-05.com.redhat:9ea82ec11b83</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <input readonly="readonly"
                                          title="iqn.1994-05.com.redhat:9ea82ec11b83"
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px;border-width:0px;width:361px"
                                          type="text"></td>
                                    </tr>
                                  </tbody>
                                </table>
                              </td>
                              <td style="font-family:'Arial Unicode
                                MS',Arial,sans-serif;vertical-align:top"
                                align="left">
                                <table
                                  style="display:block;padding-left:16px;padding-right:16px">
                                  <colgroup><col style="min-width:100px"><col
                                      style="min-width:100px;width:0px"></colgroup><tbody>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">SPM
                                          Priority:</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <input readonly="readonly"
                                          title="Medium"
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px;border-width:0px;width:343px"
                                          type="text"></td>
                                    </tr>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">Active
                                          VMs:</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <span
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">0</span></td>
                                    </tr>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">CPU
                                          Name:Intel SandyBridge Family</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif"><input
                                          readonly="readonly"
                                          title="Intel SandyBridge
                                          Family"
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px;border-width:0px;width:343px"
                                          type="text"></td>
                                    </tr>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">CPU
                                          Type:Intel(R) Xeon(R) CPU
                                          E5-2620 0 @ 2.00GHz</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <input readonly="readonly"
                                          title="Intel(R) Xeon(R) CPU
                                          E5-2620 0 @ 2.00GHz"
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px;border-width:0px;width:343px"
                                          type="text"></td>
                                    </tr>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">CPU
                                          Sockets:</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <span
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">1</span></td>
                                    </tr>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">CPU
                                          Cores per Socket:</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif"><span
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">6</span></td>
                                    </tr>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">CPU
                                          Threads per Core:2 (SMT
                                          Enabled)</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <input readonly="readonly"
                                          title="2 (SMT Enabled)"
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px;border-width:0px;width:343px"
                                          type="text"></td>
                                    </tr>
                                  </tbody>
                                </table>
                              </td>
                              <td style="font-family:'Arial Unicode
                                MS',Arial,sans-serif;vertical-align:top"
                                align="left">
                                <table
                                  style="display:block;padding-left:16px;padding-right:16px">
                                  <colgroup><col style="min-width:100px"><col
                                      style="min-width:100px;width:0px"></colgroup><tbody>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">Physical
                                          Memory:</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <span
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">24135
                                          MB total, 965 MB used, 23170
                                          MB free</span></td>
                                    </tr>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">Swap
                                          Size:</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif"><span
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">23999
                                          MB total, 0 MB used, 23999 MB
                                          free</span></td>
                                    </tr>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">Shared
                                          Memory:</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <span
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">0%</span></td>
                                    </tr>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">Max
                                          free Memory for scheduling new
                                          VMs:</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif"><span
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">23749
                                          MB</span></td>
                                    </tr>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">Memory
                                          Page Sharing:</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <span
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">Inactive</span></td>
                                    </tr>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">
                                        <div
                                          style="white-space:nowrap;font-family:Arial,sans-serif">Automatic
                                          Large Pages:</div>
                                      </td>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif"><span
style="white-space:nowrap;color:rgb(119,119,119);font-family:Arial,sans-serif;padding-left:4px;padding-top:4px;padding-bottom:4px">Always</span></td>
                                    </tr>
                                    <tr>
                                      <td style="font-family:'Arial
                                        Unicode MS',Arial,sans-serif">&nbsp;</td>
                                    </tr>
                                  </tbody>
                                </table>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                        <br>
                      </td>
                    </tr>
                  </tbody>
                </table>
                <div><br>
                </div>
                <div>The error message is :&nbsp;</div>
                <div>
                  <br>
                </div>
                <div>
                  <div>2013-08-27 12:13:25,814 ERROR
                    [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStoragePoolVDSCommand]
                    (pool-6-thread-50) Failed in CreateStoragePoolVDS
                    method</div>
                  <div>2013-08-27 12:13:25,815 ERROR
                    [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStoragePoolVDSCommand]
                    (pool-6-thread-50) Error code AcquireHostIdFailure
                    and error message VDSGenericException:
                    VDSErrorException: Failed to CreateStoragePoolVDS,
                    error = Cannot acquire host id:
                    ('9a8554b5-c514-4e46-91cc-b0490a977d55',
                    SanlockException(22, 'Sanlock lockspace add
                    failure', 'Invalid argument'))</div>
                  <div>2013-08-27 12:13:25,817 ERROR
                    [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStoragePoolVDSCommand]
                    (pool-6-thread-50) Command CreateStoragePoolVDS
                    execution failed. Exception: VDSErrorException:
                    VDSGenericException: VDSErrorException: Failed to
                    CreateStoragePoolVDS, error = Cannot acquire host
                    id: ('9a8554b5-c514-4e46-91cc-b0490a977d55',
                    SanlockException(22, 'Sanlock lockspace add
                    failure', 'Invalid argument'))</div>
                  <div>2013-08-27 12:13:25,819 ERROR
                    [org.ovirt.engine.core.bll.storage.AddStoragePoolWithStoragesCommand]
                    (pool-6-thread-50) Command
                    org.ovirt.engine.core.bll.storage.AddStoragePoolWithStoragesCommand
                    throw Vdc Bll exception. With error message
                    VdcBLLException:
                    org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException:
                    VDSGenericException: VDSErrorException: Failed to
                    CreateStoragePoolVDS, error = Cannot acquire host
                    id: ('9a8554b5-c514-4e46-91cc-b0490a977d55',
                    SanlockException(22, 'Sanlock lockspace add
                    failure', 'Invalid argument')) (Failed with VDSM
                    error AcquireHostIdFailure and code 661)</div>
                </div>
              </div>
              <div><br>
              </div>
              <div>What can i do now ? many thanks</div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a>
<a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>