cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CLOUDSTACK-9586) When using local storage with Xenserver prepareTemplate does not work with multiple primary store
Date Thu, 30 Nov 2017 08:36:00 GMT


ASF GitHub Bot commented on CLOUDSTACK-9586:

rhtyd commented on a change in pull request #2342: CLOUDSTACK-9586: Adding local storage test

 File path: test/integration/component/
 @@ -0,0 +1,170 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+from __builtin__ import False
+""" BVT tests for Hosts Maintenance
 Review comment:
   @borisstoyanov it still says this has tests for "hosts maintenance"

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> When using local storage with Xenserver prepareTemplate does not work with multiple primary
> -------------------------------------------------------------------------------------------------
>                 Key: CLOUDSTACK-9586
>                 URL:
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Secondary Storage, XenServer
>    Affects Versions: 4.5.2
>         Environment: XenServer 6.5 SP1
> Local Storage
>            Reporter: Abhinandan Prateek
>            Assignee: Abhinandan Prateek
>            Priority: Critical
>             Fix For:,,
> 2016-11-09 15:05:15,876 DEBUG [c.c.h.x.r.XenServerStorageProcessor] (DirectAgent-29:ctx-8d890b55)
Failed to destroy pbd
> SR_BACKEND_FAILURE_40The SR scan failed  [opterr=['INTERNAL_ERROR', 'Db_exn.Uniqueness_constraint_violation("VDI",
"uuid", "703f59ca-6e5e-38d3-bbef-707b5b14c704")']]
> 	at com.xensource.xenapi.Types.checkResponse(
> 	at com.xensource.xenapi.Connection.dispatch(
> 	at$XenServerConnection.dispatch(
> 	at com.xensource.xenapi.SR.scan(
> 	at
> 	at
> 	at
> Root Cause: CloudPlatform creates a SR on each host, which points to the template location
on the secondary storage (secondary_Storage/template/tmpl/<account_id>/<template_id>).
This causes the database unique constraint violation when each XenServer tries to scan the
SR created on each host. The host that scans the SR last, throws the exception because VDI
was recognized already from the SR scan of the first host.

This message was sent by Atlassian JIRA

View raw message