Has the log rotation job on Vertica 10 been updated to use python 3?
search cancel

Has the log rotation job on Vertica 10 been updated to use python 3?

book

Article ID: 234456

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration

Issue/Introduction

We upgraded from a release prior to 21.2.3 (Vertica is upgraded to 10.1.1-0 in 21.2.3 and later)

We could see that our logrotate command was as below in the previous release:

/opt/vertica/oss/python/bin/python -m vertica.do_logrotate &> /dev/null

However, in the new release, we do not see the folder "bin" in /opt/vertica/oss/python/bin rather we have only /opt/vertica/oss/python3/bin/


Environment

Release : 21.2.3 or later

Component : PM Data Storage

Resolution

The command was updated in Vertica 10.1.1 to use python 3.

In the crontab of the DR admin user, you should see the command has been updated to :

# Vertica administrator cron
#
# Minute    Hour     Day    Month    Day of Week            Command
   5         3        *       *         *                    /opt/vertica/oss/python3/bin/python3 -m vertica.do_logrotate &> /dev/null

To verify on your system, run the follwing as the Data Repository admin user:

crontab -l