Wind River Support Network

Fixed

OVP-8 : [OVP:] Can not attach glusterfs volume to data center

Created: Jun 23, 2013    Updated: Mar 11, 2016
Resolved Date: Oct 28, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.9
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Documentation

Description

Problem Description
======================
Create glusterfs volume with fdora18 engine, then try to add new storage domain with this volume,
this operation will fail.


Expected Behavior
======================
Add new storage domain to data center success.

Observed Behavior
======================
Log messages:
Thread-181::WARNING::2013-06-20 18:02:51,124::fileUtils::185::fileUtils::(createdir) Dir /rhev/data-center/4ba614c4-ff5c-4e07-8a36-a94fa085b998 already exists
Thread-181::DEBUG::2013-06-20 18:02:51,125::persistentDict::167::Storage.PersistentDict::(transaction) Starting transaction
Thread-181::DEBUG::2013-06-20 18:02:51,125::persistentDict::175::Storage.PersistentDict::(transaction) Finished transaction
Thread-181::INFO::2013-06-20 18:02:51,125::safelease::160::SANLock::(acquireHostId) Acquiring host id for domain 1bcff8bd-1644-4dd8-b364-195a8f95efb1 (id: 250)
Thread-181::ERROR::2013-06-20 18:02:51,125::task::833::TaskManager.Task::(_setError) Task=`4f83d71c-4f32-45c7-8c1b-8dd4859b241d`::Unexpected error
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/task.py", line 840, in _run
    return fn(*args, **kargs)
  File "/usr/share/vdsm/logUtils.py", line 42, in wrapper
    res = f(*args, **kwargs)
  File "/usr/share/vdsm/storage/hsm.py", line 892, in createStoragePool
    masterVersion, safeLease)
  File "/usr/share/vdsm/storage/sp.py", line 568, in create
    self._acquireTemporaryClusterLock(msdUUID, safeLease)
  File "/usr/share/vdsm/storage/sp.py", line 509, in _acquireTemporaryClusterLock
    msd.acquireHostId(self.id)
  File "/usr/share/vdsm/storage/sd.py", line 430, in acquireHostId
    self._clusterLock.acquireHostId(hostId, async)
  File "/usr/share/vdsm/storage/safelease.py", line 175, in acquireHostId
    raise se.AcquireHostIdFailure(self._sdUUID, e)
AcquireHostIdFailure: Cannot acquire host id: ('1bcff8bd-1644-4dd8-b364-195a8f95efb1', SanlockException(13, 'Sanlock lockspace add failure', 'Permission denied'))
Thread-181::DEBUG::2013-06-20 18:02:51,126::task::852::TaskManager.Task::(_run) Task=`4f83d71c-4f32-45c7-8c1b-8dd4859b241d`::Task._run: 4f83d71c-4f32-45c7-8c1b-8dd4859b241d (None, '4ba614c4-ff5c-4e07-8a36-a94fa085b998', 'dc-cxu', '1bcff8bd-1644-4dd8-b364-195a8f95efb1', ['1bcff8bd-1644-4dd8-b364-195a8f95efb1'], 10, None, 5, 60, 10, 3) {} failed - stopping task
Thread-181::DEBUG::2013-06-20 18:02:51,126::task::1177::TaskManager.Task::(stop) Task=`4f83d71c-4f32-45c7-8c1b-8dd4859b241d`::stopping in state preparing (force False)
Thread-181::DEBUG::2013-06-20 18:02:51,126::task::957::TaskManager.Task::(_decref) Task=`4f83d71c-4f32-45c7-8c1b-8dd4859b241d`::ref 1 aborting True
Thread-181::INFO::2013-06-20 18:02:51,126::task::1134::TaskManager.Task::(prepare) Task=`4f83d71c-4f32-45c7-8c1b-8dd4859b241d`::aborting: Task is aborted: 'Cannot acquire host id' - code 661
Thread-181::DEBUG::2013-06-20 18:02:51,126::task::1139::TaskManager.Task::(prepare) Task=`4f83d71c-4f32-45c7-8c1b-8dd4859b241d`::Prepare: aborted: Cannot acquire host id
Thread-181::DEBUG::2013-06-20 18:02:51,126::task::957::TaskManager.Task::(_decref) Task=`4f83d71c-4f32-45c7-8c1b-8dd4859b241d`::ref 0 aborting True
Thread-181::DEBUG::2013-06-20 18:02:51,127::task::892::TaskManager.Task::(_doAbort) Task=`4f83d71c-4f32-45c7-8c1b-8dd4859b241d`::Task._doAbort: force False
Thread-181::DEBUG::2013-06-20 18:02:51,127::resourceManager::864::ResourceManager.Owner::(cancelAll) Owner.cancelAll requests {}

Steps to Reproduce

1. Operation on target:
echo "storage-node-cxu" > /etc/hostname
hostname storage-node-cxu
echo "128.224.158.30    storage-node-cxu" >> /etc/hosts
cp /etc/vdsm/vdsm.conf /etc/vdsm/vdsm.conf.orig
sed -i '/ssl =/s/^# //g' /etc/vdsm/vdsm.conf
sed -i '/ssl =/s/true/false/g' /etc/vdsm/vdsm.conf
cp /etc/libvirt/libvirtd.conf /etc/libvirt/libvirtd.conf.orig
sed -i '/auth_tcp =/s/^#//g' /etc/libvirt/libvirtd.conf
sed -i '/auth_tcp =/s/sasl/none/g' /etc/libvirt/libvirtd.conf
cp /etc/libvirt/qemu.conf /etc/libvirt/qemu.conf.orig
sed -i '/spice_tls/s/1/0/g' /etc/libvirt/qemu.conf
mkdir -p /var/log/vdsm-reg
chown vdsm.kvm /var/log/vdsm-reg
brctl addbr ovirtmgmt
ifconfig ovirtmgmt up
cp /usr/share/vdsm/dsaversion.py /usr/share/vdsm/dsaversion.py.orig
sed -i "/supportedENGINEs/s/]/, '3.2']/g" /usr/share/vdsm/dsaversion.py

2. Add this target to ovirt engine.
3. create gluster volume with ovirt engine.
4. re-start vdsmd on target.
5. on ovirt engine, create new storage domain with this gluster volume.
Live chat
Online