[one-users] Member of oneadmin group unable to see user/groups

Daniel Molina dmolina at opennebula.org
Wed Nov 27 08:06:00 PST 2013


On 27 November 2013 16:54, Stefan Kooman <stefan at bit.nl> wrote:

> Quoting Daniel Molina (dmolina at opennebula.org):
> > > > Could you check this user is using the admin view, you can change the
> > > view
> > > > from the settings dialog clicking in the top right corner of
> sunstone.
> > > >
> > > > If you didn't change the configuration in
> > > ''/etc/one/sunstone-views.yaml'',
> > > > users in the oneadmin group should be able to use any view:
> > > >
> > > > groups:
> > > >     oneadmin:
> > > >         - admin
> > > >         - vdcadmin
> > > >         - user
> > > >         - cloud
>
> I'm able to change the view as oneadmin user to the views "admin,
> vdcadmin, user. cloud".
>
> > After updating the config this variable is populated based on the select
> > option:
> >     session[:default_view] = user['TEMPLATE/DEFAULT_VIEW']
> >
> > Otherwise the default_view is generated form the username and group:
> >     session[:default_view] =
> $views_config.available_views(session[:user],
> > session[:user_gname]).first
> >
> > And the available views will return the first view if there is any
> defined
> > for the user or group or the default one from
> > ''/etc/one/sunstone-views.yaml'':
> >     def available_views(user_name, group_name)
> >         available_views = @views_config['users'][user_name] if
> > @views_config['users']
> >         available_views ||= @views_config['groups'][group_name] if
> > @views_config['groups']
> >         available_views ||= @views_config['default']
> >
> >         return available_views
> >     end
> >
> > Therefore, "update config" should not be required using the the default
> > config files
>
> I've left those to the default (sunstone-views.yaml):
>
> ...
> ...
> groups:
>     oneadmin:
>         - admin
>         - vdcadmin
>         - user
>         - cloud
> default:
>     - user
>
> The unprivileged user has only one view: user. But the "update config"
> is required in order to see the resources. I'm using your latest
> sunstone-util.js btw [1].
>
>
Any error in the browser console after logging as that user?



> Gr. Stefan
>
> [1]:
>
> http://dev.opennebula.org/projects/opennebula/repository/revisions/086504cc872036af2fa6ad31d76a6299d5df1601
>
> --
> | BIT BV  http://www.bit.nl/        Kamer van Koophandel 09090351
> | GPG: 0xD14839C6                   +31 318 648 688 / info at bit.nl
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iF4EAREIAAYFAlKWFcUACgkQTyGgYdFIOcZy0QEAoU0v7FsGaiPKqAm3vOfbRWCT
> FeP8E4ICDvZylFLpqYMBAIoxfUG2Rn+VsZnJAhNN+EmxeXRjZRWO/AdwQpG9mquJ
> =6nKx
> -----END PGP SIGNATURE-----
>
>


-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131127/f39b60b5/attachment-0002.htm>


More information about the Users mailing list