[one-users] OpenNebula OCCI 1.1
florian.feldhaus at tu-dortmund.de
florian.feldhaus at tu-dortmund.de
Wed Jul 6 04:23:37 PDT 2011
Hi Amine,
there have been a few issues with OCCI 1.1 for OpenNebula v0.2. We fixed a
lot of them and plan to release a new version (0.3) in the next week. If
you can wait, I would very much recommend you to try out the next version
as soon as it is released. If you're interested, I would be glad to
provide a "beta" version to you for testing.
A few comments to your problem inline:
> Von: Amine Ghrab <ghrab.amine at gmail.com>
> Datum: Wed, 6 Jul 2011 11:11:39 +0100
> An: <users at lists.opennebula.org>
> Betreff: [one-users] OpenNebula OCCI 1.1
>
>
> Hi,
>
> I've successfully installed OpenNebula Express, for test purposes, using
>2 machines.
I haven't tested OCCI 1.1 for OpenNebula with OpenNebula Express, but
there should be no reason why this does not work.
> Now I'm struggling to get the OCCI Server up following this wiki :
>http://dev.opennebula.org/projects/ogf-occi/wiki/Occi_02
><http://dev.opennebula.org/projects/ogf-occi/wiki/Occi_02>
> and using this file:
>http://dev.opennebula.org/attachments/download/376/ogf-occi-0.2.zip
>
> occi-server.conf and occi-one.conf are similar to :
>http://www.mail-archive.com/users@lists.opennebula.org/msg03257.html
>
> occi-one.conf : http://pastebin.com/nAW16qpc
> occi-server.conf : http://pastebin.com/tLpHB12K
The config files look OK.
> When startin gthe server i get :
>
> oneadmin at amine-front:~$occi-server start
> Error executing /usr/lib/one/ruby/cloud/occi/occi-server.rb.
> oneadmin at amine-front:~$ occi-server stop
> occi-server stopped
>
> The only line of the log is : Error starting server: No VM_TYPE defined.
This is strange. Maybe there are leftovers from the old OCCI server
included in the OpenNebula distribution. If you correctly installed OCCI
1.1 for OpenNebula, it should have moved away the old OCCI Server. Could
you please check (e.g. use diff or check the content of the files with
less) if the files from the ogf-occi-0.2.zip file have been installed to:
/usr/bin (e.g. occi-server)
/etc/one (e.g. occi-one.conf and occi-server.conf)
/usr/lib/one/ruby/cloud/occi (all the library files like StateMachine.rb,
CategoryRegistry.rb, ...)
Is the log output from /var/log/one/occi-server.log ?
> The other problem is :
>
> oneadmin at amine-frontend:~$ occi-compute --username oneadmin --password
>oneadmin list
> Error connecting to server (Connection refused - connect(2)).
> Server: localhost:4567
This will probably not work. occi-compute is a script from the old OCCI
implementation and it is based on OCCI 1.1 which has a considerably
different interface specification.
> The installation is system wide, hence I have the following schema:
>
> oneadmin at amine-front:~$ ls /etc/one/
> auth im_kvm
>occi-server.conf tm_lvm
> defaultrc im_xen
>occi-server.conf.old tm_nfs
> ec2query_templates occi-one.conf
>occi-server.conf.orig tm_ssh
> econe.conf occi-one.conf.old occi_templates
> vmm_ec2
> hm occi_one_templates oned.conf
> vmm_sh
> im_ec2 occi_one_templates.old tm_dummy
> vmm_ssh
>
> Best Regards.
>
> Amine
More information about the Users
mailing list