Within the Template the number of released versions is different from the Released Versions count in the template version history page.
When customer releases a template to Service Broker and it appears in Service Broker. However, it disappears after some time while the template is still in "Released" state.
Environment
Aria Automation 8.x
Aria Automation 9.x
Cause
In race conditions (for example, user tries to release or unrelease the same version of a template multiple times in a short period of time), the release version count could be incorrectly incremented or decremented, hence the count is off.
Resolution
Resolution for Aria Automation 8.x
Make sure all versions of the template are unreleased
Find the template's UUID, which we name it as TEMPLATE_ID
Make sure this blueprint or its catalog items are not being used while applying below steps
By executing below cmds after ssh into vRA, so that we connect to blueprint DB vracli dev psql tango-blueprint-db
Then, run below postgres cmd, by populating the TEMPLATE_ID with the real UUID of template UPDATE bp_blueprint SET total_released_versions = 0 WHERE id = '${TEMPLATE_ID}';
Resolution for VCF Automation 9.x
Make sure all versions of the template are unreleased
Find the template's UUID, which we name it as TEMPLATE_ID
Make sure this blueprint or its catalog items are not being used while applying below steps
By executing below two cmds after ssh into VCFA, so that we connect to blueprint DB kubectl -n prelude exec -it vcfapostgres-0 -n prelude -- bash psql -U postgres tango_blueprint_db
Then, run below postgres cmd, by populating the TEMPLATE_ID with the real UUID of template UPDATE bp_blueprint SET total_released_versions = 0 WHERE id = '${TEMPLATE_ID}';