You can't reuse the host that easily. I believe removing acs common/agent packages and then installing again and trying to add the host again to Acs should work.
Alternate: Since it seems like you are playing in test env - remove libvirt/qemu, remove all leftover configuration files (i.e /etc/libvirt/ and so on) and reinstall everything. This brings new/clean libvirt config and should allow you to start it. Cheers On Wed, 8 Apr 2020, 16:07 Jevgeni Zolotarjov, <j.zolotar...@gmail.com> wrote: > That was it. I could never guess that myself. > > But meanwhile I have managed to reinstall everything. And come > across another problem. > Now cloudstack-agent does not start because libvirtd service fails. > In libvirtd logs there is: > -- Unit libvirtd.service has begun starting up. > Apr 08 14:06:15 mtl1-apphst03.mt.pbt.com.mt libvirtd[4836]: 2020-04-08 > 14:06:15.675+0000: 4836: info : libvirt version: 4.5.0, package: 23.el7_7.6 > (CentOS BuildSystem <http://bugs.centos.org>, 2020-03-17-23:39:10, x > Apr 08 14:06:15 mtl1-apphst03.mt.pbt.com.mt libvirtd[4836]: 2020-04-08 > 14:06:15.675+0000: 4836: info : hostname: mtl1-apphst03.mt.pbt.com.mt > Apr 08 14:06:15 mtl1-apphst03.mt.pbt.com.mt libvirtd[4836]: 2020-04-08 > 14:06:15.675+0000: 4836: error : virNetTLSContextCheckCertFile:112 : Cannot > read CA certificate '/etc/pki/CA/cacert.pem': No such file or direct > Apr 08 14:06:15 mtl1-apphst03.mt.pbt.com.mt systemd[1]: libvirtd.service: > main process exited, code=exited, status=6/NOTCONFIGURED > Apr 08 14:06:15 mtl1-apphst03.mt.pbt.com.mt systemd[1]: Failed to start > Virtualization daemon. > -- Subject: Unit libvirtd.service has failed > -- Defined-By: systemd > -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel > -- > -- Unit libvirtd.service has failed. > -- > -- The result is failed. > > > Could it be another unintentional update problem? > > On Wed, Apr 8, 2020 at 3:13 PM Andrija Panic <andrija.pa...@gmail.com> > wrote: > > > you've upgrade the java-mysql-connector - downgrade back to 5.x if that's > > the case > > > > > > On Wed, 8 Apr 2020 at 10:08, Jevgeni Zolotarjov <j.zolotar...@gmail.com> > > wrote: > > > > > After restart of host machine (Centos 7.7) I am not able to login > > anymore. > > > Neither cloudstack starts any VMs. > > > > > > In the log I see following error right after login > > > > > > > > > 2020-04-08 08:05:49,979 DEBUG [c.c.u.AccountManagerImpl] > > > (qtp504527234-22:ctx-22182f59) (logid:ba27e53e) User: admin in domain 1 > > has > > > successfully logged in > > > 2020-04-08 08:05:49,985 DEBUG [c.c.u.d.T.Transaction] > > > (qtp504527234-22:ctx-22182f59) (logid:ba27e53e) Rolling back the > > > transaction: Time = 4 Name = qtp504527234-22; called by > > > > > > > > > -TransactionLegacy.rollback:890-TransactionLegacy.removeUpTo:833-TransactionLegacy.close:657-TransactionContextInterceptor.invoke:36-ReflectiveMethodInvocation.proceed:174-ExposeInvocationInterceptor.invoke:92-ReflectiveMethodInvocation.proceed:185-JdkDynamicAopProxy.invoke:212-$Proxy129.persist:-1-ActionEventUtils.persistActionEvent:186-ActionEventUtils.onActionEvent:98-AccountManagerImpl.authenticateUser:2342 > > > 2020-04-08 08:05:49,986 ERROR [c.c.a.ApiServlet] > > > (qtp504527234-22:ctx-22182f59) (logid:ba27e53e) unknown exception > writing > > > api response > > > com.cloud.utils.exception.CloudRuntimeException: Problem with getting > the > > > ec attribute > > > at > > > com.cloud.utils.db.GenericDaoBase.persist(GenericDaoBase.java:1454) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown > > Source) > > > at java.lang.reflect.Method.invoke(Unknown Source) > > > at > > > > > > > > > org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:338) > > > at > > > > > > > > > org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197) > > > at > > > > > > > > > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) > > > at > > > > > > > > > com.cloud.utils.db.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:34) > > > at > > > > > > > > > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:174) > > > at > > > > > > > > > org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) > > > at > > > > > > > > > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) > > > at > > > > > > > > > org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212) > > > at com.sun.proxy.$Proxy129.persist(Unknown Source) > > > at > > > > > > > > > com.cloud.event.ActionEventUtils.persistActionEvent(ActionEventUtils.java:186) > > > at > > > > com.cloud.event.ActionEventUtils.onActionEvent(ActionEventUtils.java:98) > > > at > > > > > > > > > com.cloud.user.AccountManagerImpl.authenticateUser(AccountManagerImpl.java:2342) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown > > Source) > > > at java.lang.reflect.Method.invoke(Unknown Source) > > > at > > > > > > > > > org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:338) > > > at > > > > > > > > > org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197) > > > at > > > > > > > > > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) > > > at > > > > > > > > > org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) > > > at > > > > > > > > > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) > > > at > > > > > > > > > org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212) > > > at com.sun.proxy.$Proxy125.authenticateUser(Unknown Source) > > > at com.cloud.api.ApiServer.loginUser(ApiServer.java:1073) > > > at > > > > > > > > > com.cloud.api.auth.DefaultLoginAPIAuthenticatorCmd.authenticate(DefaultLoginAPIAuthenticatorCmd.java:172) > > > at > > > com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:214) > > > at com.cloud.api.ApiServlet$1.run(ApiServlet.java:130) > > > at > > > > > > > > > org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56) > > > at > > > > > > > > > org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103) > > > at > > > > > > > > > org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53) > > > at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:127) > > > at com.cloud.api.ApiServlet.doPost(ApiServlet.java:94) > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:706) > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:791) > > > at > > > org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852) > > > at > > > > > > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535) > > > at > > > > > > > > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) > > > at > > > > > > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) > > > at > > > > > > > > > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) > > > at > > > > > > > > > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190) > > > at > > > > > > > > > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) > > > at > > > > > > > > > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) > > > at > > > > > > > > > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253) > > > at > > > > > > > > > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168) > > > at > > > > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) > > > at > > > > > > > > > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) > > > at > > > > > > > > > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166) > > > at > > > > > > > > > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155) > > > at > > > > > > > > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) > > > at > > > > > > > > > org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:527) > > > at > > > > > > > > > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) > > > at > > > > > > > > > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) > > > at org.eclipse.jetty.server.Server.handle(Server.java:530) > > > at > > > org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347) > > > at > > > > > > org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256) > > > at > > > org.eclipse.jetty.io > > > .AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) > > > at org.eclipse.jetty.io > > > .FillInterest.fillable(FillInterest.java:102) > > > at > > > org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) > > > at > > > > > > > > > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247) > > > at > > > > > > > > > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140) > > > at > > > > > > > > > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708) > > > at > > > > > > > > > org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626) > > > at java.lang.Thread.run(Unknown Source) > > > Caused by: java.lang.IllegalArgumentException: Can not set long field > > > com.cloud.event.EventVO.id to java.math.BigInteger > > > at > > > > > > > > > sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown > > > Source) > > > at > > > > > > > > > sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown > > > Source) > > > at sun.reflect.UnsafeLongFieldAccessorImpl.set(Unknown Source) > > > ... 69 more > > > > > > > > > -- > > > > Andrija Panić > > >