I tried a very simple vdsm cli py program, and getting error 469 ( perm
denied storage excp).
This is my simple program (just trying to see if the mount of glusterfs
works )
NOTE: the stuff needed to configure a glusterfs volume named 'myvol' is
done manually
before executing the below code.
#!/usr/bin/python
# GPLv2+
import sys
import uuid
import time
sys.path.append('/usr/share/vdsm')
import vdscli
from storage.sd import SHAREDFS_DOMAIN, DATA_DOMAIN, ISO_DOMAIN
from storage.volume import COW_FORMAT, SPARSE_VOL, LEAF_VOL, BLANK_UUID
spUUID = str(uuid.uuid4())
sdUUID = str(uuid.uuid4())
imgUUID = str(uuid.uuid4())
volUUID = str(uuid.uuid4())
print "spUUID = %s"%spUUID
print "sdUUID = %s"%sdUUID
print "imgUUID = %s"%imgUUID
print "volUUID = %s"%volUUID
# you should manually create the following directory and
# chown vdsm:kvm /tmp/localstoragedomain
#mntpath = "/tmp/gluster_mount"
gluster_conn = "llm65.in.ibm.com:myvol"
s = vdscli.connect()
masterVersion = 1
hostID = 1
def vdsOK(d):
print d
if d['status']['code']:
raise Exception(str(d))
return d
def waitTask(s, taskid):
while vdsOK(s.getTaskStatus(taskid))['taskStatus']['taskState'] !=
'finished':
time.sleep(3)
vdsOK(s.clearTask(taskid))
vdsOK(s.connectStorageServer(SHAREDFS_DOMAIN, "my gluster mount",
[dict(id=1, spec=gluster_conn, vfs_type="glusterfs", mnt_options="")]))
This is the output...
[root@llm65 vdsm]# ./dpk-sharedfs-vm.py
spUUID = 8d7a9581-0eec-4bd3-bbad-89c1b041340b
sdUUID = 17e60c50-8349-48c0-a2b7-b1638490298a
imgUUID = 7515f471-5053-4011-8a7d-ff266baa7d4b
volUUID = 276742d8-2d3b-4fab-99d1-0c6d346bb0fd
{'status': {'message': 'OK', 'code': 0}, 'statuslist': [{'status': 469,
'id': 1}]}
Since it was vdsm:kvm who created the mount point.. I am unclear on why
it gives 469 strg exception ?
_______________________________________________
vdsm-devel mailing list
vdsm-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/vdsm-devel