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
------------------------------
Original Message:
Sent: 06-01-2022 05:24:23 AM
From: Mahesh Chandran
Subject: dxmc - AttributeError: 'GenericModel' object
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
Original Message:
Sent: 06-01-2022 02:36:55 AM
From: Marcin Przepiorowski
Subject: dxmc - AttributeError: 'GenericModel' object
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
Original Message:
Sent: 05-31-2022 05:59:52 AM
From: Mahesh Chandran
Subject: dxmc - AttributeError: 'GenericModel' object
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
------------------------------