BlueXP Classification fails to scan shares with error : Check network connectivity between the Classification instance and the volume
Applies to
- BlueXP
- Classification (Formerly known as Data Sense)
- Cloud Volumes ONTAP (CVO)
- CIFS
Issue
BlueXP Classification fails to scan CIFS shares and gives error : Check network connectivity between the Classification instance and the volume even though network connectivity is in place.
datasense_celery_dirlist_worker from Classification logs show :
datasense_celery_dirlist_worker.0.xxxxxxxxxxxx@cloudcompliance | datasense.data_providers.consts.MountShareNotExistError: Failed to connect share //data_lif_IP/cifs_share_name: No such file or directory
datasense_celery_dirlist_worker.0.xxxxxxxxxxxx@cloudcompliance | log v1.0 | 2024-08-16 01:15:46,609 | INFO | ds_logger | utils | 40 | 80 | xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | utils_40 | in set_single_redis_key the key is: scan_tasks.29.workflow_error and the new value is: Failed to connect share //data_lif_IP/cifs_share_name: No such file or directory
datasense_celery_dirlist_worker.0.xxxxxxxxxxxx@cloudcompliance | log v1.0 | 2024-08-16 01:15:46,610 | INFO | celery.app.trace | trace | 265 | 80 | None | None | Task FILE_SYSTEM_DIRLIST[xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx] raised expected: MountShareNotExistError('Failed to connect share //data_lif_IP/cifs_share_name: No such file or directory')
Manual mounting of CIFS share on classification instance fails with error :
log v1.0 | 2024-09-05 07:02:06,191 | WARNING | ds_logger | utils | 21 | xxxxxxx | None | utils_21 | Error while executing cmd '['nsenter', '-t', 'xxxxxxx', '-m', '-p', '-n', 'timeout', '21', '/sbin/mount.cifs', '-o', 'credentials=/tmp/tmpxxxxxxxx/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,rw,soft,nobrl,nounix,vers=2.0,iocharset=utf8', '//data_lif_IP/cifs_share_name', '/tmp/mounts/pid_xxxx/data_lif_IP/cifs_share_name']' mount error(22): Invalid argument Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)