{"action":"created","issue":{"url":"https://api.github.com/repos/vmware/pyvmomi/issues/699","repository_url":"https://api.github.com/repos/vmware/pyvmomi","labels_url":"https://api.github.com/repos/vmware/pyvmomi/issues/699/labels{/name}","comments_url":"https://api.github.com/repos/vmware/pyvmomi/issues/699/comments","events_url":"https://api.github.com/repos/vmware/pyvmomi/issues/699/events","html_url":"https://github.com/vmware/pyvmomi/issues/699","id":340087207,"node_id":"MDU6SXNzdWUzNDAwODcyMDc=","number":699,"title":"error for mount snapshot vmfs. \"vim.host.UnresolvedVmfsResolutionSpec is not iterable\"","user":{"login":"lihlcnkr","id":5908778,"node_id":"MDQ6VXNlcjU5MDg3Nzg=","avatar_url":"https://avatars1.githubusercontent.com/u/5908778?v=4","gravatar_id":"","url":"https://api.github.com/users/lihlcnkr","html_url":"https://github.com/lihlcnkr","followers_url":"https://api.github.com/users/lihlcnkr/followers","following_url":"https://api.github.com/users/lihlcnkr/following{/other_user}","gists_url":"https://api.github.com/users/lihlcnkr/gists{/gist_id}","starred_url":"https://api.github.com/users/lihlcnkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lihlcnkr/subscriptions","organizations_url":"https://api.github.com/users/lihlcnkr/orgs","repos_url":"https://api.github.com/users/lihlcnkr/repos","events_url":"https://api.github.com/users/lihlcnkr/events{/privacy}","received_events_url":"https://api.github.com/users/lihlcnkr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-11T04:24:35Z","updated_at":"2018-07-11T05:45:54Z","closed_at":null,"author_association":"NONE","body":"When we are trying to mount snapshot vmfs(Resignature or 'Force Mount' unbound VMFS volumes) we are failing with error \"vim.host.UnresolvedVmfsResolutionSpec is not iterable\"\r\n\r\nthe code is like this:\r\n`    \r\n    storageSystem = host.configManager.storageSystem\r\n    unresolvedVolumes = storageSystem.QueryUnresolvedVmfsVolume()\r\n    volume = None\r\n    for unresolvedVolume in unresolvedVolumes:\r\n        print(\"unresolvedVolume:\", unresolvedVolume)\r\n        if unresolvedVolume.vmfsLabel == volumename:\r\n            volume = unresolvedVolume\r\n            break\r\n\r\n    resolutionSpec = vim.host.UnresolvedVmfsResolutionSpec()\r\n    paths = []\r\n    for extent in volume.extent:\r\n        paths.append(extent.devicePath)\r\n    resolutionSpec.extentDevicePath = paths\r\n    #task = storageSystem.ResolveMultipleUnresolvedVmfsVolumes(resolutionSpec)\r\n    task = storageSystem.ResolveMultipleUnresolvedVmfsVolumesEx(resolutionSpec)\r\n\r\n    tasks.wait_for_tasks(si, [task])\r\n`\r\n\r\nUsing this code failed with below error:\r\n\r\n> File \"/usr/local/****/VmomiSuppport.py\", Line 953, in CheckField\r\n> for it in val:\r\n> TypeError: 'vim.host.UnresolvedVmfsResolutionSpec' object is not iterable\r\n\r\nhow to fix this error? is it bug? \r\n"},"comment":{"url":"https://api.github.com/repos/vmware/pyvmomi/issues/comments/404052021","html_url":"https://github.com/vmware/pyvmomi/issues/699#issuecomment-404052021","issue_url":"https://api.github.com/repos/vmware/pyvmomi/issues/699","id":404052021,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDA1MjAyMQ==","user":{"login":"lihlcnkr","id":5908778,"node_id":"MDQ6VXNlcjU5MDg3Nzg=","avatar_url":"https://avatars1.githubusercontent.com/u/5908778?v=4","gravatar_id":"","url":"https://api.github.com/users/lihlcnkr","html_url":"https://github.com/lihlcnkr","followers_url":"https://api.github.com/users/lihlcnkr/followers","following_url":"https://api.github.com/users/lihlcnkr/following{/other_user}","gists_url":"https://api.github.com/users/lihlcnkr/gists{/gist_id}","starred_url":"https://api.github.com/users/lihlcnkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lihlcnkr/subscriptions","organizations_url":"https://api.github.com/users/lihlcnkr/orgs","repos_url":"https://api.github.com/users/lihlcnkr/repos","events_url":"https://api.github.com/users/lihlcnkr/events{/privacy}","received_events_url":"https://api.github.com/users/lihlcnkr/received_events","type":"User","site_admin":false},"created_at":"2018-07-11T05:45:54Z","updated_at":"2018-07-11T05:45:54Z","author_association":"NONE","body":"tanks @prziborowski \r\nbut after using \r\n`task = storageSystem.ResolveMultipleUnresolvedVmfsVolumesEx([resolutionSpec])`\r\nthe thrown error is gone.  and  the task will be return 'success' status.\r\n\r\nbut  the snap vmfs still unmounted.\r\nthe taks.info.result(UnresolvedVmfsResolutionResult object) have fault porperty, \r\nand it is vim.fault.HostConfigFault\r\nthe msg is localizeblemessage, it's messy code， I can't see why it fail.\r\n`(vim.host.UnresolvedVmfsResolutionResult) {\r\n  vmfs = <unset>, \r\n  fault = (vim.fault.HostConfigFault) {\r\nmsg = 'it's messy code',\r\nfaultCause = <unset>,\r\nfaultMessage = (vmodl.LocalizableMessage) []\r\n}\r\n}\r\n`\r\ndo you have any idea what cause it? \r\nthanks\r\n"}}
{"actor":{"display_login":"lihlcnkr"}}