Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[Archive] [Contrail] Backward compatibilty issue with db_manage tool v1.15 to v1.17

0

0

Article ID: KB34970 KB Last Updated: 26 May 2020Version: 2.0
Summary:

The db_manage python script is Juniper's recommended Contrail config DB maintenance tool for detecting and fixing database inconsistencies in a Contrail deployment. 

The following public link is available to find the latest db_manage.py:

https://github.com/Juniper/contrail-controller/blob/master/src/config/api-server/vnc_cfg_api_server/db_manage.py

There is a known compatibility issue with versions v1.15, v1.16, and v1.17. When applying these versions on a 3.2.x or 3.0.x Contrail setup, the script fails to execute. This article discusses the error and fix in the most recent versions. 

Symptoms:

db_manage.py (v1.15 - v1.17) fails to execute on 3.2.x or 3.0.x Contrail clusters with the following library import error:

root@CFTSVM133:/usr/lib/python2.7/dist-packages/vnc_cfg_api_server# python db_manage_v17.py check

Traceback (most recent call last):
File "db_manage_v17.py", line 12, in <module>
from cfgm_common import BGP_RTGT_ALLOC_PATH_TYPE0
ImportError: cannot import name BGP_RTGT_ALLOC_PATH_TYPE0
Cause:

This backward compatibility issue was introduced due to the 4 Byte ASN support in Schema Transformer change.

Solution:

Do not use the aforementioned versions to perform database maintenance on a version 3.2 or 3.0 Contrail setup. Instead, version 1.18 is recommended.

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search