I am a newbie to SL so I hope I am using the right listserv (please redirect me 
if needed). I think I am encountering an issue specific to SL since I cannot 
reproduce using TUV bits.

Using Luci (the web interface for Cluster Suite), whenever a new resource or 
service is created or modified, an "Error 500 - We're sorry but we weren't able 
to process this request" is generated when the Submit button is pressed, and 
luci logs this error in luci.log:

Error - <type 'exceptions.UnboundLocalError'>: local variable 'err_strs' 
referenced before assignment

The cluster action, whatever it was, was actually successful, this is purely a 
web UI error.

Full error trace:

----------------------------------------
/usr/lib/python2.6/site-packages/sqlalchemy/engine/default.py:230: SAWarning: 
Unicode type received non-unicode bind param value 'johnsow1'
  param.append(processors[key](compiled_params[key]))
13:38:43,164 INFO  [luci.controllers.cluster] User "johnsow1" Created global 
resource "nfs3_export" in cluster "JUP_DEV_1"
Error - <type 'exceptions.UnboundLocalError'>: local variable 'err_strs' 
referenced before assignment
URL: 
https://usjupc7hp0101x.ww007.siemens.net:8084/cluster/JUP_DEV_1/resources_cmd?command=Create
File '/usr/lib/python2.6/site-packages/weberror/errormiddleware.py', line 162 
in __call__
  app_iter = self.application(environ, sr_checker)
File '/usr/lib/python2.6/site-packages/tg/configuration.py', line 655 in wrapper
  return app(environ, start_response)
File '/usr/lib/python2.6/site-packages/tg/configuration.py', line 555 in remover
  return app(environ, start_response)
File '/usr/lib/python2.6/site-packages/repoze/tm/__init__.py', line 19 in 
__call__
  result = self.application(environ, save_status_and_headers)
File '/usr/lib/python2.6/site-packages/tw/core/middleware.py', line 43 in 
__call__
  return self.wsgi_app(environ, start_response)
File '/usr/lib/python2.6/site-packages/tw/core/middleware.py', line 68 in 
wsgi_app
  resp = req.get_response(self.application)
File '/usr/lib/python2.6/site-packages/webob/__init__.py', line 1325 in 
get_response
  application, catch_exc_info=False)
File '/usr/lib/python2.6/site-packages/webob/__init__.py', line 1293 in 
call_application
  app_iter = application(self.environ, start_response)
File '/usr/lib/python2.6/site-packages/tw/core/resource_injector.py', line 68 
in _injector
  resp = req.get_response(app)
File '/usr/lib/python2.6/site-packages/webob/__init__.py', line 1325 in 
get_response
  application, catch_exc_info=False)
File '/usr/lib/python2.6/site-packages/webob/__init__.py', line 1293 in 
call_application
  app_iter = application(self.environ, start_response)
File '/usr/lib/python2.6/site-packages/beaker/middleware.py', line 73 in 
__call__
  return self.app(environ, start_response)
File '/usr/lib/python2.6/site-packages/beaker/middleware.py', line 152 in 
__call__
  return self.wrap_app(environ, session_start_response)
File '/usr/lib/python2.6/site-packages/routes/middleware.py', line 130 in 
__call__
  response = self.app(environ, start_response)
File '/usr/lib/python2.6/site-packages/pylons/wsgiapp.py', line 125 in __call__
  response = self.dispatch(controller, environ, start_response)
File '/usr/lib/python2.6/site-packages/pylons/wsgiapp.py', line 324 in dispatch
  return controller(environ, start_response)
File '/usr/lib64/python2.6/site-packages/luci/controllers/root.py', line 62 in 
__call__
  return BaseController.__call__(self, environ, start_response)
File '/usr/lib64/python2.6/site-packages/luci/lib/base.py', line 30 in __call__
  return TGController.__call__(self, environ, start_response)
File '/usr/lib/python2.6/site-packages/pylons/controllers/core.py', line 221 in 
__call__
  response = self._dispatch_call()
File '/usr/lib/python2.6/site-packages/pylons/controllers/core.py', line 172 in 
_dispatch_call
  response = self._inspect_call(func)
File '/usr/lib/python2.6/site-packages/pylons/controllers/core.py', line 107 in 
_inspect_call
  result = self._perform_call(func, args)
File '/usr/lib/python2.6/site-packages/tg/controllers.py', line 857 in 
_perform_call
  self, controller, params, remainder=remainder)
File '/usr/lib/python2.6/site-packages/tg/controllers.py', line 172 in 
_perform_call
  output = controller(*remainder, **dict(params))
File '/usr/lib64/python2.6/site-packages/luci/controllers/cluster.py', line 633 
in resources_cmd
  msgs = rh.update_cluster_conf(self.model)
File '/usr/lib64/python2.6/site-packages/luci/lib/ricci_helpers.py', line 210 
in update_cluster_conf
  if err_strs:
UnboundLocalError: local variable 'err_strs' referenced before assignment


CGI Variables
-------------
  AUTH_TYPE: 'cookie'
  CONTENT_LENGTH: '-1'
  CONTENT_TYPE: 'application/x-www-form-urlencoded'
  HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
  HTTP_ACCEPT_ENCODING: 'gzip, deflate'
  HTTP_ACCEPT_LANGUAGE: 'en-US,en;q=0.5'
  HTTP_CONNECTION: 'keep-alive'
  HTTP_COOKIE: 
'AUTH_SESSION_ID=SMS_demchdc3n7a_4a34c3::eb347a49a84e75bd2fa3d1aa3fee4652; 
luci=692dfa8f7a351f4cfaf60fb8e084cad975d3b64f2gZlY9FS59E5ej7A_mhCLkSxgyc; 
auth_tkt="0acc61fe31a9e33a88fd19d2a819f61ccb19bf97e19be9ec00627ac0710a844c56705e0cjohnsow1!"'
  HTTP_HOST: 'usjupc7hp0101x.ww007.siemens.net:8084'
  HTTP_REFERER: 
'https://usjupc7hp0101x.ww007.siemens.net:8084/cluster/JUP_DEV_1/resources'
  HTTP_USER_AGENT: 'Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 
Firefox/38.0'
  PATH_INFO: '/cluster/JUP_DEV_1/resources_cmd'
  QUERY_STRING: 'command=Create'
  REMOTE_ADDR: '209.243.240.219'
  REMOTE_USER: 'johnsow1'
  REMOTE_USER_TOKENS: ['']
  REQUEST_METHOD: 'POST'
  SERVER_NAME: '0.0.0.0'
  SERVER_PORT: '8084'
  SERVER_PROTOCOL: 'HTTP/1.1'


WSGI Variables
--------------
  application: <function wrapper at 0x3bc1758>
  beaker.cache: <beaker.cache.CacheManager object at 0x3bbd610>
  beaker.get_session: <bound method SessionMiddleware._get_session of 
<beaker.middleware.SessionMiddleware object at 0x3bbda90>>
 beaker.session: {'_accessed_time': 1450204722.9894979}
  paste.cookies: (<SimpleCookie: 
AUTH_SESSION_ID='SMS_demchdc3n7a_4a34c3::eb347a49a84e75bd2fa3d1aa3fee4652' 
auth_tkt='0acc61fe31a9e33a88fd19d2a819f61ccb19bf97e19be9ec00627ac0710a844c56705e0cjohnsow1!'
 luci='692dfa8f7a351f4cfaf60fb8e084cad975d3b64f2gZlY9FS59E5ej7A_mhCLkSxgyc'>, 
'AUTH_SESSION_ID=SMS_demchdc3n7a_4a34c3::eb347a49a84e75bd2fa3d1aa3fee4652; 
luci=692dfa8f7a351f4cfaf60fb8e084cad975d3b64f2gZlY9FS59E5ej7A_mhCLkSxgyc; 
auth_tkt="0acc61fe31a9e33a88fd19d2a819f61ccb19bf97e19be9ec00627ac0710a844c56705e0cjohnsow1!"')
  paste.httpserver.thread_pool: <paste.httpserver.ThreadPool object at 
0x32ea250>
  paste.parsed_dict_querystring: (MultiDict([('command', 'Create')]), 
'command=Create')
  paste.parsed_querystring: ([('command', 'Create')], 'command=Create')
  paste.registry: <paste.registry.Registry object at 0x7faa646b6c90>
  paste.throw_errors: True
  pylons.action_method: <bound method RootController.routes_placeholder of 
<luci.controllers.root.RootController object at 0x7faa6469f7d0>>
  pylons.controller: <luci.controllers.root.RootController object at 
0x7faa6469f7d0>
  pylons.environ_config: {'session': 'beaker.session', 'cache': 'beaker.cache'}
  pylons.pylons: <pylons.util.PylonsContext object at 0x7faa6469ff90>
  pylons.routes_dict: {'url': u'cluster/JUP_DEV_1/resources_cmd', 'action': 
u'routes_placeholder', 'controller': u'root'}
  repoze.tm.active: True
  repoze.what.credentials: {'repoze.what.userid': 'johnsow1', 'groups': 
[u'import_cluster', u'managers', u'create_cluster', u'view_JUP_DEV_1', 
u'membership_JUP_DEV_1', u'config_JUP_DEV_1', u'remove_JUP_DEV_1', 
u'node_cmd_JUP_DEV_1', u'service_cmd_JUP_DEV_1'], 'permissions': []}
  repoze.who.identity: <repoze.who identity (hidden, dict-like) at 
140369866005696>
  repoze.who.logger: None
  repoze.who.plugins: {'luci_sasl2auth': 
<luci.lib.plugin_sasl2auth.Sasl2AuthPlugin object at 0x3cbf310>, 
'friendlyform': <FriendlyFormPlugin 62677648>, 'auth_tkt': <AuthTktCookiePlugin 
63697616>}
  routes.route: <routes.route.Route object at 0x3b53210>
  routes.url: <routes.util.URLGenerator object at 0x7faa646b7810>
  toscawidgets.framework: <tw.mods.base.HostFramework object at 0x3bbd410>
  toscawidgets.javascript.require_once: False
  toscawidgets.prefix: '/toscawidgets'
  webflash.payload: 
'%7B%22status%22%3A%20%22ok%22%2C%20%22message%22%3A%20%22Created%20global%20resource%20%5C%22nfs3_export%5C%22%22%7D'
  webob._parsed_post_vars: (MultiDict([('res_select', 'nfsexport_resource'), 
('parent_id', ''), ('form_id', ''), ('oldname', ''), ('type', 'nfsexport'), 
('resourcename', 'nfs3_export')]), <FakeCGIBody at 0x7faa646b77d0 viewing 
MultiDict([('re...t')])>)
  webob._parsed_query_vars: (MultiDict([('command', 'Create')]), 
'command=Create')
  webob.adhoc_attrs: {'errors': 'ignore', 'language': 'en-us', 
'start_response': <function repl_start_response at 0x7faa646a7a28>, 
'response_type': None, 'response_ext': None, 'identity': <repoze.who identity 
(hidden, dict-like) at 140369866005696>}
  wsgi process: 'Multithreaded'
  wsgiorg.routing_args: (<routes.util.URLGenerator object at 0x7faa646b7810>, 
{'url': u'cluster/JUP_DEV_1/resources_cmd', 'action': u'routes_placeholder', 
'controller': u'root'})
------------------------------------------------------------


Thanks,
Wayne Johnson
RHCA #110-118-890

This message and any attachments are solely for the use of intended recipients. 
The information contained herein may include trade secrets, protected health or 
personal information, privileged or otherwise confidential information. 
Unauthorized review, forwarding, printing, copying, distributing, or using such 
information is strictly prohibited and may be unlawful. If you are not an 
intended recipient, you are hereby notified that you received this email in 
error, and that any review, dissemination, distribution or copying of this 
email and any attachment is strictly prohibited. If you have received this 
email in error, please contact the sender and delete the message and any 
attachment from your system. Thank you for your cooperation

Reply via email to