[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-9627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15729613#comment-15729613
 ] 

ASF subversion and git services commented on CLOUDSTACK-9627:
-------------------------------------------------------------

Commit 40d12ad40e665e1cc605e4a56adece3f00755d6d in cloudstack's branch 
refs/heads/master from [~rohit.ya...@shapeblue.com]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=40d12ad ]

Merge pull request #1772 from syed/template-sync-fix

CLOUDSTACK-9627 Fix template sync for region store.When using a region store 
like Swift or S3 as secondary storage,
the `zoneId` can be null. This causes an exception when we try
to convert it to a `long`. This fix guards against that.

Before this fix, if you restart the management server, all the templates
would change to "NOT READY" because the code which syncs the NFS cache
and the object store crashes due to the above mentioned issue.
This PR fixes that.

* pr/1772:
  CLOUDSTACK-9627:Fix template sync for region store

Signed-off-by: Rohit Yadav <rohit.ya...@shapeblue.com>


> Template Doens't get sync when using Swift as Secondary Storage
> ---------------------------------------------------------------
>
>                 Key: CLOUDSTACK-9627
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9627
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Secondary Storage, Template
>    Affects Versions: 4.9.0, Future
>            Reporter: Syed Ahmed
>
> When using a region store like Swift or S3 as secondary storage,
> the `zoneId` can be null. This causes an exception when we try
> to convert it to a `long`. This fix guards against that.
> Also, on the secondary storage side, we are writing the incorrect
> unique name which prevents the sync logic to assosiate the template
> on swift with the template in DB.
> Before this fix, if you restart the management server, all the templates
> would change to "NOT READY" because the code which syncs the NFS cache
> and the object store crashes due to the above mentioned issue.
> This PR fixes that.
> https://github.com/apache/cloudstack/pull/1772/



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to