Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Existing Template Settings are deleted when an Update Template api is executed #12456

Open
@kiranchavala

Description

problem

Existing Template Settings are deleted when an Update Template api is executed

versions

ACS 4.22

The steps to reproduce the bug

  1. Register a template in Cloudstack

  2. Navigate to Images > Tempaltes> Settings

Make sure only the template has the rootDiskController setting to osdefault

Image
  1. Verify the database
mysql> select * from vm_template_details where template_id=215;
+----+-------------+--------------------+-----------+---------+
| id | template_id | name | value | display |
+----+-------------+--------------------+-----------+---------+
| 41 | 215 | rootDiskController | osdefault | 1 |
+----+-------------+--------------------+-----------+---------+
1 row in set (0.00 sec)
  1. Add a uefi setting
Image
  1. Verify the database

mysql> select * from vm_template_details where template_id=215;
+----+-------------+--------------------+-----------+---------+
| id | template_id | name | value | display |
+----+-------------+--------------------+-----------+---------+
| 42 | 215 | UEFI | SECURE | 1 |
| 43 | 215 | rootDiskController | osdefault | 1 |
+----+-------------+--------------------+-----------+---------+
2 rows in set (0.00 sec)
  1. Now Edit/ update the template

Change the root disk controller to scsi

Image
  1. Check the Database and the UI , the uefi setting is lost
Image
mysql> select * from vm_template_details where template_id=215;
+----+-------------+--------------------+-------+---------+
| id | template_id | name | value | display |
+----+-------------+--------------------+-------+---------+
| 44 | 215 | rootDiskController | scsi | 1 |
+----+-------------+--------------------+-------+---------+
1 row in set (0.00 sec)

What to do about it?

The existing template settings should not be deleted when the edit/update template is peformed

Metadata

Metadata

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    AltStyle によって変換されたページ (->オリジナル) /