APIPythonOpen-Source Solutions

 View Only
  • 1.  engine_setup.py errors

    Posted 03-14-2023 08:06:00 AM

    Hi all,

    I just got some issues while I was running engine_setup.py. I was able to update sysadmin user but got errors while trying to configure storage

    INFO: Creating storage domain
    ERROR: <class 'delphixpy.v1_6_0.exceptions.RequestError'>
    ERROR: Traceback (most recent call last):
      File "D:\Users\dsandru\Downloads\delphixpy-examples-master\delphixpy-examples-master\engine_setup.py", line 189, in main
        domain.get(sys_server)
      File "C:\Python311\Lib\site-packages\delphixpy\v1_6_0\web\domain\domain.py", line 52, in get
        response = engine.get(url)
                   ^^^^^^^^^^^^^^^
      File "C:\Python311\Lib\site-packages\delphixpy\v1_6_0\delphix_engine.py", line 296, in get
        _, _, body = self._authenticate_and_perform(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Python311\Lib\site-packages\delphixpy\v1_6_0\delphix_engine.py", line 303, in _authenticate_and_perform   
        return action()
               ^^^^^^^^
      File "C:\Python311\Lib\site-packages\delphixpy\v1_6_0\delphix_engine.py", line 297, in <lambda>
        lambda: self._http_session.get(path))
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Python311\Lib\site-packages\delphixpy\v1_6_0\delphix_engine.py", line 139, in get
        return self._handle_response(response, HttpMethod.GET, path)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Python311\Lib\site-packages\delphixpy\v1_6_0\delphix_engine.py", line 103, in _handle_response
        raise exceptions.HttpError(value=msg, status=status, data=data)
    delphixpy.v1_6_0.exceptions.HttpError: HTTP status was 404 when doing GET '' to '/resources/json/delphix/domain': b'{"type":"ErrorResult","status":"ERROR","error":{"type":"APIError","details":"The object Domain does not exist on the system. It may have been destroyed by another user, or the reference may be out of date.","action":"Try the operation 
    again with the appropriate object.","id":"exception.executor.object.missing","commandOutput":null,"diagnoses":[]}}'  
    During handling of the above exception, another exception occurred:

    Any idea how I can fix this?

    Thank you,

    Cosmin



    ------------------------------
    Cosmin Dumitru
    LCH.Clearnet Limited
    ------------------------------