[one-users] Sunstone WebGui buttons lost

Héctor Sanjuán hsanjuan at opennebula.org
Thu Nov 24 08:49:53 PST 2011


Did you find out why there is no cookie?

Any chance the cookies are blocked in the browser(s)?

Is there any strange message showing in /var/log/one/sunstone.log?

Héctor Sanjuán
OpenNebula Developer

On 23/11/11 17:31, Bernhard Waldecker wrote:
> Thx for that hint with Firefug.
> 
> We found out that the Cookies for the User did not exist and the ID after the login was "undefined".
> 
> Generally we are using Firefox 8.0 , but we also tried it with Chrome.
> 
> It's hard to say which steps we took, I think we adapted the monitoring configuration.
> 
> 
> 
> 
> Am 23.11.2011 11:00, schrieb Héctor Sanjuán:
>> Ok, let's try to debug further then.
>>
>> What browsers/OSs are you using?
>> Do you remember exactly how/when this buttons disappeared (like steps I
>> could follow to reproduce it?)?
>>
>> If you are familiar with Firebug firefox plugin (need to install
>> separately) or google-chrome's "inspect element" tab (its included by
>> default, right click->inspect element), could you
>> 1) login with oneadmin
>> 2) open firebug/chrome debug tab, go to "console" tab and type "gid".
>>
>> It should return "0".
>>
>> Thank you!
>>
>> Héctor Sanjuán
>> OpenNebula Developer
>>
>> On 22/11/11 12:36, Bernhard Waldecker wrote:
>>> Yes, the oneadmin has the ID 0 and is in the oneadmin group:
>>>
>>>
>>> Output oneuser list:
>>>
>>> ID GROUP    NAME       PASSWORD
>>> 0  oneadmin oneadmin   .....
>>>
>>> Output onegroup list:
>>>
>>> ID NAME
>>> 1 users
>>> 0 oneadmin
>>>
>>> Output oneacl list:
>>> ID     USER RES_VHNIUTG   RID OPE_CDUMIPpTWY
>>> 0       @1     V-NI-T-     *     C-----p---
>>> 1       @1     -H-----     *     --U-------
>>>
>>> -------- Original-Nachricht --------
>>>> Datum: Tue, 22 Nov 2011 12:01:47 +0100
>>>> Von: "Héctor Sanjuán" <hsanjuan at opennebula.org>
>>>> An: Bernhard Waldecker <bwaldecker at gmx.at>, "users at lists.opennebula.org" <users at lists.opennebula.org>
>>>> Betreff: Re: [one-users] Sunstone WebGui buttons lost
>>>
>>>> The gid of the user is read (on the client side javascript) from the
>>>> cookie information. The buttons are hidden if "gid != 0". It does not
>>>> really depend on how ACLs look.
>>>>
>>>> Does your oneadmin group have id 0 and is the oneadmin user in this
>>>> oneadmin group? It looks like the problem could be there... if you
>>>> created a different administration group or a user not placed in the
>>>> original oneadmin group (regardless of the ACLs you created) then it
>>>> won't show this buttons.
>>>>
>>>> Héctor Sanjuán
>>>> OpenNebula Developer
>>>>
>>>> On 22/11/11 11:41, Bernhard Waldecker wrote:
>>>>> Thx for your answer!
>>>>>
>>>>> Sry, I forgot to say/write that we have the problem with the oneadmin.
>>>> We also created a new user with the same ACLs like the oneadmin, but with no
>>>> success.
>>>>>
>>>>> Unfortunately we also tried it out with different browsers on different
>>>> OS and to remove the browser cache and cookies.
>>>>>
>>>>> -------- Original-Nachricht --------
>>>>>> Datum: Tue, 22 Nov 2011 08:41:06 +0100
>>>>>> Von: "Héctor Sanjuán" <hsanjuan at opennebula.org>
>>>>>> An: bwaldecker at gmx.at
>>>>>> CC: "users at lists.opennebula.org" <users at lists.opennebula.org>
>>>>>> Betreff: Re: [one-users] Sunstone WebGui buttons lost
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> if you are logging in with a user not beloning to the oneadmin group
>>>>>> (gid=0), then it is normal that some buttons are hidden, as standard
>>>>>> ACLs do not allow these operations for non admin users. If you adapted
>>>>>> ACLs and you want to customize Sunstone to show these buttons to other
>>>>>> groups/users, let me know and ill tell you how to do it.
>>>>>>
>>>>>> Alternatively, if you are logging in with a oneadmin group user and
>>>>>> these buttons are not there, try removing browser's cache and cookies
>>>>>> associated to Sunstone, and login again.
>>>>>>
>>>>>> Héctor Sanjuán
>>>>>> OpenNebula Developer
>>>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> 



More information about the Users mailing list