[
https://issues.apache.org/jira/browse/CLOUDSTACK-9586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16272356#comment-16272356
]
ASF subversion and git services commented on CLOUDSTACK-9586:
-------------------------------------------------------------
Commit 919d298630ea5f9ae4ebb60aff4799efdad3ed8d in cloudstack's branch
refs/heads/master from [~bstoyanov]
[ https://gitbox.apache.org/repos/asf?p=cloudstack.git;h=919d298 ]
CLOUDSTACK-9586: Adding local storage test (#2342)
Added local storage test. Result:
==== Marvin Init Successful ====Host id fc9fa94f-7c78-41d0-b38c-6f5bfdf22571,
hypervisor XenServer, localstorage False
Host id b54ccd0f-cd3c-4367-b9b4-f7d370b71670, hypervisor XenServer,
localstorage True
Template id b8d66364-d5a0-11e7-8e52-06ca2801075c is Ready True
Prepare Template result [{domain : u'ROOT', domainid :
u'b8d2a14e-d5a0-11e7-8e52-06ca2801075c', ostypename : u'CentOS 5.6 (64-bit)',
zoneid : u'daf11016-d38b-4dae-aad1-b46bfefbd5e6', displaytext : u'CentOS
5.6(64-bit) no GUI (XenServer)', ostypeid :
u'b8f78667-d5a0-11e7-8e52-06ca2801075c', passwordenabled : False, id :
u'b8d66364-d5a0-11e7-8e52-06ca2801075c', size : 21474836480, isready : True,
format : u'VHD', templatetype : u'BUILTIN', bits : 0, zonename :
u'trl-1082-x-cs411-bstoyanov', status : u'Download Complete',
isdynamicallyscalable : True, tags : [], isfeatured : True, sshkeyenabled :
False, isextractable : True, crossZones : True, account : u'system', name :
u'CentOS 5.6(64-bit) no GUI (XenServer)', created :
u'2017-11-30T07:57:42+0000', hypervisor : u'XenServer', ispublic : True,
checksum : u'905cec879afd9c9d22ecc8036131a180', physicalsize : 1758786048}]
=== TestName: test_01_prepare_template_local_storage | Status : SUCCESS ===
> When using local storage with Xenserver prepareTemplate does not work with
> multiple primary store
> -------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-9586
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9586
> 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: 4.9.1.0, 4.8.2.0, 4.10.1.0
>
>
> 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(Types.java:2021)
> at com.xensource.xenapi.Connection.dispatch(Connection.java:395)
> at
> com.cloud.hypervisor.xenserver.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:462)
> at com.xensource.xenapi.SR.scan(SR.java:1257)
> at
> com.cloud.hypervisor.xenserver.resource.Xenserver625StorageProcessor.createFileSR(Xenserver625StorageProcessor.java:113)
> at
> com.cloud.hypervisor.xenserver.resource.Xenserver625StorageProcessor.createFileSr(Xenserver625StorageProcessor.java:139)
> at
> com.cloud.hypervisor.xenserver.resource.Xenserver625StorageProcessor.copyTemplateToPrimaryStorage(Xenserver625StorageProcessor.java:173)
> 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
(v6.4.14#64029)