Wind River Support Network

HomeDefectsOVP-1253
Fixed

OVP-1253 : [vdsm] connectStorageServer failed while create storage domain via ovirt-engine due to the /windriver/data-center/* files uid:gid is root:root

Created: Jul 29, 2013    Updated: Mar 11, 2016
Resolved Date: Sep 2, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.7
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Userspace

Description

Problem Description
======================
connectStorageServer failed while create storage domain via ovirt-engine due to the /windriver/data-center/* files uid:gid is root:root

Expected Behavior
======================
It works well, there no error logs.

Observed Behavior
======================
None

Logs
======================
----------------part of vdsm.log--------------
Thread-340::DEBUG::2013-07-29 09:44:32,448::task::568::TaskManager.Task::(_updateState) Task=`f64687f5-de43-4603-bca6-fc6a873f6227`::moving from state init -> state preparing
Thread-340::INFO::2013-07-29 09:44:32,448::logUtils::41::dispatcher::(wrapper) Run and protect: connectStorageServer(domType=4, spUUID='00000000-0000-0000-0000-000000000000', conList=[{'connection': '/export/sha
re', 'iqn': '', 'portal': '', 'user': '', 'password': '******', 'id': '00000000-0000-0000-0000-000000000000', 'port': ''}], options=None)
Thread-340::ERROR::2013-07-29 09:44:32,564::hsm::2212::Storage.HSM::(connectStorageServer) Could not connect to storageServer
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/hsm.py", line 2208, in connectStorageServer
    conObj.connect()
  File "/usr/share/vdsm/storage/storageServer.py", line 471, in connect
    os.symlink(self._path, lnPath)
OSError: [Errno 13] Permission denied
Thread-340::INFO::2013-07-29 09:44:32,565::logUtils::44::dispatcher::(wrapper) Run and protect: connectStorageServer, Return response: {'statuslist': [{'status': 100, 'id': '00000000-0000-0000-0000-000000000000'}]}
Thread-340::DEBUG::2013-07-29 09:44:32,565::task::1151::TaskManager.Task::(prepare) Task=`f64687f5-de43-4603-bca6-fc6a873f6227`::finished: {'statuslist': [{'status': 100, 'id': '00000000-0000-0000-0000-000000000000'}]} 

Workaround

root@localhost:~# ls /windriver/data-center/ -l
total 8
drwxr-xr-x. 2 root root 4096 Jul 28 04:10 hsm-tasks
drwxr-xr-x. 2 root root 4096 Jul 29 08:23 mnt
root@localhost:~# chown vdsm:kvm /windriver/data-center/* -R
root@localhost:~# ls /windriver/data-center/ -l 
total 8
drwxr-xr-x. 2 vdsm kvm 4096 Jul 28 04:10 hsm-tasks
drwxr-xr-x. 2 vdsm kvm 4096 Jul 29 08:23 mnt

Steps to Reproduce

1) /lpg-build/cdc/fast_prod/wrlinuxovp/dvd_install/lv02_13sp/wrlinux-5/wrlinux/configure --enable-jobs=16 --enable-parallel-pkgbuilds=8 --enable-kernel=preempt-rt --enable-addons=wr-ovp --enable-rootfs=ovp-ovirt-node --enable-board=intel_xeon_core --with-rcpl-version=0006
2) Deploy image
3) Up node via ovirt-engine
4) Create storage domain via ovirt-engine UI.

check status and vdsm.log 
Live chat
Online