[one-users] iSCSI problems

Christophe Duez christophe.duez at student.uantwerpen.be
Wed Apr 30 06:34:21 PDT 2014


The output is:
[root at OpenNebulaServer ~]# ls -l /var/lib/one//datastores/0/11/disk.0
lrwxrwxrwx 1 oneadmin oneadmin 60 Apr 30 17:31
/var/lib/one//datastores/0/11/disk.0 ->
/var/lib/one/datastores/106/1efbae0cda50a4ac7ecda3f226f32084

(I changed some things so it is an other disk but still same error pastebin
same error <http://pastebin.com/GUUgp6cK>)


On Wed, Apr 30, 2014 at 2:51 PM, Jaime Melis <jmelis at opennebula.org> wrote:

>  Hi,
>
> What is the output of "ls -l /var/lib/one//datastores/0/7/disk.0" ?
>
>
>
> On Tue, Apr 29, 2014 at 7:04 PM, Christophe Duez <
> christophe.duez at student.uantwerpen.be> wrote:
>
>> Untill I have to Create a VM.
>> I can upload a CD and create an empty datastore or upload a image but I
>> cant run the VM
>> Error : http://pastebin.com/9CbwFF1Q
>> any thoughts?
>> did I change to much permissions?
>>
>>  Tue Apr 29 21:03:00 2014 [ReM][D]: Req:9936 UID:0
>>>> VirtualMachinePoolInfo result SUCCESS, "<VM_POOL><VM><ID>7</..."
>>>
>>>  Tue Apr 29 21:03:00 2014 [ReM][D]: Req:9936 UID:0
>>>> VirtualMachinePoolInfo invoked, -2, -1, -1, -1
>>>
>>>  Tue Apr 29 21:03:00 2014 [ReM][D]: Req:9936 UID:0
>>>> VirtualMachinePoolInfo result SUCCESS, "<VM_POOL><VM><ID>7</..."
>>>
>>>  Tue Apr 29 21:03:00 2014 [ReM][D]: Req:1744 UID:0 DatastorePoolInfo
>>>> invoked
>>>
>>>  Tue Apr 29 21:03:00 2014 [ReM][D]: Req:1744 UID:0 DatastorePoolInfo
>>>> result SUCCESS, "<DATASTORE_POOL><DAT..."
>>>
>>>  Tue Apr 29 21:03:00 2014 [ReM][D]: Req:1744 UID:0 DatastorePoolInfo
>>>> invoked
>>>
>>>  Tue Apr 29 21:03:00 2014 [ReM][D]: Req:1744 UID:0 DatastorePoolInfo
>>>> result SUCCESS, "<DATASTORE_POOL><DAT..."
>>>
>>>  Tue Apr 29 21:03:00 2014 [ReM][D]: Req:560 UID:0 HostPoolInfo invoked
>>>
>>>  Tue Apr 29 21:03:00 2014 [ReM][D]: Req:560 UID:0 HostPoolInfo result
>>>> SUCCESS, "<HOST_POOL><HOST><ID..."
>>>
>>>  Tue Apr 29 21:03:00 2014 [ReM][D]: Req:6720 UID:0 ClusterPoolInfo
>>>> invoked
>>>
>>>  Tue Apr 29 21:03:00 2014 [ReM][D]: Req:6720 UID:0 ClusterPoolInfo
>>>> result SUCCESS, "<CLUSTER_POOL></CLUS..."
>>>
>>>  Tue Apr 29 21:03:00 2014 [ReM][D]: Req:9584 UID:0 AclInfo invoked
>>>
>>>  Tue Apr 29 21:03:00 2014 [ReM][D]: Req:9584 UID:0 AclInfo result
>>>> SUCCESS, "<ACL_POOL><ACL><ID>0..."
>>>
>>>  Tue Apr 29 21:03:00 2014 [ReM][D]: Req:7776 UID:0 VirtualMachineDeploy
>>>> invoked, 7, 1, false, 0
>>>
>>>  Tue Apr 29 21:03:00 2014 [DiM][D]: Deploying VM 7
>>>
>>>  Tue Apr 29 21:03:00 2014 [ReM][D]: Req:7776 UID:0 VirtualMachineDeploy
>>>> result SUCCESS, 7
>>>
>>>  Tue Apr 29 21:03:01 2014 [TM][D]: Message received: TRANSFER SUCCESS 7 -
>>>
>>>
>>>>  Tue Apr 29 21:03:01 2014 [VMM][D]: Message received: LOG I 7
>>>> ExitCode: 0
>>>
>>>
>>>>  Tue Apr 29 21:03:01 2014 [VMM][D]: Message received: LOG I 7
>>>> Successfully execute network driver operation: pre.
>>>
>>>
>>>>  Tue Apr 29 21:03:01 2014 [VMM][D]: Message received: LOG I 7 Command
>>>> execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy
>>>> '/var/lib/one//datastores/0/7/deployment.0' 'kvm1' 7 kvm1
>>>
>>>
>>>>  Tue Apr 29 21:03:01 2014 [VMM][D]: Message received: LOG I 7 error:
>>>> Failed to create domain from /var/lib/one//datastores/0/7/deployment.0
>>>
>>>
>>>>  Tue Apr 29 21:03:01 2014 [VMM][D]: Message received: LOG I 7 error:
>>>> cannot open file '/var/lib/one//datastores/0/7/disk.0': Permission denied
>>>
>>>
>>>>  Tue Apr 29 21:03:01 2014 [VMM][D]: Message received: LOG E 7 Could
>>>> not create domain from /var/lib/one//datastores/0/7/deployment.0
>>>
>>>
>>>>  Tue Apr 29 21:03:01 2014 [VMM][D]: Message received: LOG I 7
>>>> ExitCode: 255
>>>
>>>
>>>>  Tue Apr 29 21:03:01 2014 [VMM][D]: Message received: LOG I 7 Failed
>>>> to execute virtualization driver operation: deploy.
>>>
>>>
>>>>  Tue Apr 29 21:03:01 2014 [VMM][D]: Message received: DEPLOY FAILURE 7
>>>> Could not create domain from /var/lib/one//datastores/0/7/deployment.0
>>>
>>>
>>>>  Tue Apr 29 21:03:04 2014 [ReM][D]: Req:3024 UID:1 DocumentPoolInfo
>>>> invoked, -2, -1, -1, 100
>>>
>>>  Tue Apr 29 21:03:04 2014 [ReM][D]: Req:3024 UID:1 DocumentPoolInfo
>>>> result SUCCESS, "<DOCUMENT_POOL></DOC..."
>>>
>>>  Tue Apr 29 21:03:07 2014 [ImM][D]: Datastore system (0) successfully
>>>> monitored.
>>>
>>>  Tue Apr 29 21:03:08 2014 [InM][D]: Host kvm1 (1) successfully monitored.
>>>
>>>  Tue Apr 29 21:03:17 2014 [ImM][D]: Datastore system (0) successfully
>>>> monitored.
>>>
>>>  Tue Apr 29 21:03:18 2014 [InM][D]: Host kvm2 (2) successfully monitored.
>>>
>>>  Tue Apr 29 21:03:26 2014 [ImM][I]: --Mark--
>>>
>>>  Tue Apr 29 21:03:26 2014 [InM][I]: --Mark--
>>>
>>>  Tue Apr 29 21:03:27 2014 [ImM][D]: Datastore system (0) successfully
>>>> monitored.
>>>
>>>  Tue Apr 29 21:03:28 2014 [InM][D]: Host kvm1 (1) successfully monitored.
>>>
>>>  Tue Apr 29 21:03:30 2014 [ReM][D]: Req:2368 UID:0
>>>> VirtualMachinePoolInfo invoked, -2, -1, -1, -1
>>>
>>>  Tue Apr 29 21:03:30 2014 [ReM][D]: Req:2368 UID:0
>>>> VirtualMachinePoolInfo result SUCCESS, "<VM_POOL><VM><ID>7</..."
>>>
>>>  Tue Apr 29 21:03:30 2014 [ReM][D]: Req:2368 UID:0
>>>> VirtualMachinePoolInfo invoked, -2, -1, -1, -1
>>>
>>>  Tue Apr 29 21:03:30 2014 [ReM][D]: Req:2368 UID:0
>>>> VirtualMachinePoolInfo result SUCCESS, "<VM_POOL><VM><ID>7</..."
>>>
>>>  Tue Apr 29 21:03:32 2014 [AuM][D]: Message received: AUTHENTICATE
>>>> SUCCESS 31 -
>>>
>>>
>>>
>>
>> On Tue, Apr 29, 2014 at 6:25 PM, Christophe Duez <
>> christophe.duez at student.uantwerpen.be> wrote:
>>
>>> I did the following:
>>> at the NAS:
>>> NasKampdreef11> chown 9869:9869 /volume1/@iSCSITrg/
>>> NasKampdreef11> chown 9869:9869 /volume1/@iSCSITrg/iSCSI_1_LUN-1_000
>>> chmod -R 0755 /volume1/@iSCSITrg/
>>>
>>>  at the frontend:
>>>  [root at OpenNebulaServer ~]# chown 9869:9869 /dev/sdc
>>> [root at OpenNebulaServer ~]# chmod -R 0775 /dev/sdc
>>>
>>>  AND I Forgot
>>> chown 9869:9869 /var/lib/one/datastores/100/
>>>
>>> I don't know if I need all of them but now it magically works...
>>>
>>>
>>>
>>>
>>> On Tue, Apr 29, 2014 at 5:46 PM, Jaime Melis <jmelis at opennebula.org>wrote:
>>>
>>>>  Right, can you write to that mountpoint as oneadmin? I believe you
>>>> are missing a chown -R. If oneadmin cannot write to that mountpoint
>>>> OpenNebula will fail.
>>>>
>>>>
>>>> On Tue, Apr 29, 2014 at 5:45 PM, Christophe Duez <
>>>> christophe.duez at student.uantwerpen.be> wrote:
>>>>
>>>>> this is the error in /var/log/one/oned.log
>>>>> http://pastebin.com/tAwQhgTi
>>>>>
>>>>>
>>>>> On Tue, Apr 29, 2014 at 4:42 PM, Christophe Duez <
>>>>> christophe.duez at student.uantwerpen.be> wrote:
>>>>>
>>>>>> Sorry,
>>>>>> I have 3 servers for my disposal. One is running opennebula
>>>>>> (frontend) the other 2 are nodes that will run the VM's.
>>>>>> I also have a Synology NAS that provide iSCSI targets.
>>>>>> I mounted the targets in my fronted (/etc/fstab => /dev/sdc
>>>>>> /var/lib/one//datastores/106 ext4 _netdev 0 0)
>>>>>>  In the sunstone interface I can see the correct volume of the
>>>>>> datastore.
>>>>>>
>>>>>>  So far so good.
>>>>>> But when I want to upload a Image, CD or create an empty datablock I
>>>>>> get the permission denied error.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Apr 29, 2014 at 3:02 PM, Jaime Melis <jmelis at opennebula.org>wrote:
>>>>>>
>>>>>>>  Can you please provide more information?
>>>>>>>
>>>>>>>  Where will you mount this iSCSI target? in what server (frontend
>>>>>>> or a node)? Or more generally, what exactly do you want to use iSCSI
>>>>>>>  target for?
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Apr 29, 2014 at 2:58 PM, Christophe Duez <
>>>>>>> christophe.duez at student.uantwerpen.be> wrote:
>>>>>>>
>>>>>>>> Hello,
>>>>>>>> I thought it would be possible to add an iSCSI target to my server
>>>>>>>> that is running OpenNebula.
>>>>>>>> Than OpenNebula would see this target as a normal disc and could
>>>>>>>> use it without any problems...
>>>>>>>> but that is not possible then?
>>>>>>>>
>>>>>>>>
>>>>>>>>  On Tue, Apr 29, 2014 at 11:39 AM, Jaime Melis <
>>>>>>>> jmelis at opennebula.org> wrote:
>>>>>>>>
>>>>>>>>>  Christophe,
>>>>>>>>>
>>>>>>>>>  when you say iscsi, do you mean the addon-iscsi? in that case
>>>>>>>>> you should follow this guide:
>>>>>>>>>
>>>>>>>>> https://github.com/OpenNebula/addon-iscsi#configuring-iscsi-datastores
>>>>>>>>>  and set properly DS_MAD and TM_MAD. From the base64 encoded
>>>>>>>>> error I can see this:
>>>>>>>>>
>>>>>>>>>          <DS_MAD>fs</DS_MAD>
>>>>>>>>>         <TM_MAD>shared</TM_MAD>
>>>>>>>>>
>>>>>>>>>  which is not what you want.
>>>>>>>>>
>>>>>>>>>  cheers,
>>>>>>>>> Jaime
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>   On Sun, Apr 27, 2014 at 7:05 PM, Christophe Duez <
>>>>>>>>> christophe.duez at student.uantwerpen.be> wrote:
>>>>>>>>>
>>>>>>>>>>   Hello,
>>>>>>>>>> when I try to upload an image to my iSCSI datastore it fails and
>>>>>>>>>> I dont know why.
>>>>>>>>>> can anyone help me please?
>>>>>>>>>> var/log/one/oned.log error <http://pastebin.com/xVX0N6UU>
>>>>>>>>>>
>>>>>>>>>>  thank you
>>>>>>>>>>
>>>>>>>>>>  C. Duez
>>>>>>>>>>
>>>>>>>>>>   _______________________________________________
>>>>>>>>>> Users mailing list
>>>>>>>>>> Users at lists.opennebula.org
>>>>>>>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>  --
>>>>>>>>>  Jaime Melis
>>>>>>>>> Project Engineer
>>>>>>>>> OpenNebula - Flexible Enterprise Cloud Made Simple
>>>>>>>>> www.OpenNebula.org | jmelis at opennebula.org
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>  --
>>>>>>>> Kind regards,
>>>>>>>> Duez Christophe
>>>>>>>> Student at University of Antwerp :
>>>>>>>> Master of Industrial Sciences: Electronics-ICT
>>>>>>>>
>>>>>>>> E christophe.duez at student.uantwperen.be
>>>>>>>> L linkedin duez-christophe<http://www.linkedin.com/pub/duez-christophe/74/7/39>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Users mailing list
>>>>>>>> Users at lists.opennebula.org
>>>>>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  --
>>>>>>>  Jaime Melis
>>>>>>> Project Engineer
>>>>>>> OpenNebula - Flexible Enterprise Cloud Made Simple
>>>>>>> www.OpenNebula.org | jmelis at opennebula.org
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>  --
>>>>>> Kind regards,
>>>>>> Duez Christophe
>>>>>> Student at University of Antwerp :
>>>>>> Master of Industrial Sciences: Electronics-ICT
>>>>>>
>>>>>> E christophe.duez at student.uantwperen.be
>>>>>> L linkedin duez-christophe<http://www.linkedin.com/pub/duez-christophe/74/7/39>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  --
>>>>> Kind regards,
>>>>> Duez Christophe
>>>>> Student at University of Antwerp :
>>>>> Master of Industrial Sciences: Electronics-ICT
>>>>>
>>>>> E christophe.duez at student.uantwperen.be
>>>>> L linkedin duez-christophe<http://www.linkedin.com/pub/duez-christophe/74/7/39>
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at lists.opennebula.org
>>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>>
>>>>>
>>>>
>>>>
>>>>  --
>>>>  Jaime Melis
>>>> Project Engineer
>>>> OpenNebula - Flexible Enterprise Cloud Made Simple
>>>> www.OpenNebula.org | jmelis at opennebula.org
>>>>
>>>
>>>
>>>
>>>  --
>>> Kind regards,
>>> Duez Christophe
>>> Student at University of Antwerp :
>>> Master of Industrial Sciences: Electronics-ICT
>>>
>>> E christophe.duez at student.uantwperen.be
>>> L linkedin duez-christophe<http://www.linkedin.com/pub/duez-christophe/74/7/39>
>>>
>>
>>
>>
>>  --
>> Kind regards,
>> Duez Christophe
>> Student at University of Antwerp :
>> Master of Industrial Sciences: Electronics-ICT
>>
>> E christophe.duez at student.uantwperen.be
>> L linkedin duez-christophe<http://www.linkedin.com/pub/duez-christophe/74/7/39>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
>  --
>  Jaime Melis
> Project Engineer
> OpenNebula - Flexible Enterprise Cloud Made Simple
> www.OpenNebula.org | jmelis at opennebula.org
>



-- 
Kind regards,
Duez Christophe
Student at University of Antwerp :
Master of Industrial Sciences: Electronics-ICT

E christophe.duez at student.uantwperen.be
L linkedin duez-christophe<http://www.linkedin.com/pub/duez-christophe/74/7/39>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140430/4c247155/attachment-0002.htm>


More information about the Users mailing list