Delphix Toolkits (dxToolkit and dxmToolkit)

 View Only
  • 1.  dxtoolkit Masking Job Error (v0.8.2 & v6.0.4.1)

    Posted 10-12-2020 11:22:00 AM
    Edited by Daniel Forman 10-12-2020 12:49:44 PM
    After upgrading the delphix engine from 6.0.2.1 to 6.0.4.1, I am getting the following error trying to call a masking job using dxmtoolkit:

    dxmc job start --jobname test

    Exception in thread Thread-1:
    Traceback (most recent call last):
    File "threading.py", line 932, in _bootstrap_inner
    File "threading.py", line 870, in run
    File "dxm\lib\DxJobs\jobs_worker.py", line 547, in job_selector
    File "dxm\lib\DxJobs\DxJobsList.py", line 74, in LoadJobs
    File "dxm\lib\DxTools\DxTools.py", line 38, in paginator
    File "masking_api_60\api\execution_api.py", line 242, in get_all_executions
    File "masking_api_60\api\execution_api.py", line 303, in get_all_executions_with_http_info
    File "masking_api_60\api_client.py", line 325, in call_api
    File "masking_api_60\api_client.py", line 169, in __call_api
    File "masking_api_60\api_client.py", line 241, in deserialize
    File "masking_api_60\api_client.py", line 280, in __deserialize
    File "masking_api_60\api_client.py", line 624, in __deserialize_model
    File "masking_api_60\api_client.py", line 257, in __deserialize
    File "masking_api_60\api_client.py", line 257, in <listcomp>
    File "masking_api_60\api_client.py", line 280, in __deserialize
    File "masking_api_60\api_client.py", line 626, in __deserialize_model
    File "masking_api_60\models\execution.py", line 79, in __init__
    File "masking_api_60\models\execution.py", line 205, in status
    ValueError: Invalid value for `status` (CANCELLED), must be one of ['FAILED', 'RUNNING', 'SUCCEEDED']

    I suspect this has something due to a recent change to include a job status "Cancelled", but not sure how to resolve this issue. Any ideas?

    ------------------------------
    Daniel Forman
    Community Member
    ------------------------------


  • 2.  RE: dxtoolkit Masking Job Error (v0.8.2 & v6.0.4.1)

    Posted 10-12-2020 07:52:00 PM
    It looks like the toolkit needs to be rebuilt against the 6.0.4.1 API, I've let one of the maintainers know. You could potentially download and rebuild yourself from the git repo. https://github.com/delphix/dxm-toolkit

    ------------------------------
    Matt Watson
    Senior Member of Technical Staff
    Delphix
    ------------------------------



  • 3.  RE: dxtoolkit Masking Job Error (v0.8.2 & v6.0.4.1)

    Posted 10-27-2020 08:56:00 AM
    Edited by Daniel Forman 10-27-2020 08:57:44 AM

    Hi Matt,

    Thanks for your quick response earlier. Would you be able to provide an update on this? We're really looking for a resolution to this as this is holding up our development. If this won't be able to be fixed soon, we're going to have to switch our scripts to call the APIs directly.



    ------------------------------
    Daniel Forman
    Tufts Health Plan
    ------------------------------



  • 4.  RE: dxtoolkit Masking Job Error (v0.8.2 & v6.0.4.1)

    Posted 10-28-2020 07:07:00 AM
    Hello Daniel,
    We are aware of this issue and the team is working to get a fix for this asap. 
    In the future, if you need prompt attention to a dxmtoolkit issue, I recommend to open directly an issue on git: https://github.com/delphix/dxm-toolkit/issues
    Thanks!

    ------------------------------
    Diego Loureda
    Technical Director
    Delphix
    ------------------------------



  • 5.  RE: dxtoolkit Masking Job Error (v0.8.2 & v6.0.4.1)
    Best Answer

    Posted 11-03-2020 11:16:00 AM
    Hello Daniel,

    I have recompiled version 0.8.2 with 6.0.4.X API. Please download a new build from 

    https://github.com/delphix/dxm-toolkit/releases/tag/v0.8.2.1

    and let me know if that fixed your issues.

    regards,
    Marcin

    ------------------------------
    Marcin Przepiorowski
    Technical Principal
    Delphix
    ------------------------------



  • 6.  RE: dxtoolkit Masking Job Error (v0.8.2 & v6.0.4.1)

    Posted 11-06-2020 10:53:00 AM
    Edited by Daniel Forman 11-06-2020 10:53:32 AM

    Hi Marcin,

    Thanks for your response. I downloaded the most recent version and validated that I am able to call the jobs now.

    Thank you for all your help!



    ------------------------------
    Daniel Forman
    Tufts Health Plan
    ------------------------------