App aware backups complete with required field username not provided (not @optional) error
This article applies to:
- Product edition: Phoenix
Problem description
App aware backups complete successfully with “Required field "username" not provided (not @optional)” errors.
Cause
This issue occurs if app aware backup is triggered for a Virtual Machine which does not have credentials assigned to it from the credential store.
Traceback
-
Follow the instructions provided in the link below to obtain job logs.
Download the job logs - Extract the logs and go to Phoenix<YYYYMMDD>_<timestamp>.log file to see the below traceback in the logs
[2019-10-29 15:54:52,543] [ERROR] Error <type 'exceptions.TypeError'>:Required field "username" not provided (not @optional). Traceback -Traceback (most recent call last):
File "agents/vmware/vmwareAgent.py", line 2418, in init_backup
File "agents/vmware/guest_os_utils.py", line 44, in __init__
File "pyVmomi/VmomiSupport.py", line 513, in __init__
File "pyVmomi/VmomiSupport.py", line 532, in __setattr__
File "pyVmomi/VmomiSupport.py", line 901, in CheckField
TypeError: Required field "username" not provided (not @optional
Resolution
Assign credentials to the Virtual Machine for app aware backups to run successfully. Make sure credentials are mapped to this VM from the credential store.
References:
- Article to confirm the permission required for these credentials:
https://docs.druva.com/Phoenix/030_C...rtual_machines - Article to assign the credentials to the Virtual Machine:
https://docs.druva.com/Phoenix/025_G...dentials_store
Verification
Once the changes are done, again trigger the backup job and it should complete successfully.