[one-users] Elastichosts functionality

Petri Lammi petri.lammi at tietoteema.fi
Mon Aug 30 04:04:57 PDT 2010


Hi Tino,

I can now confirm that it works.

In oned.log: http://fpaste.org/uq4i/

[oneadmin at one var]$ onevm show 23
VIRTUAL MACHINE 23
INFORMATION                                                  
ID             : 23                  
NAME           : one-23              
STATE          : ACTIVE              
LCM_STATE      : RUNNING             
START TIME     : 08/30 13:47:46      
END TIME       : -                   
DEPLOY ID:     : ide:0:0:write:requests

VIRTUAL MACHINE
TEMPLATE                                                        
EH=[
  BOOT=ide:0:0,
  CPUMHZ=500,
  DRIVE=ide:0:0 8edbae42-a0e0-4d19-84f5-124dd63bd326,
  MEMORY=500,
  NAME=bitrot,
  NICDHCP=nic:0:dhcp auto,
  NICMODEL=nic:0:model e1000,
  VNCIP=vnc:ip auto,
  VNCPASSWORD=vnc:password xxxxxxxx ]
NAME=one-23
VMID=23

Thanks for your time, I really appreciate it. Now on to trying to get
vmware & deltacloud working.

P.S. I submitted a request for postgresql support in ONE. Please
consider it. 

-Petri



la, 2010-08-28 kello 16:13 +0000, Tino Vazquez kirjoitti:
> Hi Petri,
> 
> Please find attached a new specific EH driver. Currently, I have not a
> valid EH account, so I am not able to try it, if you could be so kind
> as to try it out, I would appreciate the feedback.
> 
> In any case, this is just a temporary workaround, that just allows for
> one drive and one nic to be defined in the EH VM. Just untar the
> attached tarball in the root of the ONE source code, compile and
> configure the EH VMM driver with a new type "eh":
> 
>    VM_MAD = [
>       name       = "vmm_eh",
>       executable = "one_vmm_eh",
>       default    = "vmm_eh/vmm_eh.conf",
>       type       = "eh" ]
> 
> A VM template like
> 
> --
> EH=[NAME="bitrot",
>     CPUMHZ="500",
>     MEMORY="500",
>     DRIVE="ide:0:0 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
>     NICMODEL="nic:0:model e1000",
>     NICDHCP="nic:0:dhcp auto",
>     VNCIP="vnc:ip auto",
>     VNCPASSWORD="vnc:password password",
>     BOOT="ide:0:0"
>    ]
> --
> 
> should produce a deployment file like
> 
> --
> name bitrot
> cpu 500
> mem 500
> ide:0:0 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
> boot ide:0:0
> nic:0:model e1000
> nic:0:dhcp auto
> vnc:ip auto
> vnc:password password
> --
> 
> With this, I expect to rule out other issues and find out if we only
> have to focus in this specific driver, which ideally should be
> extended to be a proper "plain text" driver.
> 
> Best regards,
> 
> -Tino
> 
> --
> Constantino Vázquez Blanco | dsa-research.org/tinova
> Virtualization Technology Engineer / Researcher
> OpenNebula Toolkit | opennebula.org
> 
> 
> 
> On Fri, Aug 27, 2010 at 12:32 PM, Tino Vazquez <tinova at fdi.ucm.es> wrote:
> > Hi Petri,
> >
> > First of all, apologies for the delay response, I've been in a
> > congress in Brasil and haven't got much time to look into this.
> >
> > At first sight it looks like the problem is the one you point out
> > (BTW, thanks for opening ticket [1]), it is basically a format
> > problem. A plain text driver is needed, but OpenNebula v1.4 onwards
> > use mainly XML for the deployment files. I will try to pull it from
> > previous versions, or if the integration of the older component is
> > easy, I will just redevelop a new plain text driver (this should be
> > easy, I expect to have it done this weekend, I will let you know on
> > monday).
> >
> > Best regards,
> >
> > -Tino
> >
> > [1] http://dev.opennebula.org/issues/331
> > --
> > Constantino Vázquez Blanco | dsa-research.org/tinova
> > Virtualization Technology Engineer / Researcher
> > OpenNebula Toolkit | opennebula.org
> >
> >
> >
> > On Fri, Aug 20, 2010 at 10:27 AM, Petri Lammi <petri.lammi at tietoteema.fi> wrote:
> >> To followup to my own post, I get the following error in oned.log
> >>
> >> Error loading driver configuration
> >> file /srv/cloud/one/etc/vmm_eh/vmm_eh.conf : syntax error, unexpected
> >> $end, expecting VARIABLE at line 1, columns 0:0
> >>
> >> That file is empty.
> >>
> >> -Petri
> >>
> >> pe, 2010-08-20 kello 15:42 +0300, Petri Lammi kirjoitti:
> >>> Hi,
> >>>
> >>> I contacted Elastichosts about what they see in the logs. They said:
> >>>
> >>> --
> >>> It seems that OpenNebula is sending an XML strings to our API, such as:
> >>> <TEMPLATE><EH><BOOT>ide:0:0</BOOT><CPUMHZ>512</CPUMHZ><DRIVE>ide:0:0=8edaae42-10e0-4d19-84f5-124dd63bf326</DRIVE><MEMORY>512</MEMORY><NIC>nic:0:model=e1000,nic:0:dhcp=auto</NIC></EH><NAME>hubaluba</NAME><VMID>12</VMID></TEMPLATE>
> >>>
> >>> We do not support an XML-format API. We offer JSON and plain text, with
> >>> the
> >>> formats as explained at www.elastichosts.com/cloud-hosting/api
> >>>
> >>> It looks like you need to configure OpenNebula to correctly talk one of
> >>> our
> >>> supported formats.
> >>> --
> >>>
> >>> Now, it should be obvious, that I have a basic problem. But where is it?
> >>>
> >>>
> >>> Thanks,
> >>>
> >>> Petri
> >>>
> >>> ke, 2010-08-18 kello 11:47 +0300, Petri Lammi kirjoitti:
> >>> > Hi Tino & all
> >>> >
> >>> > I confirmed that I can create servers just by using the elastichosts
> >>> > script, and feeding it a file as an input. Like this:
> >>> >
> >>> > <file>
> >>> >
> >>> > name bitrot
> >>> > cpu 500
> >>> > mem 500
> >>> > ide:0:0 <existing drive-uuid>
> >>> > boot ide:0:0
> >>> > nic:0:model e1000
> >>> > nic:0:dhcp auto
> >>> > vnc:ip auto
> >>> > vnc:password password
> >>> >
> >>> > # elastichosts -c -v -f file servers create
> >>> >
> >>> > If I try to use the ONE created file (with some verbosity with -v), it
> >>> > looks like this after ssl setup:
> >>> >
> >>> > # elastichosts -v -f $ONE_LOCATION/var/15/deployment.0 servers create
> >>> > .
> >>> > .
> >>> > .
> >>> > * Server auth using Basic with user 'XXXX'
> >>> > > POST /servers/create HTTP/1.1
> >>> > > Authorization: Basic XXXX
> >>> > > User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5
> >>> > OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> >>> > > Host: api.lon-p.elastichosts.com
> >>> > > Accept: */*
> >>> > > Content-Type: application/octet-stream
> >>> > > Content-Length: 230
> >>> > >
> >>> > >
> >>> > <TEMPLATE><EH><BOOT>ide:0:0</BOOT><CPUMHZ>1000</CPUMHZ><DRIVE>ide:0:0=8edaae42-10e0-4c19-84f4-124dd63bf326</DRIVE><MEMORY>512</MEMORY><NIC>nic:0:model=e1000,nic:0:dhcp=auto</NIC></EH><NAME>hubaluba</NAME><VMID>15</VMID></TEMPLATE>HTTP/1.1 400 Bad Request
> >>> > < Server: BaseHTTP/0.3 Python/2.5.2
> >>> > < Date: Wed, 18 Aug 2010 08:41:16 GMT
> >>> > < X-Elastic-Error: usage
> >>> > < Connection: close
> >>> > < Content-Type: text/plain
> >>> > Bad operation
> >>> > * SSLv3, TLS alert, Client hello (1):
> >>> > Closing connection #0
> >>> > * SSLv3, TLS alert, Client hello (1):
> >>> >
> >>> > This does not feel right. I must be missing something.
> >>> >
> >>> > Thanks for your help,
> >>> >
> >>> > -Petri
> >>> >
> >>> > pe, 2010-08-06 kello 12:55 +0200, Tino Vazquez kirjoitti:
> >>> > > Hi Petri,
> >>> > >
> >>> > > What happens if you execute an
> >>> > >
> >>> > > $ elastichosts -f $ONE_LOCATION/var/<vm_id>/deployment.0 servers create
> >>> > >
> >>> > > Regards,
> >>> > >
> >>> > > -Tino
> >>> > >
> >>> > > --
> >>> > > Constantino Vázquez Blanco | dsa-research.org/tinova
> >>> > > Virtualization Technology Engineer / Researcher
> >>> > > OpenNebula Toolkit | opennebula.org
> >>> > >
> >>> > >
> >>> > >
> >>> > > On Thu, Aug 5, 2010 at 2:21 PM, Petri Lammi <petri.lammi at tietoteemafi> wrote:
> >>> > > > Hi Tino,
> >>> > > >
> >>> > > > I seem to get these:
> >>> > > >
> >>> > > > [TM][D]: Message received: TRANSFER SUCCESS 11 -
> >>> > > > [VMM][D]: Message received: DEPLOY SUCCESS 11 Bad operation
> >>> > > >
> >>> > > > in oned.log. Any idea why?
> >>> > > >
> >>> > > >
> >>> > > > Thanks,
> >>> > > >
> >>> > > > -Petri
> >>> > > >
> >>> > > >
> >>> > > > to, 2010-08-05 kello 13:16 +0200, Tino Vazquez kirjoitti:
> >>> > > >> Hi Petri,
> >>> > > >>
> >>> > > >> Let's see if the driver is actually doing something. Could you set mad
> >>> > > >> debug (in $ONE_LOCATION/etc/defaultrc, set ONE_MAD_DEBUG to 1), repeat
> >>> > > >> the deploy and send us back:
> >>> > > >>
> >>> > > >> * $ONE_LOCATION/var/oned.log
> >>> > > >> * $ONE_LOCATION/var/<vm_id>/vm.log
> >>> > > >> * $ONE_LOCATION/var/one_vmm_eh.log
> >>> > > >>
> >>> > > >> Best regards,
> >>> > > >>
> >>> > > >> -Tino
> >>> > > >>
> >>> > > >> --
> >>> > > >> Constantino Vázquez Blanco | dsa-research.org/tinova
> >>> > > >> Virtualization Technology Engineer / Researcher
> >>> > > >> OpenNebula Toolkit | opennebula.org
> >>> > > >>
> >>> > > >>
> >>> > > >>
> >>> > > >> On Thu, Aug 5, 2010 at 11:46 AM, Petri Lammi <petri.lammi at tietoteema.fi> wrote:
> >>> > > >> > Hi,
> >>> > > >> >
> >>> > > >> > I'm trying to test Elastichosts functionality with ONE 1.4. I configured
> >>> > > >> > it according to http://www.opennebula.org/documentation:rel1.4:ehg. I
> >>> > > >> > can submit on instance and it seems to be running, but I get no
> >>> > > >> > IP-address back. I don't know where to connect. The EH dashboard don't
> >>> > > >> > show anything about this instance. The information manager seems to be
> >>> > > >> > able to poll it though according to logs, and I see traffic between the
> >>> > > >> > front-end and Elastichost.
> >>> > > >> >
> >>> > > >> > Am I getting something wrong?
> >>> > > >> >
> >>> > > >> > Thanks,
> >>> > > >> >
> >>> > > >> > -Petri
> >>> > > >> >
> >>> > > >> > _______________________________________________
> >>> > > >> > Users mailing list
> >>> > > >> > Users at lists.opennebula.org
> >>> > > >> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >>> > > >> >
> >>> > > >>
> >>> > > >
> >>> > > >
> >>> > > > _______________________________________________
> >>> > > > Users mailing list
> >>> > > > Users at lists.opennebula.org
> >>> > > > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >>> > > >
> >>> > >
> >>> >
> >>> >
> >>> > _______________________________________________
> >>> > Users mailing list
> >>> > Users at lists.opennebula.org
> >>> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >>>
> >>>
> >>> _______________________________________________
> >>> Users mailing list
> >>> Users at lists.opennebula.org
> >>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> Users mailing list
> >> Users at lists.opennebula.org
> >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >>
> >




More information about the Users mailing list