GithubHelp home page GithubHelp logo

Comments (4)

weizhouapache avatar weizhouapache commented on June 18, 2024 1

The issue is caused by multiple duplicated records for the templates in template_store_ref table

mysql> select id,store_id,template_id,created,download_pct,size,download_state,error_str,url,state from template_store_ref where template_id=243;
+----+----------+-------------+---------------------+--------------+------------+----------------------+----------------------------------------------------+------+----------+
| id | store_id | template_id | created             | download_pct | size       | download_state       | error_str                                          | url  | state    |
+----+----------+-------------+---------------------+--------------+------------+----------------------+----------------------------------------------------+------+----------+
| 96 |        2 |         243 | 2024-04-17 08:17:49 |          100 | 5242880000 | DOWNLOADED           | Install completed successfully at 4/17/24, 8:21 AM | NULL | Creating |
| 97 |        1 |         243 | 2024-04-17 08:17:49 |          100 |          0 | DOWNLOAD_IN_PROGRESS | Download success, starting install                 | NULL | Creating |
| 98 |        2 |         243 | 2024-04-17 08:17:49 |          100 | 5242880000 | DOWNLOADED           | Install completed successfully at 4/17/24, 8:21 AM | NULL | Ready    |
| 99 |        1 |         243 | 2024-04-17 08:17:49 |          100 | 5242880000 | DOWNLOADED           | Install completed successfully at 4/17/24, 8:19 AM | NULL | Ready    |
+----+----------+-------------+---------------------+--------------+------------+----------------------+----------------------------------------------------+------+----------+
4 rows in set (0.00 sec)

once the duplicated records are removed, the template is Ready

mysql> delete from template_store_ref where id=96;
Query OK, 1 row affected (0.00 sec)

mysql> delete from template_store_ref where id=97;
Query OK, 1 row affected (0.00 sec)

image

I will create a draft PR

from cloudstack.

shwstppr avatar shwstppr commented on June 18, 2024

@weizhouapache should we close this as #8933 is merged?

from cloudstack.

weizhouapache avatar weizhouapache commented on June 18, 2024

@weizhouapache should we close this as #8933 is merged?

yes @shwstppr

from cloudstack.

sureshanaparti avatar sureshanaparti commented on June 18, 2024

@weizhouapache Closing this, as advised.

from cloudstack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.