Skip to content
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

Script fails ungracefully if configuration-db, statistics-db, or application-server are down #90

Open
rukapse opened this issue May 31, 2023 · 1 comment
Assignees
Labels
assigned bug Something isn't working not Started Issue hasn't been worked on

Comments

@rukapse
Copy link
Collaborator

rukapse commented May 31, 2023

Another issue I noticed is that if configuration-db, statistics-db, or application-server are down, the script will fail ungracefully and will not even reach this section of the AURA script. It calls to question if this check is really valuable and/or if it should be performed first. Just wanted to share my findings here.

Example:

INFO:Executing the script in Normal execution mode
INFO:Generating a JSessionID
INFO:Generating CSRF Token
INFO:****Collecting Preliminary Data

ERROR:the JSON object must be str, not 'NoneType'
Traceback (most recent call last):
File "py3_sure.py", line 1922, in
controllers = json.loads(getRequestpy3(version_tuple, vmanage_lo_ip, jsessionid , 'system/device/controllers', args.vmanage_port, tokenid))
File "/usr/lib/python3.5/json/init.py", line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not 'NoneType'

@rukapse rukapse added bug Something isn't working assigned labels May 31, 2023
@rukapse
Copy link
Collaborator Author

rukapse commented May 31, 2023

@rukapse rukapse assigned rukapse and unassigned Akandalk Sep 14, 2023
@rukapse rukapse added the not Started Issue hasn't been worked on label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned bug Something isn't working not Started Issue hasn't been worked on
Projects
None yet
Development

No branches or pull requests

2 participants