Skip to content

UI : Creation date of Template is changed when its copied #10599

@kiranchavala

Description

@kiranchavala

problem

If a template is present in both the zone,

Currently cloudstack shows the created time and zone details for only one zone in the UI

versions

Cloudstack version 4.19,4.20

The steps to reproduce the bug

  1. Have a Cloudstack environment with 2 zones

  2. Register a template in Zone 1, check the created time

(localcloud) 🐱 > list templates templatefilter=all filter=name,created,zoneid
{
  "count": 6,
  "template": [
    {
      "created": "2025-03-21T05:22:19+0000",
      "name": "testtemplate",
      "zoneid": "eff9566c-42ba-4948-9356-c3d6f3f6b00e"
    },

  1. Copy the template to Zone 2 , check the created timefpr zone 2
(localcloud) 🐱 > list templates templatefilter=all filter=name,created,zoneid
{
  "count": 6,
  "template": [
    {
      "created": "2025-03-21T05:22:19+0000",
      "name": "testtemplate",
      "zoneid": "eff9566c-42ba-4948-9356-c3d6f3f6b00e"
    },
    {
      "created": "2025-03-21T05:26:04+0000",
      "name": "testtemplate",
      "zoneid": "daced343-0efd-4f52-9fa6-85e21507a47f"
    },

mysql> select * from template_zone_ref where template_id=208;
+----+---------+-------------+---------------------+---------------------+---------------------+
| id | zone_id | template_id | created             | last_updated        | removed             |
+----+---------+-------------+---------------------+---------------------+---------------------+
| 33 |       1 |         208 | 2025-03-21 05:22:19 | 2025-03-21 05:22:19 | NULL                |
| 34 |       2 |         208 | 2025-03-21 05:26:27 | 2025-03-21 05:26:27 | NULL                |
+----+---------+-------------+---------------------+---------------------+---------------------+

Image

What to do about it?

Actual Behaviour

Currently cloudstack shows the created time of the template for zone 2

Expected Behaviour

Cloudstack should show both zones created time in the UI and also zone details

Metadata

Metadata

Assignees

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions