-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CA-210336: Added exception handling to prevent stack trace dump #331
base: master
Are you sure you want to change the base?
Conversation
drivers/BaseISCSI.py
Outdated
devs_path = "/dev/disk/by-scsid/%s" % self.dconf['SCSIid'] | ||
devs = os.listdir(devs_path) | ||
except: | ||
util.SMlog("[Errno 2] No such file or directory: '%s'" % devs_path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens after the exception is handled here, the code blindly continues which is probably not what we want here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MarkSymsCtx I have raised a XenError exception and the most accurate error code I could find for this exception is the one I pasted below. Does that look right?
<code> <name>ConfigDeviceInvalid</name> <description>The device is not a valid path</description> <value>91</value> </code>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks fine
5df738f
to
5c1552f
Compare
Changes Unknown when pulling 5c1552f on letsboogey:CA-210336 into * on xapi-project:master*. |
Added exception handling for when devices path is not valid. Signed-off-by: Letsibogo Ramadi <letsibogo.ramadi@citrix.com>
Changes Unknown when pulling 841e50f on letsboogey:CA-210336 into * on xapi-project:master*. |
Added exception handling for when devices path is not valid.
Signed-off-by: Letsibogo Ramadi letsibogo.ramadi@citrix.com