You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by Michal Fojtik <mf...@redhat.com> on 2011/09/09 15:17:37 UTC

Deltacloud API verbose mode

Hi,

Just FYI, Deltacloud API from version 1315573802git (current nightly build) supports 'verbose' mode,
which you can use to report errors or see what parameters are picked up by API on request and other
useful informations.
This could be extra useful for debugging and also reporting errors to us.

Other handy tool that comes along with this patch is that you can place custom debugging messages
everywhere in the code like:

    def instances(credentials, opts=nil)
      cloud = new_client(credentials)
      info cloud
      …
      warn "Oops, something is wrong..."
    end

In log you should then see the original file from where this message comes, line in this source file
and original caller method that throws this message.

I hope this will help us be more flexible in debugging Deltacloud API code.
In order to enable it you can do following:

1. export API_VERBOSE=1
2. ./bin/deltacloudd -V -i mock (-V == verbose mode)

 -- Michal

------------------------------------------------------
Michal Fojtik, mfojtik@redhat.com
Deltacloud API: http://deltacloud.org


Re: Deltacloud API verbose mode

Posted by wes hayutin <wh...@redhat.com>.
woot!!!



On Fri, 2011-09-09 at 15:17 +0200, Michal Fojtik wrote:
> Hi,
> 
> Just FYI, Deltacloud API from version 1315573802git (current nightly build) supports 'verbose' mode,
> which you can use to report errors or see what parameters are picked up by API on request and other
> useful informations.
> This could be extra useful for debugging and also reporting errors to us.
> 
> Other handy tool that comes along with this patch is that you can place custom debugging messages
> everywhere in the code like:
> 
>     def instances(credentials, opts=nil)
>       cloud = new_client(credentials)
>       info cloud
>       …
>       warn "Oops, something is wrong..."
>     end
> 
> In log you should then see the original file from where this message comes, line in this source file
> and original caller method that throws this message.
> 
> I hope this will help us be more flexible in debugging Deltacloud API code.
> In order to enable it you can do following:
> 
> 1. export API_VERBOSE=1
> 2. ./bin/deltacloudd -V -i mock (-V == verbose mode)
> 
>  -- Michal
> 
> ------------------------------------------------------
> Michal Fojtik, mfojtik@redhat.com
> Deltacloud API: http://deltacloud.org
> 
> _______________________________________________
> aeolus-devel mailing list
> aeolus-devel@lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/aeolus-devel



Re: Deltacloud API verbose mode

Posted by Michal Fojtik <mf...@redhat.com>.
On Sep 13, 2011, at 4:11 AM, Justin Clift wrote:

> On 09/09/2011, at 11:17 PM, Michal Fojtik wrote:
>> Just FYI, Deltacloud API from version 1315573802git (current nightly build) supports 'verbose' mode,
>> which you can use to report errors or see what parameters are picked up by API on request and other
>> useful informations.
>> This could be extra useful for debugging and also reporting errors to us.
> <snip>
>> I hope this will help us be more flexible in debugging Deltacloud API code.
>> In order to enable it you can do following:
>> 
>> 1. export API_VERBOSE=1
>> 2. ./bin/deltacloudd -V -i mock (-V == verbose mode)
> <snip>
> 
> Haven't yet tried this out.  Does it need *both* the API_VERBOSE +
> the "-V" on the command line, or either one?

Using just one is enough.

> This option should also be added to the deltacloud-core init script
> and it's config file.  Just checked in server/support/fedora in git
> head and didn't see it. ;)

I think you could add 'API_VERBOSE=1' to /etc/sysconfig/deltacloud-core file and the daemon
should pick it up.

> You ok to add?

Sure, no problem to add it into default config file.

  -- Michal

------------------------------------------------------
Michal Fojtik, mfojtik@redhat.com
Deltacloud API: http://deltacloud.org


Re: Deltacloud API verbose mode

Posted by Justin Clift <jc...@redhat.com>.
On 09/09/2011, at 11:17 PM, Michal Fojtik wrote:
> Just FYI, Deltacloud API from version 1315573802git (current nightly build) supports 'verbose' mode,
> which you can use to report errors or see what parameters are picked up by API on request and other
> useful informations.
> This could be extra useful for debugging and also reporting errors to us.
<snip>
> I hope this will help us be more flexible in debugging Deltacloud API code.
> In order to enable it you can do following:
> 
> 1. export API_VERBOSE=1
> 2. ./bin/deltacloudd -V -i mock (-V == verbose mode)
<snip>

Haven't yet tried this out.  Does it need *both* the API_VERBOSE +
the "-V" on the command line, or either one?

This option should also be added to the deltacloud-core init script
and it's config file.  Just checked in server/support/fedora in git
head and didn't see it. ;)

You ok to add?

Regards and best wishes,

Justin Clift

--
Aeolus Community Manager
http://www.aeolusproject.org