[one-users] onevm deploy - ssh error

Abraham Taherivand abraham.taherivand at googlemail.com
Thu Sep 3 08:47:24 PDT 2009


Hi Javier,

thanks for your hint. I copied again the entires from ~/.ssh/ 
known_hosts to /etc/ssh/known_hosts,
and checked that the frontend can connect to itself. Now the scp  
command works.

After the deploy command with "onevm deploy" the state of my VM is in  
"prolog", and fail some minutes later with following error (in  
oned.log):

-----
Thu Sep  3 19:34:36 2009 [TM][D]: Message received: LOG - 34  
tm_clone.sh: opennebula01:/var/lib/one/images/disk0.qcow2  
nebulaworkernode2:/var/lib/one//34/images/disk.0

Thu Sep  3 19:34:36 2009 [TM][D]: Message received: LOG - 34  
tm_clone.sh: DST: /var/lib/one//34/images/disk.0

Thu Sep  3 19:34:36 2009 [TM][D]: Message received: LOG - 34  
tm_clone.sh: Creating directory /var/lib/one//34/images

Thu Sep  3 19:34:38 2009 [TM][D]: Message received: LOG - 34  
tm_clone.sh: Executed "ssh nebulaworkernode2 mkdir -p /var/lib/one//34/ 
images".

Thu Sep  3 19:34:38 2009 [TM][D]: Message received: LOG - 34  
tm_clone.sh: Cloning opennebula01:/var/lib/one/images/disk0.qcow2

Thu Sep  3 19:35:13 2009 [InM][D]: Host 7 successfully monitored.
Thu Sep  3 19:35:36 2009 [InM][I]: Monitoring host nebulaworkernode2 (7)
Thu Sep  3 19:37:14 2009 [InM][D]: Host 7 successfully monitored.
Thu Sep  3 19:37:37 2009 [InM][I]: Monitoring host nebulaworkernode2 (7)
Thu Sep  3 19:38:50 2009 [TM][D]: Message received: LOG - 34  
tm_clone.sh: Executed "scp opennebula01:/var/lib/one/images/ 
disk0.qcow2 nebulaworkernode2:/var/lib/one//34/images/disk.0".

Thu Sep  3 19:38:53 2009 [TM][D]: Message received: LOG - 34  
tm_clone.sh: Executed "ssh nebulaworkernode2 chmod a+w /var/lib/one// 
34/images/disk.0".

Thu Sep  3 19:38:53 2009 [TM][D]: Message received: TRANSFER SUCCESS  
34 -

Thu Sep  3 19:38:53 2009 [VMM][D]: Message received: LOG - 34 Command:  
scp /var/lib/one/34/deployment.0 nebulaworkernode2:/var/lib/one//34/ 
images/deployment.0

Thu Sep  3 19:38:56 2009 [VMM][D]: Message received: LOG - 34 Copy  
success

Thu Sep  3 19:38:58 2009 [VMM][D]: Message received: LOG - 34  
Connecting to uri: qemu:///system

Thu Sep  3 19:38:58 2009 [VMM][D]: Message received: LOG - 34 Fehler:  
Fehler beim Erstellen der Domain von /var/lib/one//34/images/ 
deployment.0

Thu Sep  3 19:38:58 2009 [VMM][D]: Message received: LOG - 34 Fehler:  
unknown OS type hvm

Thu Sep  3 19:38:58 2009 [VMM][D]: Message received: LOG - 34  
ExitCode: 1

Thu Sep  3 19:38:58 2009 [VMM][D]: Message received: DEPLOY FAILURE 34  
Unknown error

----



my vm.template looks like:

---
NAME   = vm1
CPU    = 0.5
MEMORY = 128

OS     = [
   kernel   = "/boot/initrd.img-2.6.27-14-server",
   initrd   = "/boot/initrd.img-2.6.27-14-server",
   root     = "hda" ]

DISK   = [
   source   = "/var/lib/one/images/disk0.qcow2",
   target   = "hda",
   readonly = "no" ]

NIC    = [ NETWORK = "Public VLAN" ]
---

Does anyone know what i am doing wrong? Where can i look also for log- 
information except for the "oned.log"?
Is my VM image not compatible (I builded it with vmbuilder)? It is no  
problem to launch this image within "virsh" from command line
on a Linux-Desktop.

Are there any example VMs available I can use for testing?

Thanks for your help!

Abraham


Am 03.09.2009 um 12:33 schrieb Javier Fontan:

> Hello,
>
> OpenNebula executes that scp command on the frontend machine, not in
> the execution nodes. That scp command connects to from the frontent to
> itself to copy a file to <hostnamenode>. Make sure you can ssh from
> the frontend to itself (do not use localhost as the machine to connect
> but the actual machine name.
>
> Bye
>
> On Thu, Sep 3, 2009 at 10:54 AM, Abraham
> Taherivand<abraham.taherivand at googlemail.com> wrote:
>> Hello Javier,
>>
>> when i execute the scp command on the node, it works fine without  
>> an error.
>>
>> With "onevm deploy" command i got still the same error status.
>> (oned.log "ERROR: Host key verification failed.").
>>
>> I also opened a ssh connection from the node to the frontend with the
>> oneadmin,
>> so that the key will be stored in the known_host file.
>>
>> Any further suggestions?
>>
>> Thanks,
>> Abraham
>>
>> Am 02.09.2009 um 18:04 schrieb Javier Fontan:
>>
>>> Hello,
>>>
>>> Seems a problem with known_hosts file. Can you execute that scp
>>> command and check the error messages?
>>>
>>>
>>> On Wed, Sep 2, 2009 at 5:34 PM, Abraham
>>> Taherivand<abraham.taherivand at googlemail.com> wrote:
>>>>
>>>> Hi @all,
>>>>
>>>> i tried to deploy an image with "onevm deploy", but the deployment
>>>> failed.
>>>>
>>>> The reason is the authentication between the hosts via ssh.
>>>>
>>>> /var/log/one/oned.log tells me:
>>>>
>>>>  Message received: LOG - 28 tm_clone.sh: ERROR: Command "scp
>>>> <hostname>:/var/lib/one/images/disk0.qcow2
>>>> <hostnamenode>:/var/lib/one//28/images/disk.0" failed.
>>>>
>>>>  Message received: LOG - 28 tm_clone.sh: ERROR: Host key  
>>>> verification
>>>> failed.
>>>>
>>>>  Message received: TRANSFER FAILURE 28 Host key verification  
>>>> failed.
>>>>
>>>> scp does not work. I searched via mailinglits and found:
>>>> https://bugs.launchpad.net/ubuntu/+source/opennebula/+bug/331838
>>>>
>>>> I tried also several times to copy the host keys manually, but it  
>>>> does
>>>> not
>>>> work.
>>>>
>>>> Has anyone a hint?
>>>>
>>>> Thank you.
>>>> Abraham
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.opennebula.org
>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>
>>>
>>>
>>>
>>> --
>>> Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
>>> DSA Research Group: http://dsa-research.org
>>> Globus GridWay Metascheduler: http://www.GridWay.org
>>> OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
>>
>>
>
>
>
> -- 
> Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
> DSA Research Group: http://dsa-research.org
> Globus GridWay Metascheduler: http://www.GridWay.org
> OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org




More information about the Users mailing list