You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/02/19 23:47:56 UTC

[GitHub] [cloudstack] abdelouahabb opened a new issue #4715: Cloudstack management asks for rpm command on debian distribution

abdelouahabb opened a new issue #4715:
URL: https://github.com/apache/cloudstack/issues/4715


   - Fresh reinstall on 18.04.5 LTS (Bionic Beaver),
   - Cloudstack 4.15
   - Cloudstack repo : deb http://packages.shapeblue.com/cloudstack/upstream/debian/4.15 /
   - My first initialization
   - Step : Adding host
   ```
   2021-02-20 00:39:23,074 DEBUG [c.c.u.s.SSHCmdHelper] (qtp182531396-13:ctx-85c1f557 ctx-cee8d01f) (logid:7b5f2cd9) Executing cmd: rpm -qa | grep -i ovmf
   2021-02-20 00:39:24,138 DEBUG [c.c.u.s.SSHCmdHelper] (qtp182531396-13:ctx-85c1f557 ctx-cee8d01f) (logid:7b5f2cd9) SSH command: rpm -qa | grep -i ovmf
   SSH command output:
   bash: rpm: command not found
   ```
   
   Full log 
   ```
   2021-02-20 00:41:55,858 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-7966f89d) (logid:d1c6d011) Found 0 VPC's to update Redundant State. 
   2021-02-20 00:41:55,861 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-7966f89d) (logid:d1c6d011) Found 0 networks to update RvR status. 
   2021-02-20 00:41:59,759 DEBUG [c.c.c.ConsoleProxyManagerImpl] (consoleproxy-1:ctx-bd673939) (logid:603f8253) Skip capacity scan as there is no Primary Storage in 'Up' state
   2021-02-20 00:42:11,241 DEBUG [c.c.s.StatsCollector] (StatsCollector-2:ctx-7861e975) (logid:2b97ac72) AutoScaling Monitor is running...
   2021-02-20 00:42:11,278 DEBUG [c.c.s.StatsCollector] (StatsCollector-4:ctx-dca85754) (logid:c2aca4cc) StorageCollector is running...
   2021-02-20 00:42:11,278 DEBUG [c.c.s.StatsCollector] (StatsCollector-5:ctx-a4c39582) (logid:ff2e98c3) HostStatsCollector is running...
   2021-02-20 00:42:25,855 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-020df0aa) (logid:a4d30413) Found 0 routers to update status. 
   2021-02-20 00:42:25,856 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-020df0aa) (logid:a4d30413) Found 0 VPC's to update Redundant State. 
   2021-02-20 00:42:25,857 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-020df0aa) (logid:a4d30413) Found 0 networks to update RvR status. 
   2021-02-20 00:42:29,758 DEBUG [c.c.c.ConsoleProxyManagerImpl] (consoleproxy-1:ctx-1c5b05b2) (logid:f739397e) Skip capacity scan as there is no Primary Storage in 'Up' state
   2021-02-20 00:42:31,185 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-f040de6a) (logid:75d2a007) Resetting hosts suitable for reconnect
   2021-02-20 00:42:31,190 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-f040de6a) (logid:75d2a007) Completed resetting hosts suitable for reconnect
   2021-02-20 00:42:31,190 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-f040de6a) (logid:75d2a007) Acquiring hosts for clusters already owned by this management server
   2021-02-20 00:42:31,192 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-f040de6a) (logid:75d2a007) Completed acquiring hosts for clusters already owned by this management server
   2021-02-20 00:42:31,193 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-f040de6a) (logid:75d2a007) Acquiring hosts for clusters not owned by any management server
   2021-02-20 00:42:31,196 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-f040de6a) (logid:75d2a007) Completed acquiring hosts for clusters not owned by any management server
   2021-02-20 00:42:38,279 DEBUG [c.c.a.ApiServlet] (qtp182531396-14:ctx-38ac0ba2) (logid:cc844b7b) ===START===  0:0:0:0:0:0:0:1 -- GET  provider=S3&command=listImageStores&response=json
   2021-02-20 00:42:38,305 DEBUG [c.c.a.ApiServer] (qtp182531396-14:ctx-38ac0ba2 ctx-0d322ba9) (logid:cc844b7b) CIDRs from which account 'Acct[fce772e5-730a-11eb-ab33-080027f5712e-admin]' is allowed to perform API calls: 0.0.0.0/0,::/0
   2021-02-20 00:42:38,323 DEBUG [c.c.a.ApiServlet] (qtp182531396-14:ctx-38ac0ba2 ctx-0d322ba9) (logid:cc844b7b) ===END===  0:0:0:0:0:0:0:1 -- GET  provider=S3&command=listImageStores&response=json
   2021-02-20 00:42:42,880 DEBUG [c.c.a.ApiServlet] (qtp182531396-22:ctx-6c2d2d39) (logid:980a971b) ===START===  0:0:0:0:0:0:0:1 -- POST  command=addHost&response=json
   2021-02-20 00:42:42,890 DEBUG [c.c.a.ApiServer] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) CIDRs from which account 'Acct[fce772e5-730a-11eb-ab33-080027f5712e-admin]' is allowed to perform API calls: 0.0.0.0/0,::/0
   2021-02-20 00:42:42,904 WARN  [c.c.a.d.ParamGenericValidationWorker] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) Received unknown parameters for command addHost. Unknown parameters : clustertype
   2021-02-20 00:42:42,911 INFO  [c.c.r.ResourceManagerImpl] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) Trying to add a new host at http://192.168.56.2 in data center 1
   2021-02-20 00:42:43,055 DEBUG [c.c.u.s.SSHCmdHelper] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) Executing cmd: ls /dev/kvm
   2021-02-20 00:42:44,470 DEBUG [c.c.u.s.SSHCmdHelper] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) SSH command: ls /dev/kvm
   SSH command output:/dev/kvm
   
   
   2021-02-20 00:42:44,573 DEBUG [c.c.u.s.SSHCmdHelper] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) Executing cmd: rpm -qa | grep -i ovmf
   2021-02-20 00:42:45,637 DEBUG [c.c.u.s.SSHCmdHelper] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) SSH command: rpm -qa | grep -i ovmf
   SSH command output:
   bash: rpm: command not found
   
   2021-02-20 00:42:45,638 DEBUG [c.c.u.s.SSHCmdHelper] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) Executing cmd: rpm -qa | grep -i ovmf
   2021-02-20 00:42:46,700 DEBUG [c.c.u.s.SSHCmdHelper] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) SSH command: rpm -qa | grep -i ovmf
   SSH command output:
   bash: rpm: command not found
   
   2021-02-20 00:42:46,701 DEBUG [c.c.u.s.SSHCmdHelper] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) Executing cmd: rpm -qa | grep -i ovmf
   2021-02-20 00:42:47,765 DEBUG [c.c.u.s.SSHCmdHelper] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) SSH command: rpm -qa | grep -i ovmf
   SSH command output:
   bash: rpm: command not found
   
   2021-02-20 00:42:47,784 DEBUG [c.c.u.s.SSHCmdHelper] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) Executing cmd: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup /etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
   2021-02-20 00:42:48,844 DEBUG [c.c.u.s.SSHCmdHelper] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) SSH command: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup /etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
   SSH command output:
   sudo: no tty present and no askpass program specified
   
   2021-02-20 00:42:48,946 DEBUG [c.c.u.s.SSHCmdHelper] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) Executing cmd: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup /etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
   2021-02-20 00:42:50,016 DEBUG [c.c.u.s.SSHCmdHelper] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) SSH command: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup /etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
   SSH command output:
   sudo: no tty present and no askpass program specified
   
   2021-02-20 00:42:50,017 DEBUG [c.c.u.s.SSHCmdHelper] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) Executing cmd: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup /etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
   2021-02-20 00:42:51,100 DEBUG [c.c.u.s.SSHCmdHelper] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) SSH command: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup /etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
   SSH command output:
   sudo: no tty present and no askpass program specified
   
   2021-02-20 00:42:51,101 WARN  [c.c.h.k.d.LibvirtServerDiscoverer] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b)  can't setup agent, due to com.cloud.utils.exception.CloudRuntimeException: Failed to setup keystore on the KVM host: 192.168.56.2 - Failed to setup keystore on the KVM host: 192.168.56.2
   2021-02-20 00:42:51,103 WARN  [c.c.r.ResourceManagerImpl] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) Unable to find the server resources at http://192.168.56.2
   2021-02-20 00:42:51,103 INFO  [c.c.u.e.CSExceptionErrorCode] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) Could not find exception: com.cloud.exception.DiscoveryException in error code list for exceptions
   2021-02-20 00:42:51,115 WARN  [o.a.c.a.c.a.h.AddHostCmd] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) Exception: 
   com.cloud.exception.DiscoveryException: Unable to add the host
   	at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:826)
   	at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:612)
   	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:95)
   	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
   	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
   	at com.sun.proxy.$Proxy188.discoverHosts(Unknown Source)
   	at org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:142)
   	at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:156)
   	at com.cloud.api.ApiServer.queueCommand(ApiServer.java:764)
   	at com.cloud.api.ApiServer.handleRequest(ApiServer.java:588)
   	at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:321)
   	at com.cloud.api.ApiServlet$1.run(ApiServlet.java:134)
   	at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55)
   	at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102)
   	at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52)
   	at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:131)
   	at com.cloud.api.ApiServlet.doPost(ApiServlet.java:98)
   	at javax.servlet.http.HttpServlet.service(HttpServlet.java:665)
   	at javax.servlet.http.HttpServlet.service(HttpServlet.java:750)
   	at org.eclipse.jetty.servlet.ServletHolder$NotAsyncServlet.service(ServletHolder.java:1386)
   	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:755)
   	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:547)
   	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
   	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:590)
   	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
   	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
   	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610)
   	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
   	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1300)
   	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
   	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485)
   	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580)
   	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
   	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1215)
   	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
   	at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:767)
   	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
   	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
   	at org.eclipse.jetty.server.Server.handle(Server.java:500)
   	at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
   	at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547)
   	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
   	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
   	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
   	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
   	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
   	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
   	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
   	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
   	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
   	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
   	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
   	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
   	at java.base/java.lang.Thread.run(Thread.java:834)
   2021-02-20 00:42:51,161 INFO  [c.c.a.ApiServer] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) Unable to add the host
   2021-02-20 00:42:51,175 DEBUG [c.c.a.ApiServlet] (qtp182531396-22:ctx-6c2d2d39 ctx-e64efde7) (logid:980a971b) ===END===  0:0:0:0:0:0:0:1 -- POST  command=addHost&response=json
   2021-02-20 00:42:55,864 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-96d80f13) (logid:b4295fb4) Found 0 routers to update status. 
   2021-02-20 00:42:55,867 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-96d80f13) (logid:b4295fb4) Found 0 VPC's to update Redundant State. 
   2021-02-20 00:42:55,871 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-96d80f13) (logid:b4295fb4) Found 0 networks to update RvR status. 
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] abdelouahabb edited a comment on issue #4715: Cloudstack management asks for rpm command on debian distribution

Posted by GitBox <gi...@apache.org>.
abdelouahabb edited a comment on issue #4715:
URL: https://github.com/apache/cloudstack/issues/4715#issuecomment-784374080


   > @abdelouahabb what you report may look like an error but it isn't a failure [1], it checks if the KVM machine is UEFI enabled and looks like whoever added that didn't add a suitable support for Ubuntu. If host addition is failing due to keystore setup, chances are the host does not have kvm or hardware acceleration. I'm not sure if VirtualBox now supported nested VMs with hardware acceleration (vmx or svm supported). Easy way to check is to run `kvm-ok` or `ls /dev/kvm`. The other issue with keystore setup could be lack of entroy in the nested KVM (your Ubuntu VM on VirtualBox), which may be fixed by installed haveged (https://packages.ubuntu.com/bionic/haveged) and try to add host again.
   > 
   > [1] https://github.com/apache/cloudstack/blob/master/server/src/main/java/com/cloud/hypervisor/kvm/discoverer/LibvirtServerDiscoverer.java#L262
   
   - For `haveged` isent useful if it will be added to the docs ? 
   - For Virtualbox, on Windows the GUI dont give access to enable it, I have to use the commandline :  
   ```
   VBoxManage modifyvm CloudStack --nested-hw-virt on 
   ```
   Where `CloudStack` is the name of the Virtual Machine, once enabled : 
   
   ```
   $ ls -l /dev/kvm 
   crw-rw---- 1 root kvm 10, 232 févr. 23 18:18 /dev/kvm
   abdelouahab@alien:~
   $ kvm-ok 
   INFO: /dev/kvm exists
   KVM acceleration can be used
   abdelouahab@alien:~
   $ lsmod | grep kvm
   kvm_intel             217088  0
   kvm                   614400  1 kvm_intel
   irqbypass              16384  1 kvm
   abdelouahab@alien:~
   $ cat /proc/cpuinfo | grep -E 'vmx|svm'
   flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq vmx ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx hypervisor lahf_lm pti tpr_shadow flexpriority
   flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq vmx ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx hypervisor lahf_lm pti tpr_shadow flexpriority
   ```
   
   For the java code, why not checking for the distribution then execute `rpm -qa` if it is Redhat based, else, using `dpkg-query -l` ?
   
   I will retry to do it with the `haveged` package installed 


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on issue #4715: Cloudstack management asks for rpm command on debian distribution

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #4715:
URL: https://github.com/apache/cloudstack/issues/4715#issuecomment-783176064


   @abdelouahabb is your KVM host centos7 based?


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd closed issue #4715: Cloudstack management asks for rpm command on debian distribution

Posted by GitBox <gi...@apache.org>.
rhtyd closed issue #4715:
URL: https://github.com/apache/cloudstack/issues/4715


   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] abdelouahabb commented on issue #4715: Cloudstack management asks for rpm command on debian distribution

Posted by GitBox <gi...@apache.org>.
abdelouahabb commented on issue #4715:
URL: https://github.com/apache/cloudstack/issues/4715#issuecomment-784374080


   > @abdelouahabb what you report may look like an error but it isn't a failure [1], it checks if the KVM machine is UEFI enabled and looks like whoever added that didn't add a suitable support for Ubuntu. If host addition is failing due to keystore setup, chances are the host does not have kvm or hardware acceleration. I'm not sure if VirtualBox now supported nested VMs with hardware acceleration (vmx or svm supported). Easy way to check is to run `kvm-ok` or `ls /dev/kvm`. The other issue with keystore setup could be lack of entroy in the nested KVM (your Ubuntu VM on VirtualBox), which may be fixed by installed haveged (https://packages.ubuntu.com/bionic/haveged) and try to add host again.
   > 
   > [1] https://github.com/apache/cloudstack/blob/master/server/src/main/java/com/cloud/hypervisor/kvm/discoverer/LibvirtServerDiscoverer.java#L262
   
   - For `haveged` isent useful if it will be added to the docs ? 
   - For Virtualbox, on Windows the GUI dont give access to enable it, I have to use the commandline :+1: 
   ```
   VBoxManage modifyvm CloudStack --nested-hw-virt on 
   ```
   Where `CloudStack` is the name of the Virtual Machine, once enabled : 
   
   ```
   $ ls -l /dev/kvm 
   crw-rw---- 1 root kvm 10, 232 févr. 23 18:18 /dev/kvm
   abdelouahab@alien:~
   $ kvm-ok 
   INFO: /dev/kvm exists
   KVM acceleration can be used
   abdelouahab@alien:~
   $ lsmod | grep kvm
   kvm_intel             217088  0
   kvm                   614400  1 kvm_intel
   irqbypass              16384  1 kvm
   abdelouahab@alien:~
   $ cat /proc/cpuinfo | grep -E 'vmx|svm'
   flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq vmx ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx hypervisor lahf_lm pti tpr_shadow flexpriority
   flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq vmx ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx hypervisor lahf_lm pti tpr_shadow flexpriority
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] abdelouahabb edited a comment on issue #4715: Cloudstack management asks for rpm command on debian distribution

Posted by GitBox <gi...@apache.org>.
abdelouahabb edited a comment on issue #4715:
URL: https://github.com/apache/cloudstack/issues/4715#issuecomment-784374080


   > @abdelouahabb what you report may look like an error but it isn't a failure [1], it checks if the KVM machine is UEFI enabled and looks like whoever added that didn't add a suitable support for Ubuntu. If host addition is failing due to keystore setup, chances are the host does not have kvm or hardware acceleration. I'm not sure if VirtualBox now supported nested VMs with hardware acceleration (vmx or svm supported). Easy way to check is to run `kvm-ok` or `ls /dev/kvm`. The other issue with keystore setup could be lack of entroy in the nested KVM (your Ubuntu VM on VirtualBox), which may be fixed by installed haveged (https://packages.ubuntu.com/bionic/haveged) and try to add host again.
   > 
   > [1] https://github.com/apache/cloudstack/blob/master/server/src/main/java/com/cloud/hypervisor/kvm/discoverer/LibvirtServerDiscoverer.java#L262
   
   - For `haveged` isent useful if it will be added to the docs ? 
   - For Virtualbox, on Windows the GUI dont give access to enable it, I have to use the commandline :  
   ```
   VBoxManage modifyvm CloudStack --nested-hw-virt on 
   ```
   Where `CloudStack` is the name of the Virtual Machine, once enabled : 
   
   ```
   $ ls -l /dev/kvm 
   crw-rw---- 1 root kvm 10, 232 févr. 23 18:18 /dev/kvm
   abdelouahab@alien:~
   $ kvm-ok 
   INFO: /dev/kvm exists
   KVM acceleration can be used
   abdelouahab@alien:~
   $ lsmod | grep kvm
   kvm_intel             217088  0
   kvm                   614400  1 kvm_intel
   irqbypass              16384  1 kvm
   abdelouahab@alien:~
   $ cat /proc/cpuinfo | grep -E 'vmx|svm'
   flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq vmx ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx hypervisor lahf_lm pti tpr_shadow flexpriority
   flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq vmx ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx hypervisor lahf_lm pti tpr_shadow flexpriority
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] abdelouahabb edited a comment on issue #4715: Cloudstack management asks for rpm command on debian distribution

Posted by GitBox <gi...@apache.org>.
abdelouahabb edited a comment on issue #4715:
URL: https://github.com/apache/cloudstack/issues/4715#issuecomment-784374080


   > @abdelouahabb what you report may look like an error but it isn't a failure [1], it checks if the KVM machine is UEFI enabled and looks like whoever added that didn't add a suitable support for Ubuntu. If host addition is failing due to keystore setup, chances are the host does not have kvm or hardware acceleration. I'm not sure if VirtualBox now supported nested VMs with hardware acceleration (vmx or svm supported). Easy way to check is to run `kvm-ok` or `ls /dev/kvm`. The other issue with keystore setup could be lack of entroy in the nested KVM (your Ubuntu VM on VirtualBox), which may be fixed by installed haveged (https://packages.ubuntu.com/bionic/haveged) and try to add host again.
   > 
   > [1] https://github.com/apache/cloudstack/blob/master/server/src/main/java/com/cloud/hypervisor/kvm/discoverer/LibvirtServerDiscoverer.java#L262
   
   - For `haveged` isent useful if it will be added to the docs ? 
   - For Virtualbox, on Windows the GUI dont give access to enable it, I have to use the commandline :  
   ```
   VBoxManage modifyvm CloudStack --nested-hw-virt on 
   ```
   Where `CloudStack` is the name of the Virtual Machine, once enabled : 
   
   ```
   $ ls -l /dev/kvm 
   crw-rw---- 1 root kvm 10, 232 févr. 23 18:18 /dev/kvm
   abdelouahab@alien:~
   $ kvm-ok 
   INFO: /dev/kvm exists
   KVM acceleration can be used
   abdelouahab@alien:~
   $ lsmod | grep kvm
   kvm_intel             217088  0
   kvm                   614400  1 kvm_intel
   irqbypass              16384  1 kvm
   abdelouahab@alien:~
   $ cat /proc/cpuinfo | grep -E 'vmx|svm'
   flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq vmx ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx hypervisor lahf_lm pti tpr_shadow flexpriority
   flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq vmx ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx hypervisor lahf_lm pti tpr_shadow flexpriority
   ```
   
   I will retry to do it with the `haveged` package installed 


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on issue #4715: Cloudstack management asks for rpm command on debian distribution

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #4715:
URL: https://github.com/apache/cloudstack/issues/4715#issuecomment-796553781


   Given the original issue doesn't cause the command failure (the log is debug, the exception/error is ignored by CloudStack). I'm closing this.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] abdelouahabb commented on issue #4715: Cloudstack management asks for rpm command on debian distribution

Posted by GitBox <gi...@apache.org>.
abdelouahabb commented on issue #4715:
URL: https://github.com/apache/cloudstack/issues/4715#issuecomment-783502498


   ```
   abdelouahab@alien:~
   $ sudo lshw -class system
   alien.akham.local           
       description: Computer
       product: VirtualBox
       vendor: innotek GmbH
       version: 1.2
       serial: 0
       width: 64 bits
       capabilities: smbios-2.5 dmi-2.5 smp vsyscall32
       configuration: family=Virtual Machine uuid=E7584F9E-5753-2E49-9099-BA34C6073FA3
   abdelouahab@alien:~
   $ hostnamectl status
      Static hostname: alien.akham.local
            Icon name: computer-vm
              Chassis: vm
           Machine ID: ec31ec7e3e384682b6a396c151c030ac
              Boot ID: 4f3d9a5b14734ad7afcd55b2b456d2cc
       Virtualization: oracle
     Operating System: Ubuntu 18.04.5 LTS
               Kernel: Linux 4.15.0-135-generic
         Architecture: x86-64
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on issue #4715: Cloudstack management asks for rpm command on debian distribution

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #4715:
URL: https://github.com/apache/cloudstack/issues/4715#issuecomment-785003365


   @abdelouahabb `haveged` is not necessary generally unless you're using an unsupported deployment or slow servers (VirtualBox env are generally slow compared to real hardware) where you want entropy.
   
   We've established that the rpm command not found is not an error, you can ignore that log and won't cause the host to be not added, do you actually get an exception in the logs (the debug level would be ERROR)?


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on issue #4715: Cloudstack management asks for rpm command on debian distribution

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #4715:
URL: https://github.com/apache/cloudstack/issues/4715#issuecomment-784105797


   @abdelouahabb what you report may look like an error but it isn't a failure [1], it checks if the KVM machine is UEFI enabled and looks like whoever added that didn't add a suitable support for Ubuntu. If host addition is failing due to keystore setup, chances are the host does not have kvm or hardware acceleration. I'm not sure if VirtualBox now supported nested VMs with hardware acceleration (vmx or svm supported). Easy way to check is to run `kvm-ok` or `ls /dev/kvm`. The other issue with keystore setup could be lack of entroy in the nested KVM (your Ubuntu VM on VirtualBox), which may be fixed by installed haveged (https://packages.ubuntu.com/bionic/haveged) and try to add host again.
   
   [1] https://github.com/apache/cloudstack/blob/master/server/src/main/java/com/cloud/hypervisor/kvm/discoverer/LibvirtServerDiscoverer.java#L262


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] abdelouahabb commented on issue #4715: Cloudstack management asks for rpm command on debian distribution

Posted by GitBox <gi...@apache.org>.
abdelouahabb commented on issue #4715:
URL: https://github.com/apache/cloudstack/issues/4715#issuecomment-783492136


   > @abdelouahabb is your KVM host centos7 based?
   
   @rhtyd no, this is Ubuntu 18.04.5 ontop of VirtualBox under Windows 7 (as the paravirtualization enabled)


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org