Damans227 opened a new pull request, #14857:
URL: https://github.com/apache/cloudstack/pull/14857
Fixes #14856
Creating a template from a snapshot on FlashArray leaves the temporary
volume's database record behind. The temporary volume is deleted on the array,
but its record stays Allocated and keeps counting against the pool. The failure
path already removes the record, the success path didnt. This removes it after
the copy too, and moves the cleanup into its own method.
### Test:
Create a data volume on a FlashArray pool, attach it, snapshot it, create a
template from the snapshot, check the .TMP volumes.
**Before:** the temporary volume record stays.
| 45 | fc-vm4_fix15-test_20261125172935_1795627777483.TMP | Allocated |
NULL |

**After:** the record is removed right after the copy.
| 46 | fc-vm4_fix15-test_20261125174001_1795628403940.TMP | Allocated |
2026-11-25 17:40:27 |
Both temporary volumes are destroyed on the array:
> purevol list --pending-only
cs-prim-fc-p1::vol-3-1-2-45-20261125173005 1G 23:47:32
cs-prim-fc-p1::vol-3-1-2-46-20261125174027 1G 23:57:54

Also added unit tests for the cleanup removing the record, including when
the array delete fails.
--
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]