Delphix Toolkits (dxToolkit and dxmToolkit)

 View Only
  • 1.  dxmc - AttributeError: 'GenericModel' object

    Posted 05-31-2022 06:00:00 AM
    Sometimes while starting a masking job using dxmc, we receive below error message but the command returns a successful return code. We have setup these jobs to be triggered from the CA ESP scheduler which depends on the dxmc command return code. This issue caused the scheduler to assume that the Delphix Job Ran fine, while it was still in execution

    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 548, in job_selector
    File "dxm\lib\DxJobs\jobs_worker.py", line 757, in do_start
    File "dxm\lib\DxJobs\DxJob.py", line 568, in start
    File "dxm\lib\DxJobs\DxJob.py", line 606, in wait_for_job
    AttributeError: 'GenericModel' object has no attribute 'rows_total'

    Unable to find a pattern on when the error occurs or not able to forcefully recreate the error.

    Can anyone assist here?

    P.S:
    Command used to start job is
    dxmc job start --jobname MASK_JOB1 --envname MASK_ENV_01 --engine ME01

    ------------------------------
    Mahesh Chandran
    Delphix Community Members
    ------------------------------


  • 2.  RE: dxmc - AttributeError: 'GenericModel' object

    Posted 06-01-2022 02:37:00 AM
    Hi,

    Could you please run it with --debug options and upload here dxm.log file ?
    What version of engine and dxmc are you using ?

    regards,
    Marcin

    ------------------------------
    Marcin Przepiorowski
    Director, Technical Services
    Delphix
    ------------------------------



  • 3.  RE: dxmc - AttributeError: 'GenericModel' object

    Posted 06-01-2022 05:24:00 AM
    As I mentioned in the original post, we are not able to recreate the issue and also not able to find the pattern of when this occurs. When the same command was run after a minute, the command ran successfully.

    Delphix Engine Verison - 6.0.13
    dxmc Version -  0.1.9

    ------------------------------
    Mahesh Chandran
    Delphix Community Members
    ------------------------------



  • 4.  RE: dxmc - AttributeError: 'GenericModel' object

    Posted 06-11-2022 06:49:00 PM
    Found out the scenario when this issue occurs. When the engine's job execution queue is full, the dxmc job start command triggers the job in the engine but is not able to continue to monitor it till completion. Below is the error message and the debug log will be sent to your email separately since organization does not allow uploads.

    Note: All IP addresses, User ID, email ID have been modified in the debug log file for security reasons

    ------------------------------
    Mahesh Chandran
    Delphix Community Members
    ------------------------------



  • 5.  RE: dxmc - AttributeError: 'GenericModel' object

    Posted 06-13-2022 05:08:00 AM
    Hi,

    Are you using a version sent to you by David ? 
    It should be fixed there.

    regards,
    Marcin

    ------------------------------
    Marcin Przepiorowski
    Director, Technical Services
    Delphix
    ------------------------------



  • 6.  RE: dxmc - AttributeError: 'GenericModel' object

    Posted 06-13-2022 05:34:00 AM
    We did not receive any new version from David. Can you please let me know where i can get that?

    ------------------------------
    Mahesh Chandran
    Delphix Community Members
    ------------------------------



  • 7.  RE: dxmc - AttributeError: 'GenericModel' object

    Posted 06-15-2022 01:01:00 PM
    Hi Mahesh,
    Your Customer Success Manager has a version of the dxm that should work. Please let us know when you've had a chance to test it.

    Thank you,
    Michael

    ------------------------------
    Michael Torok
    Community Mgmt & Experience, Sr. Director
    Delphix
    ------------------------------