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

ASF GitHub Bot commented on CLOUDSTACK-10197:
---------------------------------------------

rhtyd commented on issue #2365: CLOUDSTACK-10197: Rename xentools iso for 
XenServer 7.0+
URL: https://github.com/apache/cloudstack/pull/2365#issuecomment-353362182
 
 
   @khos2ow the new changes causes management server to fail on start, in a 
fresh installation. I get:
   
   ```
   2017-12-21 12:47:53,542 INFO  [c.c.h.x.r.XenServerConnectionPool] 
(main:null) (logid:) XenServer Connection Pool Configs: 
sleep.interval.on.error=10000
   2017-12-21 12:47:53,568 DEBUG [c.c.a.m.AgentManagerImpl] (main:null) 
(logid:) Registering listener XcpServerDiscoverer with id 25
   2017-12-21 12:47:53,590 DEBUG [c.c.u.d.T.Transaction] (main:null) (logid:) 
Rolling back the transaction: Time = 4 Name =  persist; called by 
-TransactionLegacy.rollback:889-TransactionLegacy.removeUpTo:832-TransactionLegacy.close:656-TransactionContextInterceptor.invoke:36-ReflectiveMethodInvocation.proceed:174-ExposeInvocationInterceptor.invoke:92-ReflectiveMethodInvocation.proceed:185-JdkDynamicAopProxy.invoke:212-$Proxy109.persist:-1-XcpServerDiscoverer.createXsToolsISO:550-XcpServerDiscoverer.configure:500-CloudStackExtendedLifeCycle$3.with:115
   2017-12-21 12:47:53,591 WARN  [o.a.c.s.m.c.ResourceApplicationContext] 
(main:null) (logid:) Exception encountered during context initialization - 
cancelling refresh attempt: 
org.springframework.context.ApplicationContextException: Failed to start bean 
'cloudStackLifeCycle'; nested exception is 
com.cloud.utils.exception.CloudRuntimeException: DB Exception on: 
com.mysql.jdbc.JDBC4PreparedStatement@1f60c30f: INSERT INTO vm_template 
(vm_template.id, vm_template.format, vm_template.unique_name, vm_template.name, 
vm_template.public, vm_template.featured, vm_template.type, vm_template.url, 
vm_template.hvm, vm_template.bits, vm_template.created, vm_template.account_id, 
vm_template.checksum, vm_template.display_text, vm_template.enable_password, 
vm_template.guest_os_id, vm_template.bootable, vm_template.prepopulate, 
vm_template.cross_zones, vm_template.hypervisor_type, vm_template.extractable, 
vm_template.source_template_id, vm_template.state, vm_template.template_tag, 
vm_template.uuid, vm_template.sort_key, vm_template.enable_sshkey, 
vm_template.size, vm_template.update_count, vm_template.updated, 
vm_template.dynamically_scalable) VALUES (201, 'ISO', null, null, 1, 1, 
'PERHOST', null, 1, 64, '2017-12-21 12:47:53', 1, null, 
_binary'xen-pv-drv-iso', 0, 1, 0, 0, 0, 'XenServer', 1, null, 'Active', null, 
_binary'a17c3900-50a7-4847-ab10-bdf309245aaf', 0, 0, null, 0, null, 0)
   2017-12-21 12:47:53,592 WARN  [o.e.j.w.WebAppContext] (main:null) (logid:) 
Failed startup of context 
o.e.j.w.WebAppContext@49c43f4e{/client,file:///usr/share/cloudstack-management/webapp/,UNAVAILABLE}{/usr/share/cloudstack-management/webapp}
   org.springframework.context.ApplicationContextException: Failed to start 
bean 'cloudStackLifeCycle'; nested exception is 
com.cloud.utils.exception.CloudRuntimeException: DB Exception on: 
com.mysql.jdbc.JDBC4PreparedStatement@1f60c30f: INSERT INTO vm_template 
(vm_template.id, vm_template.format, vm_template.unique_name, vm_template.name, 
vm_template.public, vm_template.featured, vm_template.type, vm_template.url, 
vm_template.hvm, vm_template.bits, vm_template.created, vm_template.account_id, 
vm_template.checksum, vm_template.display_text, vm_template.enable_password, 
vm_template.guest_os_id, vm_template.bootable, vm_template.prepopulate, 
vm_template.cross_zones, vm_template.hypervisor_type, vm_template.extractable, 
vm_template.source_template_id, vm_template.state, vm_template.template_tag, 
vm_template.uuid, vm_template.sort_key, vm_template.enable_sshkey, 
vm_template.size, vm_template.update_count, vm_template.updated, 
vm_template.dynamically_scalable) VALUES (201, 'ISO', null, null, 1, 1, 
'PERHOST', null, 1, 64, '2017-12-21 12:47:53', 1, null, 
_binary'xen-pv-drv-iso', 0, 1, 0, 0, 0, 'XenServer', 1, null, 'Active', null, 
_binary'a17c3900-50a7-4847-ab10-bdf309245aaf', 0, 0, null, 0, null, 0)
           at 
org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:186)
           at 
org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:52)
           at 
org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:358)
           at 
org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:159)
           at 
org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:123)
   
   ```
   
   Please fix and test in your environment.

----------------------------------------------------------------
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:
us...@infra.apache.org


> XenServer 7.1: Cannot mount  xentool iso from cloudstack on VMs
> ---------------------------------------------------------------
>
>                 Key: CLOUDSTACK-10197
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10197
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>    Affects Versions: 4.10.0.0
>         Environment: XenServer 7.0+
>            Reporter: Khosrow Moossavi
>             Fix For: Future
>
>
> In XenServer 7.0+ xentools iso has been renamed from *xs-tools* to 
> *guest-tools* so CloudStack fails to attach it to any VM.
> {code}
> (acs-admin) > attach iso 
> virtualmachineid=d13eeff1-2d99-46a9-8fc5-3510df6e9f5e 
> id=e8a56540-0fc3-44de-9911-635d2d8f25c4
> errorcode = 530
> errortext = Failed to attach iso
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to