-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
problem
I was following the upgrade walk through here: https://docs.cloudstack.apache.org/en/4.22.0.0/upgrading/upgrade/upgrade-4.21.html
When there was time to start the management server again I get this error:
2026-01-19 09:53:45,366 DEBUG [c.c.u.d.ScriptRunner] (main:[]) (logid:) CALL `cloud`.`INSERT_EXTENSION_IF_NOT_EXISTS`('MaaS', 'Baremetal Extension for Canonical MaaS written in Python', 'MaaS/maas.py')
2026-01-19 09:53:45,366 ERROR [c.c.u.d.ScriptRunner] (main:[]) (logid:) Error executing: CALL `cloud`.`INSERT_EXTENSION_IF_NOT_EXISTS`('MaaS', 'Baremetal Extension for Canonical MaaS written in Python', 'MaaS/maas.py')
2026-01-19 09:53:45,366 ERROR [c.c.u.d.ScriptRunner] (main:[]) (logid:) java.sql.SQLSyntaxErrorException: PROCEDURE cloud.INSERT_EXTENSION_IF_NOT_EXISTS does not exist
2026-01-19 09:53:45,367 ERROR [c.c.u.DatabaseUpgradeChecker] (main:[]) (logid:) Unable to execute upgrade script java.sql.SQLSyntaxErrorException: PROCEDURE cloud.INSERT_EXTENSION_IF_NOT_EXISTS does not exist
Resulting in fatal error and the management server won't start.
versions
ACS Upgrade 4.21 -> 4.22
kvm --version
QEMU emulator version 7.2.22 (Debian 1:7.2+dfsg-7+deb12u18)
mariadb --version
mariadb Ver 15.1 Distrib 10.11.14-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper
The steps to reproduce the bug
Alter /etc/apt/sources.list.d/cloudstack.list to "deb [signed-by=/usr/share/keyrings/cloudstack.gpg] https://download.cloudstack.org/ubuntu/ noble 4.22"
sudo service cloudstack-management stop
sudo apt-get update; sudo apt-get upgrade cloudstack-management
sudo service cloudstack-management start
What to do about it?
I'm trying to find the sql source of this missing procedure so I can add it. Can not find it.