[one-users] There is no monitoring information for host

Rolandas Naujikas rolandas.naujikas at mif.vu.lt
Tue Apr 24 10:07:27 PDT 2012


On 2012-04-24 19:25, Rolandas Naujikas wrote:
> 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.

Finally I found that I'm getting this annoing message only when I'm not
connected with oneadmin(id=0), but with other user in oneadmin group.

That could come from 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
                hosts = pool
            end
...
There is probably a mistake after "elsif filter[:gid]". Next line should
probably be "filter[:gid]==0 ? (hosts = pool) : (return nil)"

Regards, Rolandas Naujikas




More information about the Users mailing list