Re: Unable to add host

2021-09-14 Thread technologyrss.mail

Yes, I am able ssh.

ssh root@10.66.100.15
Warning: Permanently added '10.66.100.15' (RSA) to the list of known hosts.
root@10.66.100.15's password:
X11 forwarding request failed on channel 0
Last login: Tue Sep 14 21:25:14 2021 from 10.66.100.6
[root@cloud ~]#
[root@cloud ~]# ssh root@10.66.100.50
The authenticity of host '10.66.100.50 (10.66.100.50)' can't be established.
ECDSA key fingerprint is SHA256:iQPJSwVYqZ+Hg80zh+MAv16z32IsKn5TAFJU2ehXmLU.
ECDSA key fingerprint is 
MD5:8b:21:7d:6d:c4:8d:33:63:c5:d0:a2:3e:ce:64:ee:78.

Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.66.100.50' (ECDSA) to the list of known 
hosts.

root@10.66.100.50's password:
Last login: Tue Sep 14 12:46:07 2021 from 10.66.100.6
[root@kvm ~]#
[root@kvm ~]#
[root@kvm ~]#


---
alamin

On 9/15/2021 1:28 AM, James Steele wrote:

Hi,

can you SSH succesfully from the Management Server to the host you wish to add?

Jim

On 2021/09/14 16:02:44, "technologyrss.mail"  
wrote:

*Hi, *

Please see my log, I can't understand why not added host on my Advanced
zone. All servers are CentOS Linux release 7.9.2009 (Core).

|ca.plugin.root.auth.strictness|is set to|false
|

for ssh setting below config

PubkeyAcceptedKeyTypes=+ssh-dss
HostKeyAlgorithms=+ssh-dss
KexAlgorithms=+diffie-hellman-group1-sha1

please see my log error from ACS mgmt server

2021-09-14 21:43:01,298 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) SSH
command: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup
/etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
SSH command output:
cat: /etc/cloudstack/agent/cloud.csr: No such file or directory
chmod: cannot access ‘/etc/cloudstack/agent/cloud.csr’: No such file or
directory

2021-09-14 21:43:01,299 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Executing
cmd: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup
/etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
2021-09-14 21:43:03,881 DEBUG [c.c.s.StatsCollector]
(StatsCollector-6:ctx-f2675358) (logid:2fb31c5c) StorageCollector is
running...
2021-09-14 21:43:03,894 DEBUG [c.c.s.StatsCollector]
(StatsCollector-3:ctx-240201ac) (logid:a7801c31) AutoScaling Monitor is
running...
2021-09-14 21:43:03,947 DEBUG [c.c.s.StatsCollector]
(StatsCollector-5:ctx-c7e24e1f) (logid:d16881a3) HostStatsCollector is
running...
2021-09-14 21:43:06,826 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) SSH
command: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup
/etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
SSH command output:
cat: /etc/cloudstack/agent/cloud.csr: No such file or directory
chmod: cannot access ‘/etc/cloudstack/agent/cloud.csr’: No such file or
directory

2021-09-14 21:43:06,826 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Executing
cmd: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup
/etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
2021-09-14 21:43:09,204 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) SSH
command: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup
/etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
SSH command output:
cat: /etc/cloudstack/agent/cloud.csr: No such file or directory
chmod: cannot access ‘/etc/cloudstack/agent/cloud.csr’: No such file or
directory

2021-09-14 21:43:09,205 WARN  [c.c.h.k.d.LibvirtServerDiscoverer]
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) can't
setup agent, due to com.cloud.utils.exception.CloudRuntimeException:
Failed to setup keystore on the KVM host: 10.66.100.50 - Failed to setup
keystore on the KVM host: 10.66.100.50
2021-09-14 21:43:09,206 WARN  [c.c.r.ResourceManagerImpl]
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Unable to
find the server resources at http://10.66.100.50
2021-09-14 21:43:09,206 INFO  [c.c.u.e.CSExceptionErrorCode]
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Could not
find exception: com.cloud.exception.DiscoveryException in error code
list for exceptions
2021-09-14 21:43:09,212 WARN  [o.a.c.a.c.a.h.AddHostCmd]
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Exception:
com.cloud.exception.DiscoveryException: Unable to add the host
      at
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:825)
      at
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:611)
      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 

Re: Unable to add host

2021-09-14 Thread James Steele
Hi,

can you SSH succesfully from the Management Server to the host you wish to add?

Jim

On 2021/09/14 16:02:44, "technologyrss.mail"  
wrote: 
> *Hi, *
> 
> Please see my log, I can't understand why not added host on my Advanced 
> zone. All servers are CentOS Linux release 7.9.2009 (Core).
> 
> |ca.plugin.root.auth.strictness|is set to|false
> |
> 
> for ssh setting below config
> 
> PubkeyAcceptedKeyTypes=+ssh-dss
> HostKeyAlgorithms=+ssh-dss
> KexAlgorithms=+diffie-hellman-group1-sha1
> 
> please see my log error from ACS mgmt server
> 
> 2021-09-14 21:43:01,298 DEBUG [c.c.u.s.SSHCmdHelper] 
> (qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) SSH 
> command: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup 
> /etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
> SSH command output:
> cat: /etc/cloudstack/agent/cloud.csr: No such file or directory
> chmod: cannot access ‘/etc/cloudstack/agent/cloud.csr’: No such file or 
> directory
> 
> 2021-09-14 21:43:01,299 DEBUG [c.c.u.s.SSHCmdHelper] 
> (qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Executing 
> cmd: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup 
> /etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
> 2021-09-14 21:43:03,881 DEBUG [c.c.s.StatsCollector] 
> (StatsCollector-6:ctx-f2675358) (logid:2fb31c5c) StorageCollector is 
> running...
> 2021-09-14 21:43:03,894 DEBUG [c.c.s.StatsCollector] 
> (StatsCollector-3:ctx-240201ac) (logid:a7801c31) AutoScaling Monitor is 
> running...
> 2021-09-14 21:43:03,947 DEBUG [c.c.s.StatsCollector] 
> (StatsCollector-5:ctx-c7e24e1f) (logid:d16881a3) HostStatsCollector is 
> running...
> 2021-09-14 21:43:06,826 DEBUG [c.c.u.s.SSHCmdHelper] 
> (qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) SSH 
> command: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup 
> /etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
> SSH command output:
> cat: /etc/cloudstack/agent/cloud.csr: No such file or directory
> chmod: cannot access ‘/etc/cloudstack/agent/cloud.csr’: No such file or 
> directory
> 
> 2021-09-14 21:43:06,826 DEBUG [c.c.u.s.SSHCmdHelper] 
> (qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Executing 
> cmd: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup 
> /etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
> 2021-09-14 21:43:09,204 DEBUG [c.c.u.s.SSHCmdHelper] 
> (qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) SSH 
> command: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup 
> /etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
> SSH command output:
> cat: /etc/cloudstack/agent/cloud.csr: No such file or directory
> chmod: cannot access ‘/etc/cloudstack/agent/cloud.csr’: No such file or 
> directory
> 
> 2021-09-14 21:43:09,205 WARN  [c.c.h.k.d.LibvirtServerDiscoverer] 
> (qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) can't 
> setup agent, due to com.cloud.utils.exception.CloudRuntimeException: 
> Failed to setup keystore on the KVM host: 10.66.100.50 - Failed to setup 
> keystore on the KVM host: 10.66.100.50
> 2021-09-14 21:43:09,206 WARN  [c.c.r.ResourceManagerImpl] 
> (qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Unable to 
> find the server resources at http://10.66.100.50
> 2021-09-14 21:43:09,206 INFO  [c.c.u.e.CSExceptionErrorCode] 
> (qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Could not 
> find exception: com.cloud.exception.DiscoveryException in error code 
> list for exceptions
> 2021-09-14 21:43:09,212 WARN  [o.a.c.a.c.a.h.AddHostCmd] 
> (qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Exception:
> com.cloud.exception.DiscoveryException: Unable to add the host
>      at 
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:825)
>      at 
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:611)
>      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 
> 

SSVM not starting

2021-09-14 Thread Peter Stine
I am trying to start Cloudstack 4.15.1.0 but cannot get the SSVM to launch or 
even recognize that there is storage. (I'm running Ubuntu Server 20.04, the 
management server is on a virtual machine and the primary storage is on a ceph 
cluster (which seems to be working)) libvirt is running.

I can add the secondary storage as an NFS, but the seeded VM template does not 
appear. This is the relevant part in the log.

2021-09-14 14:43:44,584 DEBUG [c.c.s.StatsCollector] 
(StatsCollector-5:ctx-00afa557) (logid:3775b849) There is no secondary storage 
VM for secondary storage host Cloudstack_Secondary
2021-09-14 14:43:44,595 DEBUG [c.c.h.o.r.Ovm3HypervisorGuru] 
(StatsCollector-5:ctx-00afa557) (logid:3775b849) getCommandHostDelegation: 
class com.cloud.agent.api.GetStorageStatsCommand
2021-09-14 14:43:44,596 DEBUG [c.c.h.XenServerGuru] 
(StatsCollector-5:ctx-00afa557) (logid:3775b849) We are returning the default 
host to execute commands because the command is not of Copy type.
2021-09-14 14:43:44,736 DEBUG [c.c.a.t.Request] (StatsCollector-5:ctx-00afa557) 
(logid:3775b849) Seq 3-2352849330324373554: Received:  { Ans: , MgmtId: 
90520741394843, via: 3(gd-cs01-clst01-host-01), Ver: v1, Flags: 10, { 
GetStorageStatsAnswer } }


My colleague and I tried to have the script that extracts the template echo 
when it modifies the sql database, but it doesn't give output, so it's not 
clear what it is doing. There is, however, no addition to the database after we 
run the script.

I have been following the install in the latest documentation on the Apache 
docs.


Problems setting up HTTPS on CS Managementserver GUI / recommadations relizing

2021-09-14 Thread vas...@gmx.de
Hi,

at the moment I am trying to setting up https - access for the management
server with my own certificates. Sadly i wasn't successfull until now.
OS: Ubuntu 20.04
Standard Cloudstack
Basically i was following the documentation (
http://docs.cloudstack.apache.org/en/latest/installguide/optional_installation.html#ssl-optional)
as well as following guide from shapeblue (
https://www.shapeblue.com/securing-cloudstack-4-11-with-https-tls/) for
setting up https for the GUI.

At the moment i am stuck, as i didn't really have clue where and how to
proceed onwards, as i am not finding any problems, warinings or errors in
the cloudstack log's.
Usage of netstat shows, that currently no service is listening on port 8443.

Which leads me to a assumption that i maybe messed up access-priviledges
for the actual keystore-file, as the server.properties noted sais, that the
https configuration will  only be used when the keystorefile exists and is
readable by the managementserver.
Therefore  which permissions are normally used for the keystore to be
accessed by the management server?

As the documentation states, that more or less every site has it's own
practices on providing webservices to actual users,
i would like to ask for some experiences with different appoaches?
Till now i "stumbled" over some ways the set up a reverseproxy based on
nginx / apache "in front" of the actual CS-Management WebServer, which
shall take care of the certificate handling. Another idea i have read on a
side would be to "by pass" the CS-Management Webserver, targetting directly
to the "root"-volume. Which seems to be a aventures appoach...

So i am highly interested in your approaches and experiences regardning
this topic.

Thanks in advance!


Unable to add host

2021-09-14 Thread technologyrss.mail

*Hi, *

Please see my log, I can't understand why not added host on my Advanced 
zone. All servers are CentOS Linux release 7.9.2009 (Core).


|ca.plugin.root.auth.strictness|is set to|false
|

for ssh setting below config

PubkeyAcceptedKeyTypes=+ssh-dss
HostKeyAlgorithms=+ssh-dss
KexAlgorithms=+diffie-hellman-group1-sha1

please see my log error from ACS mgmt server

2021-09-14 21:43:01,298 DEBUG [c.c.u.s.SSHCmdHelper] 
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) SSH 
command: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup 
/etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/

SSH command output:
cat: /etc/cloudstack/agent/cloud.csr: No such file or directory
chmod: cannot access ‘/etc/cloudstack/agent/cloud.csr’: No such file or 
directory


2021-09-14 21:43:01,299 DEBUG [c.c.u.s.SSHCmdHelper] 
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Executing 
cmd: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup 
/etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
2021-09-14 21:43:03,881 DEBUG [c.c.s.StatsCollector] 
(StatsCollector-6:ctx-f2675358) (logid:2fb31c5c) StorageCollector is 
running...
2021-09-14 21:43:03,894 DEBUG [c.c.s.StatsCollector] 
(StatsCollector-3:ctx-240201ac) (logid:a7801c31) AutoScaling Monitor is 
running...
2021-09-14 21:43:03,947 DEBUG [c.c.s.StatsCollector] 
(StatsCollector-5:ctx-c7e24e1f) (logid:d16881a3) HostStatsCollector is 
running...
2021-09-14 21:43:06,826 DEBUG [c.c.u.s.SSHCmdHelper] 
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) SSH 
command: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup 
/etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/

SSH command output:
cat: /etc/cloudstack/agent/cloud.csr: No such file or directory
chmod: cannot access ‘/etc/cloudstack/agent/cloud.csr’: No such file or 
directory


2021-09-14 21:43:06,826 DEBUG [c.c.u.s.SSHCmdHelper] 
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Executing 
cmd: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup 
/etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
2021-09-14 21:43:09,204 DEBUG [c.c.u.s.SSHCmdHelper] 
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) SSH 
command: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup 
/etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/

SSH command output:
cat: /etc/cloudstack/agent/cloud.csr: No such file or directory
chmod: cannot access ‘/etc/cloudstack/agent/cloud.csr’: No such file or 
directory


2021-09-14 21:43:09,205 WARN  [c.c.h.k.d.LibvirtServerDiscoverer] 
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) can't 
setup agent, due to com.cloud.utils.exception.CloudRuntimeException: 
Failed to setup keystore on the KVM host: 10.66.100.50 - Failed to setup 
keystore on the KVM host: 10.66.100.50
2021-09-14 21:43:09,206 WARN  [c.c.r.ResourceManagerImpl] 
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Unable to 
find the server resources at http://10.66.100.50
2021-09-14 21:43:09,206 INFO  [c.c.u.e.CSExceptionErrorCode] 
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Could not 
find exception: com.cloud.exception.DiscoveryException in error code 
list for exceptions
2021-09-14 21:43:09,212 WARN  [o.a.c.a.c.a.h.AddHostCmd] 
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Exception:

com.cloud.exception.DiscoveryException: Unable to add the host
    at 
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:825)
    at 
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:611)
    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.$Proxy192.discoverHosts(Unknown Source)
    at 
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:142)

    at 

Re: Hi (Again)

2021-09-14 Thread Michael Brußk
Hi,

There is an open PR for that
https://github.com/apache/cloudstack/pull/5207

Regards,
Michael

Am 14. September 2021 10:40:27 MESZ schrieb Michael Kesper 
:
>Hi all,
>
>Am 13.09.21 um 13:20 schrieb Paul Angus:
>> Hey All,
>> 
>> So, I’ve moved over to the Dark Side, and I’m now purely a user of 
>> CloudStack with Ticketmaster/Live Nation.  I’m mostly going to be all about 
>> breaking things rather than fixing them 
>> 
>> …Starting off with:  As root admin I can list all VMs including ones in 
>> projects via cmk -list virtualmachines projectid=-1
>> Is there a way to do the same in the UI?
>
>Yes, that would really be great.
>
>Would also be very useful to be able to see all instances on hypervisors.
>Image you have customer-prod1 and customer-prod2 instances, you might miss 
>ones of them and reboot your HV...
>
>Best wishes
>Michael


Re: Groovy Script error while changing guest cpu model.

2021-09-14 Thread Wei ZHOU
Hi,

There is a typo.  you should use 'guest.cpu.mode' not 'guest.cpu.model'.

-Wei

On Tue, 14 Sept 2021 at 10:40, avi  wrote:

> Hello Wei,
>
> I have the following agent properties on both the host:
>
> cluster=1
> pod=1
> resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
> private.network.device=cloudbr0
> domr.scripts.dir=scripts/network/domr/kvm
> router.aggregation.command.each.timeout=600
> guest.network.device=cloudbr1
> guest.cpu.model=host-passthrough
> keystore.passphrase=6sqeDqWNbnb5wer
> hypervisor.type=kvm
> port=8250
> zone=1
> public.network.device=cloudbr1
> local.storage.uuid=34c08c2b-8cd4-43b0-a6a1-205ca6d449e0
> host=x.x.x.x@static
> guid=8880b099-e99c-3012-afc6-d1a365f08991
> LibvirtComputingResource.id=1
> workers=5
> iscsi.session.cleanup.enabled=false
>
> Thank You.
>
> On 2021/09/13 12:00:00, Wei ZHOU  wrote:
> > Hi Abishek,
> >
> > It is better to share your agent.properties
> >
> > -Wei
> >
> > On Mon, 13 Sept 2021 at 13:39, avi  wrote:
> >
> > > Hello Ivan,
> > >
> > > But I am still getting qemu virtual cpu in guest VM's(Windows). Did
> > > everything as documented. I want the VM's to have same CPU as the host
> > > machines Will it be possible?
> > >
> > > Thank You.
> > >
> > > On 2021/09/13 07:55:39, Ivan Kudryavtsev  wrote:
> > > > That is just fine. Go ahead, it's not an error.
> > > >
> > > > On Mon, Sep 13, 2021 at 2:24 PM avi  wrote:
> > > >
> > > > > Hello All,
> > > > >
> > > > > I am using cloudstack 4.15.1 with KVM host. I was playing with
> changing
> > > > > guest cpu model and tested out
> > > > > host-passthrough and host-model but I was unable to succed. I
> changed
> > > the
> > > > > parameter in the agent config file as documented but I received
> > > following
> > > > > error on both hosts:
> > > > >  12:07:43,928 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > > > > (agentRequest-Handler-5:null) (logid:a59f3a95) Trying to fetch
> storage
> > > pool
> > > > > 0420bb0c-6e77-3a53-994a-8907905cd465 from libvirt
> > > > >  12:07:44,092 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > > > > (agentRequest-Handler-5:null) (logid:a59f3a95) Trying to fetch
> storage
> > > pool
> > > > > 0420bb0c-6e77-3a53-994a-8907905cd465 from libvirt
> > > > >  12:07:44,309 WARN  [kvm.resource.LibvirtKvmAgentHook]
> > > > > (agentRequest-Handler-5:null) (logid:a59f3a95) Groovy script
> > > > > '/etc/cloudstack/agent/hooks/libvirt-vm-xml-transformer.groovy' is
> not
> > > > > available. Transformations will not be applied.
> > > > >  12:07:44,309 WARN  [kvm.resource.LibvirtKvmAgentHook]
> > > > > (agentRequest-Handler-5:null) (logid:a59f3a95) Groovy scripting
> engine
> > > is
> > > > > not initialized. Data transformation skipped.
> > > > >  12:07:44,800 WARN  [kvm.resource.LibvirtKvmAgentHook]
> > > > > (agentRequest-Handler-5:null) (logid:a59f3a95) Groovy script
> > > > > '/etc/cloudstack/agent/hooks/libvirt-vm-state-change.groovy' is not
> > > > > available. Transformations will not be applied.
> > > > >  12:07:44,801 WARN  [kvm.resource.LibvirtKvmAgentHook]
> > > > > (agentRequest-Handler-5:null) (logid:a59f3a95) Groovy scripting
> engine
> > > is
> > > > > not initialized. Data transformation skipped.
> > > > >
> > > > > I only changed the option guest.cpu.mode in the agent file of both
> > > host.
> > > > > And restarted the agent and libvirtd. The host os is Centos 7. The
> > > machine
> > > > > starts sucessfully but the cpu is still set to qemu virtual cpu.
> Did I
> > > miss
> > > > > something during the configuration. Both the KVM host are of same
> > > > > specification.
> > > > > I will be grateful for any help.
> > > > >
> > > > > Thank You.
> > > > >
> > > > >
> > > >
> > >
> >
>


Re: 4.16.0.0 release

2021-09-14 Thread Rohit Yadav
Hi Ahmed,

Our 4.16 RM Nicolas is simply reminding (mainly devs) about the possibility of 
cutting a RC soon (as he has previously shared his tentative/soft plan of 
cutting RC around the end of Sept) and asking if there are any specific 
issues/pull requests that should be included towards the 4.16.0.0 milestone. 
Here the "issues" are generally interpreted as something 
blocker/critical/essential towards the release, rather than a new feature/idea 
that someone in the community wants.

The process of requesting new features/ideas with the project is to raise a 
ticket here: https://github.com/apache/cloudstack/issues/new and hope it will 
be picked by somebody in the future if you're not going to work on it yourself. 
Any pull requests or discussions are also welcome on dev@ ML.


Regards.


From: Andrija Panic 
Sent: Tuesday, September 14, 2021 14:04
To: users 
Cc: dev 
Subject: Re: 4.16.0.0 release

Hi Ahmed,

please do not take me wrong - you can not "order" things - this is a
community project - people will implement new features when they need it
(or if somebody pays for it) - so it's "developed when needed".

I do understand your concerns, some improvements are possible - but you
should also know that your NETWORK infrastructure should be the one
blocking DDOS and other network attacks - NOT the end-point
servers/software, this is what every serious company/provider will do.

Best,
Andrija


 

On Mon, 13 Sept 2021 at 23:42, ahmed jabbar  wrote:

> Hi Nicolas,
> It will be better if you add 2FA function in this version due cyber
> security issues,
> And reCapcha connector also.
> CVM & SSVM need to be secured from DDOS attack with auto block ip sources
> configuration ,
> One of our CVM faced many times DDOS attacks with no configuration
> possibilities to auto block sources ip of attacker,
> Management UI can be secured by Cloudflare also ip table of management can
> be configured for various types of actions but CVM can’t secured by
> Cloudflare proxy.
> BR
> Ahmed.
>
> > On 13 Sep 2021, at 10:44 PM, Nicolas Vazquez <
> nicolas.vazq...@shapeblue.com> wrote:
> >
> > Hi All,
> >
> > We are looking forward to cutting RC1 soon. Kindly share or ping me this
> week if there are any issues or pull requests that we should include in
> 4.16.0.0.
> >
> >
> > Regards,
> >
> > Nicolas Vazquez
> >
> >
> >
>


--

Andrija Panić


Re: Groovy Script error while changing guest cpu model.

2021-09-14 Thread avi
Hello Wei,

I have the following agent properties on both the host:

cluster=1
pod=1
resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
private.network.device=cloudbr0
domr.scripts.dir=scripts/network/domr/kvm
router.aggregation.command.each.timeout=600
guest.network.device=cloudbr1
guest.cpu.model=host-passthrough
keystore.passphrase=6sqeDqWNbnb5wer
hypervisor.type=kvm
port=8250
zone=1
public.network.device=cloudbr1
local.storage.uuid=34c08c2b-8cd4-43b0-a6a1-205ca6d449e0
host=x.x.x.x@static
guid=8880b099-e99c-3012-afc6-d1a365f08991
LibvirtComputingResource.id=1
workers=5
iscsi.session.cleanup.enabled=false

Thank You.

On 2021/09/13 12:00:00, Wei ZHOU  wrote: 
> Hi Abishek,
> 
> It is better to share your agent.properties
> 
> -Wei
> 
> On Mon, 13 Sept 2021 at 13:39, avi  wrote:
> 
> > Hello Ivan,
> >
> > But I am still getting qemu virtual cpu in guest VM's(Windows). Did
> > everything as documented. I want the VM's to have same CPU as the host
> > machines Will it be possible?
> >
> > Thank You.
> >
> > On 2021/09/13 07:55:39, Ivan Kudryavtsev  wrote:
> > > That is just fine. Go ahead, it's not an error.
> > >
> > > On Mon, Sep 13, 2021 at 2:24 PM avi  wrote:
> > >
> > > > Hello All,
> > > >
> > > > I am using cloudstack 4.15.1 with KVM host. I was playing with changing
> > > > guest cpu model and tested out
> > > > host-passthrough and host-model but I was unable to succed. I changed
> > the
> > > > parameter in the agent config file as documented but I received
> > following
> > > > error on both hosts:
> > > >  12:07:43,928 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > > > (agentRequest-Handler-5:null) (logid:a59f3a95) Trying to fetch storage
> > pool
> > > > 0420bb0c-6e77-3a53-994a-8907905cd465 from libvirt
> > > >  12:07:44,092 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > > > (agentRequest-Handler-5:null) (logid:a59f3a95) Trying to fetch storage
> > pool
> > > > 0420bb0c-6e77-3a53-994a-8907905cd465 from libvirt
> > > >  12:07:44,309 WARN  [kvm.resource.LibvirtKvmAgentHook]
> > > > (agentRequest-Handler-5:null) (logid:a59f3a95) Groovy script
> > > > '/etc/cloudstack/agent/hooks/libvirt-vm-xml-transformer.groovy' is not
> > > > available. Transformations will not be applied.
> > > >  12:07:44,309 WARN  [kvm.resource.LibvirtKvmAgentHook]
> > > > (agentRequest-Handler-5:null) (logid:a59f3a95) Groovy scripting engine
> > is
> > > > not initialized. Data transformation skipped.
> > > >  12:07:44,800 WARN  [kvm.resource.LibvirtKvmAgentHook]
> > > > (agentRequest-Handler-5:null) (logid:a59f3a95) Groovy script
> > > > '/etc/cloudstack/agent/hooks/libvirt-vm-state-change.groovy' is not
> > > > available. Transformations will not be applied.
> > > >  12:07:44,801 WARN  [kvm.resource.LibvirtKvmAgentHook]
> > > > (agentRequest-Handler-5:null) (logid:a59f3a95) Groovy scripting engine
> > is
> > > > not initialized. Data transformation skipped.
> > > >
> > > > I only changed the option guest.cpu.mode in the agent file of both
> > host.
> > > > And restarted the agent and libvirtd. The host os is Centos 7. The
> > machine
> > > > starts sucessfully but the cpu is still set to qemu virtual cpu. Did I
> > miss
> > > > something during the configuration. Both the KVM host are of same
> > > > specification.
> > > > I will be grateful for any help.
> > > >
> > > > Thank You.
> > > >
> > > >
> > >
> >
> 


Re: Hi (Again)

2021-09-14 Thread Michael Kesper
Hi all,

Am 13.09.21 um 13:20 schrieb Paul Angus:
> Hey All,
> 
> So, I’ve moved over to the Dark Side, and I’m now purely a user of CloudStack 
> with Ticketmaster/Live Nation.  I’m mostly going to be all about breaking 
> things rather than fixing them 
> 
> …Starting off with:  As root admin I can list all VMs including ones in 
> projects via cmk -list virtualmachines projectid=-1
> Is there a way to do the same in the UI?

Yes, that would really be great.

Would also be very useful to be able to see all instances on hypervisors.
Image you have customer-prod1 and customer-prod2 instances, you might miss ones 
of them and reboot your HV...

Best wishes
Michael


Re: 4.16.0.0 release

2021-09-14 Thread Andrija Panic
Hi Ahmed,

please do not take me wrong - you can not "order" things - this is a
community project - people will implement new features when they need it
(or if somebody pays for it) - so it's "developed when needed".

I do understand your concerns, some improvements are possible - but you
should also know that your NETWORK infrastructure should be the one
blocking DDOS and other network attacks - NOT the end-point
servers/software, this is what every serious company/provider will do.

Best,
Andrija

On Mon, 13 Sept 2021 at 23:42, ahmed jabbar  wrote:

> Hi Nicolas,
> It will be better if you add 2FA function in this version due cyber
> security issues,
> And reCapcha connector also.
> CVM & SSVM need to be secured from DDOS attack with auto block ip sources
> configuration ,
> One of our CVM faced many times DDOS attacks with no configuration
> possibilities to auto block sources ip of attacker,
> Management UI can be secured by Cloudflare also ip table of management can
> be configured for various types of actions but CVM can’t secured by
> Cloudflare proxy.
> BR
> Ahmed.
>
> > On 13 Sep 2021, at 10:44 PM, Nicolas Vazquez <
> nicolas.vazq...@shapeblue.com> wrote:
> >
> > Hi All,
> >
> > We are looking forward to cutting RC1 soon. Kindly share or ping me this
> week if there are any issues or pull requests that we should include in
> 4.16.0.0.
> >
> >
> > Regards,
> >
> > Nicolas Vazquez
> >
> >
> >
>


-- 

Andrija Panić


bash: /opt/cloud/bin/keystore-setup: No such file or directory

2021-09-14 Thread cristian.c
I do not understand anymore what is wrong with this KVM setup, now I try to
rebuild again the Secondary storage and console because the virtual router
is not working but I get a different error "bash:
/opt/cloud/bin/keystore-setup: No such file or directory"

 

021-09-14 07:06:39,255 DEBUG [cloud.agent.Agent]
(agentRequest-Handler-4:null) (logid:defd9839) Processing command:
org.apache.cloudstack.ca.SetupKeyStoreCommand

2021-09-14 07:06:39,256 DEBUG [kvm.resource.LibvirtComputingResource]
(agentRequest-Handler-4:null) (logid:defd9839) Executing:
/usr/share/cloudstack-common/scripts/network/domr/router_proxy.sh
keystore-setup 169.254.61.247
/usr/local/cloud/systemvm/conf/agent.properties
/usr/local/cloud/systemvm/conf/

2021-09-14 07:06:39,257 DEBUG [kvm.resource.LibvirtComputingResource]
(agentRequest-Handler-4:null) (logid:defd9839) Executing while with timeout
: 90

2021-09-14 07:06:39,447 DEBUG [kvm.resource.LibvirtComputingResource]
(agentRequest-Handler-4:null) (logid:defd9839) Exit value is 127

2021-09-14 07:06:39,448 DEBUG [kvm.resource.LibvirtComputingResource]
(agentRequest-Handler-4:null) (logid:defd9839) bash:
/opt/cloud/bin/keystore-setup: No such file or directory

2021-09-14 07:06:39,448 DEBUG [kvm.resource.LibvirtComputingResource]
(agentRequest-Handler-4:null) (logid:defd9839) Executing script in VR:
keystore-setup

2021-09-14 07:06:39,449 DEBUG [cloud.agent.Agent]
(agentRequest-Handler-4:null) (logid:defd9839) Seq
106277-3015159950524547147:  { Ans: , MgmtId: 345048618557, via: 106277,
Ver: v1, Flags: 10,
[{"org.apache.cloudstack.ca.SetupKeystoreAnswer":{"result":"true","wait":"0"
,"bypassHostMaintenance":"false"}}] }

 

 

Is this a bug?   I deleted the templated and added again,  the system
template is 4.15.1 KVM like the cloudstack version.

 

 

BTW, I have the same version of KVM but in a cluster, and the systemvms are
hosted on vmware, I do not have any problems with that one for instances but
I didn't tested for system vms.

 

 

Thank you