Skip to content

bug: ISO Upload doesnt flag templatetype as USER #12576

Closed as duplicate
Closed as duplicate

Description

@ianc769

problem

When uploading an ISO via the local upload button like so:

Image

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

What to do about it?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions