2024-09-02T13:13:25 PM UTC [2505280]DEBUG:vmware.vherd.base.proxy_utils:Proxy is not enabled.
2024-09-02T13:13:30 PM UTC [2505280]ERROR:vmware.vapi.provider.local:Error in invoking com.vmware.appliance.recovery.backup.schedules in update - Command '['ssh-keyscan', '-p', '<sftp port>', '-H', '<backup server FQDN/IP>']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/provider/local.py", line 277, in invoke
method_result = self._invoke_int(
File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/provider/local.py", line 249, in _invoke_int
method_result = iface.invoke(ctx, method_id, input_value)
File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/bindings/skeleton.py", line 371, in invoke
meth_output = method(**meth_args)
File "/usr/lib/applmgmt/base/py/vmware/vherd/base/thread_utils.py", line 43, in wrapper
return sync_call_from_thread(func, *args, **kw)
File "/usr/lib/applmgmt/base/py/vmware/vherd/base/thread_utils.py", line 13, in sync_call_from_thread
return threads.blockingCallFromThread(reactor, func, *args, **kw)
File "/usr/lib/python3.10/site-packages/twisted/internet/threads.py", line 122, in blockingCallFromThread
result.raiseException()
File "/usr/lib/python3.10/site-packages/twisted/python/failure.py", line 488, in raiseException
raise self.value.with_traceback(self.tb)
subprocess.CalledProcessError: Command '['ssh-keyscan', '-p', '<sftp port>', '-H', '<backup server FQDN/IP>']' returned non-zero exit status 1.
2024-08-13T22:00:10.113 [0] [MainProcess:PID-2387589] [Scheduler::ExecScheduleRun:Scheduler.py:137] ERROR: Failed to issue the Schedules.run request. Exception: {messages : [LocalizableMessage(id='com.vmware.appliance.unknown-twisted-error', default_message='Internal error. See logs for details. https://<VCSA FQDN>/appliance/support-bundle', args=['<VCSA FQDN>'], params=None, localized=None)], data : None, error_type : None}
Traceback (most recent call last):
File "/usr/lib/applmgmt/backup_restore/py/vmware/appliance/backup_restore/Scheduler.py", line 133, in ExecScheduleRun
status = svc_handle.run(scheduleId, comment='SCHEDULED')
File "/usr/lib/applmgmt/pyclient/applmgmt_client-1.0-py2.7.egg/com/vmware/appliance/recovery/backup_client.py", line 1197, in run
return self._invoke('run',
File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/bindings/stub.py", line 345, in _invoke
return self._api_interface.native_invoke(ctx, _method_name, kwargs)
File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/bindings/stub.py", line 295, in native_invoke
raise TypeConverter.convert_to_python(method_result.error, # pylint: disable=E0702
com.vmware.vapi.std.errors_client.Error: {messages : [LocalizableMessage(id='com.vmware.appliance.unknown-twisted-error', default_message='Internal error. See logs for details. https://<VCSA FQDN>/appliance/support-bundle', args=['<VCSA FQDN>'], params=None, localized=None)], data: None, error_type : None}
2024-08-14T00:00:07.934 [0] [MainProcess:PID-2474079] [Scheduler::ExecArchiveList:Scheduler.py:119] ERROR: Failed to issue the Archive.list request. Exception: {messages : [LocalizableMessage(id='vapi.method.invoke.exception', default_message="Error in method invocation Command '['ssh-keyscan', '-p', '<sftp port>', '-H', '<backup server FQDN/IP>']' returned non-zero exit status 1.", args=["Command '['ssh-keyscan', '-p', '<sftp port>', '-H', '<backup server FQDN/IP>']' returned non-zero exit status 1."], params=None, localized=None)], data : None, error_type : INTERNAL_SERVER_ERROR}
Traceback (most recent call last):
File "/usr/lib/applmgmt/backup_restore/py/vmware/appliance/backup_restore/Scheduler.py", line 116, in ExecArchiveList
backupList = svc_handle.list(locationSpec, systemName, filterSpec)
File "/usr/lib/applmgmt/pyclient/applmgmt_client-1.0-py2.7.egg/com/vmware/appliance/recovery/backup/system_name_client.py", line 289, in list
return self._invoke('list',
File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/bindings/stub.py", line 345, in _invoke
return self._api_interface.native_invoke(ctx, _method_name, kwargs)
File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/bindings/stub.py", line 295, in native_invoke
raise TypeConverter.convert_to_python(method_result.error, # pylint: disable=E0702
com.vmware.vapi.std.errors_client.InternalServerError: {messages : [LocalizableMessage(id='vapi.method.invoke.exception', default_message="Error in method invocation Command '['ssh-keyscan', '-p', '<sftp port>', '-H', '<backup server FQDN/IP>']' returned non-zero exit status 1.", args=["Command '['ssh-keyscan', '-p', '<sftp port>', '-H', '<backup server FQDN/IP>']' returned non-zero exit status 1."], params=None, localized=None)], data : None, error_type : INTERNAL_SERVER_ERROR}
The issue is caused due to the ssh communication from the vCenter to the backup server is not available causing the "ssh-keyscan" operation to fail
Broadcom Engineering is aware of issue and working on a solution
In order to workaround the issue, implement steps from either of the below
Proceed with enabling ssh communication to the backup server from vCenter server on the port configured for backup
cd /usr/lib/applmgmt/backup_restore/py/vmware/appliance/backup_restore/plugins/
cp SftpStorageIOLib.py SftpStorageIOLib.py.copy
vi SftpStorageIOLib.py
Existing Line
if self.validateCerts:
self.knownHostFile = BR_CERT_KNOWN_HOSTS_FILE
else:
self.knownHostFile = KNOWN_HOSTS_FILE
self._setupPasswordlessTunnel(user, passwd)
Updated Line
if self.validateCerts:
self.knownHostFile = BR_CERT_KNOWN_HOSTS_FILE
else:
self.knownHostFile = KNOWN_HOSTS_FILE
try:
self._setupPasswordlessTunnel(user, passwd)
except Exception as e:
self.transferWithCurl = True
Note: These steps will be modifying the python script and hence the spacing as mentioned above is critical
applmgmt
service using the below commandservice-control --restart applmgmt