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

[Contrail] Core dump while using db_manage.py

0

0

Article ID: KB36520 KB Last Updated: 22 Feb 2021Version: 1.0
Summary:

The purpose of the Database Management Tool (db_manage.py scrip​t) is to check, heal and clean inconsistent DB entries.

This article describes a scenario where db_manage.py is not working.
Symptoms:

Segmentation fault (core dumped) while using db_manage.py script.

Cause:

In case of a large database, connection-timeout must be specified to avoid timeout.

Solution:

By default, in each version of Contrail, the db_manage.py script is located inside the container config_api (/usr/lib/python2.7/site-packages/vnc_cfg_api_server).

Solution 1
  • Individual connection timeout and buffer size user is configurable in db_manage.py script.
  • Add argument 'connection-timeout' and 'buffer-size in db_manage.py script'
Example:
python db_manage.py clean --connection-timeout 30 --buffer-size 20

(Note: There is no recommended value for --connection-timeout and --buffer-size because these values change per size of the database/environment. These argument values must be added and adjusted on a trial basis.)

Where

  '--connection-timeout (default=0.5)' = 'Individual Connection timeout, in seconds'
  '--buffer-size  (default=1024)' = 'Number of rows fetched at once'

Solution 2
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