Delphix Toolkits (dxToolkit and dxmToolkit)

Expand all | Collapse all

dxtoolkit Masking Job Error (v0.8.2 & v6.0.4.1)

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

    Posted 10 days ago
    Edited by Daniel Forman 9 days ago
    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 9 days ago
    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
    ------------------------------