Hi Augusto,
Sorry for the late answer, but I've been really busy these later days.
As some other people looked interested in my implementation during the
last meeting, I think it worth having this discussion in public. I let
you forward...
Le vendredi 10 janvier 2014 à 18:25 +0100, Augusto Ciuffoletti a écrit :
> Just scratched the surface but now I start having trivial questions:What a good question :) Without kidding, what I understood from other
> what's the final purpose? Even if it is just a proof of concept, you
> certainly have an idea of what it is for.
implementations is they focus on implementing a particular extension
(ie, compute) with different backends and connectors to existing APIs:
OpenNebula, OpenStack, EC2, etc... I think this is the case for rOCCI
and I know it is for C.One.
erocci objective is to provide a really generic implementation of OCCI,
not linked to any particular extension, as to build either pure OCCI
application (using OCCI as unique API) or as API adapter, like for the
others.
Does it sound clearer ?
>You're right, I was thinking about making occi module the only
>
> My impression is that it is part of the cloud manager, in charge of
> accepting cloud provisioning requests (in json or xml), and turn them
> into an internal representation (mnesia). Does this match? In that
> case a more significant demo should include a demo xml, and the
> possibility to submit a user defined xml, ideally with a curl. The
> result of the submission might be rendered in some fancy way elsewhere
> (graphic popup).
>
> About the code, there is probably a redundant use of
> "register_extension" that is defined in occi module, but hello prefers
> to use the one defined in occi_category_mgr.
entry-point for the framework, but given the changing internal APIs, it
is not really effective as of today...
> Nothing relevant. And I noticed that you often use supervisors where a
> worker might be sufficient (unless I missed something).
This is indeed my first real erlang application. I would be reallyinterested in knowing in what my use of supervisor is not relevant.
> And also, why d'you use the xml parser included in the exmpp, insteadMy really next step after finishing one complete column of the status
> of the more stable xmerl?
wiki page (means a complete implementation of at least one rendering) is
to implement XMPP transport. That's why I've been integrating exmpp from
the beginning and then use its XML parser which is also known to be
quite performant... but this is not the biggest argument for me.
>Cheers,
> Next step is to explore the category_mgr...
>
>
> Bye!
>
Jean
> Augusto
>
>
>
> 2014/1/8 Jean Parpaillon <jean.parpaillon@free.fr>
> Hi Augusto,
> Thank you very much for your feedback.
> I have updated the README file wrt to your report.
>
> Let me know would you need some clarifications.
>
>
> Cheers
> Jean
>
> Le mercredi 08 janvier 2014 à 12:36 +0100, Augusto Ciuffoletti
> a écrit :
> > Hi Jean,
> >
> >
> > I'm starting today to explore your work, from the
> "start.sh", and
> > proceed incrementally. I have now an idea of how you have
> modularized
> > the whole (the erocci.png). Your suggestion for me (point 3)
> is a
> > reasonable exercise, when I'll have a sufficiently clear
> idea of the
> > whole, so I'll do that if I'll reach a reasonable
> comprehension of the
> > whole. My target is to make monitoring operational, which is
> somewhat
> > straightforward since it is "just" an extension..
> >
> > ===report===
> >
> >
> >
> > Not really an issue, but I haven't found the "issues"
> file...
> >
> >
> > Operationally, I checked out erocci and I have tried a
> "make" and a
> > "make all" (not relevant, but there is a "alll" in
> the .PHONY) with an
> > Ubuntu 13.10. On a not completely fresh install I had to
> "apt-get
> > install" the following "dev" packets to have a successful
> make:
> >
> >
> > libexpat1-dev
> >
> > libxml2-dev
> >
> > libssl-dev
> >
> >
> >
> > Next I called the "start.sh" whose final line was:
> >
> > 12:26:40.478 [info] Starting HTTP listener [{port,8080}]
> >
> >
> > ...and finally...
> >
> > curl -v -X GET "http://localhost:8080/-/"
> > * Adding handle: conn: 0x11e7d40
> > * Adding handle: send: 0
> > * Adding handle: recv: 0
> > * Curl_addHandleToPipeline: length: 1
> > * - Conn 0 (0x11e7d40) send_pipe: 1, recv_pipe: 0
> > * About to connect() to localhost port 8080 (#0)
> > * Trying 127.0.0.1...
> > * Connected to localhost (127.0.0.1) port 8080 (#0)
> > > GET /-/ HTTP/1.1
> > > User-Agent: curl/7.32.0
> > > Host: localhost:8080
> > > Accept: */*
> > >
> >
> >
> > So, the toy is running, I have to open it :-)
> >
> >
> > Bye!
> >
> >
> > ===
> > /home/augusto/Scrivania/Erlang/erocci/trunk/deps/exmpp/c_src/exmpp_xml_expat.c:17:19: fatal error: expat.h: File o directory non esistente
> > #include <expat.h>
> > ^
> > compilation terminated.
> > ERROR: compile failed while
> >
> processing /home/augusto/Scrivania/Erlang/erocci/trunk/deps/exmpp:
> > rebar_abort
> > make: *** [all] Errore 1
> > ===
> >
> >
> >
> > Bye!
> >
> >
> > Augusto
> >
> >
> > 2014/1/6 Jean Parpaillon <jean.parpaillon@free.fr>
> > Hi Augusto,
> > As I told you, I have tried to make some work on
> erocci in
> > order for you
> > to be able to contribute more quickly.
> >
> > 1/ A development status page:
> >
> https://github.com/jeanparpaillon/erocci/wiki/Development-Status
> > Everything is not there. For instance: resource
> creation is ok
> > in JSON
> > (you can have a look at file tests/json/valid7.json
> for
> > instance) but I
> > don't manage yet links nor mixins.
> > 2/ I have open several tickets on:
> > https://github.com/jeanparpaillon/erocci/issues
> > 3/ A useful task for occi wg should be to write a
> little
> > erocci
> > application with a simple config file. Basically,
> the
> > following is
> > needed to have a working OCCI server with erocci:
> > - load one or several OCCI extension files (XML)
> > - map categories to URIs
> > - setup the listener (HTTP, as of today)
> > - setup the backend (mnesia, as of today)
> > This is achieved with erlang code in hello_occi.erl
> file but
> > all this
> > could be described in a configuration file, either
> an erlang
> > configuration file or an XML file.
> > Would you be interested in working on that ?
> >
> > You can already have an example of erlang config
> file looking
> > at
> > start.sh (which generates a config file used by
> hello_occi).
> > You can have an idea on how to use this file by
> looking at
> > http://www.erlang.org/doc/man/config.html
> >
> > This could be a erocci application (like hello_occi)
> to put in
> > examples/
> > dir.
> >
> > What do you think of it ? Take care: "Diving into
> erlang is a
> > one-way
> > ticket" :)
> >
> http://fr.slideshare.net/pavlobaron/erlang-is-a-one-way
> >
> > Best regards,
> > Jean
> >
> > Le dimanche 29 décembre 2013 à 16:24 +0100, Augusto
> > Ciuffoletti a
> > écrit :
> >
> > > Hi Jean,
> > >
> > >
> > > I'm browsing you erocci: nice work!
> > >
> > >
> > > Curiosity: why XMPP in perspective? Ok, its
> capabilities
> > include plain
> > > HTTP verbs, but isn't it in contrast (i.e.,
> redundant) with
> > a RESTful
> > > approach?
> > >
> > >
> > > I'm planning to understand erocci and to include
> the
> > monitoring (which
> > > seems rather straightforward). If I can contribute
> to it in
> > any way,
> > > just let me know: long ago I was familiar with
> Prolog, and
> > Erlang
> > > basics are the same.
> > >
> > >
> > >
> > > Happy new year!
> > >
> > > --
> > > Augusto Ciuffoletti
> > > Dipartimento di Informatica
> > > Università di Pisa
> > > 56100 - Pisa (Italy)
> >
> >
> > --
> > Jean Parpaillon
> > Open Source Consultant
> > Phone: +33 6 30 10 92 86
> > im: jean.parpaillon@gmail.com
> > skype: jean.parpaillon
> > linkedin:
> http://www.linkedin.com/in/jeanparpaillon/en
> >
> >
> >
> >
> >
> > --
> > Augusto Ciuffoletti
> > Dipartimento di Informatica
> > Università di Pisa
> > 56100 - Pisa (Italy)
>
> --
> Jean Parpaillon
> Open Source Consultant
> Phone: +33 6 30 10 92 86
> im: jean.parpaillon@gmail.com
> skype: jean.parpaillon
> linkedin: http://www.linkedin.com/in/jeanparpaillon/en
>
>
>
>
>
> --
> Augusto Ciuffoletti
> Dipartimento di Informatica
> Università di Pisa
> 56100 - Pisa (Italy)
--
Jean Parpaillon
Open Source Consultant
Phone: +33 6 30 10 92 86
im: jean.parpaillon@gmail.com
skype: jean.parpaillon
linkedin: http://www.linkedin.com/in/jeanparpaillon/en