Page MenuHomePhabricator

Trove instance nt7vvmigxlj (mna-db) stuck in RESIZE
Closed, ResolvedPublic

Description

Hello! I triggered a resize of my Trove database (going from g4.cores4.ram8.disk20 to g4.cores4.ram16.disk20) in Horizon and its been resizing for over 2 hours now. My understanding is that it's definitely not supposed to take that long, so I assume something is stuck somewhere.

The Trove instance is nt7vvmigxlj (MariaDB 12.2.2; hostname nt7vvmigxlj.svc.trove.eqiad1.wikimedia.cloud; used by the mna tool). It has shown status RESIZE since I triggered the resize. Attempting to connect with MariaDB from the Toolforge bastion while auth'd as mna refuses connections (ERROR 2002 … (115)).

I do get this on the instance page under "Fault", though the status is RESIZE:

Message
    An error occurred communicating with the guest: Timed out waiting for a reply to message ID 8d79f931661648c780008713a99d1825.
Created
    Oct. 10, 2026, 4:22 p.m.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

(I tried detaching the configuration group and it didn't let me, which is why the Fault is different now).

I think what happened based on the code (and Claude finding the right code paths) is that stop_db was triggered as part of the resize action, but stop_db timed out. It's called before reaching the try/finally block, and so if it hits an exception, the task status never gets reset :(

https://opendev.org/openstack/trove/src/commit/74be25394eb840da7ec5c914f6cb8ce8be16da68/trove/taskmanager/models.py#L2113

So I guess this is due to a bug in OpenStack Trove?

My specific issue should hopefully be fixable with openstack database instance reset-status INSTANCENAME if I'm understanding things correctly.

EDIT: Actually the stop_db timeout changed in a recent commit, it used to be only 5 seconds and I think that's the case for the WMCS Trove instance as well https://opendev.org/openstack/trove/commit/216e473dfe4f3255a8ad60af000478a31947791f

Andrew claimed this task.
Andrew subscribed.

The state of this was odd -- the VM showed state 'active' and was still in the older, smaller size. So somehow Trove's attempt to resize the VM failed even to resize at all. Notably it had an error complaining about a detach operation failing due to being in the 'resize' state. So possibly we got here by doing two resizes in quick succession and the code not being re-entrant... or possibly Trove just dropped the ball.

In any case... things should be working now. I rebuilt this server (with

$openstack database instance rebuild cb25d24d-d82b-4309-a9ea-c49452548e58 bbc77530-4817-412e-8e97-0c46a6e07acd

a command that's not available to you)

and then resized the database from Horizon (presumably just like you did). This time around the resize worked properly.

Just confirming here as well that this fixed the problem. Thank you!