Re: [Openstack] [Metering] Bootstrapping, first counter implementation

2012-05-10 Thread Doug Hellmann
On Thu, May 10, 2012 at 3:57 AM, Julien Danjou
wrote:

> On Wed, May 09 2012, Doug Hellmann wrote:
>
> > I'm not sure what you mean. I was able to use nova.service to create a
> > "metering" server and a simple manager that subscribes to the
> notification
> > events. See https://github.com/dhellmann/metering-prototype(metering-test
> > is the main program and testmanager.py is the manager class). I borrowed
> > your Connection code.
>
> Actually, the Service class is supposed to handle the AMQP (or whatever
> backend) connection itself and bind it to a set of topics. But it uses
> the nova.rpc.impl_kombu.Connection class that uses ProxyCallback and
> that one obviously fails to decode notification. This is why I say I
> failed to the Service class.
>
> You cheated since you opened another AMQP connection in your Manager
> class, rendering the connection from the Service class useless. I wish
> we could access the connection from the Service from the Manager so we
> can reuse it at least, but that does not seem possible neither.
>

"Cheated" is a bit harsh. :-)

Yeah, I wanted to use the handle owned by the service, but couldn't get to
it. I thought asking for a connection without specifying that it had to be
a new one would be a work-around. I was surprised that the manager object
wasn't given access to the service so it could subscribe to messages, but I
guess that's supposed to be the Service's job.


>
> On the other hand, even if it's not the cleanest way to do things, I
> kind of like using the Service class so I'll probably grab your code
> anyway. :-)
>

It does give us access to other parts of the framework like logging. And we
may eventually find a need to communicate with the service via RPC.


>
> Thanks Doug,
> --
> Julien Danjou
> // eNovance  http://enovance.com
> // ✉ julien.dan...@enovance.com  ☎ +33 1 49 70 99 81
>
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Metering] Bootstrapping, first counter implementation

2012-05-10 Thread Julien Danjou
On Wed, May 09 2012, Doug Hellmann wrote:

> I'm not sure what you mean. I was able to use nova.service to create a
> "metering" server and a simple manager that subscribes to the notification
> events. See https://github.com/dhellmann/metering-prototype (metering-test
> is the main program and testmanager.py is the manager class). I borrowed
> your Connection code.

Actually, the Service class is supposed to handle the AMQP (or whatever
backend) connection itself and bind it to a set of topics. But it uses
the nova.rpc.impl_kombu.Connection class that uses ProxyCallback and
that one obviously fails to decode notification. This is why I say I
failed to the Service class.

You cheated since you opened another AMQP connection in your Manager
class, rendering the connection from the Service class useless. I wish
we could access the connection from the Service from the Manager so we
can reuse it at least, but that does not seem possible neither.

On the other hand, even if it's not the cleanest way to do things, I
kind of like using the Service class so I'll probably grab your code
anyway. :-)

Thanks Doug,
-- 
Julien Danjou
// eNovance  http://enovance.com
// ✉ julien.dan...@enovance.com  ☎ +33 1 49 70 99 81

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Metering] Bootstrapping, first counter implementation

2012-05-09 Thread Doug Hellmann
On Wed, May 9, 2012 at 11:13 AM, Julien Danjou
wrote:

> Hi there,
>
> I've added a first script that's able to connect to the AMQP
> notification queue using Nova RPC module. Later it will be able to treat
> them when we'll know what to do with them.
>
>  https://review.stackforge.org/#/c/26/
>  https://review.stackforge.org/#/c/27/
>  https://review.stackforge.org/#/c/28/
>
> I wish I could use nova.service.Service, but the code is too RPC
> oriented so that it can't grab notification from the notifier, so for
> now the daemon is rather simple.
>

I'm not sure what you mean. I was able to use nova.service to create a
"metering" server and a simple manager that subscribes to the notification
events. See https://github.com/dhellmann/metering-prototype (metering-test
is the main program and testmanager.py is the manager class). I borrowed
your Connection code.



>
> --
> Julien Danjou
> // eNovance  http://enovance.com
> // ✉ julien.dan...@enovance.com  ☎ +33 1 49 70 99 81
>
> ___
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Metering] Bootstrapping, first counter implementation

2012-05-09 Thread Loic Dachary
On 05/09/2012 05:38 PM, Doug Hellmann wrote:
> What is the difference between review.stackforge.org 
>  and review.openstack.org 
>  and why aren't we using the latter?
There is no technical difference (to my knowledge ;-). Only 
review.stackforge.org  is for projects that are 
not incubated yet.

Cheers
>
> On Wed, May 9, 2012 at 11:13 AM, Julien Danjou  > wrote:
>
> Hi there,
>
> I've added a first script that's able to connect to the AMQP
> notification queue using Nova RPC module. Later it will be able to treat
> them when we'll know what to do with them.
>
>  https://review.stackforge.org/#/c/26/
>  https://review.stackforge.org/#/c/27/
>  https://review.stackforge.org/#/c/28/
>
> I wish I could use nova.service.Service, but the code is too RPC
> oriented so that it can't grab notification from the notifier, so for
> now the daemon is rather simple.
>
> --
> Julien Danjou
> // eNovance  http://enovance.com
> // ? julien.dan...@enovance.com   ? 
> +33 1 49 70 99 81 
>
> ___
> Mailing list: https://launchpad.net/~openstack 
> 
> Post to : openstack@lists.launchpad.net 
> 
> Unsubscribe : https://launchpad.net/~openstack 
> 
> More help   : https://help.launchpad.net/ListHelp
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp


-- 
Loïc Dachary Chief Research Officer
// eNovance labs   http://labs.enovance.com
// ? l...@enovance.com  ? +33 1 49 70 99 82

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Metering] Bootstrapping, first counter implementation

2012-05-09 Thread Doug Hellmann
Ah, got it. Thanks!

On Wed, May 9, 2012 at 12:45 PM, heut2008  wrote:

> stackForge is a Gerrit review and Jenkins CI setup similar to that of
> the main OpenStack project but for use with projects that are not
> under the main OpenStack umbrella.
>
> Any project can be added to StackForge as long as it is related to
> OpenStack in some way.
>
>
>
> 2012/5/9 Doug Hellmann :
> > What is the difference between review.stackforge.org and
> > review.openstack.org and why aren't we using the latter?
> >
> >
> > On Wed, May 9, 2012 at 11:13 AM, Julien Danjou <
> julien.dan...@enovance.com>
> > wrote:
> >>
> >> Hi there,
> >>
> >> I've added a first script that's able to connect to the AMQP
> >> notification queue using Nova RPC module. Later it will be able to treat
> >> them when we'll know what to do with them.
> >>
> >>  https://review.stackforge.org/#/c/26/
> >>  https://review.stackforge.org/#/c/27/
> >>  https://review.stackforge.org/#/c/28/
> >>
> >> I wish I could use nova.service.Service, but the code is too RPC
> >> oriented so that it can't grab notification from the notifier, so for
> >> now the daemon is rather simple.
> >>
> >> --
> >> Julien Danjou
> >> // eNovance  http://enovance.com
> >> // ✉ julien.dan...@enovance.com  ☎ +33 1 49 70 99 81
> >>
> >> ___
> >> Mailing list: https://launchpad.net/~openstack
> >> Post to : openstack@lists.launchpad.net
> >> Unsubscribe : https://launchpad.net/~openstack
> >> More help   : https://help.launchpad.net/ListHelp
> >
> >
> >
> > ___
> > Mailing list: https://launchpad.net/~openstack
> > Post to : openstack@lists.launchpad.net
> > Unsubscribe : https://launchpad.net/~openstack
> > More help   : https://help.launchpad.net/ListHelp
> >
>
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Metering] Bootstrapping, first counter implementation

2012-05-09 Thread heut2008
stackForge is a Gerrit review and Jenkins CI setup similar to that of
the main OpenStack project but for use with projects that are not
under the main OpenStack umbrella.

Any project can be added to StackForge as long as it is related to
OpenStack in some way.



2012/5/9 Doug Hellmann :
> What is the difference between review.stackforge.org and
> review.openstack.org and why aren't we using the latter?
>
>
> On Wed, May 9, 2012 at 11:13 AM, Julien Danjou 
> wrote:
>>
>> Hi there,
>>
>> I've added a first script that's able to connect to the AMQP
>> notification queue using Nova RPC module. Later it will be able to treat
>> them when we'll know what to do with them.
>>
>>  https://review.stackforge.org/#/c/26/
>>  https://review.stackforge.org/#/c/27/
>>  https://review.stackforge.org/#/c/28/
>>
>> I wish I could use nova.service.Service, but the code is too RPC
>> oriented so that it can't grab notification from the notifier, so for
>> now the daemon is rather simple.
>>
>> --
>> Julien Danjou
>> // eNovance                      http://enovance.com
>> // ✉ julien.dan...@enovance.com  ☎ +33 1 49 70 99 81
>>
>> ___
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>
>
>
> ___
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Metering] Bootstrapping, first counter implementation

2012-05-09 Thread Doug Hellmann
What is the difference between review.stackforge.org and
review.openstack.org and why aren't we using the latter?

On Wed, May 9, 2012 at 11:13 AM, Julien Danjou
wrote:

> Hi there,
>
> I've added a first script that's able to connect to the AMQP
> notification queue using Nova RPC module. Later it will be able to treat
> them when we'll know what to do with them.
>
>  https://review.stackforge.org/#/c/26/
>  https://review.stackforge.org/#/c/27/
>  https://review.stackforge.org/#/c/28/
>
> I wish I could use nova.service.Service, but the code is too RPC
> oriented so that it can't grab notification from the notifier, so for
> now the daemon is rather simple.
>
> --
> Julien Danjou
> // eNovance  http://enovance.com
> // ✉ julien.dan...@enovance.com  ☎ +33 1 49 70 99 81
>
> ___
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] [Metering] Bootstrapping, first counter implementation

2012-05-09 Thread Julien Danjou
Hi there,

I've added a first script that's able to connect to the AMQP
notification queue using Nova RPC module. Later it will be able to treat
them when we'll know what to do with them.

  https://review.stackforge.org/#/c/26/
  https://review.stackforge.org/#/c/27/
  https://review.stackforge.org/#/c/28/

I wish I could use nova.service.Service, but the code is too RPC
oriented so that it can't grab notification from the notifier, so for
now the daemon is rather simple.

-- 
Julien Danjou
// eNovance  http://enovance.com
// ✉ julien.dan...@enovance.com  ☎ +33 1 49 70 99 81

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp