Alpha162 commented on PR #14851:
URL: https://github.com/apache/cloudstack/pull/14851#issuecomment-7335416279

   A data point for this from a lab that went 4.23.0.0 to 24.0 (a build of 
`main` at 58fda71275, upgraded on 2026-11-27): `deleteNetwork` fails for every 
network there, with
   
   ```
   Failed to delete network com.cloud.utils.exception.CloudRuntimeException: 
Unable to find on DB, due to: Unknown column 
'ip4_guest_subnet_network_map.data_center_id' in 'field list'
   ```
   
   That's item 3 of #14835. The API caller only sees "Failed to delete network".
   
   The database is already marked 24.0.0, so the step won't run again by 
itself. Instead I ran the SQL this PR adds to `schema-42300to2400.sql` by hand 
against that database (MySQL 8.0.46):
   
   - It ran cleanly, and again a second time, so it's safe to re-run.
   - `data_center_id`, its foreign key and `backup_usage_metric` all exist 
afterwards.
   - `deleteNetwork` then worked for the two networks that had failed.
   
   Not covered: `ip4_guest_subnet_network_map` had no rows on this lab, so the 
three `UPDATE` backfills ran against nothing. The change to 
`DatabaseUpgradeChecker` wasn't exercised either.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to