vishnuvs369 commented on issue #6716:
URL: https://github.com/apache/cloudstack/issues/6716#issuecomment-2051407572
@weizhouapache
i have provided root as username and root user password for adding kvm
host...now that error gone....now i'm getting different error.
```
2024-04-12 09:34:01,056 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp239372207-305:ctx-ee051bc3 ctx-b69a7b97) (logid:3616be44) SSH command: sudo
/usr/share/cloudstack-common/scripts/util/keystore-setup
/etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
SSH command output:Failed to generate CSR file, retrying after removing
existing settings
Reverting libvirtd to not listen on TLS
Removing cloud.* files in /etc/cloudstack/agent
Retrying to generate CSR file
Failed to generate CSR file while retrying
2024-04-12 09:34:01,056 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp239372207-305:ctx-ee051bc3 ctx-b69a7b97) (logid:3616be44) Executing cmd:
sudo /usr/share/cloudstack-common/scripts/util/keystore-setup
/etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
2024-04-12 09:34:02,255 DEBUG [o.a.c.h.HAManagerImpl]
(BackgroundTaskPollManager-4:ctx-3f3b6330) (logid:f119a186) HA health check
task is running...
2024-04-12 09:34:02,885 DEBUG [c.c.s.StatsCollector]
(StatsCollector-4:ctx-23a200d4) (logid:6cdcc245) AutoScaling Monitor is
running...
2024-04-12 09:34:03,361 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp239372207-305:ctx-ee051bc3 ctx-b69a7b97) (logid:3616be44) SSH command: sudo
/usr/share/cloudstack-common/scripts/util/keystore-setup
/etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
SSH command output:
chmod: cannot access '/etc/cloudstack/agent/agent.properties': No such file
or directory
2024-04-12 09:34:03,388 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp239372207-305:ctx-ee051bc3 ctx-b69a7b97) (logid:3616be44) Executing cmd:
sudo /usr/share/cloudstack-common/scripts/util/keystore-cert-import
/etc/cloudstack/agent/agent.properties 9YXfhdTjZTpXOcSZ /etc/cloudstack/agent/
2024-04-12 09:34:04,431 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp239372207-305:ctx-ee051bc3 ctx-b69a7b97) (logid:3616be44) SSH command: sudo
/usr/share/cloudstack-common/scripts/util/keystore-cert-import
/etc/cloudstack/agent/agent.properties 9YXfhdTjZTpXOcSZ /etc/cloudstack/agent/
SSH command output:Failed to find keystore passphrase from file:
/etc/cloudstack/agent/agent.properties, quitting!
2024-04-12 09:34:04,431 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp239372207-305:ctx-ee051bc3 ctx-b69a7b97) (logid:3616be44) Executing cmd:
sudo /usr/share/cloudstack-common/scripts/util/keystore-cert-import
/etc/cloudstack/agent/agent.properties 9YXfhdTjZTpXOcSZ /etc/cloudstack/agent/
2024-04-12 09:34:05,254 DEBUG [c.c.a.ApiServlet]
(qtp239372207-359:ctx-d1046213) (logid:b74dfb77) ===START=== 192.168.10.111 --
GET command=readyForShutdown&response=json
2024-04-12 09:34:05,254 DEBUG [c.c.a.ApiServlet]
(qtp239372207-359:ctx-d1046213) (logid:b74dfb77) Two factor authentication is
already verified for the user 2, so skipping
2024-04-12 09:34:05,261 DEBUG [c.c.a.ApiServer]
(qtp239372207-359:ctx-d1046213 ctx-85baecad) (logid:b74dfb77) CIDRs from which
account 'Account
[{"accountName":"admin","id":2,"uuid":"8b9bbc51-f746-11ee-9e73-000c29962f22"}]'
is allowed to perform API calls: 0.0.0.0/0,::/0
2024-04-12 09:34:05,263 INFO [o.a.c.a.DynamicRoleBasedAPIAccessChecker]
(qtp239372207-359:ctx-d1046213 ctx-85baecad) (logid:b74dfb77) Account [Account
[{"accountName":"admin","id":2,"uuid":"8b9bbc51-f746-11ee-9e73-000c29962f22"}]]
is Root Admin or Domain Admin, all APIs are allowed.
2024-04-12 09:34:05,265 WARN [o.a.c.a.ProjectRoleBasedApiAccessChecker]
(qtp239372207-359:ctx-d1046213 ctx-85baecad) (logid:b74dfb77) Project is null,
ProjectRoleBasedApiAccessChecker only applies to projects, returning API
[readyForShutdown] for user [User
{"username":"admin","uuid":"8b9cdbeb-f746-11ee-9e73-000c29962f22"}.] as allowed.
2024-04-12 09:34:05,266 DEBUG [o.a.c.a.StaticRoleBasedAPIAccessChecker]
(qtp239372207-359:ctx-d1046213 ctx-85baecad) (logid:b74dfb77) RoleService is
enabled. We will use it instead of StaticRoleBasedAPIAccessChecker.
2024-04-12 09:34:05,267 DEBUG [o.a.c.r.ApiRateLimitServiceImpl]
(qtp239372207-359:ctx-d1046213 ctx-85baecad) (logid:b74dfb77) API rate limiting
is disabled. We will not use ApiRateLimitService.
2024-04-12 09:34:05,269 DEBUG [c.c.a.ApiServlet]
(qtp239372207-359:ctx-d1046213 ctx-85baecad) (logid:b74dfb77) ===END===
192.168.10.111 -- GET command=readyForShutdown&response=json
2024-04-12 09:34:05,497 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp239372207-305:ctx-ee051bc3 ctx-b69a7b97) (logid:3616be44) SSH command: sudo
/usr/share/cloudstack-common/scripts/util/keystore-cert-import
/etc/cloudstack/agent/agent.properties 9YXfhdTjZTpXOcSZ /etc/cloudstack/agent/
SSH command output:Failed to find keystore passphrase from file:
/etc/cloudstack/agent/agent.properties, quitting!
2024-04-12 09:34:05,497 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp239372207-305:ctx-ee051bc3 ctx-b69a7b97) (logid:3616be44) Executing cmd:
sudo /usr/share/cloudstack-common/scripts/util/keystore-cert-import
/etc/cloudstack/agent/agent.properties 9YXfhdTjZTpXOcSZ /etc/cloudstack/agent/
2024-04-12 09:34:06,256 DEBUG [o.a.c.h.HAManagerImpl]
(BackgroundTaskPollManager-1:ctx-dcb4daff) (logid:1ac789dd) HA health check
task is running...
2024-04-12 09:34:06,562 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp239372207-305:ctx-ee051bc3 ctx-b69a7b97) (logid:3616be44) SSH command: sudo
/usr/share/cloudstack-common/scripts/util/keystore-cert-import
/etc/cloudstack/agent/agent.properties 9YXfhdTjZTpXOcSZ /etc/cloudstack/agent/
SSH command output:Failed to find keystore passphrase from file:
/etc/cloudstack/agent/agent.properties, quitting!
2024-04-12 09:34:06,562 WARN [c.c.h.k.d.LibvirtServerDiscoverer]
(qtp239372207-305:ctx-ee051bc3 ctx-b69a7b97) (logid:3616be44) can't setup
agent, due to com.cloud.utils.exception.CloudRuntimeException: Failed to setup
certificate in the KVM agent's keystore file, please see logs and configure
manually! - Failed to setup certificate in the KVM agent's keystore file,
please see logs and configure manually!
2024-04-12 09:34:06,562 DEBUG [c.c.h.k.d.LibvirtServerDiscoverer]
(qtp239372207-305:ctx-ee051bc3 ctx-b69a7b97) (logid:3616be44) can't setup
agent, due to com.cloud.utils.exception.CloudRuntimeException: Failed to setup
certificate in the KVM agent's keystore file, please see logs and configure
manually! - Failed to setup certificate in the KVM agent's keystore file,
please see logs and configure manually!
com.cloud.utils.exception.CloudRuntimeException: Failed to setup certificate
in the KVM agent's keystore file, please see logs and configure manually!
at
com.cloud.hypervisor.kvm.discoverer.LibvirtServerDiscoverer.setupAgentSecurity(LibvirtServerDiscoverer.java:206)
at
com.cloud.hypervisor.kvm.discoverer.LibvirtServerDiscoverer.find(LibvirtServerDiscoverer.java:321)
at
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:827)
at
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:660)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
at com.sun.proxy.$Proxy195.discoverHosts(Unknown Source)
at
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:136)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:172)
at com.cloud.api.ApiServer.queueCommand
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]