receiving DeprecationWarning messages while running the Vertica vbr.py utility for a copycluster task.
search cancel

receiving DeprecationWarning messages while running the Vertica vbr.py utility for a copycluster task.

book

Article ID: 442041

calendar_today

Updated On:

Products

Network Observability CA Performance Management

Issue/Introduction

We see this warning when we are running copycluster:

[LAB] [user@host:/tmp/vbr]$ /opt/vertica/bin/vbr.py --task copycluster --config-file /opt/vertica/config/copycluster.ini

 Starting copy of database drdata. 

Participating nodes: v_drdata_node0001, v_drdata_node0002, v_drdata_node0003. Snapshotting database. 

Snapshot complete. 

Determining what data to copy. [==================================================] 

100% Approximate bytes to copy: 4365479968 of 4732171496 total. Syncing data to destination cluster.

 [==================================================] 100%/opt/vertica/bin/vbr.py:6690: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). 




Environment

  • Product: DX NetOps Performance Management (Data Repository)
  • Database: Vertica
  • Utility: /opt/vertica/bin/vbr.py
  • Task: copycluster

Cause

The vbr.py script and its underlying code are maintained by Vertica.

These DeprecationWarning messages are non-fatal and do not impact the functional success of the backup, restore, or copycluster operations.

Resolution

Vertica is aware of the deprecation and will remove the deprecated commands in a future build of the software.

 

Customers can safely ignore these warnings in the current version as the operations remain functionally intact.