Dell EMC Unity discovery is failing with "ERROR - Failed to discover assets. Error: Failed to fetch DELL EMC Unity Filesystems. Error: 'NoneType' object has no attribute 'id'"
Problem
Dell EMC Unity discovery is failing with error: Failed to discover assets. Error: Failed to fetch DELL EMC Unity Filesystems. Error: 'NoneType' object has no attribute 'id'"
Error Message
flexsnap.log:
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: "Oct 05 18:53:20 02ec003ea443 flexsnap-agent-agent.43771d0c321d4089a1bc5513331ba489[8] Poll detect_asset_changes@14400secs flexsnap.plugins.emc_unity: ERROR - Failed to fetch DELL EMC Unity Filesystems. Error: 'NoneType' object has no attribute 'id'"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: "Traceback (most recent call last):"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: " File ""emc_unity/emc_unity.py"", line 372, in get_filesystems"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: " filesystems.append(self.__build_fs(fs_path, fs[fs_path]))"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: " File ""emc_unity/emc_unity.py"", line 264, in __build_fs"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: " data[Protocols.NFS][0].filesystem.id if data[Protocols.NFS]"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: "AttributeError: 'NoneType' object has no attribute 'id'"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: "Oct 05 18:53:20 02ec003ea443 flexsnap-agent-agent.43771d0c321d4089a1bc5513331ba489[8] Poll detect_asset_changes@14400secs flexsnap.agent: ERROR - Failed to discover assets. Error: Failed to fetch DELL EMC Unity Filesystems. Error: 'NoneType' object has no attribute 'id'"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: "Traceback (most recent call last):"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: " File ""emc_unity/emc_unity.py"", line 372, in get_filesystems"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: " filesystems.append(self.__build_fs(fs_path, fs[fs_path]))"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: " File ""emc_unity/emc_unity.py"", line 264, in __build_fs"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: " data[Protocols.NFS][0].filesystem.id if data[Protocols.NFS]"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: "AttributeError: 'NoneType' object has no attribute 'id'"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: ""
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: "During handling of the above exception, another exception occurred:"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: ""
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: "Traceback (most recent call last):"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: " File ""emc_unity/emc_unity.py"", line 1566, in assets"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: " dirs = self.unity.get_filesystems()"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: " File ""emc_unity/emc_unity.py"", line 378, in get_filesystems"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: " raise Exception(message)"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: "Exception: Failed to fetch DELL EMC Unity Filesystems. Error: 'NoneType' object has no attribute 'id'"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: ""
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: "During handling of the above exception, another exception occurred:"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: ""
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: "Traceback (most recent call last):"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: " File ""/opt/VRTScloudpoint/lib/flexsnap/agent.py"", line 894, in list_assets"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: " for p_assets in p.assets():"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: " File ""emc_unity/emc_unity.py"", line 1583, in assets"
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: " raise flexsnap.OperationFailed("
flexsnap-agent.43771d0c321d4089a1bc5513331ba489: "flexsnap.OperationFailed: Failed to discover assets. Error: Failed to fetch DELL EMC Unity Filesystems. Error: 'NoneType' object has no attribute 'id'"
Cause
On the Dell EMC Unity, there is a stale and incomplete share entry that can be seen by the Dell EMC API but not cannot be seen by the UI or CLI.
Solution
Engage Dell EMC for assistance with cleaning up the stale share entries from the storage system.