DevStack master branch single-node deployment on Ubuntu 24.04 fails frequently due to MySQL default max_connections (1024) being exceeded by concurrent service connections.
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| devstack |
In Progress
|
Undecided
|
Unassigned | ||
Bug Description
Environment
OS: Ubuntu 24.04
Deployment: DevStack master branch (single-node deployment)
Database: MySQL with default connection limit (max_connections = 1024)
Networking: Neutron OVS provider network (full local.conf attached below)
Hardware: 128-core CPU, 256GB memory, 22TB RAID disk (sufficient resources for single-node deployment)
Actual Result
During DevStack deployment (via ./stack.sh), all OpenStack core services (Keystone/
1.Glance service initialization failure (cannot connect to MySQL for metadata setup);
2.Image upload stage (05:22:34) triggers critical errors:
prove chain:
Failed to contact the endpoint at http://
result:"
Deployment aborts with Error on exit at the image upload step, resulting in a high failure rate for single-node DevStack master branch deployment.
Expected Result
DevStack master branch should natively adapt to single-node deployment scenarios by:
1.Optimizing service connection strategies (e.g., enabling connection pooling) to avoid exhausting MySQL connections;
2.Or dynamically adjusting MySQL’s max_connections limit for single-node deployments;
3.Ensuring Glance (and all core services) initializes successfully and image upload completes without errors.
Deployment Timeline & Key Error Details
1. Deployment Sequence (Critical Stages)
plaintext
2026-03-21 05:13:22 | Configuring and starting MySQL (max_connection
2026-03-21 05:13:59 - 05:22:05 | Starting Keystone/
2026-03-21 05:22:25 | Starting Glance (MySQL connections already exhausted)
2026-03-21 05:22:34 | Uploading images (deployment fails at this step)
2. MySQL Connection Verification
sql
mysql> show status like 'max_used_
+------
| Variable_name | Value |
+------
| Max_used_
+------
Confirmed: MySQL connections exceed the default 1024 limit during deployment.
3. Mitigation Validation
Increasing MySQL’s max_connections (e.g., to 2048) completely resolves the issue—DevStack deployment completes successfully, Glance initializes normally, and image upload works without errors.
Local.conf (Full Configuration)
[[local|localrc]]
# Git configuration
GIT_BASE="https:/
# Network & Path configuration
HOST_IP=
DEST=/opt/stack
LOGDIR=$DEST/logs
LOGFILE=
# Credentials (shared for all services)
ADMIN_PASSWORD=
DATABASE_
RABBIT_
SERVICE_
# Service endpoints
SERVICE_
MYSQL_HOST=
RABBIT_
GLANCE_
# Neutron (OVS provider network)
Q_USE_SECGROUP=True
FLOATING_
Q_FLOATING_
PUBLIC_
PUBLIC_
Q_USE_PROVIDERN
OVS_PHYSICAL_
PUBLIC_
PUBLIC_BRIDGE=br-ex
OVS_BRIDGE_
This is my secondary deployment when i change the max_connections in /lib/databases/ mysql connections' ; ------- ------- --+---- ---+ ------- ------- --+---- ---+ connections | 1115 | ------- ------- --+---- ---+
mysql> show status like 'max_used_
+------
| Variable_name | Value |
+------
| Max_used_
+------
1 row in set (0.00 sec)