Nitesh Sarda created CLOUDSTACK-9981:
----------------------------------------
Summary: Regression occurs after upgrading to 4.10 while
registering a template.
Key: CLOUDSTACK-9981
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9981
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Reporter: Nitesh Sarda
When an environment is upgraded to 4.10, then while registering template for a
zone from cloudstack UI will fail if it is created in older version(before
3.x).
This bug got introduced with the PR#1894 for CLOUDSTACK-9700. In this PR a new
parameter ‘zoneIds’ was added to the registerTemplate api and is marked with
the ‘since’ attribute as ‘4.10.0.0’. since attribute is suppose to provide
version for the containing data, not about when parameter was introduced.
Although the parameter was introduced in 4.10, but it can contain the
information from earlier version, thus it is wrongly marked here as ‘4.10.0.0’.
This issue occurs because zones from older version have UUID parameter value as
Integer, whereas higher version zones have fixed format. So while fetching the
ZoneIds for installing templates, parsing for UUID with integer value fails and
hence template is not installed.
Fix :
For the sake of backward compatibility, along with UUID, integer is also being
parsed while retrieving ZoneId for the installing templates. Integer value of
UUID cannot be converted into the fixed format because this value is used as a
hard coded value in few automation scripts which runs locally for some
customers. Hence, "since" attribute should be removed from a parameter command
for ZoneIds.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)