Skip to content

jenkins node names might break the service #50

@alfredodeza

Description

@alfredodeza

When the name looks like the mita naming conventions:

2016-04-11 11:04:49,182 [ERROR   ] [mita.hooks.error][MainThread] unhandled error by controller: NodeController.idle
2016-04-11 11:04:49,183 [ERROR   ] [mita.hooks.error][MainThread] request path /api/nodes/manual/idle
Traceback (most recent call last):
  File "/opt/mita/local/lib/python2.7/site-packages/pecan/core.py", line 678, in __call__
    self.invoke_controller(controller, args, kwargs, state)
  File "/opt/mita/local/lib/python2.7/site-packages/pecan/core.py", line 572, in invoke_controller
    result = controller(*args, **kwargs)
  File "/opt/mita/src/mita/mita/controllers/nodes.py", line 48, in idle
    abort(404, 'could not find UUID: %s' % self.identifier)
  File "/opt/mita/local/lib/python2.7/site-packages/pecan/core.py", line 141, in abort
    exec('raise webob_exception, None, traceback')
  File "/opt/mita/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 66, in run_for_one
    self.accept(listener)
  File "/opt/mita/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 27, in accept
    client, addr = listener.accept()
  File "/usr/lib/python2.7/socket.py", line 202, in accept
    sock, addr = self._sock.accept()
HTTPNotFound: could not find UUID: manual

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions