[one-users] Elastichosts functionality
Petri Lammi
petri.lammi at tietoteema.fi
Fri Aug 20 05:42:04 PDT 2010
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 tietoteema.fi> 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
More information about the Users
mailing list