[one-users] There is no monitoring information for host (Users Digest, Vol 50, Issue 65)

Rolandas Naujikas rolandas.naujikas at mif.vu.lt
Wed Apr 25 00:47:07 PDT 2012


On 2012-04-24 20:02, Hector Sanjuan wrote:
> Hi Rolandas, we are not sure what is causing this but it's not the normal  
> behaviour and it doesn't happen to me. Are you running the oneacctd  
> daemon? Either way perhaps it helps if you delete the /var/one/oneacct.db  
> file (or move it away if you have valuable accounting information). You  
> could also run 'oneacctd start' and see if it gathers some monitoring  
> information and fixes the problem.
> 
> I have tried running sunstone with an empty oneacct.db, and without it  
> without any hosts and I don't get such messages so maybe the file is  
> corrupt or something.
> 
> Let us know if the annoying pop ups go away at least.

I found that there is changes in the way monitoring information is
gathered. When I commented out in SunstoneServer.rb:
...
	filter[:uid] = opts[:uid] if opts[:gid]!="0"
...
it started to work. I think here we should correct this problem, which
is related also with code in acct/watch_client.rb:
...
        def filter_pool(filter)
             if filter[:uid]
                 filter[:uid]==0 ? (hosts = pool) : (return nil)
             elsif filter[:gid]
                 filter[:uid]==0 ? (hosts = pool) : (return nil)
             else
...
which also looks strange in elsif (it should look:
...
		 filter[:gid]==0 ? (hosts = pool) : (return nil).
...
I think in SunstoneServer.rb we should add
...
	filter[:uid] = opts[:uid] if opts[:gid] != 0
	filter[:gid] = opts[:gid]
...
Please take attention to "opts[:gid]" it is integer/numeric.
After those changes everything starts to work correctly (at least with
current logic).

Regards, Rolandas Naujikas

P.S. Sorry for all this mess, probably it is better to attach patch file
for all changes.

> Hector
> 
> 
> En Tue, 24 Apr 2012 18:25:22 +0200, Rolandas Naujikas  
> <rolandas.naujikas at mif.vu.lt> escribi?:
> 
>> On 2012-04-24 09:04, Rolandas Naujikas wrote:
>>> Hi,
>>>
>>> In opennebula-3.4.0 sunstone there is annoying message "There is no
>>> monitoring information for host", when there are no hosts defined yet.
>>
>> It doesn't stop even when I added one host to opennebula.
>> It looks like sunstone could not access host monitoring information.
>>
>> Rolandas Naujikas
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> 
> 




More information about the Users mailing list