dennybaa
3/3/2016 - 10:52 AM

-

2016-03-03 10:50:57,232 140598378561360 INFO hooks [-] 8644b922-09cf-402c-a8b6-33bf9df5ac7c -  PUT /v1/actions/56d8045ae138231645aa0b6a with filters={} (remote_addr='127.0.0.1',method='PUT',filters={},request_id='8644b922-09cf-402c-a8b6-33bf9df5ac7c',path='/v1/actions/56d8045ae138231645aa0b6a')
2016-03-03 10:50:57,233 140598378561360 AUDIT auth [-] Token provided in headers
2016-03-03 10:50:57,235 140598378561360 AUDIT auth [-] Token with id "56d802ade1382312d609c8c6" is validated.
2016-03-03 10:50:57,238 140598378561360 WARNING base [-] Type definition for 'action' argument of 'put' is missing.
2016-03-03 10:50:57,258 140598378561360 ERROR hooks [-] API call failed: [Errno 13] Permission denied: u'/opt/stackstorm/packs/examples/actions/workflows/mistral-basic.yaml'
Traceback (most recent call last):
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/pecan/core.py", line 631, in __call__
    self.invoke_controller(controller, args, kwargs, state)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/pecan/core.py", line 531, in invoke_controller
    result = controller(*args, **kwargs)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/rbac/decorators.py", line 121, in func_wrapper
    return func(*args, **kwargs)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/models/api/base.py", line 230, in callfunction
    result = f(*args, **kwargs)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2api/controllers/v1/actions.py", line 154, in put
    data_files=data_files)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2api/controllers/v1/actions.py", line 223, in _handle_data_files
    data_files=data_files)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2api/controllers/v1/actions.py", line 247, in _write_data_files_to_disk
    self._write_data_file(pack_name=pack_name, file_path=file_path, content=content)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2api/controllers/v1/actions.py", line 284, in _write_data_file
    with open(file_path, 'w') as fp:
IOError: [Errno 13] Permission denied: u'/opt/stackstorm/packs/examples/actions/workflows/mistral-basic.yaml' (_exception_data={},_exception_class='IOError',_exception_message="[Errno 13] Permission denied: u'/opt/stackstorm/packs/examples/actions/workflows/mistral-basic.yaml'")
2016-03-03 10:50:57,258 140598378561360 ERROR hooks [-] Traceback (most recent call last):
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/pecan/core.py", line 631, in __call__
    self.invoke_controller(controller, args, kwargs, state)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/pecan/core.py", line 531, in invoke_controller
    result = controller(*args, **kwargs)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/rbac/decorators.py", line 121, in func_wrapper
    return func(*args, **kwargs)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/models/api/base.py", line 230, in callfunction
    result = f(*args, **kwargs)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2api/controllers/v1/actions.py", line 154, in put
    data_files=data_files)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2api/controllers/v1/actions.py", line 223, in _handle_data_files
    data_files=data_files)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2api/controllers/v1/actions.py", line 247, in _write_data_files_to_disk
    self._write_data_file(pack_name=pack_name, file_path=file_path, content=content)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2api/controllers/v1/actions.py", line 284, in _write_data_file
    with open(file_path, 'w') as fp:
IOError: [Errno 13] Permission denied: u'/opt/stackstorm/packs/examples/actions/workflows/mistral-basic.yaml'
Traceback (most recent call last):
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/pecan/core.py", line 631, in __call__
    self.invoke_controller(controller, args, kwargs, state)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/pecan/core.py", line 531, in invoke_controller
    result = controller(*args, **kwargs)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/rbac/decorators.py", line 121, in func_wrapper
    return func(*args, **kwargs)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/models/api/base.py", line 230, in callfunction
    result = f(*args, **kwargs)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2api/controllers/v1/actions.py", line 154, in put
    data_files=data_files)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2api/controllers/v1/actions.py", line 223, in _handle_data_files
    data_files=data_files)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2api/controllers/v1/actions.py", line 247, in _write_data_files_to_disk
    self._write_data_file(pack_name=pack_name, file_path=file_path, content=content)
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2api/controllers/v1/actions.py", line 284, in _write_data_file
    with open(file_path, 'w') as fp:
IOError: [Errno 13] Permission denied: u'/opt/stackstorm/packs/examples/actions/workflows/mistral-basic.yaml'
2016-03-03 10:50:57,259 140598378561360 INFO hooks [-] 8644b922-09cf-402c-a8b6-33bf9df5ac7c - PUT /v1/actions/56d8045ae138231645aa0b6a result={
    "faultstring": "Internal Server Error"
} (result='{\n    "faultstring": "Internal Server Error"\n}',request_id='8644b922-09cf-402c-a8b6-33bf9df5ac7c',status_code='500 Internal Server Error',remote_addr='127.0.0.1',path='/v1/actions/56d8045ae138231645aa0b6a',method='PUT')