[one-users] oneacct doesn't work (bug)

Javier Fontan jfontan at opennebula.org
Wed Jan 18 08:40:34 PST 2012


That is indeed a problem, inside network there should be another hash
with tx and rx. Can you check that xml output (-x) has the same
problem? I just want to narrow down the problem. Probably the problem
is only in the oneacct tool and the data is still in the database.

On Wed, Jan 18, 2012 at 4:32 PM, Olivier Sallou <olivier.sallou at irisa.fr> wrote:
> I faced same issue with one 3 but I faced after that another issue,
> after setting correctly the path to /usr/lib/one/ruby:
>
> oneadmin at genokvm4:~$ oneacct -u 0 -j
> {"0":{"vms":{"34":{"network":null,"time":6714,"slices":[{"estime":0,"rstime":1326893803,"cpu":0.2,"uid":0,"seq":0,"vcpu":0,"eetime":0,"gid":0,"hid":4,"etime":0,"hostname":"genokvm4","name":"eco-vm","reason":0,"pstime":1326893710,"mem":256,"id":34,"vm_id":34,"stime":1326893681,"retime":0,"petime":1326893803}],"vmid":34}}}}
>
> The "network" value is set to null.
>
> However, when looking at graph in sunstone for my vm (id 34), I have
> some values for net_tx and net_rx.
>
> Olivier
>
>
> Le 1/18/12 4:03 PM, Javier Fontan a écrit :
>> Thanks for reporting. I've created a ticket to track this problem
>> http://dev.opennebula.org/issues/1063
>>
>> We will provide a fix for this as soon as possible.
>>
>> On Wed, Jan 18, 2012 at 1:31 PM, Rolandas Naujikas
>> <rolandas.naujikas at mif.vu.lt> wrote:
>>> Hi,
>>>
>>> Opennebula is installed from package (in Debian 6.0.3).
>>>
>>> $ oneacct
>>> /usr/bin/oneacct:27: undefined method `+' for nil:NilClass (NoMethodError)
>>>
>>> By looking into /usr/bin/oneacct I see:
>>>
>>> ONE_LOCATION=ENV['ONE_LOCATION']
>>>
>>> $: << ONE_LOCATION+'/lib/ruby'
>>> $: << ONE_LOCATION+'/lib/ruby/cli'
>>>
>>> What will not work if ONE_LOCATION is not set.
>>> Setting it to ONE_LOCATION=/usr
>>>
>>> $ ONE_LOCATION=/usr oneacct
>>> /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
>>> `gem_original_require': no such file to load -- acct/oneacct (LoadError)
>>>        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
>>>        from /usr/bin/oneacct:32
>>>
>>> So it looks like support for system wide installation in oneacct command
>>> doesn't exists.
>>>
>>> Regards, Rolandas
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
> --
> Olivier Sallou
> IRISA / University of Rennes 1
> Campus de Beaulieu, 35000 RENNES - FRANCE
> Tel: 02.99.84.71.95
>
> gpg key id: 4096R/326D8438  (pgp.mit.edu)
> Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



-- 
Javier Fontán Muiños
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | jfontan at opennebula.org | @OpenNebula



More information about the Users mailing list