[one-users] Deployment files transfer error

Hamada, Ondrej ondrej.hamada at acision.com
Tue Sep 30 05:27:03 PDT 2014


I think it’s even advised when you want to use push-mode for monitoring.

O.

From: m.alfonso.lopez at gmail.com [mailto:m.alfonso.lopez at gmail.com] On Behalf Of Manuel Alfonso López Rourich
Sent: Tuesday, September 30, 2014 2:07 PM
To: Hamada, Ondrej
Cc: users at lists.opennebula.org
Subject: Re: [one-users] Deployment files transfer error

Hello again,

I've resolved the problem in one host.

As I said in a previous message, I had access errors in the directory /var/lib/one/.ssh after mounting /var/lib/one in the remote host with NFS.

The problem was the fact that the oneadmin user id wasn't the same as the oneadmin user id in the front-end host so ONE couldn't access the ssh configuration and hosts couldn't comunicate each other without entering the password.

Now I have a doubt. Since the directory that is mounted is /var/lib/one from the front-end host, at the end, the directory is the same in the remote host and oneadmin has the same ssh key. Is this correct?

Thank you very much,

Best regards



2014-09-30 9:29 GMT+02:00 Hamada, Ondrej <ondrej.hamada at acision.com<mailto:ondrej.hamada at acision.com>>:
Hi Manuel,

Could you provide more information like the output of `ls –la /var/lib/one/` command?

I suppose the problem might be related to idmapd configuration. I guess you will see all the files owned by ‘nobody:nogroup’. In that case Google is your friend.

Ondra

From: m.alfonso.lopez at gmail.com<mailto:m.alfonso.lopez at gmail.com> [mailto:m.alfonso.lopez at gmail.com<mailto:m.alfonso.lopez at gmail.com>] On Behalf Of Manuel Alfonso López Rourich
Sent: Monday, September 29, 2014 7:38 PM
To: Hamada, Ondrej; users at lists.opennebula.org<mailto:users at lists.opennebula.org>

Subject: Re: [one-users] Deployment files transfer error

Hello again,

In order to share data between the host with the frontend and the target hosts, I followed the guide at http://docs.opennebula.org/4.6/design_and_installation/quick_starts/qs_ubuntu_kvm.html .

Mainly, I've exported the directory /var/lib/one in the frontend with NFS:

/var/lib/one/ *(rw,sync,no_subtree_check,root_squash) (in /etc/exports)

and I mounted the same directory in the host:

10.12.0.15:/var/lib/one/  /var/lib/one/  nfs   soft,intr,rsize=8192,wsize=8192,noauto (in /etc/fstab)

Now, the directory /var/lib/one in the host has a more typical structure but I cannot access /var/lib/one/.ssh even with the root user. It throws a permission denied message.

Any ideas?

Thank you very much,

Best regards


2014-09-29 9:16 GMT+02:00 Hamada, Ondrej <ondrej.hamada at acision.com<mailto:ondrej.hamada at acision.com>>:
Hi Manuel,

I’m not familiar with the slave zones, so I don’t know what will be the result of mounting the /var/lib/one in them. But you can always export only the needed datastore and mount it to /var/lib/one/datastores/$datastore_id on the target host.

Ondra

From: m.alfonso.lopez at gmail.com<mailto:m.alfonso.lopez at gmail.com> [mailto:m.alfonso.lopez at gmail.com<mailto:m.alfonso.lopez at gmail.com>] On Behalf Of Manuel Alfonso López Rourich
Sent: Monday, September 29, 2014 9:09 AM
To: Hamada, Ondrej
Cc: users at lists.opennebula.org<mailto:users at lists.opennebula.org>
Subject: Re: [one-users] Deployment files transfer error

Good morning,

I've deployed another VM because I deleted the other one. Anyway, the error is the same:

Command execution fail: /var/lib/one/remotes/tm/shared/clone opennebula-worker15:/var/lib/one//datastores/1/2ac54ee0c7b5f0f489216e9a04451725 10.12.0.18:/var/lib/one//datastores/0/18/disk.0 18 1

In the target host, the directory /var/lib/one/datastores/0/18/ is empty.

Do i have to configure /var/lib/one/ in the target hosts as a NFS directory?

Thank you very much

Best regards

2014-09-28 15:35 GMT+02:00 Ondrej Hamada <ondrej.hamada at acision.com<mailto:ondrej.hamada at acision.com>>:
Hi Manuel,
you are obviously using shared datastores. Can you check that you can access the file 'var/lib/one//datastores/1/2ac54ee0c7b5f0f489216e9a04451725' on the target hosts?

Ondra

On 09/24/2014 11:03 AM, Manuel Alfonso López Rourich wrote:
Good morning,

I have four hosts and I installed OpenNebula in one of them. That installation of ONE is a slave zone.

I added the four hosts and I can deploy VMs in the one where ONE slave is installed but in the other ones I can't.

It must be some issue related with the files transfer during the deployment, because the errors in the log are:

Wed Sep 24 10:23:37 2014 [TM][D]: Message received: LOG I 11 Command execution fail: /var/lib/one/remotes/tm/shared/clone opennebula-worker15:/var/lib/one//datastores/1/2ac54ee0c7b5f0f489216e9a04451725 10.12.0.18:/var/lib/one//datastores/0/11/disk.0 11 1
Wed Sep 24 10:23:37 2014 [TM][D]: Message received: LOG I 11 clone: Cloning /var/lib/one/datastores/1/2ac54ee0c7b5f0f489216e9a04451725 in 10.12.0.18:/var/lib/one//datastores/0/11/disk.0
Wed Sep 24 10:23:37 2014 [TM][D]: Message received: LOG E 11 clone: Command "cd /var/lib/one/datastores/0/11; cp /var/lib/one/datastores/1/2ac54ee0c7b5f0f489216e9a04451725 /var/lib/one/datastores/0/11/disk.0" failed: Warning: Permanently added '10.12.0.18' (ECDSA) to the list of known hosts.
Wed Sep 24 10:23:37 2014 [TM][D]: Message received: LOG I 11 cp: cannot stat '/var/lib/one/datastores/1/2ac54ee0c7b5f0f489216e9a04451725': No such file or directory
Wed Sep 24 10:23:37 2014 [TM][D]: Message received: LOG E 11 Error copying opennebula-worker15:/var/lib/one//datastores/1/2ac54ee0c7b5f0f489216e9a04451725 to 10.12.0.18:/var/lib/one//datastores/0/11/disk.0
Wed Sep 24 10:23:37 2014 [TM][D]: Message received: LOG I 11 ExitCode: 1
Wed Sep 24 10:23:37 2014 [TM][D]: Message received: TRANSFER FAILURE 11 Error copying opennebula-worker15:/var/lib/one//datastores/1/2ac54ee0c7b5f0f489216e9a04451725 to 10.12.0.18:/var/lib/one//datastores/0/11/disk.0

I can do ssh between nodes without putting the key.

Thank you very much for your help. Best regards




_______________________________________________

Users mailing list

Users at lists.opennebula.org<mailto:Users at lists.opennebula.org>

http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

________________________________
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you for understanding.

_______________________________________________
Users mailing list
Users at lists.opennebula.org<mailto:Users at lists.opennebula.org>
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

________________________________
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you for understanding.

________________________________
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you for understanding.

________________________________
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you for understanding.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140930/710fe5d1/attachment-0001.htm>


More information about the Users mailing list