Welcome, Guest
Username: Password: Remember me
Archived CloudStack Forums for reference purposes please direct all future inquiries to the Apache CloudStack mailing lists.

incubator.apache.org/cloudstack/mailing-lists.html

TOPIC: unable to add hypervisor host in advance mode

unable to add hypervisor host in advance mode 10 months 2 weeks ago #13025

  • suhaskhare
  • suhaskhare's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
I am using Cloudstack 3 management server and XCP hypervisor. I am successfully able to create basic zone. But when I try to create an advance zone, it fails at adding a hypervisor host. In logs I can see below error. "Unable to find the server resources at" and "Entity already exists" caught my attention... But I dont know what it means... below is full logs

Please help.

2012-11-29 08:32:43,345 INFO  [cloud.resource.ResourceManagerImpl] (catalina-exec-15:null) Trying to add a new host at http://172.16.210.192 in data center 12
2012-11-29 08:32:43,404 DEBUG [xen.resource.XenServerConnectionPool] (catalina-exec-15:null) Slave logon to 172.16.210.192
2012-11-29 08:32:43,424 DEBUG [xen.resource.XenServerConnectionPool] (catalina-exec-15:null) Logging on as the master to 172.16.210.192
2012-11-29 08:32:43,539 DEBUG [db.Transaction.Transaction] (catalina-exec-15:null) Rolling back the transaction: Time = 1 Name =  update; called by -Transaction.rollback:837-Transaction.removeUpTo:780-Transaction.close:599-DatabaseCallback.interceptComplete:67-DatabaseCallback.intercept:32-GenericDaoBase.update:761-DatabaseCallback.intercept:30-GenericDaoBase.update:1218-XcpServerDiscoverer.setClusterGuid:123-XcpServerDiscoverer.find:196-ResourceManagerImpl.discoverHostsFull:644-ResourceManagerImpl.discoverHosts:514
2012-11-29 08:32:43,543 DEBUG [xen.discoverer.XcpServerDiscoverer] (catalina-exec-15:null) other exceptions: javax.persistence.EntityExistsException: Entity already exists
javax.persistence.EntityExistsException: Entity already exists
        at com.cloud.utils.db.GenericDaoBase.update(GenericDaoBase.java:806)
        at com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:30)
        at com.cloud.utils.db.GenericDaoBase.update(GenericDaoBase.java:761)
        at com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:30)
        at com.cloud.utils.db.GenericDaoBase.update(GenericDaoBase.java:1218)
        at com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.setClusterGuid(XcpServerDiscoverer.java:123)
        at com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.find(XcpServerDiscoverer.java:196)
        at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:644)
        at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:514)
        at com.cloud.api.commands.AddHostCmd.execute(AddHostCmd.java:136)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:132)
        at com.cloud.api.ApiServer.queueCommand(ApiServer.java:509)
        at com.cloud.api.ApiServer.handleRequest(ApiServer.java:416)
        at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:300)
        at com.cloud.api.ApiServlet.doGet(ApiServlet.java:59)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
        at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '2b97bf31-ac4a-0166-81b8-fee87d6e87aa' for key 'guid'
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
        at com.mysql.jdbc.Util.getInstance(Util.java:381)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3515)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3447)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1951)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2101)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2554)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1761)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2046)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1964)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1949)
        at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:106)
        at com.cloud.utils.db.GenericDaoBase.update(GenericDaoBase.java:800)
        ... 39 more
2012-11-29 08:32:43,543 WARN  [cloud.resource.ResourceManagerImpl] (catalina-exec-15:null) Unable to find the server resources at http://172.16.210.192
2012-11-29 08:32:43,544 WARN  [api.commands.AddHostCmd] (catalina-exec-15:null) Exception:
com.cloud.exception.DiscoveryException: Unable to add the host
        at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:694)
        at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:514)
        at com.cloud.api.commands.AddHostCmd.execute(AddHostCmd.java:136)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:132)
        at com.cloud.api.ApiServer.queueCommand(ApiServer.java:509)
        at com.cloud.api.ApiServer.handleRequest(ApiServer.java:416)
        at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:300)
        at com.cloud.api.ApiServlet.doGet(ApiServlet.java:59)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
        at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)
2012-11-29 08:32:43,545 WARN  [cloud.api.ApiDispatcher] (catalina-exec-15:null) class com.cloud.api.ServerApiException : Unable to add the host
The administrator has disabled public write access.

Re: unable to add hypervisor host in advance mode 10 months 2 weeks ago #13026

  • gashok
  • gashok's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 1
  • Karma: 0
Are you adding same host in advance setup and basic setup?
It is not possible
one host adding only in one zone only
in advance or basic setup
The administrator has disabled public write access.
The following user(s) said Thank You: suhaskhare

Re: unable to add hypervisor host in advance mode 10 months 1 week ago #13028

  • suhaskhare
  • suhaskhare's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
Thanks a lot... I guess that was the problem. I had disabled basic zone instead of completely deleting it.. hence in advance zone I couldn't add same hypervisor host.
The administrator has disabled public write access.
Time to create page: 0.243 seconds

Open@Citrix

Citrix supports the open source community via developer support and evangeslism. We have a number of developers and evangelists that participate actively in the open source community in Apache Cloudstack, OpenDaylight, Xen Project and XenServer. We also conduct educational activities via the Build A Cloud events held all over the world. 

Connect