TECHZEN Zenoss User Community ARCHIVE  

Zenoss Core 5 user role question

Subject: Zenoss Core 5 user role question
Author: Larry Virden
Posted: 2016-05-02 07:49

So, in Zenoss Core Administrator documentation, page 153, there is a table that lists available roles. It lists ZenUser, ZenManager, Manager, and ZenOperator. 4 roles - 2 of which have permissions to do way more than one would want the average user to perform.

The average user would be using ZenUser as a read-only access to the system.

What we want to do is assign some of our operations staff to ZenOperator.

The problem is that when I log in, using a login with the Manager and ZenManager roles, I only see 3 roles.

Since the Core Admin guide, release 5.1.1 lists ZenOperator, I expected to see that role. Is this something I have to create myself

When I use the search widget at the top of zenoss.org, it doesn't return any information on ZenOperator. When I search the guide, it lists ZenOperator 3 or 4 times in the context that leads us to believe that's what we want to set up for giving our operators a look at Zenoss.

We would appreciate tips.

Thank you

We are using this version of Zenoss.

Zenoss Zenoss 5.1.1
OS Linux (x86_64) 3.10.0 (Linux d42316e1f0b5 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64)
Zope Zope 2.13.13
Python Python 2.7.5
Database MySQL 5.5.44 (5.5.44-MariaDB)
Twisted Twisted 13.2.0
RabbitMQ RabbitMQ 3.3.5
Erlang Erlang 5.10.4
NetSnmp NetSnmp 5.7.2
PyNetSnmp PyNetSnmp 0.40.0
Control Center

ControlCenter 1.1.1



Subject: Still trying to figure out how to do this
Author: Larry Virden
Posted: 2016-05-11 13:07

So, with the sound of deafening crickets in my ears, we continue to experient with the unknown by the unknowing in hopes of finding some sort of solutions.

We found an excellent Core 4.x article by Ms. Curry talking about creating user roles. We have no idea what all the permission descriptions mean, but we tried to create a new role. And in fact it appears to be there.

When we try to use it though, Zenoss is unhappy. We try to give the role to a user, and Zenoss says:

Type:
Value: 'OCC'

Traceback (most recent call last):
File "/opt/zenoss/lib/python2.7/site-packages/ZPublisher/Publish.py", line 126, in publish
request, bind=1)
File "/opt/zenoss/lib/python2.7/site-packages/ZPublisher/mapply.py", line 77, in mapply
if debug is not None: return debug(object,args,context)
File "/opt/zenoss/lib/python2.7/site-packages/ZPublisher/Publish.py", line 46, in call_object
result=apply(object,args) # Type s to step into published object.
File "/opt/zenoss/Products/ZenModel/UserSettings.py", line 861, in manage_editUserSettings
roleManager.assignRoleToPrincipal(role, self.id)
File "", line 8, in assignRoleToPrincipal
File "/opt/zenoss/lib/python2.7/site-packages/AccessControl/requestmethod.py", line 70, in _curried
return callable(*args, **kw)
File "/opt/zenoss/lib/python2.7/site-packages/Products/PluggableAuthService/plugins/ZODBRoleManager.py", line 305, in assignRoleToPrincipal
role_info = self._roles[ role_id ] # raise KeyError if unknown!
KeyError: 'OCC'

We have tried to do the assignment as "admin", as well as ourselves (which have manager, zenmanager, etc.) privs and to no avail.

While many of our readers may be participating in the festivities at Austin, perhaps between fun times, someone will think of a useful suggestion for resolving this frustrating issue.

Thank you so much, and Zenparty on!



Subject: A little bit more information
Author: Larry Virden
Posted: 2016-05-12 12:54

< Previous
Event summary vs Event message and the Core Admin guide discussion
  Next
Troubleshooting guide?
>