[one-users] sunstone auth problem

Robert Parrott parrott at seas.harvard.edu
Wed Apr 13 10:47:41 PDT 2011


Sure, here it is:

[oneadmin ~]$ oneuser list -x
<USER_POOL>
  <USER>
    <ID>0</ID>
    <NAME>oneadmin</NAME>
    <PASSWORD>5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8</PASSWORD>
    <ENABLED>1</ENABLED>
  </USER>
  <USER>
    <ID>1</ID>
    <NAME>testuser</NAME>
    <PASSWORD>5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8</PASSWORD>
    <ENABLED>1</ENABLED>
  </USER>
</USER_POOL>



[oneadmin ~]$ cat /var/log/one/sunstone.log
/usr/lib/ruby/gems/1.8/gems/rack-1.2.0/lib/rack/server.rb:228:
warning: parenthesize argument(s) for future version
/usr/lib/one/sunstone/models/OpenNebulaJSON.rb:35: warning:
parenthesize argument(s) for future version
10.243.18.28 - - [13/Apr/2011 13:45:03] "GET /login HTTP/1.1" 200 1524 0.0020
10.243.18.28 - - [13/Apr/2011 13:45:03] "GET /login HTTP/1.1" 200 1524 0.0680
10.243.18.28 - - [13/Apr/2011 13:45:03] "GET /js/opennebula.js
HTTP/1.1" 304 - 0.0040
10.243.18.28 - - [13/Apr/2011 13:45:03] "GET /js/opennebula.js
HTTP/1.1" 304 - 0.0094
10.243.18.28 - - [13/Apr/2011 13:45:03] "GET /js/login.js HTTP/1.1" 304 - 0.0021
10.243.18.28 - - [13/Apr/2011 13:45:03] "GET /js/login.js HTTP/1.1" 304 - 0.0041
10.243.18.28 - - [13/Apr/2011 13:45:03] "GET /css/login.css HTTP/1.1"
304 - 0.0020
10.243.18.28 - - [13/Apr/2011 13:45:03] "GET /css/login.css HTTP/1.1"
304 - 0.0039
10.243.18.28 - - [13/Apr/2011 13:45:03] "GET
/vendor/jQuery/jquery-1.4.4.min.js HTTP/1.1" 304 - 0.0020
10.243.18.28 - - [13/Apr/2011 13:45:03] "GET
/vendor/jQuery/jquery-1.4.4.min.js HTTP/1.1" 304 - 0.0740
10.243.18.28 - - [13/Apr/2011 13:45:03] "GET /images/login.png
HTTP/1.1" 304 - 0.0000
10.243.18.28 - - [13/Apr/2011 13:45:03] "GET /images/login.png
HTTP/1.1" 304 - 0.0107
10.243.18.28 - - [13/Apr/2011 13:45:03] "GET
/images/opennebula-sunstone-big.png HTTP/1.1" 304 - 0.0019
10.243.18.28 - - [13/Apr/2011 13:45:03] "GET
/images/opennebula-sunstone-big.png HTTP/1.1" 304 - 0.0060
10.243.18.28 - - [13/Apr/2011 13:45:03] "GET /images/panel.png
HTTP/1.1" 304 - 0.0020
10.243.18.28 - - [13/Apr/2011 13:45:03] "GET /images/panel.png
HTTP/1.1" 304 - 0.0040
10.243.18.28 - - [13/Apr/2011 13:45:13] "POST /login HTTP/1.1" 401 - 0.0240
10.243.18.28 - - [13/Apr/2011 13:45:13] "POST /login HTTP/1.1" 401 - 0.0280
10.243.18.28 - - [13/Apr/2011 13:45:29] "POST /login HTTP/1.1" 401 - 0.0160
10.243.18.28 - - [13/Apr/2011 13:45:29] "POST /login HTTP/1.1" 401 - 0.0180


On Wed, Apr 13, 2011 at 10:29 AM, Daniel Molina <dmolina at opennebula.org> wrote:
> Would you mind to send us the output of oneuser list -x and the
> sunstone.log file inside the ONE var directory.
>
> On 13 April 2011 16:16, Robert Parrott <parrott at seas.harvard.edu> wrote:
>> Both sunserver and oned are running as the oneadmin user, and the command
>>
>>> oneuser list
>>
>> works and lists the users. The sha1 hash matches that of the hashed
>> password in the sunstone server code.
>>
>> So it seems like it's on the the oned end of things.
>>
>> On Wed, Apr 13, 2011 at 4:03 AM, Daniel Molina <dmolina at opennebula.org> wrote:
>>> Hi,
>>>
>>> Did you start the service as oneadmin?
>>> if you run oneuser list, are all the users listed with their passowrds?
>>>
>>> Hope this helps.
>>>
>>> On 13 April 2011 05:44, Robert Parrott <parrott at seas.harvard.edu> wrote:
>>>> Hi,
>>>>
>>>> Trying to test out OpenNebula with sunstone, and am unable to
>>>> authorize through sunstone. A little debugging shows that calling the
>>>> UserPool method for the user returns an empty password hash.
>>>>
>>>> I see in the logs that oned reports that a method is executed:
>>>>
>>>>   Tue Apr 12 23:41:25 2011 [ReM][D]: UserPoolInfo method invoked
>>>>
>>>> but the call returns "nil" in the sunstone code.
>>>>
>>>> I can otherwise authenticate from the command ,ine using the typical
>>>> ~/.one/one_auth file.
>>>>
>>>> Any thoughts about what to look for to resolve this?
>>>>
>>>>
>>>> Thanks,
>>>> rob
>>>>
>>>>
>>>>
>>>> --
>>>> Robert E. Parrott, Ph.D. (Phys. '06)
>>>> Director, Academic and Research Computing
>>>> Harvard University Sch. of Eng. and App. Sci.
>>>> Maxwell-Dworkin  211,
>>>> 33 Oxford St.
>>>> Cambridge, MA 02138
>>>> (617)-496-1520
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.opennebula.org
>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>
>>>
>>>
>>>
>>> --
>>> Daniel Molina, Cloud Technology Engineer/Researcher
>>> Major Contributor
>>> OpenNebula - The Open Source Toolkit for Cloud Computing
>>> www.OpenNebula.org | dmolina at opennebula.org
>>>
>>
>>
>>
>> --
>> Robert E. Parrott, Ph.D. (Phys. '06)
>> Director, Academic and Research Computing
>> Harvard University Sch. of Eng. and App. Sci.
>> Maxwell-Dworkin  211,
>> 33 Oxford St.
>> Cambridge, MA 02138
>> (617)-496-1520
>>
>
>
>
> --
> Daniel Molina, Cloud Technology Engineer/Researcher
> Major Contributor
> OpenNebula - The Open Source Toolkit for Cloud Computing
> www.OpenNebula.org | dmolina at opennebula.org
>



-- 
Robert E. Parrott, Ph.D. (Phys. '06)
Director, Academic and Research Computing
Harvard University Sch. of Eng. and App. Sci.
Maxwell-Dworkin  211,
33 Oxford St.
Cambridge, MA 02138
(617)-496-1520



More information about the Users mailing list