vertica dr health check script showing errors - SyntaxWarning: invalid escape sequence '\q'
search cancel

vertica dr health check script showing errors - SyntaxWarning: invalid escape sequence '\q'

book

Article ID: 444512

calendar_today

Updated On:

Products

Network Observability CA Performance Management

Issue/Introduction

When running vertica dr-healthcheck.sh on 25.4.8 - getting following errors.

 

[root@host:/opt/NetOps/IMDataRepository_vertica25]# dr-health>./dr-healthcheck.sh test dauser XXXXX dradmin YYYYY

 

DR Health Check Starting... output will be written to /tmp/dr.out

Vertica Analytic Database v25.3.0-8

Validating Self-Monitoring Polling

Gathering Table Size Information...

Gathering alarm table counts...

Gathering Physical Resource Information...

Gathering Catalog Information...

Checking For Unsegemented tables...

/opt/NetOps/IMDataRepository_vertica25/dr-health/./segment.py:98: SyntaxWarning: invalid escape sequence '\q'

  dbProc = subprocess.Popen([vsqlPath + ' ' + g["dbOptions"] + ' -c "\q"'],

Environment

 DX NetOps 25.4.8

Cause

Changes made to the version of python shipped with vertica require a new syntax

Resolution

Temporary workaround - change \q to \\q on line 98 in segment.py

 

/opt/CA/IMDataRepository_vertica**/dr-health/segment.py

 

98:    dbProc = subprocess.Popen([vsqlPath + ' ' + g["dbOptions"] + ' -c "\q"'],



Additional Information

This will be fixed in a future release