{"action":"created","issue":{"url":"https://api.github.com/repos/agrover/rtslib-fb/issues/57","labels_url":"https://api.github.com/repos/agrover/rtslib-fb/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/agrover/rtslib-fb/issues/57/comments","events_url":"https://api.github.com/repos/agrover/rtslib-fb/issues/57/events","html_url":"https://github.com/agrover/rtslib-fb/issues/57","id":66637370,"number":57,"title":"Raised exception has changed when a storage object is not found: RTSLibNotInCFS became RTSLibError","user":{"login":"cvubrugier","id":2720217,"avatar_url":"https://avatars.githubusercontent.com/u/2720217?v=3","gravatar_id":"","url":"https://api.github.com/users/cvubrugier","html_url":"https://github.com/cvubrugier","followers_url":"https://api.github.com/users/cvubrugier/followers","following_url":"https://api.github.com/users/cvubrugier/following{/other_user}","gists_url":"https://api.github.com/users/cvubrugier/gists{/gist_id}","starred_url":"https://api.github.com/users/cvubrugier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvubrugier/subscriptions","organizations_url":"https://api.github.com/users/cvubrugier/orgs","repos_url":"https://api.github.com/users/cvubrugier/repos","events_url":"https://api.github.com/users/cvubrugier/events{/privacy}","received_events_url":"https://api.github.com/users/cvubrugier/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-06T15:53:10Z","updated_at":"2015-11-17T06:37:00Z","closed_at":"2015-11-17T06:37:00Z","body":"After upgrading rtslib-fb in a NAS firmware at work that uses a custom software on top of rtslib-fb, I observed that the exception raised when a storage object is not found in lookup mode is now RTSLibError. It used to be RTSLibNotInCFS prior to rtslib-fb v2.1.fb44:\r\n\r\nBehaviour up to rtslib-fb v2.1.fb43:\r\n\r\n    >>> import rtslib\r\n    >>> rtslib.tcm.FileIOStorageObject('foo', None, None, None, False)\r\n    Traceback (most recent call last):\r\n      File \"<stdin>\", line 1, in <module>\r\n      File \"build/bdist.linux-x86_64/egg/rtslib/tcm.py\", line 566, in __init__\r\n      File \"build/bdist.linux-x86_64/egg/rtslib/tcm.py\", line 48, in __init__\r\n      File \"build/bdist.linux-x86_64/egg/rtslib/tcm.py\", line 798, in __init__\r\n      File \"build/bdist.linux-x86_64/egg/rtslib/node.py\", line 53, in _create_in_cfs_ine\r\n    rtslib.utils.RTSLibNotInCFS: No such _Backstore in configfs: /sys/kernel/config/target/core/fileio_0.\r\n\r\nSince rtslib-fb v2.1.fb44:\r\n\r\n    >>> import rtslib_fb\r\n    >>> rtslib_fb.tcm.FileIOStorageObject('foo', None, None, None, False)\r\n    Traceback (most recent call last):\r\n      File \"<stdin>\", line 1, in <module>\r\n      File \"build/bdist.linux-x86_64/egg/rtslib/tcm.py\", line 566, in __init__\r\n      File \"build/bdist.linux-x86_64/egg/rtslib/tcm.py\", line 48, in __init__\r\n      File \"build/bdist.linux-x86_64/egg/rtslib/tcm.py\", line 785, in __init__\r\n    rtslib.utils.RTSLibError: Storage object fileio/foo not found\r\n\r\n@grover, I can provide a patch if you consider this is an issue."},"comment":{"url":"https://api.github.com/repos/agrover/rtslib-fb/issues/comments/157286847","html_url":"https://github.com/agrover/rtslib-fb/issues/57#issuecomment-157286847","issue_url":"https://api.github.com/repos/agrover/rtslib-fb/issues/57","id":157286847,"user":{"login":"cvubrugier","id":2720217,"avatar_url":"https://avatars.githubusercontent.com/u/2720217?v=3","gravatar_id":"","url":"https://api.github.com/users/cvubrugier","html_url":"https://github.com/cvubrugier","followers_url":"https://api.github.com/users/cvubrugier/followers","following_url":"https://api.github.com/users/cvubrugier/following{/other_user}","gists_url":"https://api.github.com/users/cvubrugier/gists{/gist_id}","starred_url":"https://api.github.com/users/cvubrugier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvubrugier/subscriptions","organizations_url":"https://api.github.com/users/cvubrugier/orgs","repos_url":"https://api.github.com/users/cvubrugier/repos","events_url":"https://api.github.com/users/cvubrugier/events{/privacy}","received_events_url":"https://api.github.com/users/cvubrugier/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T06:37:00Z","updated_at":"2015-11-17T06:37:00Z","body":"> @cvubrugier can we close this? I think so?\r\n\r\nYes!"}}