sassoftware / pyviyatools

Python command-line tools that call the SAS Viya REST APIs - for SAS administrators.
Apache License 2.0
38 stars 31 forks source link

On error, validation is not generating a report #154

Open Juan4SAS opened 1 year ago

Juan4SAS commented 1 year ago

Hello,

when I try to validate, of course I am getting an expected error on the last test, since the user is sasboot, which cannot create a Compute Context,/Launcher Context as it requires a user with OS permissions.

However, the script halts in the error and it does not continue, which ends in not being able to generate a report. Is there a solution or a workaround for it?

$ python3 validateviya.py --output report-full --output-directory ~ Data Collection Test Started: Logged in User Data Collection Test Started: List Users Data Collection Test Started: List Base Folders Data Collection Test Started: List CAS Servers Data Collection Test Started: List CAS Server Metrics Data Collection Test Started: List CAS Server Caslibs Data Collection Test Started: List CASLib Tables Computation Test Started: Run Test SAS Code http response code: 500 ret.text: {"version":2,"httpStatusCode":500,"errorCode":30154,"message":"Failed to retrieve identifier information user: \"@currentUser\"","details":["traceId: c8f68efdbc99b3e0","path: /launcher/processes","path: /compute/contexts/a768a6d7-bc93-48db-8acd-8760da1099d1/sessions","correlator: db1657d0-22c9-415e-99af-6c834ce95ef4"],"errors":[{"version":2,"httpStatusCode":404,"errorCode":10525,"message":"Unable to process identifier data for USER \"sasboot\".","details":["traceId: c8f68efdbc99b3e0","path: /identities/users/@currentUser/identifier"]}]}

Thank you in advance! Best regards, Juan

gerrynelson63 commented 1 year ago

Thanks Juan, I agree the process should complete and provide the report. We will fix this one.

Juan4SAS commented 1 year ago

Thank you Gary will be looking forward to the update, since it will help validation of environments in Life Sciences a lot - it is actually kind of mandatory for those deployments