ianc769 opened a new issue, #12576:
URL: https://github.com/apache/cloudstack/issues/12576

   ### problem
   
   When uploading an ISO via the local upload button like so:
   
   <img width="599" height="1085" alt="Image" 
src="https://github.com/user-attachments/assets/ff908c59-fe70-4586-884c-24e7ea204e9c";
 />
   
   it does not flag the `templatetype` as `USER` in the database, leading to 
issues when using this ISO in CI/CD stuff
   
   
   ```
   mysql> SELECT id, uuid, name, type, format, url, removed, created  FROM 
vm_template  WHERE uuid = '924fa0c5-a327-4027-979c-eb785a359aed';
   
+-----+--------------------------------------+-------------------------------------------------+------+--------+------+---------+---------------------+
   | id  | uuid                                 | name                          
                  | type | format | url  | removed | created             |
   
+-----+--------------------------------------+-------------------------------------------------+------+--------+------+---------+---------------------+
   | 260 | 924fa0c5-a327-4027-979c-eb785a359aed | Windows Server 2025 Standard 
Desktop Experience | NULL | ISO    | NULL | NULL    | 2026-02-03 17:52:32 |
   
+-----+--------------------------------------+-------------------------------------------------+------+--------+------+---------+---------------------+
   1 row in set (0.00 sec)
   ```
   
   Workaround:
   
   
   ```
   mysql> UPDATE vm_template  SET type = 'USER'  WHERE uuid = 
'924fa0c5-a327-4027-979c-eb785a359aed';
   Query OK, 1 row affected (0.01 sec)
   Rows matched: 1  Changed: 1  Warnings: 0
   
   mysql> SELECT id, uuid, name, type, format, url, removed, created  FROM 
vm_template  WHERE uuid = '924fa0c5-a327-4027-979c-eb785a359aed';
   
+-----+--------------------------------------+-------------------------------------------------+------+--------+------+---------+---------------------+
   | id  | uuid                                 | name                          
                  | type | format | url  | removed | created             |
   
+-----+--------------------------------------+-------------------------------------------------+------+--------+------+---------+---------------------+
   | 260 | 924fa0c5-a327-4027-979c-eb785a359aed | Windows Server 2025 Standard 
Desktop Experience | USER | ISO    | NULL | NULL    | 2026-02-03 17:52:32 |
   
+-----+--------------------------------------+-------------------------------------------------+------+--------+------+---------+---------------------+
   1 row in set (0.01 sec)
   
   
   ```
   
   
   ### versions
   
   Cloudstack 4.22.0.0
   
   ### The steps to reproduce the bug
   
   1. Upload any ISO via local upload in the GUI
   2. Check the UUID in the database
   3. 
   
   
   ### What to do about it?
   
   _No response_


-- 
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