Re: VM serialnumber in KVM

2024-06-12 Thread Wei ZHOU
I tried the following

- stop the vm
- enable extra config in global setting "enable.additional.vm.configuration"
- change account setting "allow.additional.vm.configuration.list.kvm"
to "sysinfo,system,entry", of course you can change global or domain
settings.
- update extra config of vm
cmk update virtualmachine id=2446f9d9-83ad-4b4c-bf3e-df041a390fcf
extraconfig="   MISERIAL  "
- start the vm

vm has the following setting, which looks ok


  

  MISERIAL

  
  

  Apache Software Foundation
  CloudStack KVM Hypervisor
  2446f9d9-83ad-4b4c-bf3e-df041a390fcf

  



-Wei

On Wed, Jun 12, 2024 at 4:47 PM Francisco Arencibia Quesada
 wrote:
>
> I tried with this but it stuck libvirt
> https://github.com/atomspring/KVM-BIOS-SerialNo
> :(
>
> On Wed, Jun 12, 2024 at 9:59 AM Francisco Arencibia Quesada <
> arencibia.franci...@gmail.com> wrote:
>
> > yes that would be great.
> >
> > On Wed, Jun 12, 2024 at 9:58 AM Wido den Hollander  wrote:
> >
> >> (Back to the list)
> >>
> >> Op 12/06/2024 om 09:56 schreef Francisco Arencibia Quesada:
> >> > I need to set the serial number, manually, or automatically but it
> >> needs
> >> > to be sticky, licensing purposes.
> >>
> >> If CloudStack would always set the same serial for the same VM, would
> >> that be OK?
> >>
> >> Wido
> >>
> >> >
> >> > :)
> >> >
> >> > On Wed, Jun 12, 2024 at 9:50 AM Wido den Hollander  >> > > wrote:
> >> >
> >> >
> >> >
> >> > Op 11/06/2024 om 16:29 schreef Francisco Arencibia Quesada:
> >> >  > Good morning guys,
> >> >  >
> >> >  > When I run on Windows wmic bios get serialnumber, I receive a
> >> > blank serial
> >> >  > number, I have tried
> >> >  > running virsh edit VM, and setting :
> >> >  >
> >> >  > 
> >> >  >
> >> >  >  Apache Software
> >> Foundation
> >> >  >  CloudStack KVM Hypervisor
> >> >  >  MISERIAL
> >> >  >   >> name='uuid'>166f6f56-a8a3-4ab9-82f3-467bf90b0126
> >> >  >
> >> >  > 
> >> >  >
> >> >  > but still the same.
> >> >  > Any guidance? For us it is important to have the serial number
> >> > field for
> >> >  > licensing purposes.
> >> >  >
> >> >
> >> > Do you want to be able to set the serialnumber manually or could the
> >> > UUID be sufficient here?
> >> >
> >> > Wido
> >> >
> >> >  > Thanks in advance.
> >> >  > Regards
> >> >  >
> >> >
> >> >
> >> >
> >> > --
> >> > *Francisco Arencibia Quesada.*
> >> > *DevOps Engineer*
> >>
> >
> >
> > --
> > *Francisco Arencibia Quesada.*
> > *DevOps Engineer*
> >
>
>
> --
> *Francisco Arencibia Quesada.*
> *DevOps Engineer*


Re: VM serialnumber in KVM

2024-06-11 Thread Wei ZHOU
I think you can add extraconfig to the vm

   
 
  MISERIAL

  


-Wei



On Tue, Jun 11, 2024 at 4:29 PM Francisco Arencibia Quesada
 wrote:
>
> Good morning guys,
>
> When I run on Windows wmic bios get serialnumber, I receive a blank serial
> number, I have tried
> running virsh edit VM, and setting :
>
> 
>   
> Apache Software Foundation
> CloudStack KVM Hypervisor
> MISERIAL
> 166f6f56-a8a3-4ab9-82f3-467bf90b0126
>   
> 
>
> but still the same.
> Any guidance? For us it is important to have the serial number field for
> licensing purposes.
>
> Thanks in advance.
> Regards
>
> --
> *Francisco Arencibia Quesada.*
> *DevOps Engineer*


Re: [PROPOSE] RM for cloudstack-kubernetes-provider v1.1.0

2024-06-11 Thread Wei ZHOU
Thanks Vishesh for the volunteering.
There was no cloudstack-kubernetes-provider release in the past 3
years, glad to see there are some new commits in the last weeks. Great
job !

no specific PRs/issues are needed for me.
looking forward to the new release


-Wei


On Tue, Jun 11, 2024 at 11:26 AM Vishesh Jindal
 wrote:
>
> Hi all,
>
> Cloudstack kuberentes provider is due for a release since the last release 
> was in 2021. I would like to propose myself as a Release Manager for the 
> v1.1.0 release.
>
> You can check the PRs merged since the last release here: 
> https://github.com/apache/cloudstack-kubernetes-provider/compare/v1.0.0...main
>
> Let me know if there is any specific issue/PR which needs to be addressed. If 
> there are no additional changes, I will cut an RC next week.
>
> Thanks!
> Vishesh
>
>
>


Re: [Proposal] Storage Filesystem as a First Class Feature

2024-06-06 Thread Wei ZHOU
> @Wei Zhou If the network into which the StorageVM runs IPv6 (as per your 
> implementation of IPv6) it should automatically get an IPv6 IP, correct?

yes,it should get Ipv6 addr advertised by cloudstack VR. @Alexblue.com
we need to make sure IPv6 is enabled in the storagefs vm (Ipv6 is
disabled by default in systemvm template as far as I know), and proper
firewall rules are applied.

> @Wido den Hollander @Wei ZhouHow much effort do you guys thing it would it 
> take to add support to VirtioFS?  I'm not super aware of it, what would the 
> benefits be? (I've quickly looked at Wido's links, but I rather get info from 
> you guys directly).
I see the benefits . However I do not know a strong use case of it.
maybe @wido can advise ?

On Thu, Jun 6, 2024 at 11:01 AM Alex Mattioli
 wrote:
>
>
> @Wei Zhou If the network into which the StorageVM runs IPv6 (as per your 
> implementation of IPv6) it should automatically get an IPv6 IP, correct?
>
> @Wido den Hollander @Wei ZhouHow much effort do you guys thing it would it 
> take to add support to VirtioFS?  I'm not super aware of it, what would the 
> benefits be? (I've quickly looked at Wido's links, but I rather get info from 
> you guys directly).
>
> Cheers
> Alex
>
>
>
>
> -Original Message-
> From: Wei ZHOU 
> Sent: Thursday, June 6, 2024 10:50 AM
> To: d...@cloudstack.apache.org
> Cc: Abhisar Sinha 
> Subject: Re: [Proposal] Storage Filesystem as a First Class Feature
>
> Hi Wido,
>
> Thanks for your feedback.
>
> It is a great idea to support virtio-fs. We could add VIRTIOFS as a valid 
> value of enum ExportProtocol, and implement it in a separate plugin in the 
> future.
> Have you tested virtio-fs before ? Could you share more info if possible?
> - is it supported by libvirt-java ?
> - does it support hot plug or hot unplug ?
>
> I agree with you that we should consider IPv6 (ip and firewall rules) in 
> storagefs vm.
> cc abhisar.si...@shapeblue.com
>
>
> Kind regards,
> Wei
>
> On Thu, Jun 6, 2024 at 6:43 AM Wido den Hollander  
> wrote:
> >
> >
> >
> > Op 04/06/2024 om 06:04 schreef Abhisar Sinha:
> > > Hi,
> > >
> > > I would like to propose supporting storage filesystem as a first-class 
> > > feature in Cloudstack.
> > > The File Share can be associated with one or more guest networks or vpc 
> > > tiers and can be used by any VM on the network in a shared manner. It is 
> > > designed to be resizable and highly available. This feature can later be 
> > > used as integration endpoints with the CSI driver, go-sdk, Terraform, 
> > > Ansible and others.
> > >
> > > The draft functional spec is here :
> > > https://cwiki.apache.org/confluence/display/CLOUDSTACK/Storage+Files
> > > ystem+as+a+First+Class+Feature
> > >
> > > Looking forward to your comments and suggestions.
> > >
> >
> > I think this is great! Especially the Storage VM. Few things to keep
> > in
> > mind:
> >
> > - Have we thought about passthrough of FileSystems coming from the HV
> > and being passed through to the VM [0]
> > - The StorageFsVm, can we make sure it supports IPv6 from the start,
> > best would be if it. Make sure all the code at least supports this for
> > ACLs and such. The VM itself should obtain an IPv6 address when
> > possible and open the proper ports in it's firewall
> >
> > Wido
> >
> > [0]:
> > - https://virtio-fs.gitlab.io/
> > - https://chrisirwin.ca/posts/sharing-host-files-with-kvm/
> >
> >
> > > Thanks,
> > > Abhisar
> > >
> > >
> > >
> > >


Re: System VM static IPs

2024-06-04 Thread Wei ZHOU
As Nischal said, currently ACS does not reserve IPs for system vms. The
workaround is, create or dedicate a public Ip range (with at least 2 IPs)
to system vms.

I think it is a valid feature request to reserve IPs (not ip range) for
system vms. But we also need to consider what if some users want to change
the system vm IPs (to a random public ip or specific public ip)

-Wei

On Tuesday, June 4, 2024, Marty Godsey  wrote:

> Hello Nischal,
>
> That’s why I ask about reservations; it doesn’t. For example, I destroyed
> and recreated a console proxy yesterday, and when it was recreated, it
> grabbed another IP. I am 100% confident that the IP that it just had about
> 30 seconds prior was not taken by a customer.
>
> This is a 4.19.0.1 install. If this is not normal behavior, where can I
> look to troubleshoot this?
>
> From: Nischal P 
> Date: Tuesday, June 4, 2024 at 9:51 AM
> To: users@cloudstack.apache.org 
> Subject: Re: System VM static IPs
> WARNING: This email originated from outside of the organization. Do not
> click links or open attachments unless you recognize the sender and know
> the content is safe.
>
>
> Hi Wei,
>
> We won't be able to reserve for specific systems, but we do reserve 2 IPs
> which would be used for SSVM and CPVM, the only thing we follow is that we
> Destroy 1 systemVM at a time so that it would take the same IP each time.
>
>
> Thanks & Regards
> Nischal
>
> On Tue, 4 Jun, 2024, 3:49 pm Wei ZHOU,  wrote:
>
> > This should works.
> > I am wondering if we can reserve specific IP for system vms, like ACS
> does
> > for virtual routers.
> >
> > -Wei
> >
> >
> > On Tuesday, June 4, 2024, Nischal P  wrote:
> >
> > > HI Marty
> > >
> > > You could technically reserve the IPs for System VMs to grab the IPs
> > using
> > > the DB, by updating the table  user_ip_address
> > >
> > > update user_ip_address set forsystemvms=1 where
> > > public_ip_address='172.16.16.171';
> > >
> > > Please remember if you reserve more  IPs for SystemVms they may pick up
> > any
> > > in that reserved list.
> > >
> > >
> > > Thanks & Regards
> > > Nischal
> > >
> > > On Tue, Jun 4, 2024 at 12:18 PM Marty Godsey  wrote:
> > >
> > > > When the system vms boot they are given an IP like
> > > 22-76-87-56.domain.com.
> > > > Is this able to be changed.
> > > > 
> > > > From: Wei ZHOU 
> > > > Sent: Tuesday, June 4, 2024 1:29:40 AM
> > > > To: users@cloudstack.apache.org 
> > > > Cc: Marty Godsey 
> > > > Subject: Re: System VM static IPs
> > > >
> > > >
> > > > WARNING: This email originated from outside of the organization. Do
> not
> > > > click links or open attachments unless you recognize the sender and
> > know
> > > > the content is safe.
> > > >
> > > >
> > > > When system vms are destroyed, ACS will recreate new system vms.
> Mostly
> > > > new vms will get the same IPs. However, if the IPs are allocated
> during
> > > the
> > > > period, new vms will get different IPs.
> > > >
> > > > In this case, If users do not use wildcard DNS, they have to update
> the
> > > > DNS records.
> > > >
> > > > -Wei
> > > >
> > > >
> > > > On Tuesday, June 4, 2024, Wido den Hollander  >
> > > > wrote:
> > > >
> > > >
> > > > Op 04/06/2024 om 06:29 schreef Marty Godsey:
> > > > Hello All,
> > > >
> > > > I want the system VMs always to grab the same IP.  Is this possible?
> > > >
> > > >
> > > > What is it that you want to achieve exactly? Why do you want/need
> this?
> > > >
> > > > Wido
> > > >
> > >
> >
>


Re: System VM static IPs

2024-06-04 Thread Wei ZHOU
This should works.
I am wondering if we can reserve specific IP for system vms, like ACS does
for virtual routers.

-Wei


On Tuesday, June 4, 2024, Nischal P  wrote:

> HI Marty
>
> You could technically reserve the IPs for System VMs to grab the IPs using
> the DB, by updating the table  user_ip_address
>
> update user_ip_address set forsystemvms=1 where
> public_ip_address='172.16.16.171';
>
> Please remember if you reserve more  IPs for SystemVms they may pick up any
> in that reserved list.
>
>
> Thanks & Regards
> Nischal
>
> On Tue, Jun 4, 2024 at 12:18 PM Marty Godsey  wrote:
>
> > When the system vms boot they are given an IP like
> 22-76-87-56.domain.com.
> > Is this able to be changed.
> > 
> > From: Wei ZHOU 
> > Sent: Tuesday, June 4, 2024 1:29:40 AM
> > To: users@cloudstack.apache.org 
> > Cc: Marty Godsey 
> > Subject: Re: System VM static IPs
> >
> >
> > WARNING: This email originated from outside of the organization. Do not
> > click links or open attachments unless you recognize the sender and know
> > the content is safe.
> >
> >
> > When system vms are destroyed, ACS will recreate new system vms. Mostly
> > new vms will get the same IPs. However, if the IPs are allocated during
> the
> > period, new vms will get different IPs.
> >
> > In this case, If users do not use wildcard DNS, they have to update the
> > DNS records.
> >
> > -Wei
> >
> >
> > On Tuesday, June 4, 2024, Wido den Hollander 
> > wrote:
> >
> >
> > Op 04/06/2024 om 06:29 schreef Marty Godsey:
> > Hello All,
> >
> > I want the system VMs always to grab the same IP.  Is this possible?
> >
> >
> > What is it that you want to achieve exactly? Why do you want/need this?
> >
> > Wido
> >
>


Re: System VM static IPs

2024-06-03 Thread Wei ZHOU
When system vms are destroyed, ACS will recreate new system vms. Mostly new
vms will get the same IPs. However, if the IPs are allocated during the
period, new vms will get different IPs.

In this case, If users do not use wildcard DNS, they have to update the DNS
records.

-Wei


On Tuesday, June 4, 2024, Wido den Hollander  wrote:

>
>
> Op 04/06/2024 om 06:29 schreef Marty Godsey:
>
>> Hello All,
>>
>> I want the system VMs always to grab the same IP.  Is this possible?
>>
>>
> What is it that you want to achieve exactly? Why do you want/need this?
>
> Wido
>


Re: ostypedid not longer available on list volumes and list snapshots

2024-05-30 Thread Wei ZHOU
Slavka has created a pr for it
https://github.com/apache/cloudstack/pull/9150



On Thursday, May 30, 2024, Ricardo Pertuz 
wrote:

> guys any advice?, we have an api integration that uses the ostypeid read
> from the volumes and snapshots but the field is not longer available :(
>
>
> Atte,
>
> Ricardo Pertuz
>
>
> On 29 May 2024 at 5:46 PM -0500, Ricardo Pertuz 
> ,
> wrote:
> > Hi Guys
> >
> > Since version 4.19 the field ostypeid is no longer available when
> listing volumes and snapshots, is there a way to add those field in the
> json result.
> >
> >
> > Atte,
> >
> > Ricardo Pertuz
> >
> >
>


Re: HA for management server

2024-05-30 Thread Wei ZHOU
good to know it. Thanks for sharing.
It is better to update the cloudstack document.

-Wei

On Thu, May 30, 2024 at 1:22 PM Alexandru Stan
 wrote:
>
> I did not change anything on that file until today when I modified that 
> driver and all was fine after - so following that documentation for multiple 
> management servers deployment results in fail if we leave it with the 
> defaults. So I don't have an issue anymore, the HA is handled by galera for 
> the DB and by a load balancer for the management server instance. It works 
> fine.
>
>
> -Original Message-
> From: Wei ZHOU 
> Sent: Thursday, May 30, 2024 1:12 PM
> To: users@cloudstack.apache.org
> Subject: Re: HA for management server
>
> I thought you did not change the db.properties.
>
> if you use mariadb driver, you can use "db.cloud.uri".
> the failover mode is not supported in db.properties, which could be the root 
> cause of your issue 
> https://mariadb.com/kb/en/failover-and-high-availability-with-mariadb-connector-j/
>
>
> -Wei
>
>
> On Thu, May 30, 2024 at 11:48 AM Alexandru Stan 
>  wrote:
> >
> > Hello,
> >
> > I actually managed to get it to work just by modifying the db.cloud.driver 
> > in db.properties on the management servers to jdbc:mariadb instead of the 
> > default jdbc:mysql. Maybe I didn't search properly but I really think this 
> > is not mentioned in any documentation of multi-management servers 
> > deployment. Anyway, all good now.
> >
> > Thank you!
> >
> >
> >
> > -Original Message-
> > From: Wei ZHOU 
> > Sent: Wednesday, May 29, 2024 11:29 PM
> > To: users@cloudstack.apache.org
> > Subject: Re: HA for management server
> >
> > Looks good
> > Can you try db.cloud.uri in db.properties?
> > See https://github.com/apache/cloudstack/pull/7895
> >
> > -Wei
> >
> >
> > On Wednesday, May 29, 2024, Alexandru Stan 
> >  wrote:
> >
> > > Yes. On the first management server with --deploy-as=root:password
> > > and on the second one without. All successful. The I ran
> > > cloudstack-setup-management and that was it. But in the browser I
> > > get the
> > > 503 error...
> > >
> > >
> > > -Original Message-
> > > From: Wei ZHOU 
> > > Sent: Wednesday, May 29, 2024 11:20 PM
> > > To: users@cloudstack.apache.org
> > > Subject: Re: HA for management server
> > >
> > > Have you setup the database by cloudstack-setup-database?
> > >
> > >
> > >
> > > On Wednesday, May 29, 2024, Alexandru Stan
> > > 
> > > wrote:
> > >
> > > > Yes, I can login with the cloud user just fine via the virtual ip.
> > > >
> > > >
> > > > -Original Message-
> > > > From: Wei ZHOU 
> > > > Sent: Wednesday, May 29, 2024 10:45 PM
> > > > To: users@cloudstack.apache.org
> > > > Subject: Re: HA for management server
> > > >
> > > > Yes.
> > > > Are you able to access the db vip or the two db nodes using mysql
> > > > command from management server?
> > > >
> > > >
> > > >
> > > > On Wednesday, May 29, 2024, Alexandru Stan
> > > > 
> > > > wrote:
> > > >
> > > > > You're right. This is the actual problem:
> > > > >
> > > > > Caused by: com.cloud.utils.exception.CloudRuntimeException:
> > > > > Unable to initialize a connection to the database for locking
> > > > > purposes Caused
> > > > > by: java.sql.SQLNonTransientConnectionException: Could not
> > > > > create connection to database server. Attempted reconnect 3 times. 
> > > > > Giving up.
> > > > >
> > > > > But everything seems right in the db.properties file. The host
> > > > > should be the virtual ip of the load balancer, right?
> > > > >
> > > > >
> > > > > -Original Message-
> > > > > From: Wei ZHOU 
> > > > > Sent: Wednesday, May 29, 2024 10:28 PM
> > > > > To: users@cloudstack.apache.org
> > > > > Subject: Re: HA for management server
> > > > >
> > > > > Hi,
> > > > >
> > > > > The exception is misleading
> > > > >
> > > > > You can check the real exception by grep Exception
> > > > > management-server.log | grep -v 

Re: HA for management server

2024-05-30 Thread Wei ZHOU
I thought you did not change the db.properties.

if you use mariadb driver, you can use "db.cloud.uri".
the failover mode is not supported in db.properties, which could be
the root cause of your issue
https://mariadb.com/kb/en/failover-and-high-availability-with-mariadb-connector-j/


-Wei


On Thu, May 30, 2024 at 11:48 AM Alexandru Stan
 wrote:
>
> Hello,
>
> I actually managed to get it to work just by modifying the db.cloud.driver in 
> db.properties on the management servers to jdbc:mariadb instead of the 
> default jdbc:mysql. Maybe I didn't search properly but I really think this is 
> not mentioned in any documentation of multi-management servers deployment. 
> Anyway, all good now.
>
> Thank you!
>
>
>
> -Original Message-
> From: Wei ZHOU 
> Sent: Wednesday, May 29, 2024 11:29 PM
> To: users@cloudstack.apache.org
> Subject: Re: HA for management server
>
> Looks good
> Can you try db.cloud.uri in db.properties?
> See https://github.com/apache/cloudstack/pull/7895
>
> -Wei
>
>
> On Wednesday, May 29, 2024, Alexandru Stan 
>  wrote:
>
> > Yes. On the first management server with --deploy-as=root:password and
> > on the second one without. All successful. The I ran
> > cloudstack-setup-management and that was it. But in the browser I get
> > the
> > 503 error...
> >
> >
> > -Original Message-
> > From: Wei ZHOU 
> > Sent: Wednesday, May 29, 2024 11:20 PM
> > To: users@cloudstack.apache.org
> > Subject: Re: HA for management server
> >
> > Have you setup the database by cloudstack-setup-database?
> >
> >
> >
> > On Wednesday, May 29, 2024, Alexandru Stan
> > 
> > wrote:
> >
> > > Yes, I can login with the cloud user just fine via the virtual ip.
> > >
> > >
> > > -Original Message-
> > > From: Wei ZHOU 
> > > Sent: Wednesday, May 29, 2024 10:45 PM
> > > To: users@cloudstack.apache.org
> > > Subject: Re: HA for management server
> > >
> > > Yes.
> > > Are you able to access the db vip or the two db nodes using mysql
> > > command from management server?
> > >
> > >
> > >
> > > On Wednesday, May 29, 2024, Alexandru Stan
> > > 
> > > wrote:
> > >
> > > > You're right. This is the actual problem:
> > > >
> > > > Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable
> > > > to initialize a connection to the database for locking purposes
> > > > Caused
> > > > by: java.sql.SQLNonTransientConnectionException: Could not create
> > > > connection to database server. Attempted reconnect 3 times. Giving up.
> > > >
> > > > But everything seems right in the db.properties file. The host
> > > > should be the virtual ip of the load balancer, right?
> > > >
> > > >
> > > > -Original Message-
> > > > From: Wei ZHOU 
> > > > Sent: Wednesday, May 29, 2024 10:28 PM
> > > > To: users@cloudstack.apache.org
> > > > Subject: Re: HA for management server
> > > >
> > > > Hi,
> > > >
> > > > The exception is misleading
> > > >
> > > > You can check the real exception by grep Exception
> > > > management-server.log | grep -v NoSuchBeanDefinitionException
> > > >
> > > > I guess the  root cause is database configuration or db.properties.
> > > >
> > > > By the way, it is better mariadb galera cluster have 3 servers.
> > > >
> > > >
> > > > -Wei
> > > >
> > > >
> > > > On Wednesday, May 29, 2024, Alexandru Stan
> > > > 
> > > > wrote:
> > > >
> > > > > Hello,
> > > > >
> > > > > There seems to be issues with installing the management server
> > > > > databases on a separate server, I setup a galera cluster with 2
> > > > > servers and tried to install the management server on a
> > > > > different server using (where it still
> > > > > applies) this guide: https://www.shapeblue.com/how-
> > > > > to-deploy-high-availability-cloudstack-with-mariadb-galera-clust
> > > > > er
> > > > > /
> > > > >
> > > > > However, while the database setup seems to be fine and
> > > > > everything after, the cloudstack-management service is running
> > > > > but there's n

Re: HA for management server

2024-05-29 Thread Wei ZHOU
Looks good
Can you try db.cloud.uri in db.properties?
See https://github.com/apache/cloudstack/pull/7895

-Wei


On Wednesday, May 29, 2024, Alexandru Stan
 wrote:

> Yes. On the first management server with --deploy-as=root:password and on
> the second one without. All successful. The I ran
> cloudstack-setup-management and that was it. But in the browser I get the
> 503 error...
>
>
> -Original Message-
> From: Wei ZHOU 
> Sent: Wednesday, May 29, 2024 11:20 PM
> To: users@cloudstack.apache.org
> Subject: Re: HA for management server
>
> Have you setup the database by cloudstack-setup-database?
>
>
>
> On Wednesday, May 29, 2024, Alexandru Stan 
> 
> wrote:
>
> > Yes, I can login with the cloud user just fine via the virtual ip.
> >
> >
> > -Original Message-
> > From: Wei ZHOU 
> > Sent: Wednesday, May 29, 2024 10:45 PM
> > To: users@cloudstack.apache.org
> > Subject: Re: HA for management server
> >
> > Yes.
> > Are you able to access the db vip or the two db nodes using mysql
> > command from management server?
> >
> >
> >
> > On Wednesday, May 29, 2024, Alexandru Stan
> > 
> > wrote:
> >
> > > You're right. This is the actual problem:
> > >
> > > Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable
> > > to initialize a connection to the database for locking purposes
> > > Caused
> > > by: java.sql.SQLNonTransientConnectionException: Could not create
> > > connection to database server. Attempted reconnect 3 times. Giving up.
> > >
> > > But everything seems right in the db.properties file. The host
> > > should be the virtual ip of the load balancer, right?
> > >
> > >
> > > -Original Message-
> > > From: Wei ZHOU 
> > > Sent: Wednesday, May 29, 2024 10:28 PM
> > > To: users@cloudstack.apache.org
> > > Subject: Re: HA for management server
> > >
> > > Hi,
> > >
> > > The exception is misleading
> > >
> > > You can check the real exception by
> > > grep Exception management-server.log | grep -v
> > > NoSuchBeanDefinitionException
> > >
> > > I guess the  root cause is database configuration or db.properties.
> > >
> > > By the way, it is better mariadb galera cluster have 3 servers.
> > >
> > >
> > > -Wei
> > >
> > >
> > > On Wednesday, May 29, 2024, Alexandru Stan
> > > 
> > > wrote:
> > >
> > > > Hello,
> > > >
> > > > There seems to be issues with installing the management server
> > > > databases on a separate server, I setup a galera cluster with 2
> > > > servers and tried to install the management server on a different
> > > > server using (where it still
> > > > applies) this guide: https://www.shapeblue.com/how-
> > > > to-deploy-high-availability-cloudstack-with-mariadb-galera-cluster
> > > > /
> > > >
> > > > However, while the database setup seems to be fine and everything
> > > > after, the cloudstack-management service is running but there's no
> UI.
> > > > Checking the status shows this:
> > > >
> > > > Failed to start module [redfish] due to: [Error creating bean with
> > > > name 'org.springframework.beans.factory.config.
> > > PropertyPlaceholderConfigurer#0'
> > > > defined in URL [jar:file:/usr/share/cloudstack-management/lib/
> > > > cloudstack-4.19.0.1.jar!/META-INF/cloudstack/bootstrap/
> > > > spring-bootstrap-context-inheritable.xml]: Cannot resolve
> > > > reference to bean 'DefaultConfigResources' while setting bean
> > > > property 'locations'; nested exception is org.springframework.beans.
> factory.
> > > NoSuchBeanDefinitionException:
> > > > No bean named 'DefaultConfigResources' available].
> > > >
> > > > Any idea why this happens?
> > > >
> > > >
> > > > -Original Message-
> > > > From: Jayanth Babu A 
> > > > Sent: Monday, May 27, 2024 12:28 PM
> > > > To: users@cloudstack.apache.org
> > > > Subject: Re: HA for management server
> > > >
> > > > Hello,
> > > > Yes, DB clustering with Galera or some other sort should be looked
> > into.
> > > > I'm not sure if [1] has worked for someone so far.
> > > >
> > > > [1] https://docs.cloudstack.a

Re: HA for management server

2024-05-29 Thread Wei ZHOU
Have you setup the database by cloudstack-setup-database?



On Wednesday, May 29, 2024, Alexandru Stan
 wrote:

> Yes, I can login with the cloud user just fine via the virtual ip.
>
>
> -Original Message-----
> From: Wei ZHOU 
> Sent: Wednesday, May 29, 2024 10:45 PM
> To: users@cloudstack.apache.org
> Subject: Re: HA for management server
>
> Yes.
> Are you able to access the db vip or the two db nodes using mysql command
> from management server?
>
>
>
> On Wednesday, May 29, 2024, Alexandru Stan 
> 
> wrote:
>
> > You're right. This is the actual problem:
> >
> > Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to
> > initialize a connection to the database for locking purposes Caused
> > by: java.sql.SQLNonTransientConnectionException: Could not create
> > connection to database server. Attempted reconnect 3 times. Giving up.
> >
> > But everything seems right in the db.properties file. The host should
> > be the virtual ip of the load balancer, right?
> >
> >
> > -Original Message-
> > From: Wei ZHOU 
> > Sent: Wednesday, May 29, 2024 10:28 PM
> > To: users@cloudstack.apache.org
> > Subject: Re: HA for management server
> >
> > Hi,
> >
> > The exception is misleading
> >
> > You can check the real exception by
> > grep Exception management-server.log | grep -v
> > NoSuchBeanDefinitionException
> >
> > I guess the  root cause is database configuration or db.properties.
> >
> > By the way, it is better mariadb galera cluster have 3 servers.
> >
> >
> > -Wei
> >
> >
> > On Wednesday, May 29, 2024, Alexandru Stan
> > 
> > wrote:
> >
> > > Hello,
> > >
> > > There seems to be issues with installing the management server
> > > databases on a separate server, I setup a galera cluster with 2
> > > servers and tried to install the management server on a different
> > > server using (where it still
> > > applies) this guide: https://www.shapeblue.com/how-
> > > to-deploy-high-availability-cloudstack-with-mariadb-galera-cluster/
> > >
> > > However, while the database setup seems to be fine and everything
> > > after, the cloudstack-management service is running but there's no UI.
> > > Checking the status shows this:
> > >
> > > Failed to start module [redfish] due to: [Error creating bean with
> > > name 'org.springframework.beans.factory.config.
> > PropertyPlaceholderConfigurer#0'
> > > defined in URL [jar:file:/usr/share/cloudstack-management/lib/
> > > cloudstack-4.19.0.1.jar!/META-INF/cloudstack/bootstrap/
> > > spring-bootstrap-context-inheritable.xml]: Cannot resolve reference
> > > to bean 'DefaultConfigResources' while setting bean property
> > > 'locations'; nested exception is org.springframework.beans.factory.
> > NoSuchBeanDefinitionException:
> > > No bean named 'DefaultConfigResources' available].
> > >
> > > Any idea why this happens?
> > >
> > >
> > > -Original Message-
> > > From: Jayanth Babu A 
> > > Sent: Monday, May 27, 2024 12:28 PM
> > > To: users@cloudstack.apache.org
> > > Subject: Re: HA for management server
> > >
> > > Hello,
> > > Yes, DB clustering with Galera or some other sort should be looked
> into.
> > > I'm not sure if [1] has worked for someone so far.
> > >
> > > [1] https://docs.cloudstack.apache.org/en/latest/
> > > adminguide/reliability.html#configuring-database-high-availability
> > >
> > > Thanks,
> > > Jayanth
> > > 
> > > From: Alexandru Stan 
> > > Sent: Monday, May 27, 2024 2:48 PM
> > > To: users@cloudstack.apache.org 
> > > Subject: RE: HA for management server
> > >
> > > Hi,
> > >
> > > Actually no, I'm just documenting the process so far, so nothing was
> > > done for the DB. For this I assume the info in the official
> > > documentation would be ok? Or something more advanced would be
> > > needed,
> > like a galera cluster?
> > >
> > >
> > >
> > > -Original Message-
> > > From: Jayanth Babu A 
> > > Sent: Monday, May 27, 2024 12:12 PM
> > > To: users@cloudstack.apache.org
> > > Subject: Re: HA for management server
> > >
> > > Hello Alexandru,
> > > Please see [1] and [2]. I assume your DB HA is taken care of.
> > >

Re: Using a seprarte router other than the virtual router

2024-05-29 Thread Wei ZHOU
indeed, some features are missing in the VR.

If you have other public ip range available, I would suggest
- create a shared network with the public ips
- create pfsense vm with WAN on the shared network and LANs on l2/isolated
network
- Configure dhcp/dns in pfsense vm if needed.

If you want to use port forwarding or load balancer, you can create rules
in pfsense manually.
If you want to use DNAT, add a secondary ip on shared network to the
pfsense vm, then configure 1:1 nat in pfsense vm.

We have plan to support VNF providers and replace VR with VNF appliance so
that some services can be configured automatically. However it highly
depends on the api/cli of the software. The pfsense API is not very good.

-Wei

On Wednesday, May 29, 2024, Marty Godsey  wrote:

> The VR works fine as a basic NATing firewall, but you can't do advanced
> next-gen functions like reverse proxies, SSL offloading, robust rule sets,
> IDS/IPS, etc.
>
> I have been setting it up manually. The other way is to have the users
> create their VR but then do a 1to1 NAT or a port forward of all ports to
> the virtual pfsense. The “WAN” of the pfsense sits in an isolated subnet.
> This does use another VLAN for the “WAN” network and is technically double
> NATing, but it works fine. I don’t think it scales the best, though, and
> may change it in the future.
>
> From: Wei ZHOU 
> Date: Wednesday, May 29, 2024 at 3:18 PM
> To: users@cloudstack.apache.org 
> Subject: Re: Using a seprarte router other than the virtual router
> WARNING: This email originated from outside of the organization. Do not
> click links or open attachments unless you recognize the sender and know
> the content is safe.
>
>
> I know some users deploy a pfsense or Linux vm as gateway in L2 network or
> isolated network without source nat.
> No matter which software/os is used, users have to configure the vms
> manually. Some features (e.g static nat, pf,lb, userdata) are not supported
> either.
> I think VR is still the best option with most supported services so far.
> What is the purpose of the router ? Gateway or other service provider?
>
> -Wei
>
> On Wednesday, May 29, 2024, Marty Godsey  wrote:
>
> > Hello All,
> >
> > What is the best way, or how are you providing a router for customers
> that
> > is not a virtual router? For example, if I have someone who wants to use
> > PfSense for their router instead of the virtual router, what’s the best
> way
> > to do this and make it as seamless as possible for the customer?
> >
> > I can see ways to do it, but I am curious to know how other people
> perform
> > this function.
> >
> > Thanks in advance. 
> >
>


Re: HA for management server

2024-05-29 Thread Wei ZHOU
Yes.
Are you able to access the db vip or the two db nodes using mysql command
from management server?



On Wednesday, May 29, 2024, Alexandru Stan
 wrote:

> You're right. This is the actual problem:
>
> Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to
> initialize a connection to the database for locking purposes
> Caused by: java.sql.SQLNonTransientConnectionException: Could not create
> connection to database server. Attempted reconnect 3 times. Giving up.
>
> But everything seems right in the db.properties file. The host should be
> the virtual ip of the load balancer, right?
>
>
> -----Original Message-
> From: Wei ZHOU 
> Sent: Wednesday, May 29, 2024 10:28 PM
> To: users@cloudstack.apache.org
> Subject: Re: HA for management server
>
> Hi,
>
> The exception is misleading
>
> You can check the real exception by
> grep Exception management-server.log | grep -v
> NoSuchBeanDefinitionException
>
> I guess the  root cause is database configuration or db.properties.
>
> By the way, it is better mariadb galera cluster have 3 servers.
>
>
> -Wei
>
>
> On Wednesday, May 29, 2024, Alexandru Stan 
> 
> wrote:
>
> > Hello,
> >
> > There seems to be issues with installing the management server
> > databases on a separate server, I setup a galera cluster with 2
> > servers and tried to install the management server on a different
> > server using (where it still
> > applies) this guide: https://www.shapeblue.com/how-
> > to-deploy-high-availability-cloudstack-with-mariadb-galera-cluster/
> >
> > However, while the database setup seems to be fine and everything
> > after, the cloudstack-management service is running but there's no UI.
> > Checking the status shows this:
> >
> > Failed to start module [redfish] due to: [Error creating bean with
> > name 'org.springframework.beans.factory.config.
> PropertyPlaceholderConfigurer#0'
> > defined in URL [jar:file:/usr/share/cloudstack-management/lib/
> > cloudstack-4.19.0.1.jar!/META-INF/cloudstack/bootstrap/
> > spring-bootstrap-context-inheritable.xml]: Cannot resolve reference to
> > bean 'DefaultConfigResources' while setting bean property 'locations';
> > nested exception is org.springframework.beans.factory.
> NoSuchBeanDefinitionException:
> > No bean named 'DefaultConfigResources' available].
> >
> > Any idea why this happens?
> >
> >
> > -Original Message-
> > From: Jayanth Babu A 
> > Sent: Monday, May 27, 2024 12:28 PM
> > To: users@cloudstack.apache.org
> > Subject: Re: HA for management server
> >
> > Hello,
> > Yes, DB clustering with Galera or some other sort should be looked into.
> > I'm not sure if [1] has worked for someone so far.
> >
> > [1] https://docs.cloudstack.apache.org/en/latest/
> > adminguide/reliability.html#configuring-database-high-availability
> >
> > Thanks,
> > Jayanth
> > 
> > From: Alexandru Stan 
> > Sent: Monday, May 27, 2024 2:48 PM
> > To: users@cloudstack.apache.org 
> > Subject: RE: HA for management server
> >
> > Hi,
> >
> > Actually no, I'm just documenting the process so far, so nothing was
> > done for the DB. For this I assume the info in the official
> > documentation would be ok? Or something more advanced would be needed,
> like a galera cluster?
> >
> >
> >
> > -Original Message-
> > From: Jayanth Babu A 
> > Sent: Monday, May 27, 2024 12:12 PM
> > To: users@cloudstack.apache.org
> > Subject: Re: HA for management server
> >
> > Hello Alexandru,
> > Please see [1] and [2]. I assume your DB HA is taken care of.
> >
> > [1] https://checkpoint.url-protection.com/v1/url?o=https%
> > 3A//docs.cloudstack.apache.org/en/latest/adminguide/reliability.html
> > = ZmEwYjAwNmYwMjIxNTU5ZQ===NmQyMzY5Nzc5YTU2ZDkyYjc4N2ExND
> > U4Y2Q0OWFkMjQ4OGRhMGZiZjdiNDA5N2NmNmRhM2EwYjUzZGEwMmI2Mg===
> > Y3AxZTpueHRnZW5pbmZpbml0ZWRhdGFjZW50ZXI6YzpvOmY0ZWFkYmU5NDkz
> > MjMyMjdjY2EyM2IxN2YzOGZiMWE4OnYxOnA6VA==
> > [2] https://checkpoint.url-protection.com/v1/url?o=https%
> > 3A//github.com/apache/cloudstack/issues/8221=YzVlNDk3YjI5NTEwMTM5Mg=
> > ==
> > OTBmN2Q4ZjA3YzRlOTAxZDk1YzcwMmExMTAzYTY4N2VmYjg5MGZkZGQyMDE2
> > NTM3MTU4MGUxNDRjNzMzN2E0ZQ===Y3AxZTpueHRnZW5pbmZpbml0ZWRhdG
> > FjZW50ZXI6YzpvOmY0ZWFkYmU5NDkzMjMyMjdjY2EyM2IxN2YzOGZiMWE4OnYxOnA6VA==
> >
> > Regards,
> > Jayanth Reddy
> > Engineering Manager
> >
> > From: Alexandru Stan 
> > Date: Monday, 27 M

Re: HA for management server

2024-05-29 Thread Wei ZHOU
Hi,

The exception is misleading

You can check the real exception by
grep Exception management-server.log | grep -v NoSuchBeanDefinitionException

I guess the  root cause is database configuration or db.properties.

By the way, it is better mariadb galera cluster have 3 servers.


-Wei


On Wednesday, May 29, 2024, Alexandru Stan
 wrote:

> Hello,
>
> There seems to be issues with installing the management server databases
> on a separate server, I setup a galera cluster with 2 servers and tried to
> install the management server on a different server using (where it still
> applies) this guide: https://www.shapeblue.com/how-
> to-deploy-high-availability-cloudstack-with-mariadb-galera-cluster/
>
> However, while the database setup seems to be fine and everything after,
> the cloudstack-management service is running but there's no UI. Checking
> the status shows this:
>
> Failed to start module [redfish] due to: [Error creating bean with name
> 'org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0'
> defined in URL [jar:file:/usr/share/cloudstack-management/lib/
> cloudstack-4.19.0.1.jar!/META-INF/cloudstack/bootstrap/
> spring-bootstrap-context-inheritable.xml]: Cannot resolve reference to
> bean 'DefaultConfigResources' while setting bean property 'locations';
> nested exception is 
> org.springframework.beans.factory.NoSuchBeanDefinitionException:
> No bean named 'DefaultConfigResources' available].
>
> Any idea why this happens?
>
>
> -Original Message-
> From: Jayanth Babu A 
> Sent: Monday, May 27, 2024 12:28 PM
> To: users@cloudstack.apache.org
> Subject: Re: HA for management server
>
> Hello,
> Yes, DB clustering with Galera or some other sort should be looked into.
> I'm not sure if [1] has worked for someone so far.
>
> [1] https://docs.cloudstack.apache.org/en/latest/
> adminguide/reliability.html#configuring-database-high-availability
>
> Thanks,
> Jayanth
> 
> From: Alexandru Stan 
> Sent: Monday, May 27, 2024 2:48 PM
> To: users@cloudstack.apache.org 
> Subject: RE: HA for management server
>
> Hi,
>
> Actually no, I'm just documenting the process so far, so nothing was done
> for the DB. For this I assume the info in the official documentation would
> be ok? Or something more advanced would be needed, like a galera cluster?
>
>
>
> -Original Message-
> From: Jayanth Babu A 
> Sent: Monday, May 27, 2024 12:12 PM
> To: users@cloudstack.apache.org
> Subject: Re: HA for management server
>
> Hello Alexandru,
> Please see [1] and [2]. I assume your DB HA is taken care of.
>
> [1] https://checkpoint.url-protection.com/v1/url?o=https%
> 3A//docs.cloudstack.apache.org/en/latest/adminguide/reliability.html=
> ZmEwYjAwNmYwMjIxNTU5ZQ===NmQyMzY5Nzc5YTU2ZDkyYjc4N2ExND
> U4Y2Q0OWFkMjQ4OGRhMGZiZjdiNDA5N2NmNmRhM2EwYjUzZGEwMmI2Mg===
> Y3AxZTpueHRnZW5pbmZpbml0ZWRhdGFjZW50ZXI6YzpvOmY0ZWFkYmU5NDkz
> MjMyMjdjY2EyM2IxN2YzOGZiMWE4OnYxOnA6VA==
> [2] https://checkpoint.url-protection.com/v1/url?o=https%
> 3A//github.com/apache/cloudstack/issues/8221=YzVlNDk3YjI5NTEwMTM5Mg===
> OTBmN2Q4ZjA3YzRlOTAxZDk1YzcwMmExMTAzYTY4N2VmYjg5MGZkZGQyMDE2
> NTM3MTU4MGUxNDRjNzMzN2E0ZQ===Y3AxZTpueHRnZW5pbmZpbml0ZWRhdG
> FjZW50ZXI6YzpvOmY0ZWFkYmU5NDkzMjMyMjdjY2EyM2IxN2YzOGZiMWE4OnYxOnA6VA==
>
> Regards,
> Jayanth Reddy
> Engineering Manager
>
> From: Alexandru Stan 
> Date: Monday, 27 May 2024 at 2:38 PM
> To: users@cloudstack.apache.org 
> Subject: HA for management server
> Hello,
>
> Is there any documentation on deployment of multiple management servers in
> high availability? Or does anyone have good info on this? The official
> documentation does not contain anything relevant unfortunately.
>
> Thank you!
> Disclaimer *** This e-mail contains PRIVILEGED AND CONFIDENTIAL
> INFORMATION intended solely for the use of the addressee(s). If you are not
> the intended recipient, please notify the sender by e-mail and delete the
> original message. Further, you are not authorised to copy, disclose, or
> distribute this e-mail or its contents to any other person and any such
> actions are unlawful and strictly prohibited. This e-mail may contain
> viruses. NxtGen Datacenter & Cloud Technologies Private Ltd (“NxtGen”) has
> taken every reasonable precaution to minimize this risk but is not liable
> for any damage you may sustain as a result of any virus in this e-mail. You
> should carry out your own virus checks before opening the e-mail or
> attachment. NxtGen reserves the right to monitor and review the content of
> all messages sent to or from this e-mail address. Messages sent to or from
> this e-mail address may be stored on the NxtGen e-mail system. *** End of
> Disclaimer ***NXTGEN*** Disclaimer *** This e-mail contains PRIVILEGED AND
> CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s).
> If you are not the intended recipient, please notify the sender by e-mail
> and delete the original message. Further, you are not authorised to copy,
> 

Re: Using a seprarte router other than the virtual router

2024-05-29 Thread Wei ZHOU
I know some users deploy a pfsense or Linux vm as gateway in L2 network or
isolated network without source nat.
No matter which software/os is used, users have to configure the vms
manually. Some features (e.g static nat, pf,lb, userdata) are not supported
either.
I think VR is still the best option with most supported services so far.
What is the purpose of the router ? Gateway or other service provider?

-Wei

On Wednesday, May 29, 2024, Marty Godsey  wrote:

> Hello All,
>
> What is the best way, or how are you providing a router for customers that
> is not a virtual router? For example, if I have someone who wants to use
> PfSense for their router instead of the virtual router, what’s the best way
> to do this and make it as seamless as possible for the customer?
>
> I can see ways to do it, but I am curious to know how other people perform
> this function.
>
> Thanks in advance. 
>


Re: Set number of total projects for each account

2024-05-27 Thread Wei ZHOU
Yes Mevludin,

as Jayanth said, you can create an improvement request to support max
projects per domain or per account.



-Wei

On Mon, May 27, 2024 at 1:37 PM Mevludin Blazevic
 wrote:
>
> Thanks a lot, Wei!
>
> Shall I create an issue for this?
>
> - Mevludin
>
> Am 27.05.2024 um 13:33 schrieb Jayanth Babu A:
> > Thanks, Wei.
> > Would it be good to introduce something like “max.account.projects” into 
> > the Global Limits [1] as well?
> >
> > [1]https://docs.cloudstack.apache.org/en/latest/adminguide/usage.html#globally-configured-limits
> >
> > Regards,
> > Jayanth Reddy
> >
> > From: Wei ZHOU
> > Date: Monday, 27 May 2024 at 4:26 PM
> > To:users@cloudstack.apache.org  
> > Subject: Re: Set number of total projects for each account
> > This seems to be missing on UI
> >
> > it works via cloudmonkey
> >
> > (localcloud)  > update resourcelimit
> > domainid=37ff2485-cc1e-11ee-a4eb-1e00db000197 account=ACSUser
> > resourcetype=5 max=3
> > {
> >"resourcelimit": {
> >  "account": "ACSUser",
> >  "domain": "ROOT",
> >  "domainid": "37ff2485-cc1e-11ee-a4eb-1e00db000197",
> >  "max": 3,
> >  "resourcetype": "5",
> >  "resourcetypename": "project"
> >}
> > }
> >
> >
> > -Wei
> >
> > On Mon, May 27, 2024 at 10:23 AM Mevludin Blazevic
> >   wrote:
> >> Hi all,
> >>
> >> does anyone know how to set a fix number of projects for each account?
> >> In the ressources overview I can only see that there is an unlimited
> >> number of projects available for an account, but how can I set a value
> >> for this?
> >>
> >> - Mevludin
> >>
> > Disclaimer *** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION 
> > intended solely for the use of the addressee(s). If you are not the 
> > intended recipient, please notify the sender by e-mail and delete the 
> > original message. Further, you are not authorised to copy, disclose, or 
> > distribute this e-mail or its contents to any other person and any such 
> > actions are unlawful and strictly prohibited. This e-mail may contain 
> > viruses. NxtGen Datacenter & Cloud Technologies Private Ltd (“NxtGen”) has 
> > taken every reasonable precaution to minimize this risk but is not liable 
> > for any damage you may sustain as a result of any virus in this e-mail. You 
> > should carry out your own virus checks before opening the e-mail or 
> > attachment. NxtGen reserves the right to monitor and review the content of 
> > all messages sent to or from this e-mail address. Messages sent to or from 
> > this e-mail address may be stored on the NxtGen e-mail system. *** End of 
> > Disclaimer ***NXTGEN***
>
>


Re: Set number of total projects for each account

2024-05-27 Thread Wei ZHOU
This seems to be missing on UI

it works via cloudmonkey

(localcloud)  > update resourcelimit
domainid=37ff2485-cc1e-11ee-a4eb-1e00db000197 account=ACSUser
resourcetype=5 max=3
{
  "resourcelimit": {
"account": "ACSUser",
"domain": "ROOT",
"domainid": "37ff2485-cc1e-11ee-a4eb-1e00db000197",
"max": 3,
"resourcetype": "5",
"resourcetypename": "project"
  }
}


-Wei

On Mon, May 27, 2024 at 10:23 AM Mevludin Blazevic
 wrote:
>
> Hi all,
>
> does anyone know how to set a fix number of projects for each account?
> In the ressources overview I can only see that there is an unlimited
> number of projects available for an account, but how can I set a value
> for this?
>
> - Mevludin
>


Re: Backup VM on Cloudstack

2024-05-27 Thread Wei ZHOU
thanks Jayanth.


On Mon, May 27, 2024 at 11:50 AM Jayanth Babu A
 wrote:
>
> Hello Wei,
> ACS v4.16; IIRC Veeam should be either v11 or v12.
>
> Thanks,
> Jayanth
>
> Sent on the move
>
> ________
> From: Wei ZHOU 
> Sent: Monday, May 27, 2024 3:16:36 pm
> To: users@cloudstack.apache.org 
> Subject: Re: Backup VM on Cloudstack
>
> great to know it.
> Can you share the acs/vmware/veeam version?
> Thanks
>
> On Monday, May 27, 2024, Jayanth Babu A 
> wrote:
>
> > Hello,
> > Veeam agent-based backups have worked for us so far.
> >
> > Regards,
> > Jayanth Reddy
> >
> > From: Khang Nguyen Phuc 
> > Date: Friday, 24 May 2024 at 1:03 PM
> > To: users@cloudstack.apache.org 
> > Subject: Backup VM on Cloudstack
> > Hello everyone,
> >
> > I'm looking for some advice on solutions for backing up VMs running on KVM
> > in Cloudstack. I found two plugins in the documentation, but they are both
> > paid. I also saw the dummy backup, but introductions to Cloudstack mention
> > that it is only for testing the API's functionality. Can I consider dummy
> > backup as a "native" backup solution for Cloudstack? I see two offerings,
> > 'Gold' and 'Silver,' but there is no information on how many backups it
> > makes or for how long...
> >
> > Can you suggest a backup solution for me or provide clearer documentation
> > about the dummy backup?
> >
> > Thank you very much.
> > Disclaimer *** This e-mail contains PRIVILEGED AND CONFIDENTIAL
> > INFORMATION intended solely for the use of the addressee(s). If you are not
> > the intended recipient, please notify the sender by e-mail and delete the
> > original message. Further, you are not authorised to copy, disclose, or
> > distribute this e-mail or its contents to any other person and any such
> > actions are unlawful and strictly prohibited. This e-mail may contain
> > viruses. NxtGen Datacenter & Cloud Technologies Private Ltd (“NxtGen”) has
> > taken every reasonable precaution to minimize this risk but is not liable
> > for any damage you may sustain as a result of any virus in this e-mail. You
> > should carry out your own virus checks before opening the e-mail or
> > attachment. NxtGen reserves the right to monitor and review the content of
> > all messages sent to or from this e-mail address. Messages sent to or from
> > this e-mail address may be stored on the NxtGen e-mail system. *** End of
> > Disclaimer ***NXTGEN***
> >
>
> Disclaimer *** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION 
> intended solely for the use of the addressee(s). If you are not the intended 
> recipient, please notify the sender by e-mail and delete the original 
> message. Further, you are not authorised to copy, disclose, or distribute 
> this e-mail or its contents to any other person and any such actions are 
> unlawful and strictly prohibited. This e-mail may contain viruses. NxtGen 
> Datacenter & Cloud Technologies Private Ltd (“NxtGen”) has taken every 
> reasonable precaution to minimize this risk but is not liable for any damage 
> you may sustain as a result of any virus in this e-mail. You should carry out 
> your own virus checks before opening the e-mail or attachment. NxtGen 
> reserves the right to monitor and review the content of all messages sent to 
> or from this e-mail address. Messages sent to or from this e-mail address may 
> be stored on the NxtGen e-mail system. *** End of Disclaimer ***NXTGEN***


Re: Backup VM on Cloudstack

2024-05-27 Thread Wei ZHOU
great to know it.
Can you share the acs/vmware/veeam version?
Thanks

On Monday, May 27, 2024, Jayanth Babu A 
wrote:

> Hello,
> Veeam agent-based backups have worked for us so far.
>
> Regards,
> Jayanth Reddy
>
> From: Khang Nguyen Phuc 
> Date: Friday, 24 May 2024 at 1:03 PM
> To: users@cloudstack.apache.org 
> Subject: Backup VM on Cloudstack
> Hello everyone,
>
> I'm looking for some advice on solutions for backing up VMs running on KVM
> in Cloudstack. I found two plugins in the documentation, but they are both
> paid. I also saw the dummy backup, but introductions to Cloudstack mention
> that it is only for testing the API's functionality. Can I consider dummy
> backup as a "native" backup solution for Cloudstack? I see two offerings,
> 'Gold' and 'Silver,' but there is no information on how many backups it
> makes or for how long...
>
> Can you suggest a backup solution for me or provide clearer documentation
> about the dummy backup?
>
> Thank you very much.
> Disclaimer *** This e-mail contains PRIVILEGED AND CONFIDENTIAL
> INFORMATION intended solely for the use of the addressee(s). If you are not
> the intended recipient, please notify the sender by e-mail and delete the
> original message. Further, you are not authorised to copy, disclose, or
> distribute this e-mail or its contents to any other person and any such
> actions are unlawful and strictly prohibited. This e-mail may contain
> viruses. NxtGen Datacenter & Cloud Technologies Private Ltd (“NxtGen”) has
> taken every reasonable precaution to minimize this risk but is not liable
> for any damage you may sustain as a result of any virus in this e-mail. You
> should carry out your own virus checks before opening the e-mail or
> attachment. NxtGen reserves the right to monitor and review the content of
> all messages sent to or from this e-mail address. Messages sent to or from
> this e-mail address may be stored on the NxtGen e-mail system. *** End of
> Disclaimer ***NXTGEN***
>


Re: Login issue on new install

2024-05-24 Thread Wei ZHOU
Any "Exception" in the /var/log/cloudstack/management-server log?


On Friday, May 24, 2024, Ian Tobin  wrote:

>
> Tried that on different machines
>
> The server loads are also low
>
>
>
> -----Original Message-
> From: Wei ZHOU 
> Sent: 24 May 2024 17:33
> To: users@cloudstack.apache.org
> Subject: Re: Login issue on new install
>
> clear browser cache or incognito mode?
>
>
>
> On Friday, May 24, 2024, Ian Tobin  wrote:
>
> > Hi,
> >
> > We've just built a new management server (ubtunu 23.04) and db server.
> > Login page loads, enter user and pass, then the login box just spins,
> > it never times out either.
> >
> > Any idea what could be the issue or log to check?
> >
> > Thanks
> >
> > Ian
> >
> >
> >
>


Re: Login issue on new install

2024-05-24 Thread Wei ZHOU
clear browser cache or incognito mode?



On Friday, May 24, 2024, Ian Tobin  wrote:

> Hi,
>
> We've just built a new management server (ubtunu 23.04) and db server.
> Login page loads, enter user and pass, then the login box just spins, it
> never times out either.
>
> Any idea what could be the issue or log to check?
>
> Thanks
>
> Ian
>
>
>


Re: Windows VM performance in ACS

2024-05-23 Thread Wei ZHOU
Changing os type to "Windows PV" looks better. The nic will use virtio
device instead of default e1000 device

-Wei


On Thursday, May 23, 2024, Alexandru Stan
 wrote:

> Did that and I'm not really sure that the situation is improved. Right
> after booting I started installing the latest CU for May and it was done in
> 1 hour and 30 minutes. I know that these things sometimes take a while to
> install but this seems way too much...
>
>
> -Original Message-
> From: Jayanth Babu A 
> Sent: 23 May, 2024 21:55
> To: users@cloudstack.apache.org
> Subject: Re: Windows VM performance in ACS
>
> Hello Alexandru,
> Thanks for sharing. The reason could be that the VM is using IDE instead
> of virtio. Please stop the VM and add the key "rootDiskController" with
> value "virtio" and see the difference. You'll have to ensure that virtio
> drivers are installed on the VM so that it would be able to detect the
> disks.
>
> Thanks,
> Jayanth
>
> 
> From: Alexandru Stan 
> Sent: Friday, May 24, 2024 12:21:03 am
> To: users@cloudstack.apache.org 
> Subject: RE: Windows VM performance in ACS
>
> Hi Jayanth,
>
> I don't have that key. In the settings section of the vm there are 2 keys,
> Message.ReservedCapacityFreed.Flag and rootdisksize.
> I don't have a template yet, actually this vm was installed from a Windows
> ISO (that is registered as Windows PV in ACS) and I was hoping to transform
> it into a template with cloudbase-init, but since the performance is so bad
> I didn't get past the updates phase...
>
> Alex
>
>
> -Original Message-
> From: Jayanth Babu A 
> Sent: Thursday, May 23, 2024 4:54 PM
> To: users@cloudstack.apache.org
> Subject: Re: Windows VM performance in ACS
>
> Hello Alexandru,
> I’m not able to see the image. Would you please check the value for the
> key “rootDiskController” in both template and the Windows VM if the
> template OS type is “Windows PV” already? You’ll find it in the settings
> section.
>
> Regards,
> Jayanth Reddy
>
> From: Alexandru Stan 
> Date: Thursday, 23 May 2024 at 5:53 PM
> To: users@cloudstack.apache.org 
> Subject: RE: Windows VM performance in ACS Yes, I installed the guest
> tools right at first boot.
>
> [cid:image001.png@01DAAD25.1CAA02B0]
>
> From: Gary Dixon 
> Sent: Thursday, May 23, 2024 2:32 PM
> To: users@cloudstack.apache.org
> Subject: RE: Windows VM performance in ACS
>
> Have you checked in the VM's device manager that all devices are using
> virtio drivers (disk, disk controller, nic adapter etc)
> [cid:image535355.png@39364AC9.99EC2427]
> Gary Dixon
> Quadris Cloud Manager
> [cid:image073403.png@5F5163CD.BCC16405]
> +44 (0) 161 537 4980
>  +44 (0) 7989 717661
> [cid:image544450.png@462E4508.F6776E5F]
> gary.di...@quadris.co.uk
> [cid:image958545.png@2524980D.56B1E4D4]
> https://checkpoint.url-protection.com/v1/url?o=www.quadris.com=
> OWQ3Y2VjYjI5MzFmMDhlYQ===ODIxMzViOWYyNWQ3YzFhMTNhYmJiY2
> FjNWFjM2NlMTQxYzA0OTkxZmIxNzlkMTI0ZDQ4NWQ3ZjZhY2E2ZTVmNg===
> Y3AxZTpueHRnZW5pbmZpbml0ZWRhdGFjZW50ZXI6YzpvOmEzMTc5ZmM5MjI1
> ZTc3NTIxOGEyMTUwOTlhZWE2NGNhOnYxOnA6VA== url-protection.com/v1/url?o=http%3A//www.quadris.com=
> NjRjMmNhNWQxNWIyNTc5YQ===Yzc1OTFlZWZiYjA5ZThkYzZkYzVkNz
> AzZGVkOWE5NGViZTliZGRhODBiYmM2ZGZhNDg1OTNmN2VjNThhYmJhNA===
> Y3AxZTpueHRnZW5pbmZpbml0ZWRhdGFjZW50ZXI6YzpvOjdlOWE2YmVlMWZl
> MDUxZjU5YTM1MWZkYzc2YTVlOThmOnYxOmg6VA==>
> [cid:image378974.png@A6154DF9.C6D27CA5]
> Innovation House, 12‑13 Bredbury Business Park Bredbury Park Way,
> Bredbury, Stockport, SK6 2SN -Original Message-
> From: Alexandru Stan  alexandru.s...@lifeincloud.com.INVALID>>
> Sent: Thursday, May 23, 2024 11:17 AM
> To: users@cloudstack.apache.org
> Subject: RE: Windows VM performance in ACS
>
> Hi Gary,
>
> That’s what I used when registering the ISO. Doesn’t seem to help at all
> unfortunately.
>
>
> From: Gary Dixon mailto:Gary.Dixon@
> quadris.co.uk.INVALID>>
> Sent: Thursday, May 23, 2024 1:14 PM
> To: users@cloudstack.apache.org
> Subject: RE: Windows VM performance in ACS
>
> HI Alexandru
>
> We use "Windows PV" OS type on our Windows VM's - this provides the
> Hyper-V enlightenments.
>
> BR
>
> Gary
>
> [cid:image795113.png@DAEF2351.E3855BD4]
> Gary Dixon
> Quadris Cloud Manager
> [cid:image752066.png@3A68EBBE.280BF225]
> +44 (0) 161 537 4980
> +44 (0) 7989 717661
> [cid:image143416.png@CD1E068B.3BF4E714]
> gary.di...@quadris.co.uk>
> [cid:image596607.png@BDE27FFF.72E872DF]
> https://checkpoint.url-protection.com/v1/url?o=http%
> 3A//www.quadris.com/=N2M5MzIzZDYzMzk1YzU1ZA===
> NTIwNzczY2E1ZjI5MGJkNzY4YmYyYzhlMmJmMmRhZjI2ZTU2N2E5MmQxMThm
> ZDM1NTE5YWQwNjU2NTBkODZiYQ===Y3AxZTpueHRnZW5pbmZpbml0ZWRhdG
> FjZW50ZXI6YzpvOmEzMTc5ZmM5MjI1ZTc3NTIxOGEyMTUwOTlhZWE2NGNhOnYxOnA6VA==<
> 

Re: console not working

2024-05-22 Thread Wei ZHOU
Can you log into cpvm or use "virsh console" to access the cpvm, and check
/var/log/cloud.log?



On Wednesday, May 22, 2024, Francisco Arencibia Quesada <
arencibia.franci...@gmail.com> wrote:

> any idea guys,
> I have destroyed the systems vms, and virtual router, and still not
> working.
> The logs are not giving any clue.
>
> Any help would be appreciated.
>
> Regards
>
> On Wed, May 22, 2024 at 12:00 PM Francisco Arencibia Quesada <
> arencibia.franci...@gmail.com> wrote:
>
> > Good morning guys,
> >
> > the console tries to connect but it keeps loading forever, logs are not
> > showing much. Any idea why is this happening? I have cloudstack 4.19 with
> > KVM-Ubuntu
> > Thanks in advance
> > Regards
> >
> > 2024-05-22 11:57:15,714 DEBUG [c.c.c.ConsoleProxyManagerImpl]
> > (consoleproxy-1:ctx-c57c6cb1) (logid:b9001d89) Enabled non-edge zones
> > available for scan: 1
> > 2024-05-22 11:57:15,721 DEBUG [c.c.c.ConsoleProxyManagerImpl]
> > (consoleproxy-1:ctx-c57c6cb1) (logid:b9001d89) Zone 1 is ready to launch
> > console proxy
> > 2024-05-22 11:57:18,515 DEBUG [c.c.a.m.AgentManagerImpl]
> > (AgentManager-Handler-4:null) (logid:) SeqA 42-71: Processing Seq
> 42-71:  {
> > Cmd , MgmtId: -1, via: 42, Ver: v1, Flags: 11,
> > [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand"
> :{"_proxyVmId":"10549","_loadInfo":"{
> > 2024-05-22 11:57:28,515 DEBUG [c.c.a.m.AgentManagerImpl]
> > (AgentManager-Handler-15:null) (logid:) SeqA 42-72: Processing Seq 42-72:
> >  { Cmd , MgmtId: -1, via: 42, Ver: v1, Flags: 11,
> > [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand"
> :{"_proxyVmId":"10549","_loadInfo":"{
> > 2024-05-22 11:57:35,158 DEBUG [c.c.c.ConsoleProxyManagerImpl]
> > (qtp1789718525-325:ctx-1acb9f26 ctx-0dede06e) (logid:3fab93e0) Assign
> > previous allocated console proxy for user vm : 10535
> > 2024-05-22 11:57:35,243 DEBUG [c.c.c.ConsoleProxyManagerImpl]
> > (qtp1789718525-325:ctx-1acb9f26 ctx-0dede06e) (logid:3fab93e0) Assign
> > previous allocated console proxy for user vm : 10535
> > 2024-05-22 11:57:35,305 DEBUG [c.c.c.ConsoleProxyManagerImpl]
> > (qtp1789718525-325:ctx-1acb9f26 ctx-0dede06e) (logid:3fab93e0) Assign
> > previous allocated console proxy for user vm : 10535
> > 2024-05-22 11:57:38,475 DEBUG [c.c.a.m.AgentManagerImpl]
> > (AgentManager-Handler-13:null) (logid:) SeqA 42-73: Processing Seq 42-73:
> >  { Cmd , MgmtId: -1, via: 42, Ver: v1, Flags: 11,
> > [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand"
> :{"_proxyVmId":"10549","_loadInfo":"{
> > 2024-05-22 11:57:45,714 DEBUG [c.c.c.ConsoleProxyManagerImpl]
> > (consoleproxy-1:ctx-66a89e99) (logid:7335bf06) Enabled non-edge zones
> > available for scan: 1
> > 2024-05-22 11:57:45,721 DEBUG [c.c.c.ConsoleProxyManagerImpl]
> > (consoleproxy-1:ctx-66a89e99) (logid:7335bf06) Zone 1 is ready to launch
> > console proxy
> > 2024-05-22 11:57:48,520 DEBUG [c.c.a.m.AgentManagerImpl]
> > (AgentManager-Handler-5:null) (logid:) SeqA 42-74: Processing Seq
> 42-74:  {
> > Cmd , MgmtId: -1, via: 42, Ver: v1, Flags: 11,
> > [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand"
> :{"_proxyVmId":"10549","_loadInfo":"{
> > 2024-05-22 11:57:58,519 DEBUG [c.c.a.m.AgentManagerImpl]
> > (AgentManager-Handler-6:null) (logid:) SeqA 42-75: Processing Seq
> 42-75:  {
> > Cmd , MgmtId: -1, via: 42, Ver: v1, Flags: 11,
> > [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand"
> :{"_proxyVmId":"10549","_loadInfo":"{
> >
> > --
> > *Francisco Arencibia Quesada.*
> > *DevOps Engineer*
> >
>
>
> --
> *Francisco Arencibia Quesada.*
> *DevOps Engineer*
>


Re: Console noVNC not working properly

2024-05-21 Thread Wei ZHOU
Hi,

It looks like the NoVNC console works fine.

The issue is caused by the template.


-Wei

On Tue, May 21, 2024 at 4:21 PM PAYET Maxime
 wrote:
>
> Hi Wei
>
>
> We still facing the issue. I cannot share screen on this email, so this is 
> link where you can find screenshots:
>
> https://paste.pics/f24ba06737c49867be0b1a16f15c6f91
> https://paste.pics/fbe49179f08de86d5c57b8c541f37f2e
>
> - Maxime
>
>
> C1-Internal Use
> -Message d'origine-
> De : Wei ZHOU 
> Envoyé : mardi 21 mai 2024 16:14
> À : users@cloudstack.apache.org
> Objet : Re: Console noVNC not working properly
>
> Hi,
>
> The screenshots are not visible.
>
> Are you still facing the issue ?
>
>
> -Wei
>
> On Tue, May 21, 2024 at 3:55 PM PAYET Maxime 
>  wrote:
>
> > My bad, with screenshots its better
> >
> >
> >
> >
> >
> >
> >
> >
> > C1-Internal Use
> > De : PAYET Maxime  *Envoyé :* mardi
> > 21 mai 2024 15:51 *À :* users@cloudstack.apache.org *Objet :* Console
> > noVNC not working properly
> >
> >
> >
> > Hey there,
> >
> >
> >
> > We are conducting a poc on Cloudstack (v4.19.1 with KVM) and are
> > encountering a problem getting the console to work.
> >
> >
> >
> > Indeed it seems to work but we have a stuck screen with the bios
> > display at boot while the VM is started.
> >
> >
> >
> > The displayed VM UUID matches the actual VM UUID.
> >
> >
> >
> > Attached a screenshot
> >
> >
> >
> > No errors and no activity on websocket:
> >
> >
> >
> >
> >
> > We checked the logs on the management and proxy console side, but
> > everything seems normal except a warning concerning an unknown
> > parameter
> > (client-inet-address)
> >
> >
> >
> > [MGMT Server]
> >
> > May 21 13:20:34 acsp-olps-mgmt-02 java[1268950]: WARN
> > [c.c.a.d.ParamGenericValidationWorker] (qtp239372207-954:ctx-a8487ad8
> > ctx-74e86abc ctx-6ff9c49d) (logid:14d5c24b) Received unknown
> > parameters for command createConsoleEndpoint. Unknown parameters :
> > client-inet-address
> >
> > May 21 13:20:34 acsp-olps-mgmt-02 java[1268950]: INFO
> > [o.a.c.c.ConsoleAccessManagerImpl] (qtp239372207-954:ctx-a8487ad8
> > ctx-74e86abc ctx-6ff9c49d) (logid:14d5c24b) Parse host info returned
> > from executing GetVNCPortCommand. host info: 10.0.X.X
> >
> >
> >
> > When I check apiserver.log, the token is the same in my URL’s browser.
> >
> >
> >
> > [CPVM]
> >
> > 2024-05-21 13:20:35,606 INFO
> > [cloud.consoleproxy.ConsoleProxyNoVNCHandler] (qtp1218168479-40:null)
> > Get websocket connection request from remote IP : 82.X.X.X
> >
> > 2024-05-21 13:20:35,683 INFO
> > [cloud.consoleproxy.ConsoleProxyNoVncClient]
> > (Thread-1113:null) Connect to VNC server directly. host: 10.0.X.X, port:
> > 5902
> >
> > 2024-05-21 13:20:35,683 INFO  [consoleproxy.vnc.NoVncClient]
> > (Thread-1113:null) Connecting to VNC server 10.0.X.X:5902 ...
> >
> > 2024-05-21 13:20:35,717 INFO  [vnc.security.VncTLSSecurity]
> > (Thread-1113:null) Processing VNC TLS security
> >
> > 2024-05-21 13:20:35,717 INFO  [utils.nio.Link] (Thread-1113:null) Conf
> > file found: /usr/local/cloud/systemvm/conf/agent.properties
> >
> > 2024-05-21 13:20:35,810 INFO  [vnc.security.VncAuthSecurity]
> > (Thread-1113:null) VNC server requires password authentication
> >
> > 2024-05-21 13:20:35,817 INFO  [vnc.security.VncAuthSecurity]
> > (Thread-1113:null) Finished VNCAuth security
> >
> >
> >
> > Sometimes we have timeout errors on the websocket but I think this is
> > the consequence of closing my console window in my browser.
> >
> > 2024-05-21 13:21:17,942 INFO
> > [cloud.consoleproxy.ConsoleProxyNoVncClient]
> > (Thread-:null) Connection with client [7] is dead.
> >
> > 2024-05-21 13:23:38,761 INFO
> > [cloud.consoleproxy.ConsoleProxyGCThread]
> > (Console Proxy GC Thread:null) Dropping
> > com.cloud.consoleproxy.ConsoleProxyNoVncClient@1e5b1305 which has not
> > been used for 182 seconds
> >
> > 2024-05-21 13:25:35,969 ERROR
> > [cloud.consoleproxy.ConsoleProxyNoVNCHandler]
> > (Connector-Scheduler-6940fda3-1:null) Error on websocket
> >
> > org.eclipse.jetty.websocket.api.CloseException:
> > java.util.concurrent.TimeoutException: Idle timeout expired:
> > 31/30 ms
> >
> >
> >
> > W

Re: Console noVNC not working properly

2024-05-21 Thread Wei ZHOU
Hi,

The screenshots are not visible.

Are you still facing the issue ?


-Wei

On Tue, May 21, 2024 at 3:55 PM PAYET Maxime
 wrote:

> My bad, with screenshots its better
>
>
>
>
>
>
>
>
> C1-Internal Use
> De : PAYET Maxime 
> *Envoyé :* mardi 21 mai 2024 15:51
> *À :* users@cloudstack.apache.org
> *Objet :* Console noVNC not working properly
>
>
>
> Hey there,
>
>
>
> We are conducting a poc on Cloudstack (v4.19.1 with KVM) and are
> encountering a problem getting the console to work.
>
>
>
> Indeed it seems to work but we have a stuck screen with the bios display
> at boot while the VM is started.
>
>
>
> The displayed VM UUID matches the actual VM UUID.
>
>
>
> Attached a screenshot
>
>
>
> No errors and no activity on websocket:
>
>
>
>
>
> We checked the logs on the management and proxy console side, but
> everything seems normal except a warning concerning an unknown parameter
> (client-inet-address)
>
>
>
> [MGMT Server]
>
> May 21 13:20:34 acsp-olps-mgmt-02 java[1268950]: WARN
> [c.c.a.d.ParamGenericValidationWorker] (qtp239372207-954:ctx-a8487ad8
> ctx-74e86abc ctx-6ff9c49d) (logid:14d5c24b) Received unknown parameters for
> command createConsoleEndpoint. Unknown parameters : client-inet-address
>
> May 21 13:20:34 acsp-olps-mgmt-02 java[1268950]: INFO
> [o.a.c.c.ConsoleAccessManagerImpl] (qtp239372207-954:ctx-a8487ad8
> ctx-74e86abc ctx-6ff9c49d) (logid:14d5c24b) Parse host info returned from
> executing GetVNCPortCommand. host info: 10.0.X.X
>
>
>
> When I check apiserver.log, the token is the same in my URL’s browser.
>
>
>
> [CPVM]
>
> 2024-05-21 13:20:35,606 INFO
> [cloud.consoleproxy.ConsoleProxyNoVNCHandler] (qtp1218168479-40:null) Get
> websocket connection request from remote IP : 82.X.X.X
>
> 2024-05-21 13:20:35,683 INFO  [cloud.consoleproxy.ConsoleProxyNoVncClient]
> (Thread-1113:null) Connect to VNC server directly. host: 10.0.X.X, port:
> 5902
>
> 2024-05-21 13:20:35,683 INFO  [consoleproxy.vnc.NoVncClient]
> (Thread-1113:null) Connecting to VNC server 10.0.X.X:5902 ...
>
> 2024-05-21 13:20:35,717 INFO  [vnc.security.VncTLSSecurity]
> (Thread-1113:null) Processing VNC TLS security
>
> 2024-05-21 13:20:35,717 INFO  [utils.nio.Link] (Thread-1113:null) Conf
> file found: /usr/local/cloud/systemvm/conf/agent.properties
>
> 2024-05-21 13:20:35,810 INFO  [vnc.security.VncAuthSecurity]
> (Thread-1113:null) VNC server requires password authentication
>
> 2024-05-21 13:20:35,817 INFO  [vnc.security.VncAuthSecurity]
> (Thread-1113:null) Finished VNCAuth security
>
>
>
> Sometimes we have timeout errors on the websocket but I think this is the
> consequence of closing my console window in my browser.
>
> 2024-05-21 13:21:17,942 INFO  [cloud.consoleproxy.ConsoleProxyNoVncClient]
> (Thread-:null) Connection with client [7] is dead.
>
> 2024-05-21 13:23:38,761 INFO  [cloud.consoleproxy.ConsoleProxyGCThread]
> (Console Proxy GC Thread:null) Dropping
> com.cloud.consoleproxy.ConsoleProxyNoVncClient@1e5b1305 which has not
> been used for 182 seconds
>
> 2024-05-21 13:25:35,969 ERROR
> [cloud.consoleproxy.ConsoleProxyNoVNCHandler]
> (Connector-Scheduler-6940fda3-1:null) Error on websocket
>
> org.eclipse.jetty.websocket.api.CloseException:
> java.util.concurrent.TimeoutException: Idle timeout expired: 31/30
> ms
>
>
>
> We verified the time and date between the CPVM and the MGMT servers. It's
> OK. (UTC Time)
>
>
>
> We use SSL for the Proxy console. The flows are open on the CPVM public
> network on port 8443 (websocket)
>
>
>
> (From my home network)
>
> telnet 154.49.x.x 8443
>
> Trying 154.49.x.x...
>
> Connected to 154.49.x.x.
>
> Escape character is '^]'.
>
> ^[quit
>
> PConnection closed by foreign host.
>
>
>
> The flow is also open between the MGMT servers and the CPVM on port 8001.
>
>
>
> Moreover, we tried a tcpdump on this port (8001 – MGMT Iface)) but we did
> not see any packets.
>
>
>
> We observe an open socket between the proxy console and the physical
> server on the VNC port of the VM in question.
>
>
>
>
>
> (A telnet test returns the connection)
>
>
>
> root@v-377-VM:~# telnet 10.0.x.x 5902
>
> Trying 10.0.x.x...
>
> Connected to 10.0.x.x.
>
> Escape character is '^]'.
>
> RFB 003.008
>
> quit
>
> ^C^CConnection closed by foreign host.
>
>
>
> I tried to trace some logs in libvirt concerning the VNC part but found
> nothing or a lot of logs with QEmu. (Nothing revealant)
>
>
>
> SSL Certs have been correctly provisioned on libvirt for each compute by
> cloudstack (trying to regenerate them, and restart CPVM many times)
>
>
>
> So, we think the console is working but the stream between VNC Server and
> end user is dead.
>
>
>
> Please, can you give us a way to solve this problem? We start to dry.
>
>
>
> Best regards,
>
> Have a nice day,
>
> *Maxime PAYET*
>
>
>
>
>
>
>
> C1-Internal Use
>
>
>
> C1-Internal Use
>


Re: debian iso download

2024-05-20 Thread Wei ZHOU
If you use 4.19.0.1/4.18.2.0/4.18.1.1, URL redirection is disabled by
default due to security reasons.

Please search global setting by keyword "follow.redirect" and update the
value to true then retry.


-Wei

On Monday, May 20, 2024, Embedded Devel 
wrote:

> trying to download debian iso from https://cdimage.debian.org/deb
> ian-cd/12.5.0/amd64/iso-cd/debian-12.5.0-amd64-netinst.iso
>
>
> via the register iso button fails with Failed to download
> https://cdimage.debian.org/debian-cd/12.5.0/amd64/iso-cd/deb
> ian-12.5.0-amd64-netinst.iso due to redirection, response code: 302
>
>
> any way to manually upload an iso from cli ?
> --
> Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com
>


Re: Create untagged guest VMs

2024-05-20 Thread Wei ZHOU
What type of zone and network do you use ?

Try network with vlan = "vlan://untagged"





On Friday, May 17, 2024, Alex K  wrote:

> Hi All,
>
> Is it possible to create untagged guest networks in cloudstack and have
> them assigned to different OVS bridges?
>
> I have created several OVS bridges at the KVM host and then tried to attach
> the different VM NICs to the different OVS bridges without any VLAN
> tagging, but it seems that whatever I try there is always VLAN tagging at
> the guest VM interfaces at the VLAN ID range given at the initial zone
> creation.
>
> Also any NIC I add at the VM seems to be mapped only at the single guest
> network. Although I have defined different types of networks (guest,
> management, public) during zone creation, defining also the traffic labels
> according to the OVS bridge names, there does not seems to be a way to
> attach these different networks to the different OVS bridges through the
> cloudstack UI. My intention is to have the VM connected to different
> networks, with or without VLAN tag.
>
> I am testing now with an edge zone with a KVM server.
>
> Thanks for any input.
> Alex
>


Re: Exception during migrate:

2024-05-19 Thread Wei ZHOU
it seems you use cgroup v2.

What's the cpu cores and cpu speed of the vm and physical host ?
What's the value of cpu.overprovisioning.factor in the
global/zone/cluster setting ?


-Wei

On Sun, May 19, 2024 at 10:56 AM  wrote:
>
> Hello all
>
>
>
> I ran into an issue where I was unable to migrate a newly created KVM
> cluster.
>
>
>
> -error contents-
>
> Exception during migrate: org.libvirt.LibvirtException: invalid argument:
> shares '0' must be in range [2, 262144]
>
>
>
>
>
>
>
>
>
> I haven't changed any CloudStack settings and other clusters can be migrated
> without any problems.
>
>
>
> I would appreciate it if you could give me some hints.
>
>
>
> Thanks
>


Re: Cloudstack migration

2024-05-12 Thread Wei ZHOU
The qemu-kvm on rocky8 should have all the features of qemu-kvm-ev on
centos7.


-Wei

On Sunday, May 12, 2024, S.Fuller  wrote:

> Thanks for the reply Rohit. Have the changes that were in the -ev releases
> migrated into the standard version?
>
> - Steve
>
> On Sat, May 11, 2024 at 5:58 PM Rohit Yadav 
> wrote:
>
> > Hi Steve,
> >
> > That’s correct newer EL8/EL9 don’t have the -ev releases as they aren’t
> > available or necessary anymore.
> >
> > Since there may not be an in place upgrade path, you can create new
> > cluster or add new hosts and rolling migrate your hosts and VMs.
> >
> > Regards.
> >
> > Regards.
> >
> >
> >
> > 
> > From: S.Fuller 
> > Sent: Thursday, May 9, 2024 2:08:23 AM
> > To: users@cloudstack.apache.org 
> > Subject: Cloudstack migration
> >
> > I am currently running an older version of Cloudstack (4.11) on top of
> > CentOS 7 and using qemu-kvm-ev from the CentOS Virtualization SIG. I am
> > looking at migrating to Rocky Linux 8.9 and a newer version of
> Cloudstack,
> > but I'm running into issues w qemu-kvm-ev. Am I correct in stating that
> > qemu-kvm-ev is only supported on CentOS 7 and its variants? If so, it
> > appears my two options are to migrate back the qemu-kvm package that is
> > shipped with Rocky, or try to build a working qemu-kvm-ev binary for
> Rocky
> > using the SRPM? Any other options I might be missing?
> >
> > --
> > Steve Fuller
> > steveful...@gmail.com
> >
>
>
> --
> Steve Fuller
> steveful...@gmail.com
>


Re: CPU type and multi bootable image on CloudStack

2024-05-03 Thread Wei ZHOU
Hi,

Welcome to the community.

1. currently no. but it would be an interesting feature. Can you
create a github issue for it ?

2. You can detach the ISO from the vm and then attach another ISO to
the VM. you need to register the ISO at first.


Kind regards,
wei

On Fri, May 3, 2024 at 11:31 AM Khang Nguyen Phuc
 wrote:
>
> Hello everyone,
>
> I'm currently experimenting with a CloudStack setup, and I've encountered a
> few issues that I hope to get some help with.
>
> 1. I'm having difficulty with the CPU type (similar to what's available on
> Proxmox such as kvm64, host-passthrough, etc.). I can't seem to find this
> option in the CloudStack web interface. Is it possible for me to configure
> multiple CPU types and adjust them for each instance as needed?
>
> 2. Can I boot from a different ISO after an instance has been created? For
> example, booting from GParted to fix errors on the instance (something I
> can do on Proxmox).  I only see the option to create and add a volume (data
> disk)
> Thank you all for your assistance.
> Best Regards


Re: No IP assigned to VM instance even though UI/router says otherwise

2024-04-28 Thread Wei ZHOU
Hi Rishi,

If you want to create a template manually, you can refer to
https://docs.cloudstack.apache.org/en/4.19.0.1/adminguide/templates/_create_linux.html
Some users use packer to build templates automatically, for example
https://github.com/PCextreme/packer-templates


-Wei


On Sun, Apr 28, 2024 at 8:24 PM Rishi Misra  wrote:
>
> Thank you Wei - since I am testing it on a different architecture, is there
> a way of creating my own templates (similar to Centos templates) ?
>
> On Sun, Apr 28, 2024 at 2:08 PM Wei ZHOU  wrote:
>
> > Hi Rishi,
> >
> > The systemvm template is not used for user vms. As you have noticed,
> > the network interfaces are configured by cloudstack , dhcp does not
> > work.
> > You can test with the built-in Centos 5 templates. You can also try
> > the templates on http://dl.openvm.eu/cloudstack/ (provided by NuxRo)
> >
> > -Wei
> >
> > On Sun, Apr 28, 2024 at 7:30 PM Rishi Misra 
> > wrote:
> > >
> > > Hi there,
> > >
> > > I am trying to understand why a VM instance created by Cloudstack does
> > not
> > > get an IP address in "Basic network" configuration. Interestingly, unter
> > > the "instances" page UI shows an IP assigned to my VM instance.
> > > Furthermore, the router VM adds an entry for my VM/IP in its "/etc/hosts"
> > > entry.
> > >
> > > However, when I try to ping/access the VM it does not have any IP
> > > associated with it.  It almost looks like it never picked up an IP from
> > the
> > > DHCP server running on the router.
> > >
> > > After investigating a bit I found that new VM instances use default.sh
> > > <
> > https://github.com/apache/cloudstack/blob/main/systemvm/debian/opt/cloud/bin/setup/default.sh
> > >
> > > as part of initialization which does not define any interfaces which in
> > > turn causes this issue.  I can get around it by manually adding an entry
> > in
> > > the "/etc/networking/interface" file which works well, however the
> > > interface is reset once the machine is rebooted (as part of cloud init).
> > >
> > > What could be going on here? I am using the same qcow2 image for SystemVM
> > > and User template.
> > >
> > > Thanks.
> >


Re: No IP assigned to VM instance even though UI/router says otherwise

2024-04-28 Thread Wei ZHOU
Hi Rishi,

The systemvm template is not used for user vms. As you have noticed,
the network interfaces are configured by cloudstack , dhcp does not
work.
You can test with the built-in Centos 5 templates. You can also try
the templates on http://dl.openvm.eu/cloudstack/ (provided by NuxRo)

-Wei

On Sun, Apr 28, 2024 at 7:30 PM Rishi Misra  wrote:
>
> Hi there,
>
> I am trying to understand why a VM instance created by Cloudstack does not
> get an IP address in "Basic network" configuration. Interestingly, unter
> the "instances" page UI shows an IP assigned to my VM instance.
> Furthermore, the router VM adds an entry for my VM/IP in its "/etc/hosts"
> entry.
>
> However, when I try to ping/access the VM it does not have any IP
> associated with it.  It almost looks like it never picked up an IP from the
> DHCP server running on the router.
>
> After investigating a bit I found that new VM instances use default.sh
> 
> as part of initialization which does not define any interfaces which in
> turn causes this issue.  I can get around it by manually adding an entry in
> the "/etc/networking/interface" file which works well, however the
> interface is reset once the machine is rebooted (as part of cloud init).
>
> What could be going on here? I am using the same qcow2 image for SystemVM
> and User template.
>
> Thanks.


Re: Shared guest network assigned to multiple domains

2024-04-26 Thread Wei ZHOU
Hi Pearl and Ruben,

I think the main issue is that both networks (same gateway/cidr but
under different accounts) should work. Pearl's idea is good, we can
add some steps as below

- backup the database
- remove a Free IP from `user_ip_address` table
- create a shared network with startip/endip = FreeIP, and same vlan,
choose skipping the vlan check
- get the id of the new vlan from `vlan` table, update the ip4_range
of new vlan to same
- get the id of network from `networks` table
- If VR is needed, update `vlan_db_id` and `network_id` of a Free IP
to the new network/vlan so the new network has 2 IPs (1 for VR, 1 for
VM)
- assign Vm to the new account by API,  the Free IP will be assigned to the VM
- update `vlan_db_id` and `network_id` of the old vm IP to the new network/vlan
- update vm IP to the old vm IP
- start the VM



I have not tested it yet.


Kind regards,
Wei




On Fri, Apr 26, 2024 at 5:06 PM Pearl d'Silva
 wrote:
>
> I did not hit the issue with overlapping IP ranges as the network in the 
> destination domain / account was initially created with a different vlan and 
> then they were updated (or swapped) with the VLAN in the source domain. 
> However, I did not test with IPv6.
>
>
>
>
>
>
> 
> From: Ruben Bosch 
> Sent: April 26, 2024 10:58 AM
> To: users@cloudstack.apache.org 
> Subject: Re: Shared guest network assigned to multiple domains
>
> Hi Pearl,
>
> Thanks for the suggestion. Yes, assignVirtualMachine is an option, but in
> this case the used network is not accessible by the destination
> domain/account. Creating the same network twice also doesn't seem like an
> option due to NetUtils.ipRangesOverlap. It also seems to not be a
> possibility to create the same network without filling in the start/end IPs
> for IPv4, because then another error is triggered for the IPv6 range
> overlapping "The IPv6 range with tag: 1000 already has IPs that overlap
> with the new range." (tested on 4.18.1). The VXLAN ID in this case remains
> the same and the VLAN ID overlap check is disabled.
>
> Regards,
>
> Ruben Bosch
>
> On Fri, Apr 26, 2024 at 4:21 PM Pearl d'Silva 
> wrote:
>
> > Hi Ruben,
> >
> > Have you tried the 'Assign Instance to Another Account'
> > (assignVirtualMachine API) operation on the stopped VMs. This would help in
> > moving the VM(s) from one domain/account to another. I did a small test to
> > see if we could preserve the IP and it seemed to work but I may be wrong in
> > my understanding. This was my setup:
> >
> > VM1 in domain /ROOT/dom1 deployed in shared network shdom1 with vlan: 700
> > with CIDR: 10.70.70.1/24
> >
> > Created another domain /ROOT/dom2 and created a shared network shdom2 in
> > this domain with vlan, say: 701 with CIDR: 10.70.70.1/24
> >
> > swap the vlans via DB updated:
> > update networks set broadcast_uri = "vlan://701" where id = ;
> > update networks set broadcast_uri = "vlan://700" where id = ;
> > update vlan set vlan_id = 701 where id = ;
> > update vlan set vlan_id = 700 where id = ;
> >
> > Stop the VM(s) in /ROOT/dom1 domain that need to be moved, and then use
> > the Assign Instance to another Account to move VM to the destination domain
> > and account.
> >
> > Regards,
> > Pearl
> >
> >
> >
> > 
> > From: Ruben Bosch 
> > Sent: April 26, 2024 9:26 AM
> > To: users@cloudstack.apache.org 
> > Subject: Re: Shared guest network assigned to multiple domains
> >
> > Wei, the use cases may vary. In some cases it will be moved completely to a
> > different domain+account, in other cases not.
> >
> > On Fri, Apr 26, 2024 at 2:48 PM Wei ZHOU  wrote:
> >
> > > Hi Ruben,
> > >
> > > Will you move all VMs on the network to another account, or just some
> > > of the VMs ?
> > >
> > > -Wei
> > >
> > > On Fri, Apr 26, 2024 at 2:44 PM Ruben Bosch 
> > wrote:
> > > >
> > > > Thanks Daan :-) Hope there are others with some ideas as well!
> > > >
> > > > On Fri, Apr 26, 2024 at 2:42 PM Daan Hoogland  > >
> > > > wrote:
> > > >
> > > > > ok, from what I know now I have exhausted my clues. Hope you get your
> > > > > migration done expediently.
> > > > >
> > > > > On Fri, Apr 26, 2024 at 2:29 PM Ruben Bosch 
> > > wrote:
> > > > > >
> > > > > > Hmm, that might be possible. However we would like to automate as
> > > much as
> > > > > >

Re: Shared guest network assigned to multiple domains

2024-04-26 Thread Wei ZHOU
Hi Ruben,

Will you move all VMs on the network to another account, or just some
of the VMs ?

-Wei

On Fri, Apr 26, 2024 at 2:44 PM Ruben Bosch  wrote:
>
> Thanks Daan :-) Hope there are others with some ideas as well!
>
> On Fri, Apr 26, 2024 at 2:42 PM Daan Hoogland 
> wrote:
>
> > ok, from what I know now I have exhausted my clues. Hope you get your
> > migration done expediently.
> >
> > On Fri, Apr 26, 2024 at 2:29 PM Ruben Bosch  wrote:
> > >
> > > Hmm, that might be possible. However we would like to automate as much as
> > > possible. Changing existing IPs to unused ones is not an option, no.
> > >
> > > On Fri, Apr 26, 2024 at 2:25 PM Daan Hoogland 
> > > wrote:
> > >
> > > > ok, and you probably can't redistribute the IPs in the domain or
> > > > define the order of migration to be in line with the range?
> > > >
> > > > On Fri, Apr 26, 2024 at 2:01 PM Ruben Bosch 
> > wrote:
> > > > >
> > > > > The target domain already exists with VMs running in it
> > > > >
> > > > > On Fri, Apr 26, 2024 at 1:46 PM Daan Hoogland <
> > daan.hoogl...@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > so probably a stupoid suggestion, but why ot rename the domain
> > then?
> > > > > >
> > > > > > On Fri, Apr 26, 2024 at 1:04 PM Ruben Bosch 
> > > > wrote:
> > > > > > >
> > > > > > > Hi Daan, cases may vary. For our first migration in the end all
> > VMs
> > > > will
> > > > > > > move to the other domain.
> > > > > > >
> > > > > > > On Fri, Apr 26, 2024 at 12:32 PM Daan Hoogland <
> > > > daan.hoogl...@gmail.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > Ruben, do you need to move domainA completely to domainB or do
> > you
> > > > > > > > need to move *some* VMs from it?
> > > > > > > >
> > > > > > > > On Fri, Apr 26, 2024 at 11:00 AM Ruben Bosch <
> > ruben.bo...@cldin.eu
> > > > >
> > > > > > wrote:
> > > > > > > > >
> > > > > > > > > Hi all,
> > > > > > > > >
> > > > > > > > > We're looking into the following. We are using advanced
> > > > networking
> > > > > > on ACS
> > > > > > > > > 4.16.1 (upgrading soon to 4.18.1). We have a guest network
> > that
> > > > is
> > > > > > > > assigned
> > > > > > > > > to a specific domain A (ROOT/foo/domainA). Now we will need
> > to
> > > > move
> > > > > > VMs
> > > > > > > > > from domain A to domain B (ROOT/bar/domainB) while
> > preserving IP
> > > > > > > > addresses.
> > > > > > > > > We are exploring our options on how to make this a seamless
> > > > > > transition.
> > > > > > > > We
> > > > > > > > > have found that:
> > > > > > > > >
> > > > > > > > > - we cannot add the network with the same parameters again,
> > as it
> > > > > > fails
> > > > > > > > on
> > > > > > > > > IP address start/end overlap check
> > > > > > > > > - we cannot add the extra domain in the "domain_network_ref"
> > > > table
> > > > > > as it
> > > > > > > > > yields no result
> > > > > > > > > - we can assign the domain to ROOT and ensure no other users
> > can
> > > > > > claim
> > > > > > > > IPs
> > > > > > > > > by updating "state" in "user_ip_address"
> > > > > > > > >
> > > > > > > > > Are there any other options available that we can think of?
> > I'm
> > > > > > looking
> > > > > > > > > forward to your input.
> > > > > > > > >
> > > > > > > > > Kind regards,
> > > > > > > > >
> > > > > > > > > Ruben Bosch
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Daan
> > > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Daan
> > > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Daan
> > > >
> >
> >
> >
> > --
> > Daan
> >


Re: Move VM to other account

2024-04-23 Thread Wei ZHOU
Indeed, this needs to be improved.

Which cloudstack version do you use ?

Please check the network, server/disk offerings, templates, etc


Kind regards,
Wei

On Tue, Apr 23, 2024 at 12:48 PM Jimmy Huybrechts  wrote:
>
> Hi,
>
> I mentioned it before but again running in the same issue with a different 
> account.. how to see WHY an account cannot be moved to a different account.
>
> 2024-04-23 12:34:22,614 ERROR [o.a.c.a.c.a.v.AssignVMCmd] 
> (qtp1789718525-7698:ctx-b0881a99 ctx-be595b24) (logid:2fe13e1b) Failed to 
> move vm due to: [Ljava.lang.StackTraceElement;@313bdb0e
> 2024-04-23 12:34:22,614 INFO  [c.c.a.ApiServer] 
> (qtp1789718525-7698:ctx-b0881a99 ctx-be595b24) (logid:2fe13e1b) Failed to 
> move vm due to Account 
> [{"accountName":"cidX","id":14,"uuid":"6d2dd50e-10c8-4c86-955c-85a6d99140d8"}]
>  does not have permission to operate with resource
>
> That error is just plain useless, it’s the same as saying I won’t move but 
> I’m not telling you why, go find out yourself.
>
> It has access to the template under shared, it can see the network, I can 
> even create an instance under that account with exactly the same options and 
> yet I can’t move it from the domain admin account to a user account because 
> of that nothing saying entry.
>
> Above that it does some checks but these are all within limits.
>
> --
> Jimmy


Re: Router has failing health checks -System Alerts

2024-04-23 Thread Wei ZHOU
You can go to the "Health checks" tab in the VR page, it will tell you
the free space in the VR.


-Wei

On Tue, Apr 23, 2024 at 11:28 AM Raghava Yerubandi
 wrote:
>
> Hello Community,
>
> We are getting a system alert stating that  *Router
> 360417e0-48a7-4467-9098-0cac656da27a has failing checks:
> disk_space_check.py *in our environment.
>
> Can anyone suggest to me what the problem is & where we can troubleshoot it.
>
> we are using ACS - 4.16


Re: Storage pool stucks in initialized

2024-04-22 Thread Wei ZHOU
Hi,

Please check if package "libvirt-daemon-driver-storage-rbd" has been
installed on all hosts


-Wei

On Mon, Apr 22, 2024 at 9:16 AM Mevludin Blazevic
 wrote:
>
> Hi all,
>
> I tried to add a second Zone-wide storage pool (Ceph-RBD), which fails
> with notification "Request failed". The strange thing is that only some
> KVM host have added the storage pool and some did not. In addition, no
> erros or exception were logged in the management-server logs. Are there
> similar experiences?
>
> Mevludin
>
>


Re: RVR's in master/master state

2024-04-20 Thread Wei ZHOU
Hi Gary,

Thanks for the sharing

I recall a similar issue caused by a multicast configuration (not the
same):
https://github.com/apache/cloudstack/issues/7838#issuecomment-1722697352

anyone facing the similar issue could check the multicast configurations.


Kind regards,
Wei



On Fri, Apr 19, 2024 at 6:20 PM Gary Dixon 
wrote:

> Hi Daan
>
> Sorry - I forgot to post back what the issue turned out to be.
>
> We had a power outage in our building where our Dev environment is racked.
> After doing some tcp dumps on some vxlan interfaces I was seeing lots of
> bad checksums.
> Our Network engineer swore that the switches we're all OK but after
> re-applying the multicast config on the switches - all of the RVR's came
> back into a stable Master/Backup state across all VPC's.
> Hope this helps others if they are seeing strange behaviour with VPC RVR's
> when using VXLAN guest isolation
>
> BR
>
> Gary
>
>
>
> Gary Dixon
> Quadris Cloud Manager
> +44 (0) 161 537 4980 <+44%20(0)%20161%20537%204980>
>  +44 (0) 7989 717661 <+44%20(0)%207989%20717661>
> gary.di...@quadris.co.uk
> www.quadris.com
> Innovation House, 12‑13 Bredbury Business Park
> Bredbury Park Way, Bredbury, Stockport, SK6 2SN
> -Original Message-
> From: Daan Hoogland 
> Sent: Friday, April 19, 2024 3:08 PM
> To: users@cloudstack.apache.org
> Subject: Re: RVR's in master/master state
>
> sorry no one could help you Gary,
> Have you gotten any further on this issue?
>
> On Fri, Apr 5, 2024 at 4:59 PM Gary Dixon  >
> wrote:
>
> > HI all
> >
> >
> >
> > ACS 4.15.2
> >
> > Ubuntu 20.04
> >
> > KVM
> >
> > Adv Zone no sec groups
> >
> >
> >
> > We recently had to move all of our dev ACS environment virtual
> > management and mysql servers to a new isolated subnet for security
> reasons.
> >
> >
> >
> > Since then all of the VPC RVR’s are in master/master mode.
> >
> > If I restart a VPC with cleanup the RVR’s come back into a
> > master/backup state for a few minutes but then go into master/master
> > state rendering the VPC useless.
> >
> >
> >
> > In the cloud.log on one of the RVR’s it is full of these errors:
> >
> > “2024-04-05 14:51:43,843 ERROR Not able to setup source-nat for a
> > regular router yet”
> >
> >
> >
> > Can anyone point me in the right direction to resolve this issue ?
> >
> > Are there other logs I could look at or services on the RVR’s to check ?
> >
> >
> >
> > BR
> >
> >
> >
> > Gary
> >
> >
> > Gary Dixon
> > Quadris Cloud Manager
> > +44 (0) 161 537 4980 <+44%20(0)%20161%20537%204980>
> > +44 (0) 7989 717661 <+44%20(0)%207989%20717661>
> > gary.di...@quadris.co.uk
> > http://www.q/
> > uadris.com%2F=05%7C02%7CGary.Dixon%40quadris.co.uk%7C6d453f64080c
> > 449f243d08dc607a6e5c%7Cf1d6abf3d3b44894ae16db0fb93a96a2%7C0%7C0%7C6384
> > 91326163464980%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2l
> > uMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C=tKsAdO2jZBj5qeL
> > CsCSOX0zLNsvyrXSeY7PegUCOBhE%3D=0
> > Innovation House, 12‑13 Bredbury Business Park Bredbury Park Way,
> > Bredbury, Stockport, SK6 2SN
> >
>
>
> --
> Daan
>


Re: CloudStack managing KVM Hypervisors on multiple architectures?

2024-04-19 Thread Wei ZHOU
different clusters should be fine.

maybe @Rohit Yadav can give some advice.


-Wei

On Fri, Apr 19, 2024 at 4:56 PM Daan Hoogland  wrote:
>
> good point Rishi,
> I think you would have to separate the hardware into different
> clusters at least, but maybe even separate zones. I never heard of
> anybody doing a setup like yours.
>
> On Wed, Apr 10, 2024 at 6:56 PM Rishi Misra  
> wrote:
> >
> > Can a CloudStack instance running on x86 manage deployments on both x86 and
> > Raspberry Pi (or any other archs)?
> >
> > I am not sure how it will affect management SystemVMs given the different
> > archs in the mix?
> >
> > Any pointers are greatly appreciated.
> >
> > Thanks!
>
>
>
> --
> Daan


Re: Deployment of VNF appliance without VR

2024-04-19 Thread Wei ZHOU
Hi,

You can deploy the VNF appliance on a shared network as the first network

-Wei

On Fri, Apr 19, 2024 at 3:38 PM Kaushik Bora
 wrote:
>
> Dear Community,
>
>
>
>We have been going through the VNF appliance deployment which is
> available in release 4.19.0. We have successfully tested the VNF deployment
> scenario with the Virtual Router. However, want to evaluate if the VNF
> appliance can be deployed without the Virtual Router as well, any guidance
> from the community to evaluate the use case(VNF without the VR) is highly
> appreciated.
>
>
>
> Thanks & Regards,
>
> Kaushik Bora
>
> +91-9711100076
>
>
>
>
> --
> This message is intended only for the use of the individual or entity to
> which it is addressed and may contain confidential and/or privileged
> information. If you are not the intended recipient, please delete the
> original message and any copy of it from your computer system. You are
> hereby notified that any dissemination, distribution or copying of this
> communication is strictly prohibited unless proper authorization has been
> obtained for such action. If you have received this communication in error,
> please notify the sender immediately. Although IndiQus attempts to sweep
> e-mail and attachments for viruses, it does not guarantee that both are
> virus-free and accepts no liability for any damage sustained as a result of
> viruses.


Re: Migration status of instance

2024-04-18 Thread Wei ZHOU
Hi,

You can check the migration progress via "virsh domjobinfo" command on
the source host of the vm.

for example, the output of vm migration to another storage

$ date;virsh domjobinfo i-2-1338-VM

Thu Apr 18 19:19:06 UTC 2024
Job type: Unbounded
Operation:Outgoing migration
Time elapsed: 2740 ms
Data processed:   235.875 MiB
Data remaining:   71.938 MiB
Data total:   307.812 MiB
File processed:   235.875 MiB
File remaining:   71.938 MiB
File total:   307.812 MiB

Thu Apr 18 19:19:07 UTC 2024
Job type: Unbounded
Operation:Outgoing migration
Time elapsed: 3797 ms
Data processed:   552.908 MiB
Data remaining:   190.426 MiB
Data total:   824.633 MiB
Memory processed: 245.095 MiB
Memory remaining: 190.426 MiB
Memory total: 516.820 MiB
Memory bandwidth: 251.917 MiB/s
Dirty rate:   0pages/s
Page size:4096 bytes
Iteration:1
Postcopy requests: 0
File processed:   307.812 MiB
File remaining:   0.000 B
File total:   307.812 MiB
Constant pages:   20980
Normal pages: 62576
Normal data:  244.438 MiB
Expected downtime: 300  ms
Setup time:   11   ms
Compression cache: 64.000 MiB
Compressed data:  0.000 B
Compressed pages: 0
Compression cache misses: 0
Compression overflows: 0



-Wei

On Wed, Apr 17, 2024 at 11:36 PM Jimmy Huybrechts  wrote:
>
> Hi,
>
> I was migration a pretty big VM between hosts (using local storage) and while 
> in the end that works fine.
>
> Is there any way to see a kind of status? In the GUI I can see it starts and 
> finishes which is nice but of little use in this case.
> I tried looking at some logs but now where does it give any status or 
> progress.
>
> On the server it goes out off I can see in the log:
> INFO  [resource.wrapper.LibvirtMigrateCommandWrapper] 
> (agentRequest-Handler-5:) (logid:90c561c8) Waiting for migration of i-8-63-VM 
> to complete, waited 1549000ms
>
> But that’s it.
>
> How does the migration look like?
>
> --
> Jimmy


Re: CentOS 7 ? kernel 3.10.0-1160.. really?

2024-04-18 Thread Wei ZHOU
ok, that's good to know
you can try advanced zones with vxlan.


-Wei

On Thu, Apr 18, 2024 at 5:22 PM Embedded  wrote:
>
>
>
>
> On Thursday 18 April 2024 09:28:42 PM (+07:00), Wei ZHOU wrote:
>
> > You can configure vxlan device in the kvm hosts, and test the connectivity.
> > I doubt if your switch ports have been configured to support vxlan.
> >
>
> vxlan worked fine across multiple xcp-ng hosts on same network previously.
> and just got 4 nodes in the lab up and k8s 1.28 running, almalinux 8 seems to 
> work ok
>
> moving on to colo
>
> > -Wei
> >
> > On Thursday, April 18, 2024, Embedded  wrote:
> >
> > >
> > >
> > >
> > > On Thursday 18 April 2024 08:18:18 PM (+07:00), Wei ZHOU wrote:
> > >
> > > > > as my servers with kvm do have 2 nics, the managment server only has
> > > one.
> > > >
> > > > It is fine.
> > > >
> > > > > second to that i dont control the network infrastructure, its in a
> > > colo, therefore no vlans.
> > > >
> > > > That's the main problem. if you cannot use vlan, you cannot use the
> > > > isolated networks.
> > > > shared network is the only option for you. but then static nat/source
> > > > nat features are impossible.
> > > > just my opinion.
> > >
> > > though couldnt i use vxlan to achieve the same results ?? i dont need
> > > upstream vlan configuration for that
> > >
> > > >
> > > >
> > > > -Wei
> > > >
> > > >
> > > >
> > > >
> > > > On Thu, Apr 18, 2024 at 3:01 PM Embedded 
> > > wrote:
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Thursday 18 April 2024 07:43:26 PM (+07:00), Wei ZHOU wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I have seen your question regarding networking in another thread.
> > > > > > Based on your infrastructure (servers with only 1 nics and vlan is
> > > not
> > > > > > supported), the only option is Basic zone.
> > > > > > To use Advanced zone (or with security groups), servers should have
> > > at
> > > > > > least two nics and vlan should be supported.
> > > > > >
> > > > > > To be frank, you should have a better network design before 
> > > > > > deploying
> > > > > > cloudstack or any other cloud orchestrations.
> > > > >
> > > > > correct me if im wrong, however is it true only kvm hosts should have
> > > 2 nics??
> > > > > of does the network manager host also require two nics, ? as my
> > > servers with
> > > > > kvm do have 2 nics, the managment server only has one. second to that
> > > i dont
> > > > > control the network infrastructure, its in a colo, therefore no vlans.
> > > and im not
> > > > > seeing anywhere in the install guide the 2 nic requirement.
> > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > -Wei
> > > > > >
> > > > > >
> > > > > > On Thu, Apr 18, 2024 at 2:16 PM Embedded
> > >  wrote:
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On Thursday 18 April 2024 07:03:06 PM (+07:00), Wei ZHOU wrote:
> > > > > > >
> > > > > > > > sorry, the compatibility matrix of latest 4.19.0.1
> > > > > > > > https://docs.cloudstack.apache.org/en/4.19.0.1/
> > > releasenotes/compat.html
> > > > > > > >
> > > > > > >
> > > > > > > Thanks, Ive become a pro at installing cs on Debian and Ubuntu,
> > > did it like 30 times over the past days
> > > > > > > but cant seem to get networking right for what i need, always
> > > iptables or something not working so I
> > > > > > > figured id try what the guide says in quick start to see if that
> > > even works. Having real troubles getting this deployed.
> > > > > > >
> > > > > > > > -Wei
> > > > > > > >
> > > > > > > > On Thu, Apr 18, 2024 at 2:02 PM Wei ZHOU 
> > > wrote:
> > > > > > > > >
> > > > > > > > > Please check the compatibility issue
> > > > > > > > > https://docs.cloudstack.apache.org/en/4.19.0.0/
> > > releasenotes/compat.html
> > > > > > > > >
> > > > > > > > > -Wei
> > > > > > > > >
> > > > > > > > > On Thu, Apr 18, 2024 at 1:58 PM Embedded
> > >  wrote:
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > wait, what... 4.19 install guide says use CentOS 7... which
> > > is like kernel
> > > > > > > > > > 3.10.0-1160, 2020-11-12, 2020-09-29...
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > seriously? is there anything newer more modern recommended
> > > that is know to
> > > > > > > > > > work? Rocky/Alma Centos8/9 ?
> > > > > > > > > > --
> > > > > > > > > > Sent with Vivaldi Mail. Download Vivaldi for free at
> > > vivaldi.com
> > > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com
> > > > > >
> > > > >
> > > > > --
> > > > > Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com
> > > >
> > >
> > > --
> > > Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com
> > >
> >
>
> --
> Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com


Re: CentOS 7 ? kernel 3.10.0-1160.. really?

2024-04-18 Thread Wei ZHOU
You can configure vxlan device in the kvm hosts, and test the connectivity.
I doubt if your switch ports have been configured to support vxlan.

-Wei

On Thursday, April 18, 2024, Embedded  wrote:

>
>
>
> On Thursday 18 April 2024 08:18:18 PM (+07:00), Wei ZHOU wrote:
>
> > > as my servers with kvm do have 2 nics, the managment server only has
> one.
> >
> > It is fine.
> >
> > > second to that i dont control the network infrastructure, its in a
> colo, therefore no vlans.
> >
> > That's the main problem. if you cannot use vlan, you cannot use the
> > isolated networks.
> > shared network is the only option for you. but then static nat/source
> > nat features are impossible.
> > just my opinion.
>
> though couldnt i use vxlan to achieve the same results ?? i dont need
> upstream vlan configuration for that
>
> >
> >
> > -Wei
> >
> >
> >
> >
> > On Thu, Apr 18, 2024 at 3:01 PM Embedded 
> wrote:
> > >
> > >
> > >
> > >
> > > On Thursday 18 April 2024 07:43:26 PM (+07:00), Wei ZHOU wrote:
> > >
> > > > Hi,
> > > >
> > > > I have seen your question regarding networking in another thread.
> > > > Based on your infrastructure (servers with only 1 nics and vlan is
> not
> > > > supported), the only option is Basic zone.
> > > > To use Advanced zone (or with security groups), servers should have
> at
> > > > least two nics and vlan should be supported.
> > > >
> > > > To be frank, you should have a better network design before deploying
> > > > cloudstack or any other cloud orchestrations.
> > >
> > > correct me if im wrong, however is it true only kvm hosts should have
> 2 nics??
> > > of does the network manager host also require two nics, ? as my
> servers with
> > > kvm do have 2 nics, the managment server only has one. second to that
> i dont
> > > control the network infrastructure, its in a colo, therefore no vlans.
> and im not
> > > seeing anywhere in the install guide the 2 nic requirement.
> > >
> > > >
> > > >
> > > >
> > > > -Wei
> > > >
> > > >
> > > > On Thu, Apr 18, 2024 at 2:16 PM Embedded
>  wrote:
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Thursday 18 April 2024 07:03:06 PM (+07:00), Wei ZHOU wrote:
> > > > >
> > > > > > sorry, the compatibility matrix of latest 4.19.0.1
> > > > > > https://docs.cloudstack.apache.org/en/4.19.0.1/
> releasenotes/compat.html
> > > > > >
> > > > >
> > > > > Thanks, Ive become a pro at installing cs on Debian and Ubuntu,
> did it like 30 times over the past days
> > > > > but cant seem to get networking right for what i need, always
> iptables or something not working so I
> > > > > figured id try what the guide says in quick start to see if that
> even works. Having real troubles getting this deployed.
> > > > >
> > > > > > -Wei
> > > > > >
> > > > > > On Thu, Apr 18, 2024 at 2:02 PM Wei ZHOU 
> wrote:
> > > > > > >
> > > > > > > Please check the compatibility issue
> > > > > > > https://docs.cloudstack.apache.org/en/4.19.0.0/
> releasenotes/compat.html
> > > > > > >
> > > > > > > -Wei
> > > > > > >
> > > > > > > On Thu, Apr 18, 2024 at 1:58 PM Embedded
>  wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > > wait, what... 4.19 install guide says use CentOS 7... which
> is like kernel
> > > > > > > > 3.10.0-1160, 2020-11-12, 2020-09-29...
> > > > > > > >
> > > > > > > >
> > > > > > > > seriously? is there anything newer more modern recommended
> that is know to
> > > > > > > > work? Rocky/Alma Centos8/9 ?
> > > > > > > > --
> > > > > > > > Sent with Vivaldi Mail. Download Vivaldi for free at
> vivaldi.com
> > > > > >
> > > > >
> > > > > --
> > > > > Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com
> > > >
> > >
> > > --
> > > Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com
> >
>
> --
> Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com
>


Re: CentOS 7 ? kernel 3.10.0-1160.. really?

2024-04-18 Thread Wei ZHOU
> as my servers with kvm do have 2 nics, the managment server only has one.

It is fine.

> second to that i dont control the network infrastructure, its in a colo, 
> therefore no vlans.

That's the main problem. if you cannot use vlan, you cannot use the
isolated networks.
shared network is the only option for you. but then static nat/source
nat features are impossible.
just my opinion.


-Wei




On Thu, Apr 18, 2024 at 3:01 PM Embedded  wrote:
>
>
>
>
> On Thursday 18 April 2024 07:43:26 PM (+07:00), Wei ZHOU wrote:
>
> > Hi,
> >
> > I have seen your question regarding networking in another thread.
> > Based on your infrastructure (servers with only 1 nics and vlan is not
> > supported), the only option is Basic zone.
> > To use Advanced zone (or with security groups), servers should have at
> > least two nics and vlan should be supported.
> >
> > To be frank, you should have a better network design before deploying
> > cloudstack or any other cloud orchestrations.
>
> correct me if im wrong, however is it true only kvm hosts should have 2 nics??
> of does the network manager host also require two nics, ? as my servers with
> kvm do have 2 nics, the managment server only has one. second to that i dont
> control the network infrastructure, its in a colo, therefore no vlans. and im 
> not
> seeing anywhere in the install guide the 2 nic requirement.
>
> >
> >
> >
> > -Wei
> >
> >
> > On Thu, Apr 18, 2024 at 2:16 PM Embedded  
> > wrote:
> > >
> > >
> > >
> > >
> > > On Thursday 18 April 2024 07:03:06 PM (+07:00), Wei ZHOU wrote:
> > >
> > > > sorry, the compatibility matrix of latest 4.19.0.1
> > > > https://docs.cloudstack.apache.org/en/4.19.0.1/releasenotes/compat.html
> > > >
> > >
> > > Thanks, Ive become a pro at installing cs on Debian and Ubuntu, did it 
> > > like 30 times over the past days
> > > but cant seem to get networking right for what i need, always iptables or 
> > > something not working so I
> > > figured id try what the guide says in quick start to see if that even 
> > > works. Having real troubles getting this deployed.
> > >
> > > > -Wei
> > > >
> > > > On Thu, Apr 18, 2024 at 2:02 PM Wei ZHOU  wrote:
> > > > >
> > > > > Please check the compatibility issue
> > > > > https://docs.cloudstack.apache.org/en/4.19.0.0/releasenotes/compat.html
> > > > >
> > > > > -Wei
> > > > >
> > > > > On Thu, Apr 18, 2024 at 1:58 PM Embedded 
> > > > >  wrote:
> > > > > >
> > > > > >
> > > > > > wait, what... 4.19 install guide says use CentOS 7... which is like 
> > > > > > kernel
> > > > > > 3.10.0-1160, 2020-11-12, 2020-09-29...
> > > > > >
> > > > > >
> > > > > > seriously? is there anything newer more modern recommended that is 
> > > > > > know to
> > > > > > work? Rocky/Alma Centos8/9 ?
> > > > > > --
> > > > > > Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com
> > > >
> > >
> > > --
> > > Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com
> >
>
> --
> Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com


Re: CentOS 7 ? kernel 3.10.0-1160.. really?

2024-04-18 Thread Wei ZHOU
Hi,

I have seen your question regarding networking in another thread.
Based on your infrastructure (servers with only 1 nics and vlan is not
supported), the only option is Basic zone.
To use Advanced zone (or with security groups), servers should have at
least two nics and vlan should be supported.

To be frank, you should have a better network design before deploying
cloudstack or any other cloud orchestrations.



-Wei


On Thu, Apr 18, 2024 at 2:16 PM Embedded  wrote:
>
>
>
>
> On Thursday 18 April 2024 07:03:06 PM (+07:00), Wei ZHOU wrote:
>
> > sorry, the compatibility matrix of latest 4.19.0.1
> > https://docs.cloudstack.apache.org/en/4.19.0.1/releasenotes/compat.html
> >
>
> Thanks, Ive become a pro at installing cs on Debian and Ubuntu, did it like 
> 30 times over the past days
> but cant seem to get networking right for what i need, always iptables or 
> something not working so I
> figured id try what the guide says in quick start to see if that even works. 
> Having real troubles getting this deployed.
>
> > -Wei
> >
> > On Thu, Apr 18, 2024 at 2:02 PM Wei ZHOU  wrote:
> > >
> > > Please check the compatibility issue
> > > https://docs.cloudstack.apache.org/en/4.19.0.0/releasenotes/compat.html
> > >
> > > -Wei
> > >
> > > On Thu, Apr 18, 2024 at 1:58 PM Embedded  
> > > wrote:
> > > >
> > > >
> > > > wait, what... 4.19 install guide says use CentOS 7... which is like 
> > > > kernel
> > > > 3.10.0-1160, 2020-11-12, 2020-09-29...
> > > >
> > > >
> > > > seriously? is there anything newer more modern recommended that is know 
> > > > to
> > > > work? Rocky/Alma Centos8/9 ?
> > > > --
> > > > Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com
> >
>
> --
> Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com


Re: CentOS 7 ? kernel 3.10.0-1160.. really?

2024-04-18 Thread Wei ZHOU
sorry, the compatibility matrix of latest 4.19.0.1
https://docs.cloudstack.apache.org/en/4.19.0.1/releasenotes/compat.html

-Wei

On Thu, Apr 18, 2024 at 2:02 PM Wei ZHOU  wrote:
>
> Please check the compatibility issue
> https://docs.cloudstack.apache.org/en/4.19.0.0/releasenotes/compat.html
>
> -Wei
>
> On Thu, Apr 18, 2024 at 1:58 PM Embedded  wrote:
> >
> >
> > wait, what... 4.19 install guide says use CentOS 7... which is like kernel
> > 3.10.0-1160, 2020-11-12, 2020-09-29...
> >
> >
> > seriously? is there anything newer more modern recommended that is know to
> > work? Rocky/Alma Centos8/9 ?
> > --
> > Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com


Re: CentOS 7 ? kernel 3.10.0-1160.. really?

2024-04-18 Thread Wei ZHOU
Please check the compatibility issue
https://docs.cloudstack.apache.org/en/4.19.0.0/releasenotes/compat.html

-Wei

On Thu, Apr 18, 2024 at 1:58 PM Embedded  wrote:
>
>
> wait, what... 4.19 install guide says use CentOS 7... which is like kernel
> 3.10.0-1160, 2020-11-12, 2020-09-29...
>
>
> seriously? is there anything newer more modern recommended that is know to
> work? Rocky/Alma Centos8/9 ?
> --
> Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com


Re: confusing cloudstack networking

2024-04-17 Thread Wei ZHOU
you do not need cloudstack virtual router to provide dhcp/dns service, right ?

If you use an advanced zone, you can create a shared network without
any service, then the VMs will get dhcp from your router, not
cloudstack virtual router.

-Wei

On Wed, Apr 17, 2024 at 9:03 AM Embedded  wrote:
>
>
> ok is there any way to tell vms just to get a dhcp ip off the local lan 
> without the router in the mix??
>
> everything in the lab lan is 192.168.10.xxx
>
> On Wednesday 17 April 2024 01:40:30 PM (+07:00), Wei ZHOU wrote:
>
> > Hi,
> >
> > cloud0 is the control network of virtual routers and system vms.
> > The IP of cloud0 is configured as 169.254.0.1/16 by default.
> >
> >
> > -Wei
> >
> >
> >
> > On Wed, Apr 17, 2024 at 7:41 AM Embedded  
> > wrote:
> > >
> > > cloudstack seems to be confusing networking on a lab install ... vms come
> > > up but
> > > the ip they have appears to be on the other side instead of the router
> > > side, i noticed
> > > cloud0 is using a 169.xxx IP address, where this is a flat 192.168.10.xxx
> > > network
> > >
> > > root@cs:~# brctl show
> > > bridge name bridge id   STP enabled interfaces
> > > cloud0  8000.7623b36199a8   no  vnet0
> > > vnet3
> > > vnet7
> > > cloudbr08000.266873c8a6be   no  eno1
> > > vnet1
> > > vnet2
> > > vnet4
> > > vnet5
> > > vnet6
> > > vnet7
> > >
> > >
> > >
> > > 5: cloudbr0:  mtu 1500 qdisc noqueue 
> > > state
> > > UP group default qlen 1000
> > >  link/ether 26:68:73:c8:a6:be brd ff:ff:ff:ff:ff:ff
> > >  inet 192.168.10.10/24 brd 192.168.10.255 scope global cloudbr0
> > > valid_lft forever preferred_lft forever
> > >  inet6 fe80::2468:73ff:fec8:a6be/64 scope link
> > > valid_lft forever preferred_lft forever
> > > 7: cloud0:  mtu 1500 qdisc noqueue state
> > > UP group default qlen 1000
> > >  link/ether 76:23:b3:61:99:a8 brd ff:ff:ff:ff:ff:ff
> > >  inet 169.254.0.1/16 scope global cloud0
> > > valid_lft forever preferred_lft forever
> > >  inet6 fe80::7423:b3ff:fe61:99a8/64 scope link
> > > valid_lft forever preferred_lft forever
> > > --
> > > Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com
> >
>
> --
> Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com


Re: confusing cloudstack networking

2024-04-17 Thread Wei ZHOU
Hi,

cloud0 is the control network of virtual routers and system vms.
The IP of cloud0 is configured as 169.254.0.1/16 by default.


-Wei



On Wed, Apr 17, 2024 at 7:41 AM Embedded  wrote:
>
> cloudstack seems to be confusing networking on a lab install ... vms come
> up but
> the ip they have appears to be on the other side instead of the router
> side, i noticed
> cloud0 is using a 169.xxx IP address, where this is a flat 192.168.10.xxx
> network
>
> root@cs:~# brctl show
> bridge name bridge id   STP enabled interfaces
> cloud0  8000.7623b36199a8   no  vnet0
> vnet3
> vnet7
> cloudbr08000.266873c8a6be   no  eno1
> vnet1
> vnet2
> vnet4
> vnet5
> vnet6
> vnet7
>
>
>
> 5: cloudbr0:  mtu 1500 qdisc noqueue state
> UP group default qlen 1000
>  link/ether 26:68:73:c8:a6:be brd ff:ff:ff:ff:ff:ff
>  inet 192.168.10.10/24 brd 192.168.10.255 scope global cloudbr0
> valid_lft forever preferred_lft forever
>  inet6 fe80::2468:73ff:fec8:a6be/64 scope link
> valid_lft forever preferred_lft forever
> 7: cloud0:  mtu 1500 qdisc noqueue state
> UP group default qlen 1000
>  link/ether 76:23:b3:61:99:a8 brd ff:ff:ff:ff:ff:ff
>  inet 169.254.0.1/16 scope global cloud0
> valid_lft forever preferred_lft forever
>  inet6 fe80::7423:b3ff:fe61:99a8/64 scope link
> valid_lft forever preferred_lft forever
> --
> Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com


Re: How to achieve VNF without VR

2024-04-15 Thread Wei ZHOU
You may refer to
https://www.shapeblue.com/vnf-appliance-integration-deep-dive/



On Monday, April 15, 2024, Gaurav Shrivastava
 wrote:

> Hi Team,
>
>
> Is there any way to achieve VNF without VR. If there are any steps or
> documentation that I can follow please let me know.
>
> I am using CloudStack 4.19.0.1
>
>
> Regards
> Gaurav
>
> --
> This message is intended only for the use of the individual or entity to
> which it is addressed and may contain confidential and/or privileged
> information. If you are not the intended recipient, please delete the
> original message and any copy of it from your computer system. You are
> hereby notified that any dissemination, distribution or copying of this
> communication is strictly prohibited unless proper authorization has been
> obtained for such action. If you have received this communication in
> error,
> please notify the sender immediately. Although IndiQus attempts to sweep
> e-mail and attachments for viruses, it does not guarantee that both are
> virus-free and accepts no liability for any damage sustained as a result
> of
> viruses.
>


Re: cloudstack on debian 10/11

2024-04-15 Thread Wei ZHOU
Is eth0 added to cloudbr0 bridge ?

-Wei

On Mon, Apr 15, 2024 at 1:14 PM lists  wrote:
>
>
>
>
> I did in fact get a debian 11 install up and running pretty much as a 
> management server and almost good as a host. Have to figure out why the 
> cloidbr0 is on a 169.xxx adress and why no centos template was downloaded. 
> Systemvms came up without a problem.
>
>
>
>
>
>
>
>
>
>
>
>
>
> >
> > On Apr 15, 2024 at 3:58 PM, Nuxwrote:
> >
> >
> >  Found some notes on Debian here, there could be others..
> > https://gist.github.com/rohityadavcloud/fc401a0fe8e8ea16b4b3a4e3d149ce0c
> >
> > On 2024-04-15 09:54, Nux wrote:
> > >  Not as yet, no formal support for Debian.
> > >  That said, this could change in the future..
> > >  If you're a keen Debianista then it might be worth having a go
> > >  nevertheless, it might just work or with minimum changes.
> > >
> > >
> > >  On 2024-04-13 10:49, Embedded wrote:
> > >>  the install guide states Preferred: CentOS/RHEL 7.2+ or Ubuntu
> > >>  16.04(.2) or higher
> > >>
> > >>
> > >>  would this include say debian 10/11 as a manager / and host/kvm
> > >>  hypervisor ???
> >
>


Re: ACS 4.16 - Change SystemVM template for CKS

2024-04-12 Thread Wei ZHOU
9.28MB
> > 175a472c5f77: Loading layer
> > [==>] 299B/299B
> > a8764e32e9fe: Loading layer
> > [==>] 613B/613B
> > Loaded image: weaveworks/weave-npc:2.8.1
> > net.bridge.bridge-nf-call-iptables = 1
> > [init] Using Kubernetes version: v1.28.4
> > [preflight] Running pre-flight checks
> > error execution phase preflight: [preflight] Some fatal errors occurred:
> > [ERROR CRI]: container runtime is not running: output:
> > time="2024-04-11T15:33:26Z" level=fatal msg="validate service connection:
> > validate CRI v1 runtime API for endpoint
> > \"unix:///var/run/containerd/containerd.sock\": rpc error: code =
> > Unimplemented desc = unknown service runtime.v1.RuntimeService"
> > , error: exit status 1
> > [preflight] If you know what you are doing, you can make a check non-fatal
> > with `--ignore-preflight-errors=...`
> > To see the stack trace of this error execute with --v=5 or higher
> > [init] Using Kubernetes version: v1.28.4
> > [preflight] Running pre-flight checks
> > error execution phase preflight: [preflight] Some fatal errors occurred:
> > [ERROR CRI]: container runtime is not running: output:
> > time="2024-04-11T15:33:26Z" level=fatal msg="validate service connection:
> > validate CRI v1 runtime API for endpoint
> > \"unix:///var/run/containerd/containerd.sock\": rpc error: code =
> > Unimplemented desc = unknown service runtime.v1.RuntimeService"
> > , error: exit status 1
> > [preflight] If you know what you are doing, you can make a check non-fatal
> > with `--ignore-preflight-errors=...`
> > To see the stack trace of this error execute with --v=5 or higher
> > [init] Using Kubernetes version: v1.28.4
> > [preflight] Running pre-flight checks
> > error execution phase preflight: [preflight] Some fatal errors occurred:
> > [ERROR CRI]: container runtime is not running: output:
> > time="2024-04-11T15:33:27Z" level=fatal msg="validate service connection:
> > validate CRI v1 runtime API for endpoint
> > \"unix:///var/run/containerd/containerd.sock\": rpc error: code =
> > Unimplemented desc = unknown service runtime.v1.RuntimeService"
> > , error: exit status 1
> > [preflight] If you know what you are doing, you can make a check non-fatal
> > with `--ignore-preflight-errors=...`
> > To see the stack trace of this error execute with --v=5 or higher
> > Error: kubeadm init failed!
> >
> >
> >
> >
> >
> > Le jeu. 11 avr. 2024 à 17:19, Wei ZHOU  a écrit :
> >
> >> Hi,
> >>
> >> Please refer to
> >> https://github.com/apache/cloudstack/issues/8681#issuecomment-1999083241
> >>
> >> The containerd in 4.16/4.17 sysyemvm template is too old.
> >>
> >> -Wei
> >>
> >>
> >> On Thursday, April 11, 2024, benoit lair  wrote:
> >>
> >> > Hi Rohit,
> >> >
> >> > I already tested with different iso from cloudstack from CKS repos,
> >> > It is ok with ACS 4.16 with community iso 1.23.3 but it fails from
> >> 1.24.0
> >> > and following others versions
> >> >
> >> > I tried to do an upgrade from 1.23.3 with 1.24.0, it fails,
> >> > I tried to bootstrap a k8s cluster with 1.24.0, also with 1.25 or 1.27.3
> >> > and 1.28.4
> >> >
> >> > Last try, i tested k8s community iso 1.25.0
> >> > in CS UI it saying   "Create Kubernetes Cluster k8s-cks-cl16 in
> >> progress"
> >> > and it fails
> >> > If i try to ssh on control node with VR_Pub_IP port 
> >> > i have nothing in execution
> >> >
> >> > If i try manual install :
> >> > core@k8s-cks-cl16-control-18eccd0c12c:~$ sudo
> >> /opt/bin/setup-kube-system
> >> > mount: /mnt/k8sdisk: /dev/sr0 already mounted on /mnt/k8sdisk.
> >> > Installing binaries from /mnt/k8sdisk/
> >> > 5b1fa8e3e100: Loading layer
> >> > [==>]  803.8kB/803.8kB
> >> > 39c831b1aa26: Loading layer
> >> > [==>]  26.25MB/26.25MB
> >> > Loaded image: apache/cloudstack-kubernetes-autoscaler:latest
> >> > 417cb9b79ade: Loading layer
> >> > [==>]  657.7kB/657.7kB
> >&g

Re: CreateBackupCmd not starting due to "Cannot find login credentials for HYPERVISOR"

2024-04-11 Thread Wei ZHOU
The username/password is missing if host is added with sshkey or by
configuring agent.properties.

Users can update the username/password by api or cloudmonkey
https://cloudstack.apache.org/api/apidocs-4.19/apis/updateHostPassword.html


-Wei

On Thursday, April 11, 2024, Slavka Peleva 
wrote:

> Hi Andreas,
>
> The Networker plugin is trying to get the credentials for the host from the
> DB table `host_details` and if one is missing - username/password - you
> will get this error message. If only the password is missing from the table
> for that host, maybe you have added the host with the ssh key.
>
> Best regards,
> Slavka
>
> On Wed, Apr 10, 2024 at 9:02 PM Andreas S. Kerber 
> wrote:
>
> > Hi,
> >
> > I'm trying to get VM backups of 2 node KVM cluster working (using
> > networker). Wwhen trying to start a backup I'm immediatly getting a error
> > message about missing hypervisor login credentials. Maybe I overlooked
> > someting in the documentation but I can't figure out where these login
> > credentials are configured. Can anybody give me a hint?
> >
> >
> > Here's the log of one of my CreateBackupCmd Jobs:
> >
> > 2024-04-10 17:41:10,476 INFO  [o.a.c.f.j.i.AsyncJobMonitor]
> > (API-Job-Executor-30:ctx-c3bb37fe job-1549) (logid:b1913df8) Add
> job-1549
> > into job monitoring
> >
> > 2024-04-10 17:41:10,482 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> > (qtp1278254413-402:ctx-dddc56ad ctx-33b958e5) (logid:1dda45c8) submit
> async
> > job-1549, details: AsyncJobVO: {id:1549, userId: 4, accountId: 4,
> > instanceType: Backup, instanceId: 81, cmd:
> > org.apache.cloudstack.api.command.user.backup.CreateBackupCmd, cmdInfo:
> > {"virtualmachineid":"e338c774-6693-485f-9746-e3d172665af5","
> response":"json","ctxUserId":"4","httpmethod":"GET","
> ctxStartEventId":"3293","id":"81","ctxDetails":"{\"interface
> > com.cloud.vm.VirtualMachine\":\"e338c774-6693-485f-9746-
> e3d172665af5\"}","ctxAccountId":"4","cmdEventType":"BACKUP.CREATE"},
> > cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0,
> > result: null, initMsid: 345049358837, completeMsid: null, lastUpdated:
> > null, lastPolled: null, created: null, removed: null}
> >
> > 2024-04-10 17:41:10,485 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> > (API-Job-Executor-30:ctx-c3bb37fe job-1549) (logid:e4d20d53) Executing
> > AsyncJobVO: {id:1549, userId: 4, accountId: 4, instanceType: Backup,
> > instanceId: 81, cmd:
> > org.apache.cloudstack.api.command.user.backup.CreateBackupCmd, cmdInfo:
> > {"virtualmachineid":"e338c774-6693-485f-9746-e3d172665af5","
> response":"json","ctxUserId":"4","httpmethod":"GET","
> ctxStartEventId":"3293","id":"81","ctxDetails":"{\"interface
> > com.cloud.vm.VirtualMachine\":\"e338c774-6693-485f-9746-
> e3d172665af5\"}","ctxAccountId":"4","cmdEventType":"BACKUP.CREATE"},
> > cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0,
> > result: null, initMsid: 345049358837, completeMsid: null, lastUpdated:
> > null, lastPolled: null, created: null, removed: null}
> >
> > 2024-04-10 17:41:10,519 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> > (API-Job-Executor-30:ctx-c3bb37fe job-1549) (logid:e4d20d53) Complete
> async
> > job-1549, jobStatus: FAILED, resultCode: 530, result:
> > org.apache.cloudstack.api.response.ExceptionResponse/
> null/{"uuidList":[],"errorcode":"530","errortext":"Cannot
> > find login credentials for HYPERVISOR df99ba84-7814-47b8-aa99-
> dd9553c56b4c"}
> >
> > {...}
> > 2024-04-10 17:41:10,528 INFO  [o.a.c.f.j.i.AsyncJobMonitor]
> > (API-Job-Executor-30:ctx-c3bb37fe job-1549) (logid:e4d20d53) Remove
> > job-1549 from job monitoring
> >
> >
> > (local)  > list backupofferings
> > {
> >   "backupoffering": [
> > {
> >   "allowuserdrivenbackups": true,
> >   "created": "2024-04-10T17:08:37+0200",
> >   "description": "Networker Instance Backup - 30 days retention",
> >   "externalid": "57.0.53.26.0.0.0.0.0.130.19.102.213.182.20.91",
> >   "id": "8373b357-6b3f-41d9-8054-873914e95476",
> >   "name": "Networker Instance Backup",
> >   "zoneid": "c65618bc-0dcf-4f8a-b365-6b0c11750091",
> >   "zonename": "RZKE1"
> > }
> >   ],
> >   "count": 1
> > }
> >
> >
> > (local)  > list hosts id=df99ba84-7814-47b8-aa99-dd9553c56b4c
> > {
> >   "count": 1,
> >   "host": [
> > {
> >   "capabilities": "hvm,snapshot",
> >   "clusterid": "19939e9e-7588-47e0-82f5-3cd6a634723a",
> >   "clustername": "RZKE1_Cluster03",
> >   "clustertype": "CloudManaged",
> >   "cpuallocated": "4.51%",
> >   "cpuallocatedpercentage": "4.51%",
> >   "cpuallocatedvalue": 13000,
> >   "cpuallocatedwithoverprovisioning": "4.51%",
> >   "cpuloadaverage": 0.73,
> >   "cpunumber": 96,
> >   "cpusockets": 2,
> >   "cpuspeed": 3000,
> >   "cpuused": "0.6%",
> >   "cpuwithoverprovisioning": "288000",
> >   "created": "2024-03-05T17:16:05+0100",
> >   "details": {
> > "Host.OS": "Red Hat Enterprise Linux",
> > 

Re: ACS 4.16 - Change SystemVM template for CKS

2024-04-11 Thread Wei ZHOU
Hi,

Please refer to
https://github.com/apache/cloudstack/issues/8681#issuecomment-1999083241

The containerd in 4.16/4.17 sysyemvm template is too old.

-Wei


On Thursday, April 11, 2024, benoit lair  wrote:

> Hi Rohit,
>
> I already tested with different iso from cloudstack from CKS repos,
> It is ok with ACS 4.16 with community iso 1.23.3 but it fails from 1.24.0
> and following others versions
>
> I tried to do an upgrade from 1.23.3 with 1.24.0, it fails,
> I tried to bootstrap a k8s cluster with 1.24.0, also with 1.25 or 1.27.3
> and 1.28.4
>
> Last try, i tested k8s community iso 1.25.0
> in CS UI it saying   "Create Kubernetes Cluster k8s-cks-cl16 in progress"
> and it fails
> If i try to ssh on control node with VR_Pub_IP port 
> i have nothing in execution
>
> If i try manual install :
> core@k8s-cks-cl16-control-18eccd0c12c:~$ sudo /opt/bin/setup-kube-system
> mount: /mnt/k8sdisk: /dev/sr0 already mounted on /mnt/k8sdisk.
> Installing binaries from /mnt/k8sdisk/
> 5b1fa8e3e100: Loading layer
> [==>]  803.8kB/803.8kB
> 39c831b1aa26: Loading layer
> [==>]  26.25MB/26.25MB
> Loaded image: apache/cloudstack-kubernetes-autoscaler:latest
> 417cb9b79ade: Loading layer
> [==>]  657.7kB/657.7kB
> 8d323b160d65: Loading layer
> [==>]  24.95MB/24.95MB
> Loaded image: apache/cloudstack-kubernetes-provider:v1.0.0
> 256bc5c338a6: Loading layer
> [==>]  122.2kB/122.2kB
> df1818f16337: Loading layer
> [==>]  14.71MB/14.71MB
> Loaded image: registry.k8s.io/coredns/coredns:v1.9.3
> bd8a70623766: Loading layer
> [==>]  75.78MB/75.78MB
> c88361932af5: Loading layer
> [==>] 508B/508B
> Loaded image: kubernetesui/dashboard:v2.7.0
> 0b031aac6569: Loading layer
> [==>]804kB/804kB
> cc0597072b83: Loading layer
> [==>]  1.076MB/1.076MB
> 5a8045f731fc: Loading layer
> [==>]  90.58MB/90.58MB
> f5a5ef1a005f: Loading layer
> [==>]  1.188MB/1.188MB
> 5cf3bfe5417d: Loading layer
> [==>]  8.506MB/8.506MB
> Loaded image: registry.k8s.io/etcd:3.5.4-0
> 8d7366c22fd8: Loading layer
> [==>]  804.1kB/804.1kB
> 7d5f5bba7c45: Loading layer
> [==>]  694.9kB/694.9kB
> 8154c9483a6c: Loading layer
> [==>]  32.72MB/32.72MB
> Loaded image: registry.k8s.io/kube-apiserver:v1.25.0
> c5f1a47b47bc: Loading layer
> [==>]  29.76MB/29.76MB
> Loaded image: registry.k8s.io/kube-controller-manager:v1.25.0
> e4d19dd12df2: Loading layer
> [==>]  7.631MB/7.631MB
> ba3637ccd78a: Loading layer
> [==>]  12.63MB/12.63MB
> Loaded image: registry.k8s.io/kube-proxy:v1.25.0
> 026969d859f7: Loading layer
> [==>]  14.29MB/14.29MB
> Loaded image: registry.k8s.io/kube-scheduler:v1.25.0
> d01384fea991: Loading layer
> [==>]  19.74MB/19.74MB
> bcec7eb9e567: Loading layer
> [==>] 530B/530B
> Loaded image: kubernetesui/metrics-scraper:v1.0.8
> 961e93cda9dd: Loading layer
> [==>]307kB/307kB
> Loaded image: registry.k8s.io/pause:3.8
> 1b3ee35aacca: Loading layer
> [==>]  2.796MB/2.796MB
> 17d89e2a5199: Loading layer
> [==>]  7.425MB/7.425MB
> 148b94859892: Loading layer
> [==>]8.1MB/8.1MB
> dbea472c1ced: Loading layer
> [==>]  4.376MB/4.376MB
> e81f1a367c17: Loading layer
> [==>] 131B/131B
> 351848f6b295: Loading layer
> [==>]  8.216MB/8.216MB
> Loaded image: weaveworks/weave-kube:latest
> b20f7ff12b24: Loading layer
> [==>]  727.9kB/727.9kB
> 1d49e386162e: Loading layer
> [==>]  9.281MB/9.281MB
> 20145eeac146: Loading layer
> [==>] 297B/297B
> d4cc72748587: Loading layer
> [==>] 

Re: CPU compatibility

2024-04-10 Thread Wei ZHOU
Hi,

Wido has given a talk "How to Re-use Old Hardware with CloudStack.
Saving Money and the Environment"  in CCC 2023.
If you are interested, please watch the video on
https://www.youtube.com/watch?v=KAJCkC00tzQ  (starts at 11:41)


-Wei

On Wed, Apr 10, 2024 at 5:49 PM R A  wrote:
>
> Hi,
>
> is it also problematic migrating to different CPUs of same Family? For 
> example from Epyc 9654 to Epyc 9754 ?
>
> So you recommend to make a cluster for each CPU Type ? Can you define the 
> migration peer for hosts? For example having them all one cluster but define 
> somehow that migration should be done between hosts of same CPU?
>
> BR
>
> -Original Message-
> From: Guto Veronezi 
> Sent: Mittwoch, 10. April 2024 00:14
> To: users@cloudstack.apache.org
> Subject: Re: CPU compatibility
>
> Hello Steve,
>
> For CloudStack, it does not matter if you have hosts with different 
> processors; however, this is a recommendation regarding how virtualization 
> systems work; therefore, this discussion happens aside from CloudStack.
>
> When we are dealing with different processors, we are dealing with different 
> flags, instructions, clocks, and so on. For processors of the same family, 
> but of different generations, we can level the instructions to the lowest 
> common denominator (limit the instructions to the older generation); however, 
> it starts to get tricky when we are dealing with different families. For 
> instance, if you deploy a guest VM in a host with Xeon Silver and try to 
> migrate it to a Xeon Gold, the OS of your guest, which already knows the Xeon 
> Silver instructions, might not adapt to the instructions of the new host 
> (Xeon Gold). Therefore, in these cases, you will face problems in the guest 
> VM.
>
> If you are aware of the differences between the processors and that mixing 
> different types can cause problems, then you can create a cluster mixing 
> them; however, it is not recommended.
>
> For KVM, the parameter is defined in ACS; on the other hand, for XenServer 
> and VMware this kind of setup is done in the cluster in XenServer or vCenter.
>
> It is also important to bear in mind that, even though you level the 
> instruction sets between the different processors in the host operating 
> system, you might still suffer some issues due to clock differences when you 
> migrate a VM from a faster CPU to a slower CPU and vice versa.
>
> Best regards,
> Daniel Salvador (gutoveronezi)
>
> On 09/04/2024 18:58, Wei ZHOU wrote:
> > Hi,
> >
> > You can use a custom cpu model which is supported by both cpu processors.
> >
> > Please refer to
> > https://docs.cloudstack.apache.org/en/latest/installguide/hypervisor/k
> > vm.html#configure-cpu-model-for-kvm-guest-optional
> >
> > -Wei
> >
> >
> > On Tuesday, April 9, 2024, S.Fuller  wrote:
> >
> >> The Cloudstack Install Guide has the following statement - "All hosts
> >> within a cluster must be homogenous. The CPUs must be of the same
> >> type, count, and feature flags"
> >>
> >> Obviously this means we can't mix Intel and AMD CPUs within the same
> >> cluster. However, for a cluster with Intel CPUs, how much if any
> >> leeway is there within this statement? If I have two 20 Core Xeon
> >> Silver 4316  CPUs on one host and two 20 Core Xeon Silver 4416 CPUs
> >> in another, is that close enough? I'm looking to add capacity to an
> >> existing cluster, and am trying to figure out how "picky" Cloudstack is 
> >> about this.
> >>
> >>
> >>
> >> Steve Fuller
> >> steveful...@gmail.com
> >>


Re: Download the CSP - xcp-ng 8.2

2024-04-10 Thread Wei ZHOU
Hi,

XCP-NG 8.2 is supported by CloudStack.

Please refer to
https://docs.cloudstack.apache.org/en/4.19.0.1/releasenotes/compat.html#supported-hypervisor-versions


-Wei

On Wed, Apr 10, 2024 at 7:51 AM Embedded  wrote:
>
> is this still viable for XCP-NG 8.2 ? this documentation seems quite dated
>
> For XenServer 6.0.2, 6.0, 5.6 SP2:
>
> Download the CSP software onto the XenServer host from one of the following
> links:
>
> For XenServer 6.0.2:
>
> http://download.cloud.com/releases/3.0.1/XS-6.0.2/xenserver-cloud-supp.tgz
>
> For XenServer 5.6 SP2:
>
> http://download.cloud.com/releases/2.2.0/xenserver-cloud-supp.tgz
>
> For XenServer 6.0:
>
> http://download.cloud.com/releases/3.0/xenserver-cloud-supp.tgz
>
> Extract the file:
>
> # tar xf xenserver-cloud-supp.tgz
> Run the following script:
>
> # xe-install-supplemental-pack xenserver-cloud-supp.iso
> --
> Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com


Re: CPU compatibility

2024-04-09 Thread Wei ZHOU
Hi,

You can use a custom cpu model which is supported by both cpu processors.

Please refer to
https://docs.cloudstack.apache.org/en/latest/installguide/hypervisor/kvm.html#configure-cpu-model-for-kvm-guest-optional

-Wei


On Tuesday, April 9, 2024, S.Fuller  wrote:

> The Cloudstack Install Guide has the following statement - "All hosts
> within a cluster must be homogenous. The CPUs must be of the same type,
> count, and feature flags"
>
> Obviously this means we can't mix Intel and AMD CPUs within the same
> cluster. However, for a cluster with Intel CPUs, how much if any leeway is
> there within this statement? If I have two 20 Core Xeon Silver 4316  CPUs
> on one host and two 20 Core Xeon Silver 4416 CPUs in another, is that close
> enough? I'm looking to add capacity to an existing cluster, and am trying
> to figure out how "picky" Cloudstack is about this.
>
>
>
> Steve Fuller
> steveful...@gmail.com
>


Re: cloudstack 4.19 filesize mismatch

2024-04-09 Thread Wei ZHOU
The error could also be caused by SQL exceptions

-Wei

On Tue, Apr 9, 2024 at 3:44 PM Francisco Arencibia Quesada
 wrote:
>
> now a different one :(
>
> cloudstack-management.service - CloudStack Management Server
>  Loaded: loaded (/lib/systemd/system/cloudstack-management.service;
> enabled; vendor preset: enabled)
>  Active: active (running) since Tue 2024-04-09 13:24:05 UTC; 15min ago
>Main PID: 26006 (java)
>   Tasks: 40 (limit: 4677)
>  Memory: 972.5M
>  CGroup: /system.slice/cloudstack-management.service
>  └─26006 /usr/bin/java
> -Djava.security.properties=/etc/cloudstack/management/java.security.ciphers
> -Djava.awt.headless=true -Dcom.sun.management.jmxremote=false -Xmx2G
> -XX:+UseParallelGC -XX:MaxGCPauseMillis=500 -XX:+HeapDump>
>
> Apr 09 13:24:53 ubuntu-focal java[26006]: INFO
>  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:null) (logid:) Loading
> module context [redfish] from URL
> [jar:file:/usr/share/cloudstack-management/lib/cloudstack-4.19.0.1.jar!/META-INF/cl>
> Apr 09 13:24:53 ubuntu-focal java[26006]: INFO
>  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:null) (logid:) Loading
> module context [redfish] from URL
> [jar:file:/usr/share/cloudstack-management/lib/cloudstack-4.19.0.1.jar!/META-INF/cl>
> Apr 09 13:24:53 ubuntu-focal java[26006]: INFO
>  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:null) (logid:) Loading
> module context [redfish] from URL
> [jar:file:/usr/share/cloudstack-management/lib/cloudstack-4.19.0.1.jar!/META-INF/cl>
> Apr 09 13:24:53 ubuntu-focal java[26006]: INFO
>  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:null) (logid:) Loading
> module context [redfish] from URL
> [jar:file:/usr/share/cloudstack-management/lib/cloudstack-4.19.0.1.jar!/META-INF/cl>
> Apr 09 13:24:53 ubuntu-focal java[26006]: INFO
>  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:null) (logid:) Loading
> module context [redfish] from URL
> [jar:file:/usr/share/cloudstack-management/lib/cloudstack-4.19.0.1.jar!/META-INF/cl>
> Apr 09 13:24:53 ubuntu-focal java[26006]: INFO
>  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:null) (logid:) Loading
> module context [redfish] from URL
> [jar:file:/usr/share/cloudstack-management/lib/cloudstack-4.19.0.1.jar!/META-INF/cl>
> Apr 09 13:24:53 ubuntu-focal java[26006]: WARN
>  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:null) (logid:) Failed to
> start module [redfish] due to: [Error creating bean with name
> 'org.springframework.beans.factory.config.PropertyPla>
> Apr 09 13:24:53 ubuntu-focal java[26006]: INFO
>  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:null) (logid:) Starting
> module [system].
> Apr 09 13:24:53 ubuntu-focal java[26006]: INFO
>  [o.a.c.s.l.CloudStackExtendedLifeCycle] (main:null) (logid:) Starting
> CloudStack Components
> Apr 09 13:24:53 ubuntu-focal java[26006]: INFO
>  [o.a.c.s.l.CloudStackExtendedLifeCycle] (main:null) (logid:) Done Starting
> CloudStack Components
>
> On Tue, Apr 9, 2024 at 12:11 PM Wei ZHOU  wrote:
>
> > It looks like db.properties is not configured correctly.
> > The mgmt server cannot connect the database.
> >
> > -Wei
> >
> > On Tue, Apr 9, 2024 at 11:46 AM Francisco Arencibia Quesada
> >  wrote:
> > >
> > > Hi Wei,
> > >
> > > this is it:
> > > 2024-04-09 09:35:18,507 DEBUG [c.c.u.d.DbProperties] (main:null) (logid:)
> > > DB properties were already loaded
> > > 2024-04-09 09:35:18,508 INFO  [c.c.u.d.T.Transaction] (main:null)
> > (logid:)
> > > Is Data Base High Availiability enabled? Ans : false
> > > 2024-04-09 09:35:18,508 INFO  [c.c.u.d.T.Transaction] (main:null)
> > (logid:)
> > > Using the following URI to connect to cloud database
> > >
> > [jdbc:mysql://localhost:3306/cloud?autoReconnect=true=517=true=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'=UTC].
> > > 2024-04-09 09:35:18,514 DEBUG [c.c.u.d.DriverLoader] (main:null) (logid:)
> > > Successfully loaded DB driver com.mysql.cj.jdbc.Driver
> > > 2024-04-09 09:35:18,535 INFO  [c.c.u.d.T.Transaction] (main:null)
> > (logid:)
> > > Using the following URI to connect to usage database
> > >
> > [jdbc:mysql://localhost:3306/cloud_usage?autoReconnect=true=UTC].
> > > 2024-04-09 09:35:18,536 DEBUG [c.c.u.d.DriverLoader] (main:null) (logid:)
> > > DB driver com.mysql.cj.jdbc.Driver was already loaded.
> > > 2024-04-09 09:35:18,540 DEBUG [c.c.u.d.DriverLoader] (main:null) (logid:)
> > > DB driver com.mysql.cj.jdbc.Driver was already loaded.
> > > 2024-04-09 09

Re: cloudstack 4.19 filesize mismatch

2024-04-09 Thread Wei ZHOU
bstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
> at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920)
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
> at
> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContext(DefaultModuleDefinitionSet.java:171)
> at
> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet$2.with(DefaultModuleDefinitionSet.java:140)
> at
> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:271)
> at
> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:276)
> at
> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:259)
> at
> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContexts(DefaultModuleDefinitionSet.java:128)
> at
> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.load(DefaultModuleDefinitionSet.java:78)
> at
> org.apache.cloudstack.spring.module.factory.ModuleBasedContextFactory.loadModules(ModuleBasedContextFactory.java:37)
> at
> org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.init(CloudStackSpringContext.java:70)
> at
> org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.(CloudStackSpringContext.java:57)
> at
> org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.(CloudStackSpringContext.java:61)
> at
> org.apache.cloudstack.spring.module.web.CloudStackContextLoaderListener.contextInitialized(CloudStackContextLoaderListener.java:52)
> at
> org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:1073)
> at
> org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:572)
> at
> org.eclipse.jetty.server.handler.ContextHandler.contextInitialized(ContextHandler.java:1002)
> at
> org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:765)
> at
> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
> at
> org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449)
> at
> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916)
> at
> org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
> at
> org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
> /SQL
>
> On Tue, Apr 9, 2024 at 11:40 AM Wei ZHOU  wrote:
>
> > The SQLException may tell what's wrong.
> > Can you share ?
> >
> > -Wei
> >
> > On Tue, Apr 9, 2024 at 11:23 AM Francisco Arencibia Quesada
> >  wrote:
> > >
> > > indeed Wei, SQLException.
> > > It is such a weird thing that was working 2days ago, now SQLException :(.
> > >
> > >
> > > Regards
> > >
> > > On Tue, Apr 9, 2024 at 10:53 AM Wei ZHOU  wrote:
> > >
> > > > Hi Francisco,
> > > >
> > > > Please check the database connection, and also check if there is
> > > > SQLException in the management-server.log
> > > >
> > > > -Wei
> > > >
> &g

Re: cloudstack 4.19 filesize mismatch

2024-04-09 Thread Wei ZHOU
The SQLException may tell what's wrong.
Can you share ?

-Wei

On Tue, Apr 9, 2024 at 11:23 AM Francisco Arencibia Quesada
 wrote:
>
> indeed Wei, SQLException.
> It is such a weird thing that was working 2days ago, now SQLException :(.
>
>
> Regards
>
> On Tue, Apr 9, 2024 at 10:53 AM Wei ZHOU  wrote:
>
> > Hi Francisco,
> >
> > Please check the database connection, and also check if there is
> > SQLException in the management-server.log
> >
> > -Wei
> >
> >
> > On Tue, Apr 9, 2024 at 10:44 AM Francisco Arencibia Quesada
> >  wrote:
> > >
> > > with ubuntu and 4.19 I'm having this issue
> > > https://github.com/apache/cloudstack/issues/8218
> > > 503 error.
> > >
> > > Please let us know something about this issue.
> > >
> > > Regards
> > >
> > > On Tue, Apr 9, 2024 at 9:39 AM Alex Paul 
> > > wrote:
> > >
> > > > Hi Community,
> > > >
> > > > Tried with centos 7,  upgrade is failing
> > > >
> > > > 
> > > > cloudstack-management-4.18.1.1 FAILED
> > > >==-]  23 MB/s | 1.8 GB  00:00:00 ETA
> > > >
> > > >
> > http://download.cloudstack.org/centos/7/4.18/cloudstack-management-4.18.1.1-1.el7.x86_64.rpm
> > > > :
> > > > [Errno -1] Package does not match intended download. Suggestion: run
> > yum
> > > > --enablerepo=cloudstack clean metadata
> > > > 
> > > >
> > > > Cleaning yum metadata does not help
> > > >
> > > > Alex
> > > >
> > > >
> > > >
> > > > On Thu, Apr 4, 2024 at 2:52 AM Francisco Arencibia Quesada <
> > > > arencibia.franci...@gmail.com> wrote:
> > > >
> > > > > Thanks a lot guys, now it works like a charm.
> > > > >
> > > > >
> > > > > Kind regards
> > > > >
> > > > > On Wed, Apr 3, 2024 at 8:37 PM Wei ZHOU 
> > wrote:
> > > > >
> > > > > > Thanks a lot @Rohit Yadav
> > > > > >
> > > > > > I am able to upgrade from 4.18.0.0 to 4.18.1.1 then to 4.19.0.1 on
> > > > > > both ubuntu and rocky8 hosts.
> > > > > >
> > > > > > -Wei
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Wed, Apr 3, 2024 at 7:49 PM Rohit Yadav <
> > rohit.ya...@shapeblue.com>
> > > > > > wrote:
> > > > > > >
> > > > > > > Thanks for checking - could you try again, I've purged the old
> > cdn
> > > > > > cache. It should be fixed now.
> > > > > > >
> > > > > > >
> > > > > > > Regards.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 
> > > > > > > From: Francisco Arencibia Quesada  > >
> > > > > > > Sent: Wednesday, April 3, 2024 21:55
> > > > > > > To: users@cloudstack.apache.org 
> > > > > > > Subject: Re: cloudstack 4.19 filesize mismatch
> > > > > > >
> > > > > > > now are failing both 4.18 and 4.19
> > > > > > >
> > > > > > > Regards
> > > > > > >
> > > > > > > On Wed, Apr 3, 2024 at 6:13 PM Rohit Yadav <
> > > > rohit.ya...@shapeblue.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > Hi Francisco,
> > > > > > > >
> > > > > > > > The repo CDN is being updated, sometimes files are out of
> > sync. Can
> > > > > you
> > > > > > > > run apt-get update and try again and keep us posted if you
> > still
> > > > face
> > > > > > the
> > > > > > > > issue.
> > > > > > > >
> > > > > > > > Regards.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > 
> > > > > > > > From: Francisco Arencibia Quesada <
> > arencibia.franci...@gmail.com>
> > > 

Re: cloudstack 4.19 filesize mismatch

2024-04-09 Thread Wei ZHOU
Hi Francisco,

Please check the database connection, and also check if there is
SQLException in the management-server.log

-Wei


On Tue, Apr 9, 2024 at 10:44 AM Francisco Arencibia Quesada
 wrote:
>
> with ubuntu and 4.19 I'm having this issue
> https://github.com/apache/cloudstack/issues/8218
> 503 error.
>
> Please let us know something about this issue.
>
> Regards
>
> On Tue, Apr 9, 2024 at 9:39 AM Alex Paul 
> wrote:
>
> > Hi Community,
> >
> > Tried with centos 7,  upgrade is failing
> >
> > 
> > cloudstack-management-4.18.1.1 FAILED
> >==-]  23 MB/s | 1.8 GB  00:00:00 ETA
> >
> > http://download.cloudstack.org/centos/7/4.18/cloudstack-management-4.18.1.1-1.el7.x86_64.rpm
> > :
> > [Errno -1] Package does not match intended download. Suggestion: run yum
> > --enablerepo=cloudstack clean metadata
> > 
> >
> > Cleaning yum metadata does not help
> >
> > Alex
> >
> >
> >
> > On Thu, Apr 4, 2024 at 2:52 AM Francisco Arencibia Quesada <
> > arencibia.franci...@gmail.com> wrote:
> >
> > > Thanks a lot guys, now it works like a charm.
> > >
> > >
> > > Kind regards
> > >
> > > On Wed, Apr 3, 2024 at 8:37 PM Wei ZHOU  wrote:
> > >
> > > > Thanks a lot @Rohit Yadav
> > > >
> > > > I am able to upgrade from 4.18.0.0 to 4.18.1.1 then to 4.19.0.1 on
> > > > both ubuntu and rocky8 hosts.
> > > >
> > > > -Wei
> > > >
> > > >
> > > >
> > > > On Wed, Apr 3, 2024 at 7:49 PM Rohit Yadav 
> > > > wrote:
> > > > >
> > > > > Thanks for checking - could you try again, I've purged the old cdn
> > > > cache. It should be fixed now.
> > > > >
> > > > >
> > > > > Regards.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > 
> > > > > From: Francisco Arencibia Quesada 
> > > > > Sent: Wednesday, April 3, 2024 21:55
> > > > > To: users@cloudstack.apache.org 
> > > > > Subject: Re: cloudstack 4.19 filesize mismatch
> > > > >
> > > > > now are failing both 4.18 and 4.19
> > > > >
> > > > > Regards
> > > > >
> > > > > On Wed, Apr 3, 2024 at 6:13 PM Rohit Yadav <
> > rohit.ya...@shapeblue.com>
> > > > > wrote:
> > > > >
> > > > > > Hi Francisco,
> > > > > >
> > > > > > The repo CDN is being updated, sometimes files are out of sync. Can
> > > you
> > > > > > run apt-get update and try again and keep us posted if you still
> > face
> > > > the
> > > > > > issue.
> > > > > >
> > > > > > Regards.
> > > > > >
> > > > > >
> > > > > >
> > > > > > 
> > > > > > From: Francisco Arencibia Quesada 
> > > > > > Sent: Wednesday, April 3, 2024 8:39:23 PM
> > > > > > To: users@cloudstack.apache.org 
> > > > > > Subject: cloudstack 4.19 filesize mismatch
> > > > > >
> > > > > > Good morning guys,
> > > > > >
> > > > > > I want to report an issue with deb packages for 4.19 release.
> > > > > >
> > > > > > Please see details below:
> > > > > >
> > > > > > https://pastes.io/utzcxtyako-to check all output
> > > > > >
> > > > > > Get:1 https://download.cloudstack.org/ubuntu jammy/4.19 all
> > > > > > cloudstack-common all 4.19.0.1 [117 MB]
> > > > > > Err:1 https://download.cloudstack.org/ubuntu jammy/4.19 all
> > > > > > cloudstack-common all 4.19.0.1
> > > > > >   File has unexpected size (116922362 != 116919496). Mirror sync in
> > > > > > progress? [IP: 195.181.167.51 443]
> > > > > >   Hashes of expected file:
> > > > > >-
> > > > > >
> > > > > >
> > > >
> > >
> > SHA512:00d5571a65ef8029ce668fe2f8769326253615a282e0c6b155410460e7b3d288b062b1d434962b98b26b2be764867010c42fcf39f6ebae68b1bc7e43ea523894
> > > > > >-
> > > > > >
> > > SH

Re: cloudstack 4.19 filesize mismatch

2024-04-09 Thread Wei ZHOU
Hi Alex,

It works for me.

Can you run "yum clean all" and retry ?

-Wei

On Tue, Apr 9, 2024 at 9:39 AM Alex Paul  wrote:
>
> Hi Community,
>
> Tried with centos 7,  upgrade is failing
>
> 
> cloudstack-management-4.18.1.1 FAILED
>==-]  23 MB/s | 1.8 GB  00:00:00 ETA
> http://download.cloudstack.org/centos/7/4.18/cloudstack-management-4.18.1.1-1.el7.x86_64.rpm:
> [Errno -1] Package does not match intended download. Suggestion: run yum
> --enablerepo=cloudstack clean metadata
> 
>
> Cleaning yum metadata does not help
>
> Alex
>
>
>
> On Thu, Apr 4, 2024 at 2:52 AM Francisco Arencibia Quesada <
> arencibia.franci...@gmail.com> wrote:
>
> > Thanks a lot guys, now it works like a charm.
> >
> >
> > Kind regards
> >
> > On Wed, Apr 3, 2024 at 8:37 PM Wei ZHOU  wrote:
> >
> > > Thanks a lot @Rohit Yadav
> > >
> > > I am able to upgrade from 4.18.0.0 to 4.18.1.1 then to 4.19.0.1 on
> > > both ubuntu and rocky8 hosts.
> > >
> > > -Wei
> > >
> > >
> > >
> > > On Wed, Apr 3, 2024 at 7:49 PM Rohit Yadav 
> > > wrote:
> > > >
> > > > Thanks for checking - could you try again, I've purged the old cdn
> > > cache. It should be fixed now.
> > > >
> > > >
> > > > Regards.
> > > >
> > > >
> > > >
> > > >
> > > > 
> > > > From: Francisco Arencibia Quesada 
> > > > Sent: Wednesday, April 3, 2024 21:55
> > > > To: users@cloudstack.apache.org 
> > > > Subject: Re: cloudstack 4.19 filesize mismatch
> > > >
> > > > now are failing both 4.18 and 4.19
> > > >
> > > > Regards
> > > >
> > > > On Wed, Apr 3, 2024 at 6:13 PM Rohit Yadav 
> > > > wrote:
> > > >
> > > > > Hi Francisco,
> > > > >
> > > > > The repo CDN is being updated, sometimes files are out of sync. Can
> > you
> > > > > run apt-get update and try again and keep us posted if you still face
> > > the
> > > > > issue.
> > > > >
> > > > > Regards.
> > > > >
> > > > >
> > > > >
> > > > > 
> > > > > From: Francisco Arencibia Quesada 
> > > > > Sent: Wednesday, April 3, 2024 8:39:23 PM
> > > > > To: users@cloudstack.apache.org 
> > > > > Subject: cloudstack 4.19 filesize mismatch
> > > > >
> > > > > Good morning guys,
> > > > >
> > > > > I want to report an issue with deb packages for 4.19 release.
> > > > >
> > > > > Please see details below:
> > > > >
> > > > > https://pastes.io/utzcxtyako-to check all output
> > > > >
> > > > > Get:1 https://download.cloudstack.org/ubuntu jammy/4.19 all
> > > > > cloudstack-common all 4.19.0.1 [117 MB]
> > > > > Err:1 https://download.cloudstack.org/ubuntu jammy/4.19 all
> > > > > cloudstack-common all 4.19.0.1
> > > > >   File has unexpected size (116922362 != 116919496). Mirror sync in
> > > > > progress? [IP: 195.181.167.51 443]
> > > > >   Hashes of expected file:
> > > > >-
> > > > >
> > > > >
> > >
> > SHA512:00d5571a65ef8029ce668fe2f8769326253615a282e0c6b155410460e7b3d288b062b1d434962b98b26b2be764867010c42fcf39f6ebae68b1bc7e43ea523894
> > > > >-
> > > > >
> > SHA256:1f0805bfe95351fe30b55999235fc0e398201d1e3131ad7fd1538ef1b7a144be
> > > > >- SHA1:496ff9dffbd6299d1efa0b1c788318fbb04c57fa [weak]
> > > > >- MD5Sum:f162ade7affd9f8a5b8f358e1674f25f [weak]
> > > > >- Filesize:116919496 [weak]
> > > > > Get:2 https://download.cloudstack.org/ubuntu jammy/4.19 all
> > > > > cloudstack-management all 4.19.0.1 [1441 MB]
> > > > > Err:2 https://download.cloudstack.org/ubuntu jammy/4.19 all
> > > > > cloudstack-management all 4.19.0.1
> > > > >   File has unexpected size (1440658214 != 1440655316). Mirror sync in
> > > > > progress? [IP: 195.181.167.51 443]
> > > > >   Hashes of expected file:
> > > > >-
> > > > >
> > > > >
> > >
> > SHA512:352a5133cc06

Re: systemvms for 4.19.1

2024-04-03 Thread Wei ZHOU
it still uses 4.19.0.0 systemvm template

-Wei

On Wednesday, April 3, 2024, Francisco Arencibia Quesada <
arencibia.franci...@gmail.com> wrote:

> Good evening guys,
>
> Where can I find the systemvms for 4.19.1?
> I can't find it here :
> http://packages.shapeblue.com/systemvmtemplate/4.19/
>
>
> Thank you in advance
> Kind regards
> --
> *Francisco Arencibia Quesada.*
> *DevOps Engineer*
>


Re: cloudstack 4.19 filesize mismatch

2024-04-03 Thread Wei ZHOU
Thanks a lot @Rohit Yadav

I am able to upgrade from 4.18.0.0 to 4.18.1.1 then to 4.19.0.1 on
both ubuntu and rocky8 hosts.

-Wei



On Wed, Apr 3, 2024 at 7:49 PM Rohit Yadav  wrote:
>
> Thanks for checking - could you try again, I've purged the old cdn cache. It 
> should be fixed now.
>
>
> Regards.
>
>
>
>
> 
> From: Francisco Arencibia Quesada 
> Sent: Wednesday, April 3, 2024 21:55
> To: users@cloudstack.apache.org 
> Subject: Re: cloudstack 4.19 filesize mismatch
>
> now are failing both 4.18 and 4.19
>
> Regards
>
> On Wed, Apr 3, 2024 at 6:13 PM Rohit Yadav 
> wrote:
>
> > Hi Francisco,
> >
> > The repo CDN is being updated, sometimes files are out of sync. Can you
> > run apt-get update and try again and keep us posted if you still face the
> > issue.
> >
> > Regards.
> >
> >
> >
> > 
> > From: Francisco Arencibia Quesada 
> > Sent: Wednesday, April 3, 2024 8:39:23 PM
> > To: users@cloudstack.apache.org 
> > Subject: cloudstack 4.19 filesize mismatch
> >
> > Good morning guys,
> >
> > I want to report an issue with deb packages for 4.19 release.
> >
> > Please see details below:
> >
> > https://pastes.io/utzcxtyako-to check all output
> >
> > Get:1 https://download.cloudstack.org/ubuntu jammy/4.19 all
> > cloudstack-common all 4.19.0.1 [117 MB]
> > Err:1 https://download.cloudstack.org/ubuntu jammy/4.19 all
> > cloudstack-common all 4.19.0.1
> >   File has unexpected size (116922362 != 116919496). Mirror sync in
> > progress? [IP: 195.181.167.51 443]
> >   Hashes of expected file:
> >-
> >
> > SHA512:00d5571a65ef8029ce668fe2f8769326253615a282e0c6b155410460e7b3d288b062b1d434962b98b26b2be764867010c42fcf39f6ebae68b1bc7e43ea523894
> >-
> > SHA256:1f0805bfe95351fe30b55999235fc0e398201d1e3131ad7fd1538ef1b7a144be
> >- SHA1:496ff9dffbd6299d1efa0b1c788318fbb04c57fa [weak]
> >- MD5Sum:f162ade7affd9f8a5b8f358e1674f25f [weak]
> >- Filesize:116919496 [weak]
> > Get:2 https://download.cloudstack.org/ubuntu jammy/4.19 all
> > cloudstack-management all 4.19.0.1 [1441 MB]
> > Err:2 https://download.cloudstack.org/ubuntu jammy/4.19 all
> > cloudstack-management all 4.19.0.1
> >   File has unexpected size (1440658214 != 1440655316). Mirror sync in
> > progress? [IP: 195.181.167.51 443]
> >   Hashes of expected file:
> >-
> >
> > SHA512:352a5133cc06b5ca05b097b9dce9e7d670ec89b7602729a9557f69876fe9f8dba568e0008065535c7f3daed4651a97deb18be1849e8bc64459784ba0ed9e20b3
> >-
> > SHA256:2f2216acda05088ec39c0157c09e0169fa9b5d30dbeb15cb074e743785f5a6ab
> >- SHA1:31a04c5f4b271d7bf4cb0919293b3df0fa27e4c1 [weak]
> >- MD5Sum:f8ce84b0b14e6ef64d235e78ee2a8af6 [weak]
> >- Filesize:1440655316 [weak]
> > E: Failed to fetch
> >
> > https://download.cloudstack.org/ubuntu/dists/jammy/4.19/pool/cloudstack-common_4.19.0.1_all.deb
> >  File has unexpected size (116922362 != 116919496). Mirror sync in
> > progress? [IP: 195.181.167.51 443]
> >Hashes of expected file:
> > -
> >
> > SHA512:00d5571a65ef8029ce668fe2f8769326253615a282e0c6b155410460e7b3d288b062b1d434962b98b26b2be764867010c42fcf39f6ebae68b1bc7e43ea523894
> > -
> > SHA256:1f0805bfe95351fe30b55999235fc0e398201d1e3131ad7fd1538ef1b7a144be
> > - SHA1:496ff9dffbd6299d1efa0b1c788318fbb04c57fa [weak]
> > - MD5Sum:f162ade7affd9f8a5b8f358e1674f25f [weak]
> > - Filesize:116919496 [weak]
> > E: Failed to fetch
> >
> > https://download.cloudstack.org/ubuntu/dists/jammy/4.19/pool/cloudstack-management_4.19.0.1_all.deb
> >  File has unexpected size (1440658214 != 1440655316). Mirror sync in
> > progress? [IP: 195.181.167.51 443]
> >Hashes of expected file:
> > -
> >
> > SHA512:352a5133cc06b5ca05b097b9dce9e7d670ec89b7602729a9557f69876fe9f8dba568e0008065535c7f3daed4651a97deb18be1849e8bc64459784ba0ed9e20b3
> > -
> > SHA256:2f2216acda05088ec39c0157c09e0169fa9b5d30dbeb15cb074e743785f5a6ab
> > - SHA1:31a04c5f4b271d7bf4cb0919293b3df0fa27e4c1 [weak]
> > - MD5Sum:f8ce84b0b14e6ef64d235e78ee2a8af6 [weak]
> > - Filesize:1440655316 [weak]
> >
> > Kind regards
> >
> > --
> > *Francisco Arencibia Quesada.*
> > *DevOps Engineer*
> >
>
>
> --
> *Francisco Arencibia Quesada.*
> *DevOps Engineer*


Re: any qcow2 pfsense image public available?

2024-03-30 Thread Wei ZHOU
I have built some pfsense templates in the development of VNF integration.
Just follow the steps, you should be able to create pfsense templates in 30
minutes.

You can deploy VNF appliances with vnf nics in multiple VPC tiers.

-Wei

On Saturday, March 30, 2024, Ricardo Pertuz
 wrote:

> Thanks for your prompt reply, this tutorial allow deploy a pfsense vnf
> template into a VPC deployment? can I have with 3 tiers?
>
>
> Atte,
>
> Ricardo Pertuz
>
>
> On 30 Mar 2024 at 11:39 AM -0500, Jayanth Babu A 
> ,
> wrote:
> > Not sure if I know anyone who does it anymore. I still see that creating
> a template from ISO is a safe bet [1] though you mentioned that you'd want
> to skip them.
> >
> > [1] https://www.shapeblue.com/vnf-appliance-integration-deep-dive/
> >
> > Thanks,
> > Jayanth
> >
> >
> > 
> > From: Ricardo Pertuz 
> > Sent: Saturday, March 30, 2024 10:01:00 pm
> > To: users@cloudstack.apache.org 
> > Subject: any qcow2 pfsense image public available?
> >
> > Hi community
> >
> > Is there any qcow2 pfsense image for VNF public available to do a POC?
> We want to skip the ISO steps
> >
> > Regards!
> >
> >
> >
> > Ricardo Pertuz
> >
> >
> >
> > Disclaimer *** This e-mail contains PRIVILEGED AND CONFIDENTIAL
> INFORMATION intended solely for the use of the addressee(s). If you are not
> the intended recipient, please notify the sender by e-mail and delete the
> original message. Further, you are not authorised to copy, disclose, or
> distribute this e-mail or its contents to any other person and any such
> actions are unlawful and strictly prohibited. This e-mail may contain
> viruses. NxtGen Datacenter & Cloud Technologies Private Ltd ("NxtGen") has
> taken every reasonable precaution to minimize this risk but is not liable
> for any damage you may sustain as a result of any virus in this e-mail. You
> should carry out your own virus checks before opening the e-mail or
> attachment. NxtGen reserves the right to monitor and review the content of
> all messages sent to or from this e-mail address. Messages sent to or from
> this e-mail address may be stored on the NxtGen e-mail system. *** End of
> Disclaimer ***NXTGEN***
>


Re: some button labels not displaying correctly in the UI 4.19

2024-03-29 Thread Wei ZHOU
It seems like an issue with browser cache.
try incognito mode, or clean the browser cache.

-Wei

On Fri, Mar 29, 2024 at 5:55 PM Marcus Torres  wrote:
>
> Hi!
> First off i would like to tip my hat to everyone involved in the release of
> 4.19.0. The major new features and changes just put cloudstack over the top
> in terms of functionality and feature sets compared to competitive
> platforms. It's quite amazing.
>
> After ugpgrading to 4.19.0 (management server first, usage second,
> hypervisors third, then restart of all services), i noticed some of the new
> buttons in the UI display 'label.x' instead of a proper title ? or is it
> like that intentionally?
> For instance, drilling down to a cluster view, for the DRS tab it shows
> 'label.drs' and if i click that tab , the button to generate a plan is
> labeled 'label.drs.generate.plan' instead of 'Generate DRS Plan' as the
> release screenshots show. I'm seeing the same thing with label.bucks and
> label.object.storage.
>
> The buttons work, just a display issue it seems. I have screenshots if
> needeed


Re: Build own debs

2024-03-28 Thread Wei ZHOU
Hi Jimmy,

By default No. It is simple to build with vmware plugin

1. install dependencies locally (the .m2 directory is mounted to the
docker container).

git clone https://github.com/shapeblue/cloudstack-nonoss.git nonoss
cd nonoss && bash -x install-non-oss.sh && cd ..

2. add the following before build-deb.sh

export ACS_BUILD_OPTS='-Dnoredist -Dsystemvm-kvm -Dsystemvm-xen
-Dsystemvm-vmware'

it should work


-Wei

On Thu, Mar 28, 2024 at 4:19 PM Jimmy Huybrechts  wrote:
>
> Hi Wei,
>
> Would that be including the vmware plugins etc?
>
> --
> Jimmy
>
> Van: Wei ZHOU 
> Datum: donderdag, 28 maart 2024 om 14:18
> Aan: users@cloudstack.apache.org 
> Onderwerp: Re: Build own debs
> You can build packages in a docker image, for example for 4.18.1.0
>
> cd /tmp
> git clone -b 4.18.1.0 https://github.com/apache/cloudstack.git cloudstack
> docker run -ti \
> -v /tmp:/src \
> -v ~/.m2:/.m2/ \
> ubuntu:22.04 \
> /bin/bash -c "export DEBIAN_FRONTEND=noninteractive && apt-get update \
> && apt-get install -y dpkg-dev python2 python3 debhelper
> openjdk-11-jdk genisoimage python3-mysql.connector maven lsb-release
> devscripts python-setuptools python3-setuptools \
> && curl -sL https://deb.nodesource.com/setup_14.x | bash - \
> && apt-get install -y nodejs \
> && /src/cloudstack/packaging/build-deb.sh"
>
>
> -Wei
>
> On Thu, Mar 28, 2024 at 11:25 AM Jimmy Huybrechts  
> wrote:
> >
> > Hi,
> >
> > Is there maybe a more up to date version of the build your own debs? I see 
> > the one in the docs goes up to ubuntu 18 and java 8, while we are now at 
> > java 11. So I don’t know if the dependencies have changed and all.
> >
> > --
> > Jimmy


Re: Build own debs

2024-03-28 Thread Wei ZHOU
You can build packages in a docker image, for example for 4.18.1.0

cd /tmp
git clone -b 4.18.1.0 https://github.com/apache/cloudstack.git cloudstack
docker run -ti \
-v /tmp:/src \
-v ~/.m2:/.m2/ \
ubuntu:22.04 \
/bin/bash -c "export DEBIAN_FRONTEND=noninteractive && apt-get update \
&& apt-get install -y dpkg-dev python2 python3 debhelper
openjdk-11-jdk genisoimage python3-mysql.connector maven lsb-release
devscripts python-setuptools python3-setuptools \
&& curl -sL https://deb.nodesource.com/setup_14.x | bash - \
&& apt-get install -y nodejs \
&& /src/cloudstack/packaging/build-deb.sh"


-Wei

On Thu, Mar 28, 2024 at 11:25 AM Jimmy Huybrechts  wrote:
>
> Hi,
>
> Is there maybe a more up to date version of the build your own debs? I see 
> the one in the docs goes up to ubuntu 18 and java 8, while we are now at java 
> 11. So I don’t know if the dependencies have changed and all.
>
> --
> Jimmy


Re: [VOTE] Release Apache CloudStack CloudMonkey 6.4.0 - RC1

2024-03-27 Thread Wei ZHOU
+1 (binding)

Tested zone creation, vm and volume , CKS life cycles.

-Wei

On Thu, Mar 21, 2024 at 11:39 AM Rohit Yadav  wrote:
>
> Hi All,
>
> I've created a v6.4.0 release of CloudMonkey, with the following
> artifacts up for a vote:
>
> Git Branch and commit SHA:
> https://github.com/apache/cloudstack-cloudmonkey/commit/df65df7cfe331c5af5d39743717e3d58df921a48
>
> Commit:
> df65df7cfe331c5af5d39743717e3d58df921a48
>
> GitHub pre-release (contains changelog,
> artifacts/binaries to test, checksums/usage details):
> https://github.com/apache/cloudstack-cloudmonkey/releases/tag/6.4.0
>
> Source release (checksums and signatures are available at the same
> location):
> https://dist.apache.org/repos/dist/dev/cloudstack/cloudmonkey-6.4.0/
>
> PGP release keys (signed using 5ED1E1122DC5E8A4A45112C2484248210EE3D884)
> https://dist.apache.org/repos/dist/release/cloudstack/KEYS
>
> The vote will be open until 27th March, 2024.
>
> For sanity in tallying the vote, can PMC members please be sure to
> indicate "(binding)" with their vote?
> [ ] +1 approve
> [ ] +0 no opinion
> [ ] -1 disapprove (and the reason why)
>
> Convenience binaries are available from here:
> https://github.com/apache/cloudstack-cloudmonkey/releases/tag/6.4.0
>
> Regards.


Re: Migrate migrated instance to another host

2024-03-23 Thread Wei ZHOU
Hi,

/var/log/cloudstack/management/management-server.log
please note the log file is rotated everyday.

-Wei

On Sat, Mar 23, 2024 at 9:34 AM Jimmy Huybrechts  wrote:
>
> Hi Wei,
>
> I can, if you tell me where to look as I couldn’t find anything on them in 
> the logs.
>
> --
> Jimmy
>
> Van: Wei ZHOU 
> Datum: vrijdag, 22 maart 2024 om 16:15
> Aan: users@cloudstack.apache.org 
> Onderwerp: Re: Migrate migrated instance to another host
> Can you share the logs of vm migration and vm import ?
>
>
> On Fri, Mar 22, 2024 at 3:55 PM Jimmy Huybrechts  wrote:
> >
> > I’ve migrated vm’s from a remote KVM host which worked fine and they run on 
> > Cloudstack now.
> >
> > However, I just tried migrating one from one cloudstack host to another, 
> > just like with instances made from a cloudstack host and it’s not moving 
> > but ending up with an error.
> >
> > This is displayed in the webgui:
> > Failed to migrate VM [VM instance 
> > {"id":109,"instanceName":"i-8-108-VM","type":"User","uuid":"2fbb0d84-7ea2-4092-aa5d-25a53eb3cda2"}]
> >  along with its volumes due to [java.lang.NullPointerException].
> >
> > Now I’m trying to see in what log the complete error would be but I’m 
> > coming up blank on which log I need.
> >
> > Instances created natively in Cloudstack are migrating just fine, it’s only 
> > the ones that came from the remote KVM host before.
> >
> > --
> > Jimmy


Re: Still struggling for steps to build pls help

2024-03-23 Thread Wei ZHOU
a. You do not need to configure it (nobody configures manually). Your
issue is unrelated to the beans. The bean errors are misleading.

b. Jetty, not tomcat

c. the default http port is 8080 in /etc/cloudstack/management/server.properties



-Wei


On Sat, Mar 23, 2024 at 7:59 AM Wingrunt Platform  wrote:
>
> Just a few more questions.
> a. You seem to have webApplicationContext.xml directive in your web.xml. Is
> this to be available somewhere ? IF so where should it be ? if we install
> directory apt install ?
> b. The run time is an app server which I believe is tomcat for CS 4.19 . Is
> this correct ?
> c. My understanding is that you have embedded this within your CS which
> opens port 8080. Right ?
>
> Thank you
> Best
> RSK
> [Opensource will never die, even if you stab a thousand times; or place a
> blue mirror to reflect the make believe sky]
>
>
>
> On Fri, Mar 22, 2024 at 5:54 PM Wingrunt Platform 
> wrote:
>
> > @Pearl d'Silva Thank you.
> > Yes Db host same as management server both pointing to localhost. Also
> > tried specifically pointing to  cloud management ip No luck
> > @Wei ZHOU  Thanks to you too.
> >
> > Thank you so much. Hopefully I will get there soon.
> >
> > Best
> > RSK
> >
> >
> > On Fri, Mar 22, 2024 at 8:45 AM Pearl d'Silva 
> > wrote:
> >
> >> Is your database running on the same server / host on which you are
> >> trying to deploy the CloudStack setup? Can you verify the values of :
> >> db.cloud.host - this should point to the DB host
> >> cluster.node.IP - should point to the Management server (or the proper
> >> loopback address)
> >>
> >> in the ./client/conf/db.properties.in file and rebuild the code if
> >> you've built and deployed CloudStack from source. If you've set it up using
> >> packages, verify the above mentioned values in
> >> /etc/cloudstack/management/db.properties and restart the Management server
> >> if anything is changed in the file.
> >>
> >> Regards,
> >>
> >>
> >>
> >> 
> >> From: Wingrunt Platform 
> >> Sent: March 21, 2024 4:06 PM
> >> To: users@cloudstack.apache.org 
> >> Subject: Re: Still struggling for steps to build pls help
> >>
> >> A friendly reminder. Racing against time :)
> >> Thank you so much.
> >> RSK
> >>
> >> On Wed, Mar 20, 2024 at 5:37 PM Wingrunt Platform 
> >> wrote:
> >>
> >> > Copied below - th management-server.log.
> >> > Looking forward to hearing from you.
> >> >
> >> >
> >> > 2024-03-20 17:17:18,407 DEBUG [o.a.c.s.m.m.i.DefaultModuleDefinitionSet]
> >> > (main:null) (logid:) Trying to obtain module [nested-cloudstack]
> >> context.
> >> > 2024-03-20 17:17:18,407 DEBUG [o.a.c.s.m.m.i.DefaultModuleDefinitionSet]
> >> > (main:null) (logid:) Trying to load module [nested-cloudstack] context.
> >> > 2024-03-20 17:17:18,407 INFO  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet]
> >> > (main:null) (logid:) Loading module context [nested-cloudstack] from URL
> >> >
> >> [jar:file:/usr/share/cloudstack-management/lib/cloudstack-4.19.0.0.jar!/META-INF/cloudstack/nested-cloudstack/spring-nested-cloudstack-context.xml]
> >> > 2024-03-20 17:17:18,407 INFO  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet]
> >> > (main:null) (logid:) Loading module context [nested-cloudstack] from URL
> >> >
> >> [jar:file:/usr/share/cloudstack-management/lib/cloudstack-4.19.0.0.jar!/META-INF/cloudstack/outofbandmanagement/spring-core-lifecycle-outofbandmanagement-context-inheritable.xml]
> >> > 2024-03-20 17:17:18,407 INFO  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet]
> >> > (main:null) (logid:) Loading module context [nested-cloudstack] from URL
> >> >
> >> [jar:file:/usr/share/cloudstack-management/lib/cloudstack-4.19.0.0.jar!/META-INF/cloudstack/core/spring-core-lifecycle-core-context-inheritable.xml]
> >> > 2024-03-20 17:17:18,407 INFO  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet]
> >> > (main:null) (logid:) Loading module context [nested-cloudstack] from URL
> >> >
> >> [jar:file:/usr/share/cloudstack-management/lib/cloudstack-4.19.0.0.jar!/META-INF/cloudstack/system/spring-core-system-context-inheritable.xml]
> >> > 2024-03-20 17:17:18,407 INFO  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet]
> >> > (main:null) (logid:) Loading module context [nested-cloudstack] from URL
> >> >
> >> [jar:file:/usr/s

Re: Still struggling for steps to build pls help

2024-03-22 Thread Wei ZHOU
>From my experience, the error is mostly caused by misconfigurations, like
Pearl said.
it is better to check the db.properties

Please also check if any "Exception" log before the bean errors.

-Wei


On Friday, March 22, 2024, Pearl d'Silva  wrote:

> Is your database running on the same server / host on which you are trying
> to deploy the CloudStack setup? Can you verify the values of :
> db.cloud.host - this should point to the DB host
> cluster.node.IP - should point to the Management server (or the proper
> loopback address)
>
> in the ./client/conf/db.properties.in file and rebuild the code if you've
> built and deployed CloudStack from source. If you've set it up using
> packages, verify the above mentioned values in
> /etc/cloudstack/management/db.properties and restart the Management
> server if anything is changed in the file.
>
> Regards,
>
>
>
> 
>
>


Re: Migrate migrated instance to another host

2024-03-22 Thread Wei ZHOU
Can you share the logs of vm migration and vm import ?


On Fri, Mar 22, 2024 at 3:55 PM Jimmy Huybrechts  wrote:
>
> I’ve migrated vm’s from a remote KVM host which worked fine and they run on 
> Cloudstack now.
>
> However, I just tried migrating one from one cloudstack host to another, just 
> like with instances made from a cloudstack host and it’s not moving but 
> ending up with an error.
>
> This is displayed in the webgui:
> Failed to migrate VM [VM instance 
> {"id":109,"instanceName":"i-8-108-VM","type":"User","uuid":"2fbb0d84-7ea2-4092-aa5d-25a53eb3cda2"}]
>  along with its volumes due to [java.lang.NullPointerException].
>
> Now I’m trying to see in what log the complete error would be but I’m coming 
> up blank on which log I need.
>
> Instances created natively in Cloudstack are migrating just fine, it’s only 
> the ones that came from the remote KVM host before.
>
> --
> Jimmy


Re: Still struggling for steps to build pls help

2024-03-20 Thread Wei ZHOU
You can refer to another page in the same repository As Pearl mentioned.

https://github.com/shapeblue/hackerbook/blob/main/2-dev.md#cloudstack-packaging

If you want to support VMware, please add "noredist" flag. The dependecies
need to be installed.

-Wei


On Wednesday, March 20, 2024, Wingrunt Platform  wrote:

> Any help with this please ? Documentation could be much better I think.
> Please let me know how to go about this. OR a source compile is currently
> not supported ? Thank you Regards, RSK
>
> On Tue, Mar 19, 2024 at 3:19 PM Wingrunt Platform 
> wrote:
>
> > Hi Team,
> > I am tasked with evaluation of cloudstack and others such as openstack. I
> > was able to get through with openstack but not cloudstack. I tried all
> that
> > is in README . My versions
> > a. cloudstack 4.19
> > b. Java (tried 1.8 as per readme and also Java 11 and 17)
> > c. It breaks at gmaven in package cloud-engine-schma
> > d. Changed it to gmavenplus as there is no support for gmaven as of now.
> > e. Groovy included in the pom
> > f. Maven version 3.6.3
> >
> > I was able to install mysql appropriate version specified in README and
> in
> > the online apache cloudstack docs. DBs are in good condition.
> > It wouldn't build successfully with
> > maven -P deps (This as per online somebody has said you have moved away
> > from this since 4.11 ?
> > also tried that in README including -DskipTests
> >
> > Any latest documents that can help me build. Any help appreciated.
> >
> > Thank you,
> > Regards,
> > RSK
> >
>


Re: cpuwithoverprovisioning incorrect

2024-03-18 Thread Wei ZHOU
global setting: configuration table
cluster setting: cluster_details table

-Wei


On Monday, March 18, 2024, Francisco Arencibia Quesada <
arencibia.franci...@gmail.com> wrote:

> I need to check if this is being set in the database, do you know what
> table is holding cpu.overprovisioning.factor values?
>
> Thanks in advance :)
>
>
> On Thu, Mar 14, 2024 at 1:40 PM Francisco Arencibia Quesada <
> arencibia.franci...@gmail.com> wrote:
>
> > it seems that in beta environment is not multiplying by 5
> >
> > On Thu, Mar 14, 2024 at 12:26 PM Wei ZHOU  wrote:
> >
> >> the issue is that cpunumber is wrong, not cpuwithoverprovisioning,
> right ?
> >>
> >> -Wei
> >>
> >> On Thu, Mar 14, 2024 at 12:15 PM Francisco Arencibia Quesada
> >>  wrote:
> >> >
> >> > This prod that is ok
> >> > 48*2993*5=718320
> >> >
> >> > CPUNUMBER | CPUSPEED | CPUWITHOVERPROVISIONING |
> >> > +---+--+-+
> >> > |48 | 2993 |718320.0 |
> >> >
> >> >
> >> >
> >> > beta environment is wrong
> >> > 120*2000*5=120
> >> > +---+--+---------+
> >> > | CPUNUMBER | CPUSPEED | CPUWITHOVERPROVISIONING |
> >> > +---+--+-+
> >> > |   120 | 2000 |  24 |
> >> >
> >> >
> >> > regards
> >> >
> >> >
> >> >
> >> > On Thu, Mar 14, 2024 at 11:57 AM Wei ZHOU 
> >> wrote:
> >> >
> >> > > then it seems correct
> >> > >
> >> > > 24 (cpu cores) * 2000 (cpu clock speed in mhz) * 5 (over
> provisioning
> >> > > factor) = 24 (cpuwithoverprovisioning)
> >> > >
> >> > >
> >> > > -Wei
> >> > >
> >> > >
> >> > > On Thu, Mar 14, 2024 at 11:52 AM Francisco Arencibia Quesada
> >> > >  wrote:
> >> > > >
> >> > > > yes 24 cores.
> >> > > >
> >> > > > On Thu, Mar 14, 2024 at 11:33 AM Wei ZHOU 
> >> wrote:
> >> > > >
> >> > >
> >> >
> >> >
> >> > --
> >> > *Francisco Arencibia Quesada.*
> >> > *DevOps Engineer*
> >>
> >
> >
> > --
> > *Francisco Arencibia Quesada.*
> > *DevOps Engineer*
> >
>
>
> --
> *Francisco Arencibia Quesada.*
> *DevOps Engineer*
>


Re: send keyboard commands via websocket

2024-03-18 Thread Wei ZHOU
It looks like the connection is not established.

Does the VNC client support websocket ? What websocket URL does the
VNC client connect to ?



-Wei

On Mon, Mar 18, 2024 at 1:35 PM  wrote:
>
> It does not matter which commands I am sending, I run into the same error.
>
> I created a small go program which uses github.com/mitchellh/go-vnc to 
> establish connection.
> I use this map for keyboard commands: 
> https://github.com/qemu/qemu/blob/master/ui/vnc_keysym.h
>
> Is there a working program out there which works and I can test with?
>
> Regards,
> Swen
>
>
> -Ursprüngliche Nachricht-
> Von: Wei ZHOU 
> Gesendet: Montag, 18. März 2024 12:43
> An: users@cloudstack.apache.org
> Betreff: Re: send keyboard commands via websocket
>
> What keyboard command do you use?
>
> -Wei
>
> On Mon, Mar 18, 2024 at 12:39 PM  wrote:
> >
> > Does anybody have any idea? When I try to do this I get this error:
> > no suitable auth schemes found. server supported: []byte{0x13}
> >
> > regards,
> > Swen
> >
> > -Ursprüngliche Nachricht-
> > Von: m...@swen.io 
> > Gesendet: Montag, 11. März 2024 12:34
> > An: users@cloudstack.apache.org
> > Betreff: send keyboard commands via websocket
> >
> > Hello,
> >
> > did somebody sucssefully send keyboard commands via websocket to noVNC?
> >
> > I create websocket connection data via api createConsoleEndpoint and I
> > am also able to connect via websocket client (Firefox Weasel) to it.
> >
> > I also see via tcpdump on the console proxy system vm incoming
> > traffic. But I was not able to send any keyboard commands via
> > websocket ton the VNC console.
> >
> > Does anybody know how to send keyboard commands via a websocket client
> > to the console of an instance?
> >
> >
> >
> > Regards,
> >
> > Swen
> >
> >
> >
>
>


Re: send keyboard commands via websocket

2024-03-18 Thread Wei ZHOU
What keyboard command do you use?

-Wei

On Mon, Mar 18, 2024 at 12:39 PM  wrote:
>
> Does anybody have any idea? When I try to do this I get this error:
> no suitable auth schemes found. server supported: []byte{0x13}
>
> regards,
> Swen
>
> -Ursprüngliche Nachricht-
> Von: m...@swen.io 
> Gesendet: Montag, 11. März 2024 12:34
> An: users@cloudstack.apache.org
> Betreff: send keyboard commands via websocket
>
> Hello,
>
> did somebody sucssefully send keyboard commands via websocket to noVNC?
>
> I create websocket connection data via api createConsoleEndpoint and I am
> also able to connect via websocket client (Firefox Weasel) to it.
>
> I also see via tcpdump on the console proxy system vm incoming traffic. But
> I was not able to send any keyboard commands via websocket ton the VNC
> console.
>
> Does anybody know how to send keyboard commands via a websocket client to
> the console of an instance?
>
>
>
> Regards,
>
> Swen
>
>
>


Re: cpuwithoverprovisioning incorrect

2024-03-14 Thread Wei ZHOU
the issue is that cpunumber is wrong, not cpuwithoverprovisioning, right ?

-Wei

On Thu, Mar 14, 2024 at 12:15 PM Francisco Arencibia Quesada
 wrote:
>
> This prod that is ok
> 48*2993*5=718320
>
> CPUNUMBER | CPUSPEED | CPUWITHOVERPROVISIONING |
> +---+--+-+
> |48 | 2993 |718320.0 |
>
>
>
> beta environment is wrong
> 120*2000*5=120
> +---+--+-+
> | CPUNUMBER | CPUSPEED | CPUWITHOVERPROVISIONING |
> +---+--+-+
> |   120 | 2000 |  24 |
>
>
> regards
>
>
>
> On Thu, Mar 14, 2024 at 11:57 AM Wei ZHOU  wrote:
>
> > then it seems correct
> >
> > 24 (cpu cores) * 2000 (cpu clock speed in mhz) * 5 (over provisioning
> > factor) = 24 (cpuwithoverprovisioning)
> >
> >
> > -Wei
> >
> >
> > On Thu, Mar 14, 2024 at 11:52 AM Francisco Arencibia Quesada
> >  wrote:
> > >
> > > yes 24 cores.
> > >
> > > On Thu, Mar 14, 2024 at 11:33 AM Wei ZHOU  wrote:
> > >
> >
>
>
> --
> *Francisco Arencibia Quesada.*
> *DevOps Engineer*


Re: cpuwithoverprovisioning incorrect

2024-03-14 Thread Wei ZHOU
then it seems correct

24 (cpu cores) * 2000 (cpu clock speed in mhz) * 5 (over provisioning
factor) = 24 (cpuwithoverprovisioning)


-Wei


On Thu, Mar 14, 2024 at 11:52 AM Francisco Arencibia Quesada
 wrote:
>
> yes 24 cores.
>
> On Thu, Mar 14, 2024 at 11:33 AM Wei ZHOU  wrote:
>


Re: cpuwithoverprovisioning incorrect

2024-03-14 Thread Wei ZHOU
It looks like cpunumber has already consider the cpu.overprovisioning.factor

How many cpu cores does the host have ? 24 ?

-Wei


On Thu, Mar 14, 2024 at 11:23 AM Francisco Arencibia Quesada
 wrote:
>
> hi wei,
> I have just checked and in both cases overprovisioning is 5.
>
> What else should I do?
> We have XCP-ng clusters running.
>
> Regards
>
> On Thu, Mar 14, 2024 at 11:16 AM Wei ZHOU  wrote:
>
> > "cpu.overprovisioning.factor" is a cluster-scope setting.
> > Can you please check both the global and cluster settings ?
> >
> > -Wei
> >
> > On Thu, Mar 14, 2024 at 11:08 AM Francisco Arencibia Quesada
> >  wrote:
> > >
> > > Good morning guys,
> > >  the value I'm having for cpuwithoverprovisioning is wrong, it should be
> > > multiplied by 5.
> > > I don't know if this is a bug in cloudstack 4.18.1 or what. Could you
> > > please guys, run the query in your cloudstack and send me the output? any
> > > version >=4.18.1
> > >
> > > *cloudmonkey list hosts
> > > filter=cpunumber,cpuspeed,name,cpuwithoverprovisioning*
> > >
> > >
> > > [root@localhost ~]# cloudmonkey list hosts
> > > filter=cpunumber,cpuspeed,name,cpuwithoverprovisioning
> > > count = 15
> > > host:
> > > +-+---+-+--+
> > > | cpuwithoverprovisioning | cpunumber |   name  | cpuspeed |
> > > +-+---+-+--+
> > > |  24 |120| srppdc5001 |   2000   |
> > > | |   |s-8618-VM|  |
> > > | |   |s-8619-VM|  |
> > > | |   |v-14498-VM   |  |
> > > | |   |v-14499-VM   |  |
> > > | |   |v-14501-VM   |  |
> > > | |   |s-14500-VM   |  |
> > > | |   |s-14502-VM   |  |
> > > | |   |s-14504-VM   |  |
> > > |  252000 |120|  SRPBOXVPDC3006 |   2100   |
> > > | |   |v-14522-VM   |  |
> > > | |   |s-14523-VM   |  |
> > > | |   |v-14416-VM   |  |
> > > | |   |s-14415-VM   |  |
> > > |  252000 |120| srppdc5007 |   2100   |
> > > +-+---+-+--+
> > >
> > > Thank you in advance.
> > > Kind Regards.
> > >
> > > --
> > > *Francisco Arencibia Quesada.*
> > > *DevOps Engineer*
> >
>
>
> --
> *Francisco Arencibia Quesada.*
> *DevOps Engineer*


Re: cpuwithoverprovisioning incorrect

2024-03-14 Thread Wei ZHOU
"cpu.overprovisioning.factor" is a cluster-scope setting.
Can you please check both the global and cluster settings ?

-Wei

On Thu, Mar 14, 2024 at 11:08 AM Francisco Arencibia Quesada
 wrote:
>
> Good morning guys,
>  the value I'm having for cpuwithoverprovisioning is wrong, it should be
> multiplied by 5.
> I don't know if this is a bug in cloudstack 4.18.1 or what. Could you
> please guys, run the query in your cloudstack and send me the output? any
> version >=4.18.1
>
> *cloudmonkey list hosts
> filter=cpunumber,cpuspeed,name,cpuwithoverprovisioning*
>
>
> [root@localhost ~]# cloudmonkey list hosts
> filter=cpunumber,cpuspeed,name,cpuwithoverprovisioning
> count = 15
> host:
> +-+---+-+--+
> | cpuwithoverprovisioning | cpunumber |   name  | cpuspeed |
> +-+---+-+--+
> |  24 |120| srppdc5001 |   2000   |
> | |   |s-8618-VM|  |
> | |   |s-8619-VM|  |
> | |   |v-14498-VM   |  |
> | |   |v-14499-VM   |  |
> | |   |v-14501-VM   |  |
> | |   |s-14500-VM   |  |
> | |   |s-14502-VM   |  |
> | |   |s-14504-VM   |  |
> |  252000 |120|  SRPBOXVPDC3006 |   2100   |
> | |   |v-14522-VM   |  |
> | |   |s-14523-VM   |  |
> | |   |v-14416-VM   |  |
> | |   |s-14415-VM   |  |
> |  252000 |120| srppdc5007 |   2100   |
> +-+---+-+--+
>
> Thank you in advance.
> Kind Regards.
>
> --
> *Francisco Arencibia Quesada.*
> *DevOps Engineer*


Re: CPU topology

2024-03-12 Thread Wei ZHOU
Hi,

Sorry the vm setting name is "cpucorepersocket", not "cpucorespersocket"


-Wei

On Tue, Mar 12, 2024 at 9:53 AM Gary Dixon 
wrote:

> Hi Wei
>
> I tried setting cpucorespersocket to 8 on a VM with 8vCPU but it has still
> put them across 2 sockets?
>
> Heres some of the xml output:
>
> 8388608
> 8
> 
> 264
> 
> ..
> 
> 
> 
> ...
>
> Any ideas what I am doing wrong?
>
> BR
>
> Gary
>
> Gary Dixon
> Quadris Cloud Manager
> +44 (0) 161 537 4980 <+44%20(0)%20161%20537%204980>
>  +44 (0) 7989 717661 <+44%20(0)%207989%20717661>
> gary.di...@quadris.co.uk
> www.quadris.com
> Innovation House, 12‑13 Bredbury Business Park
> Bredbury Park Way, Bredbury, Stockport, SK6 2SN
> -Original Message-
> From: Wei ZHOU 
> Sent: Monday, March 11, 2024 5:29 PM
> To: users@cloudstack.apache.org
> Subject: Re: CPU topology
>
> Stop the vm
> Add a vm setting cpucorespersocket
> Start the vm
>
> -Wei
>
>
> On Monday, March 11, 2024, Gary Dixon 
> wrote:
>
> >
> >
> > Meant to have stated here that our ACS version is 4.15.2 Hi
> >
> > ACS 4.1.2
> > KVM on Ubuntu 20.04
> > Hosts are Dell R7525 AMD EPYC dual socket 32 core CPU’s
> >
> > Is there a VM setting that can over-ride the CPU topology?
> >
> > It seems that when we have a VM with less than 8 vCPU – the domain xml
> > of a VM shows the CPU topology as a single socket.
> > However between 8 and 16 vCPU’s it shows the topology as having 2
> > sockets and 16 or more vCPUs shows 4 sockets.
> > I have tried using a VM setting of cpuSocket = 1on a VM with 8vCPU’s
> > but it is ignored and continues to use a topology with 2 sockets
> >
> > BR
> >
> > Gary
> >
> >
> > [cid:image161185.png@43BB5413.7EEF77E3]
> > Gary Dixon
> > Quadris Cloud Manager
> > [cid:image347717.png@8A941AE6.9AE8C0C0]
> > +44 (0) 161 537 4980
> > +44 (0) 7989 717661
> > [cid:image253845.png@DEB7B540.7BE6A036]
> > gary.di...@quadris.co.uk<mailto:gary.di...@quadris.co.uk>
> > [cid:image058514.png@B54F0EC3.D31BE611]
> > http://www.q/
> > uadris.com%2F=05%7C02%7CGary.Dixon%40quadris.co.uk%7Ca277409825e3
> > 4aaf0d0c08dc41f0e5ee%7Cf1d6abf3d3b44894ae16db0fb93a96a2%7C0%7C0%7C6384
> > 57750109219152%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2l
> > uMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C=YgDCwDD5fCOV9ZT
> > WmqURHVoTP9sNAsxyiqgtn%2FYaAtY%3D=0<https://eur01.safelinks.p/
> > rotection.outlook.com/?url=http%3A%2F%2Fwww.quadris.com%2F=05%7C0
> > 2%7CGary.Dixon%40quadris.co.uk%7Ca277409825e34aaf0d0c08dc41f0e5ee%7Cf1
> > d6abf3d3b44894ae16db0fb93a96a2%7C0%7C0%7C638457750109228420%7CUnknown%
> > 7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJX
> > VCI6Mn0%3D%7C0%7C%7C%7C=jOqpTPry%2FCm4zAUenX2SFUtrfzzt8WF3CgnDj%
> > 2FbM2B4%3D=0> [cid:image187233.png@747A4F03.8BAA600C]
> > Innovation House, 12‑13 Bredbury Business Park Bredbury Park Way,
> > Bredbury, Stockport, SK6 2SN
> >
> >
>


Re: CPU topology

2024-03-11 Thread Wei ZHOU
Stop the vm
Add a vm setting cpucorespersocket
Start the vm

-Wei


On Monday, March 11, 2024, Gary Dixon 
wrote:

>
>
> Meant to have stated here that our ACS version is 4.15.2
> Hi
>
> ACS 4.1.2
> KVM on Ubuntu 20.04
> Hosts are Dell R7525 AMD EPYC dual socket 32 core CPU’s
>
> Is there a VM setting that can over-ride the CPU topology?
>
> It seems that when we have a VM with less than 8 vCPU – the domain xml of
> a VM shows the CPU topology as a single socket.
> However between 8 and 16 vCPU’s it shows the topology as having 2 sockets
> and 16 or more vCPUs shows 4 sockets.
> I have tried using a VM setting of cpuSocket = 1on a VM with 8vCPU’s  but
> it is ignored and continues to use a topology with 2 sockets
>
> BR
>
> Gary
>
>
> [cid:image161185.png@43BB5413.7EEF77E3]
> Gary Dixon
> Quadris Cloud Manager
> [cid:image347717.png@8A941AE6.9AE8C0C0]
> +44 (0) 161 537 4980
>  +44 (0) 7989 717661
> [cid:image253845.png@DEB7B540.7BE6A036]
> gary.di...@quadris.co.uk
> [cid:image058514.png@B54F0EC3.D31BE611]
> www.quadris.com
> [cid:image187233.png@747A4F03.8BAA600C]
> Innovation House, 12‑13 Bredbury Business Park
> Bredbury Park Way, Bredbury, Stockport, SK6 2SN
>
>


Re: Advice about advanced zone with security groups

2024-03-11 Thread Wei ZHOU
For the shared networks with SG, the IPs should have public access.
similar as Public IPs in the advanced zone (without SG).

-Wei

On Mon, Mar 11, 2024 at 5:10 PM Tomas Leypold  wrote:
>
> Hi,
>
> I am new to CloudStack and am trying to create a POC. I am having a problem 
> with Core/Advanced with security groups enabled. With security groups 
> enabled, it seems that the system VM can't connect to the internet. I am 
> getting a "No route to host (Host unreachable)" message in the default 
> template, which I think is because there is no "Public traffic type" with 
> security groups. So, does the advanced zone with security groups work 
> differently than advanced without security groups? I couldn't find anything 
> in the docs, and all the tutorials I found are using advanced without 
> security groups which is working fine for me. Thanks!
>
> Regards,
> Tomas Leypold
>


Re: DDOS Attacks from my virtual Router

2024-03-11 Thread Wei ZHOU
oh, the first two rules should not exist


-Wei


On Mon, Mar 11, 2024 at 2:04 PM Wei ZHOU  wrote:

> Hi,
>
> The port 53 should be allowed for only the guest network
>
> root@r-4-VM:~# iptables-save |grep "port 53"
> -A INPUT -d 10.111.17.4/32 -i eth0 -p tcp -m tcp --dport 53 -j ACCEPT
> -A INPUT -d 10.111.17.4/32 -i eth0 -p udp -m udp --dport 53 -j ACCEPT
> -A INPUT -s 10.111.16.0/20 -i eth0 -p udp -m udp --dport 53 -j ACCEPT
> -A INPUT -s 10.111.16.0/20 -i eth0 -p tcp -m tcp --dport 53 -j ACCEPT
>
>
> -Wei
>
>
>


Re: DDOS Attacks from my virtual Router

2024-03-11 Thread Wei ZHOU
% confirm that *unassigned* IP addresses CANNOT reach the
> apache.org hosts via Nux tests. So its ONLY the assigned IPs that can do
> so.
>
> Please let me know what your thoughts are and anyway I need to go about
> this?
> On 3/11/24 12:09, Nux wrote:
>
> I have seen this in the past where port 53 was open on these public IPs on
> the VR and was indeed leading to amplification attack.
>
> It's super easy to verify, from some 3rd party IP that you know is not
> whitelisted anywhere in your firewall or cloudstack, run a host or dig
> command that unallocated IP. If it replies, there is a problem.
>
> dig @IP apache.org a
> host apache.org IP
>
>
>
> On 2024-03-11 07:43, Granwille Strauss wrote:
>
> Hi Guys
>
> I ended updating to 4.19 and updated all SystemVMs and routers
> accordingly. DC has just informed me again that there is amplified
> DDOS attacks originating from my virtual router and from an IP address
> that's assigned to no instance or systemvm but shows via UI its
> assigned.
>
> Any ideas what I can try to stop this?
> On 2/12/24 21:30, Wei ZHOU wrote:
>
> cloudstack 4.19.0.0 has been released recently, which contains a new
> systemvm template. You can upgrade.
>
> -Wei
>
> 在 2024年2月12日星期一,Granwille Strauss
>   写道:
>
> Update:
>
> So since I ran updates for dnsmasq in all system vms, the issue
> seems to
> be solved. Our DC hasn't complained again. So it seems the vm
> templates
> need an update?
> On 2/9/24 10:29, Jayanth Reddy wrote:
>
> Please capture on 53/UDP as most of the DNS stack uses UDP by
> default.
>
> I looked the screenshot, No NAME means that the IP hasn't
> undergone STATIC NAT to a VM, which is okay wherein perhaps there
> could be port forwards or Load Balancer instead. The VR should
> assign the IP on its interface if it is acquired in the network.
> If I may ask, how are you concluding that IPs are unassigned
> elsewhere, have you performed basic reachability tests? Your case
> could be one of the below
>
> 1. That IP could be SNAT for that network.
> 2. Or there was an assignment to one of the VMs previously as
> STATIC NAT and later released. Please check your events.
>
> Get Outlook for Android<https://aka.ms/AAb9ysg> <https://aka.ms/AAb9ysg>
> [1]
> <https://aka.ms/AAb9ysg> <https://aka.ms/AAb9ysg> [1]
>
> 
> From: Granwille Strauss  
>  
> Sent: Friday, February 9, 2024 1:40:05 pm
> To: users@cloudstack.apache.org 
> 
>  
> Cc: Jayanth Reddy 
> 
>  ; Wei ZHOU
>  
>  
> Subject: Re: DDOS Attacks from my virtual Router
>
> I run version 4.18.1.0  currently, oddly there was an update for
> dnsmasq so I applied them to all systemvms. I clean restarted the
> guest networks and so far everything seems to be running fine. If
> I pick up issues, I will destroy the routers so that cloudstack
> can recreate them again.
>
> In the meantime, I am running the tcpdump as recommended in the
> vritual router and will keep an eye on it, as mentioned there
> seems to be no movement on port 53 so far and I also asked the DC
> to provide an update on this after the changes I have applied.
>
> In any case, attached is a screenshot of the IP address that are
> allocated but zero VM associated, I checked all of them and these
> IPs show up no where. I have no loadbalancers, proxies nothing.
> Just simple setup, with two virtual routers, one SSVM and one
> Consolevm. The rest are VM instances. I am going to check the git
> url you provided and query the DB to see what these are.
>
> On 2/9/24 09:53, Jayanth Reddy wrote:
>
> Hi,
> Allocated means that it is assigned somewhere. You'll need to
> check the Public IP Address tab. Use the shared GH issue for
> exceptional case.
>
> The VR does bind only on the internal network. No, manually
> updating packages on VRs and System VMs might produce strange
> results. Please provision them again.
>
> Thanks
>
> Get Outlook for Android<https://aka.ms/AAb9ysg> <https://aka.ms/AAb9ysg>
> [1]
> <https://aka.ms/AAb9ysg> <https://aka.ms/AAb9ysg> [1]
> <https://aka.ms/AAb9ysg> <https://aka.ms/AAb9ysg> [1]
> <https://aka.ms/AAb9ysg> <https://aka.ms/AAb9ysg> [1]
>
> 
> From: Granwille Strauss  
>  
> <mailto:granwi...@namhost.com> 
>  
> Sent: Friday, February 9, 2024 1:10:32 pm
> To:
> users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>
> 
>  
>  
>  
> <mailto:users@cloudstack.apache.org> 
>  
> Cc: Wei ZHOU  
>  
> <mailto:ustcweiz...@gmail.com> 
>  ;
> jayanthreddy5...@gmail.com<mailto:jayan

Re: DDOS Attacks from my virtual Router

2024-03-11 Thread Wei ZHOU
I remember it as well.
The issue should have been fixed many years ago. see
https://github.com/apache/cloudstack/pull/1663

-Wei

On Mon, Mar 11, 2024 at 11:09 AM Nux  wrote:
>
> I have seen this in the past where port 53 was open on these public IPs
> on the VR and was indeed leading to amplification attack.
>
> It's super easy to verify, from some 3rd party IP that you know is not
> whitelisted anywhere in your firewall or cloudstack, run a host or dig
> command that unallocated IP. If it replies, there is a problem.
>
> dig @IP apache.org a
> host apache.org IP
>
>
>


Re: CKS with K8s Offering N/w

2024-03-11 Thread Wei ZHOU
Hi,

If you access port 443 from other hosts (not controller), you need to
specify the listen address.
for example "--address 0.0.0.0"


-Wei

On Mon, Mar 11, 2024 at 10:35 AM Bharat Bhushan Saini
 wrote:
>
> Hi Wei,
>
>
>
> I fired below command,
>
> kubectl --kubeconfig kube.conf port-forward deployment/cloud 443:31009
>
>
>
> Just FYI, application uses a tls and it is also configured.
>
>
>
>
>
> Thanks and Regards,
>
> Bharat Saini
>
>
>
>
>
> From: Wei ZHOU 
> Date: Monday, 11 March 2024 at 1:18 PM
> To: users@cloudstack.apache.org 
> Subject: Re: CKS with K8s Offering N/w
>
> EXTERNAL EMAIL: Please verify the sender email address before taking any 
> action, replying, clicking any link or opening any attachment.
>
>
> Hi,
>
> Can you please share the command you run ?
>
> -Wei
>
> On Mon, Mar 11, 2024 at 8:43 AM Bharat Bhushan Saini
>  wrote:
>
> > Hi Community,
> >
> >
> >
> > I understand that if I want to use CKS service then I have to pass VLAN in
> > my network. I am trying to achieve that.
> >
> >
> >
> > But in meanwhile time I expose the service as a nodeport to access the
> > dashboard of my application on shared network. It is accessible over the
> > IP(http) of control node but I want to access it through https. The service
> > was running on nodeport with 31009 port but over the https it shows
> >
> >
> >
> > *   Trying 10.x.x.185:31009...
> >
> > * Connected to k8scstack.internal.kloudspot.com (10.x.x.185) port 31009
> > (#0)
> >
> > * ALPN, offering h2
> >
> > * ALPN, offering http/1.1
> >
> > * successfully set certificate verify locations:
> >
> > *  CAfile: /etc/ssl/certs/ca-certificates.crt
> >
> > *  CApath: /etc/ssl/certs
> >
> > * TLSv1.3 (OUT), TLS handshake, Client hello (1):
> >
> > * error:1408F10B:SSL routines:ssl3_get_record:wrong version number
> >
> > * Closing connection 0
> >
> > curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
> >
> >
> >
> > After port forwarding for the particular service 443:31009, encountered
> > with the below error,
> >
> >
> >
> > *   Trying 10.1.10.185:443...
> >
> > * connect to 10.1.10.185 port 443 failed: Connection refused
> >
> > * Failed to connect to k8scstack.internal.kloudspot.com port 443:
> > Connection refused
> >
> > * Closing connection 0
> >
> > curl: (7) Failed to connect to k8scstack.internal.kloudspot.com port 443:
> > Connection refused
> >
> >
> >
> > Can anyone pls suggest to move forward for that.
> >
> >
> >
> > Thanks and Regards,
> >
> > Bharat Saini
> >
> >
> >
> > [image: signature_2373681320]
> >
> >
> >
> > *From: *Jayanth Babu A 
> > *Date: *Friday, 1 March 2024 at 11:25 PM
> > *To: *users@cloudstack.apache.org 
> > *Subject: *Re: CKS with K8s Offering N/w
> >
> > EXTERNAL EMAIL: Please verify the sender email address before taking any
> > action, replying, clicking any link or opening any attachment.
> >
> >
> > +1
> >
> > Bharat, see if you can start using the isolated network to get the full
> > experience of CKS. In shared network you should only rely on connecting to
> > node ports or have an external load balancer (outside of CloudStack)
> > balance the traffic to the node ports where any service like traefik runs.
> >
> > Thanks,
> > Jayanth
> >
> > 
> > From: Wei ZHOU 
> > Sent: Friday, March 1, 2024 11:20:09 pm
> > To: users@cloudstack.apache.org 
> > Subject: Re: CKS with K8s Offering N/w
> >
> > Hi,
> >
> > Just my 2 cents.
> >
> > If you use NodePort, you need to know which worker node the pod is runing
> > on. It is a problem if there are multiple nodes. To solve this problem,
> > LoadBalancer can be used. cloudstack creates a load balancing rule to the
> > NodePort of all worker nodes. So the service can be accessible no matter
> > where the pod is. However, this only works with Isolated networks, as
> > shared networks do not support Load Balancer.
> >
> > traefik may work for you, I did not look into it yet. Another way is as I
> > have suggested, use kubectl port-forward to access the services with
> > ClusterIP.
> >
> > -Wei
> >
> >
> > On Friday, March 1, 2024, Bharat Bhushan Saini
> >  

Re: DDOS Attacks from my virtual Router

2024-03-11 Thread Wei ZHOU
In my opinion, one of your VMs is compromised.

If you are able to access the hosts, you can check the statistics of
the virtual nics of the VMs in the network.

vmname=i-xx-yyy-VM
nics=$(virsh domiflist $vmname |awk '{print $1}' |grep vnet)
for nic in $nics;do
  virsh domifstat $vmname $nic |grep tx_bytes
done



-Wei

On Mon, Mar 11, 2024 at 8:44 AM Granwille Strauss  wrote:
>
> Hi Guys
>
> I ended updating to 4.19 and updated all SystemVMs and routers accordingly. 
> DC has just informed me again that there is amplified DDOS attacks 
> originating from my virtual router and from an IP address that's assigned to 
> no instance or systemvm but shows via UI its assigned.
>
> Any ideas what I can try to stop this?
>
>


Re: CKS with K8s Offering N/w

2024-03-11 Thread Wei ZHOU
Hi,

Can you please share the command you run ?

-Wei

On Mon, Mar 11, 2024 at 8:43 AM Bharat Bhushan Saini
 wrote:

> Hi Community,
>
>
>
> I understand that if I want to use CKS service then I have to pass VLAN in
> my network. I am trying to achieve that.
>
>
>
> But in meanwhile time I expose the service as a nodeport to access the
> dashboard of my application on shared network. It is accessible over the
> IP(http) of control node but I want to access it through https. The service
> was running on nodeport with 31009 port but over the https it shows
>
>
>
> *   Trying 10.x.x.185:31009...
>
> * Connected to k8scstack.internal.kloudspot.com (10.x.x.185) port 31009
> (#0)
>
> * ALPN, offering h2
>
> * ALPN, offering http/1.1
>
> * successfully set certificate verify locations:
>
> *  CAfile: /etc/ssl/certs/ca-certificates.crt
>
> *  CApath: /etc/ssl/certs
>
> * TLSv1.3 (OUT), TLS handshake, Client hello (1):
>
> * error:1408F10B:SSL routines:ssl3_get_record:wrong version number
>
> * Closing connection 0
>
> curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
>
>
>
> After port forwarding for the particular service 443:31009, encountered
> with the below error,
>
>
>
> *   Trying 10.1.10.185:443...
>
> * connect to 10.1.10.185 port 443 failed: Connection refused
>
> * Failed to connect to k8scstack.internal.kloudspot.com port 443:
> Connection refused
>
> * Closing connection 0
>
> curl: (7) Failed to connect to k8scstack.internal.kloudspot.com port 443:
> Connection refused
>
>
>
> Can anyone pls suggest to move forward for that.
>
>
>
> Thanks and Regards,
>
> Bharat Saini
>
>
>
> [image: signature_2373681320]
>
>
>
> *From: *Jayanth Babu A 
> *Date: *Friday, 1 March 2024 at 11:25 PM
> *To: *users@cloudstack.apache.org 
> *Subject: *Re: CKS with K8s Offering N/w
>
> EXTERNAL EMAIL: Please verify the sender email address before taking any
> action, replying, clicking any link or opening any attachment.
>
>
> +1
>
> Bharat, see if you can start using the isolated network to get the full
> experience of CKS. In shared network you should only rely on connecting to
> node ports or have an external load balancer (outside of CloudStack)
> balance the traffic to the node ports where any service like traefik runs.
>
> Thanks,
> Jayanth
>
> 
> From: Wei ZHOU 
> Sent: Friday, March 1, 2024 11:20:09 pm
> To: users@cloudstack.apache.org 
> Subject: Re: CKS with K8s Offering N/w
>
> Hi,
>
> Just my 2 cents.
>
> If you use NodePort, you need to know which worker node the pod is runing
> on. It is a problem if there are multiple nodes. To solve this problem,
> LoadBalancer can be used. cloudstack creates a load balancing rule to the
> NodePort of all worker nodes. So the service can be accessible no matter
> where the pod is. However, this only works with Isolated networks, as
> shared networks do not support Load Balancer.
>
> traefik may work for you, I did not look into it yet. Another way is as I
> have suggested, use kubectl port-forward to access the services with
> ClusterIP.
>
> -Wei
>
>
> On Friday, March 1, 2024, Bharat Bhushan Saini
>  wrote:
>
> > Hi Jayanth,
> >
> >
> >
> > Just as an query I want to know that when the cluster run on shared
> > network the traefik-ingress-controller is required to access the
> > application externally else nodeport defind is enough for that.
> >
> >
> >
> > Thanks and Regards,
> >
> > Bharat Saini
> >
> >
> >
> > [image: signature_3414558938]
> >
> >
> >
> > *From: *Jayanth Babu A 
> > *Date: *Friday, 1 March 2024 at 9:09 PM
> > *To: *users@cloudstack.apache.org 
> > *Subject: *Re: CKS with K8s Offering N/w
> >
> > EXTERNAL EMAIL: Please verify the sender email address before taking any
> > action, replying, clicking any link or opening any attachment.
> >
> >
> > Hi Bharat,
> >
> > I don't seem to understand your question. Would you please explain in
> more
> > detail?
> >
> > Thanks,
> > Jayanth
> >
> > 
> > From: Bharat Bhushan Saini 
> > Sent: Friday, March 1, 2024 3:15:18 pm
> > To: users@cloudstack.apache.org 
> > Subject: Re: CKS with K8s Offering N/w
> >
> > Hi Wei,
> >
> > In shared n/w the traefik ingress is needed or only nodeport is enough
> for
> > that!
> >
> > Thanks and Regards,
> > Bharat Saini
> 

Re: CSEUG - September, Germany

2024-03-05 Thread Wei ZHOU
Great!

Thanks Swen!

-Wei


On Tuesday, March 5, 2024, Ivet Petrova  wrote:

> Hi all,
>
> Will be Frankfurt. Swen from proIO is really excited to help us organise,
> so we have somebody on place to support, which is really cool.
>
> Best regards,
>
>
>
>
> On 1 Mar 2024, at 11:06, Wido den Hollander  wrote:
>
>
>
> Op 28/02/2024 om 16:29 schreef Ivet Petrova:
> Hi all,
> I would like to propose to organise the CSEUG next meeting on September
> 12th in Germany.
> I already had a few informal conversations with community members in
> Germany, who are willing to help.
> Do you all think the date is OK and we can meet there?
>
> Works for me on 12-09. Just wondering, Germany is big, which city are we
> looking at?
>
> Frankfurt? Berlin? München? Düsseldorf? :-)
>
> Wido
>
> I consider the usual formal of half day talks and will need 5-6 speakers
> on place.
> Best regards,
>
>
>


Re: Network Issue with Cluster

2024-03-01 Thread Wei ZHOU
If you use shared network, it is definitely a network issue, as Cloudstack
only provides dns/dhcp/userdata service for shared networks.

-Wei


On Friday, March 1, 2024, Bharat Bhushan Saini
 wrote:

> Hi Jayanth,
>
>
>
> As per my analysis, I think some latches has been with cloudstack. This is
> why because the IP on MS is working file but the IP which is allocated to
> the VM or cluster having issue. It is dropping the ICMP.
>
>
>
> Thanks and Regards,
>
> Bharat Saini
>
>
>
> [image: signature_3250556292]
>
>
>
>
>


Re: CKS with K8s Offering N/w

2024-03-01 Thread Wei ZHOU
Hi,

Just my 2 cents.

If you use NodePort, you need to know which worker node the pod is runing
on. It is a problem if there are multiple nodes. To solve this problem,
LoadBalancer can be used. cloudstack creates a load balancing rule to the
NodePort of all worker nodes. So the service can be accessible no matter
where the pod is. However, this only works with Isolated networks, as
shared networks do not support Load Balancer.

traefik may work for you, I did not look into it yet. Another way is as I
have suggested, use kubectl port-forward to access the services with
ClusterIP.

-Wei


On Friday, March 1, 2024, Bharat Bhushan Saini
 wrote:

> Hi Jayanth,
>
>
>
> Just as an query I want to know that when the cluster run on shared
> network the traefik-ingress-controller is required to access the
> application externally else nodeport defind is enough for that.
>
>
>
> Thanks and Regards,
>
> Bharat Saini
>
>
>
> [image: signature_3414558938]
>
>
>
> *From: *Jayanth Babu A 
> *Date: *Friday, 1 March 2024 at 9:09 PM
> *To: *users@cloudstack.apache.org 
> *Subject: *Re: CKS with K8s Offering N/w
>
> EXTERNAL EMAIL: Please verify the sender email address before taking any
> action, replying, clicking any link or opening any attachment.
>
>
> Hi Bharat,
>
> I don't seem to understand your question. Would you please explain in more
> detail?
>
> Thanks,
> Jayanth
>
> 
> From: Bharat Bhushan Saini 
> Sent: Friday, March 1, 2024 3:15:18 pm
> To: users@cloudstack.apache.org 
> Subject: Re: CKS with K8s Offering N/w
>
> Hi Wei,
>
> In shared n/w the traefik ingress is needed or only nodeport is enough for
> that!
>
> Thanks and Regards,
> Bharat Saini
>
> [signature_1176335358]
>
> From: Wei ZHOU 
> Date: Friday, 1 March 2024 at 1:59 PM
> To: users@cloudstack.apache.org 
> Subject: Re: CKS with K8s Offering N/w
> EXTERNAL EMAIL: Please verify the sender email address before taking any
> action, replying, clicking any link or opening any attachment.
>
>
> Hi Bharat,
>
> If you deploy a CKS cluster on an isolated network, please ensure the
> public Ips (which include the endpoint IP of the CKS cluster, and Load
> balancer IPs) are reachable from the management server.
> The management server configures the k8s nodes (controller/worker) via the
> port -222x of endpoint IP.
>
> If you deploy a CKS cluster on a shared network, Load balancer is not
> supported.
> If you create a K8s service with nodeport, you can access it by  IP>:.
> If clusterIP is used, to access the service, you need to run "kubectl
> port-forward" on the controller node.
>
>
> -Wei
>
>


Re: CKS with K8s Offering N/w

2024-03-01 Thread Wei ZHOU
Hi Bharat,

If you deploy a CKS cluster on an isolated network, please ensure the
public Ips (which include the endpoint IP of the CKS cluster, and Load
balancer IPs) are reachable from the management server.
The management server configures the k8s nodes (controller/worker) via the
port -222x of endpoint IP.

If you deploy a CKS cluster on a shared network, Load balancer is not
supported.
If you create a K8s service with nodeport, you can access it by :.
If clusterIP is used, to access the service, you need to run "kubectl
port-forward" on the controller node.


-Wei



On Fri, Mar 1, 2024 at 7:08 AM Bharat Bhushan Saini
 wrote:

> Hi Wei,
>
>
>
> I deployed cloudstack 4.18.1 on ubuntu 22.04 LTS on a standalone server
> with kvm,nfs consist.
>
>
>
> I already tested some vm’s on the cloudstack on a shared network with
> untagged vlan because what IP range I have that was bridged with the
> private n/w and natting is enabled on that. On shared n/w I am able to
> access internet but in isolated or L2 config it can’t.
>
>
>
> As per your suggestion, I tried with create default k8s n/w and also
> create a network which have the same config of default k8s n/w but I untag
> the vlan in that n/w. Both was not working.
>
> On shared n/w I a able to spawn the cluster and also able to login with
> key and also deploy an application but the containers was running on the
> Cluster IP.
>
>
>
> Thanks and Regards,
>
> Bharat Saini
>
>
>
> [image: signature_2926674288]
>
>
>


Re: CKS with K8s Offering N/w

2024-02-29 Thread Wei ZHOU
Hi Bharat,

In my opinion, most of the CKS issues you have are caused by your network
configuration.

Please share more details of your environments, as much as possible.

-Wei

On Thu, Feb 29, 2024 at 5:45 PM Bharat Bhushan Saini
 wrote:

> Hi All,
>
>
>
> Now the cluster goes in error state. Please refer logs as below
>
>
>
> 2024-02-29 13:25:05,774 ERROR [c.c.k.c.a.KubernetesClusterActionWorker]
> (API-Job-Executor-54:ctx-7e86c22d job-777 ctx-5c1e1685) (logid:458f275d)
> Failed to setup Kubernetes cluster : *kspot* in usable state as unable to
> access control node VMs of the cluster
>
> 2024-02-29 13:25:11,900 INFO  [c.c.k.c.a.KubernetesClusterActionWorker]
> (API-Job-Executor-54:ctx-7e86c22d job-777 ctx-5c1e1685) (logid:458f275d)
> Detached Kubernetes binaries from VM : *kspot*-control-18df4d40038 in the
> Kubernetes cluster : *kspot*
>
> 2024-02-29 13:25:12,804 INFO  [c.c.k.c.a.KubernetesClusterActionWorker]
> (API-Job-Executor-54:ctx-7e86c22d job-777 ctx-5c1e1685) (logid:458f275d)
> Detached Kubernetes binaries from VM : *kspot*-node-18df4d4562b in the
> Kubernetes cluster : *kspot*
>
> 2024-02-29 13:25:12,806 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> (API-Job-Executor-54:ctx-7e86c22d job-777) (logid:458f275d) Complete async
> job-777, jobStatus: FAILED, resultCode: 530, result:
> org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"Failed
> to setup Kubernetes cluster : *kspot* in usable state as unable to access
> control node VMs of the cluster"}
>
> 2024-02-29 13:34:31,962 DEBUG [c.c.a.t.Request]
> (RouterStatusMonitor-1:ctx-6890fa84) (logid:7daaca79) Seq
> 10-2919458458442974958
>
>
>
>
>
> Thanks and Regards,
>
> Bharat Saini
>
>
>
> [image: signature_3007469423]
>
>
>
> *From: *Bharat Bhushan Saini 
> *Date: *Thursday, 29 February 2024 at 5:09 PM
> *To: *users@cloudstack.apache.org 
> *Subject: *Re: CKS with K8s Offering N/w
>
> EXTERNAL EMAIL: Please verify the sender email address before taking any
> action, replying, clicking any link or opening any attachment.
>
>
>
> Hi Wei,
>
>
>
> I truncate the mysql database table of kubernetes_cluster.
>
>
>
> Now the cluster is stucked in the starting state.
>
>
>
> Thanks and Regards,
>
> Bharat Saini
>
>
>
> [image: signature_17144652]
>
>
>
> *From: *Wei ZHOU 
> *Date: *Thursday, 29 February 2024 at 4:52 PM
> *To: *users@cloudstack.apache.org 
> *Subject: *Re: CKS with K8s Offering N/w
>
> EXTERNAL EMAIL: Please verify the sender email address before taking any
> action, replying, clicking any link or opening any attachment.
>
>
> The endpoint is automatically set by cloudstack, if the CKS cluster is
> created successfully.
>
> If the endpoint is empty, it means the CKS cluster is not setup well, you'd
> better remove it if it is not in use.
>
> -Wei
>
> On Thu, Feb 29, 2024 at 12:17 PM Bharat Bhushan Saini
>  wrote:
>
> > Hi Wei,
> >
> >
> >
> > Last record is empty but new one also having the same endpoint with alert
> > condition. Can I delete first the new cluster then empty the table,
> should
> > it work?
> >
> > If it is then how we will manage multiple cluster!
> >
> >
> >
> > Thanks and Regards,
> >
> > Bharat Saini
> >
> >
> >
> > [image: signature_3652424534]
> >
> >
> >
> > *From: *Wei ZHOU 
> > *Date: *Thursday, 29 February 2024 at 4:34 PM
> > *To: *users@cloudstack.apache.org 
> > *Subject: *Re: CKS with K8s Offering N/w
> >
> > EXTERNAL EMAIL: Please verify the sender email address before taking any
> > action, replying, clicking any link or opening any attachment.
> >
> >
> > Yes,
> >
> > They are the Kubernetes API server endpoint of CKS clusters.
> >
> > Is the endpoint of the last record empty ?
> >
> > -Wei
> >
> > On Thu, Feb 29, 2024 at 11:58 AM Bharat Bhushan Saini
> >  wrote:
> >
> > > Hi Wei,
> > >
> > >
> > >
> > > It show different IP instead of management
> > >
> > > mysql> select endpoint from kubernetes_cluster;
> > >
> > > +--+
> > >
> > > | endpoint |
> > >
> > > +--+
> > >
> > > | https://10.x.x.87:6443/  |
> > >
> > > | https://10.x.x.87:6443/  |
> > >
> > > | https://10.x.x.87:6443/  |
> > >
> > > | https://10.x.x.

Re: CKS with K8s Offering N/w

2024-02-29 Thread Wei ZHOU
The endpoint is automatically set by cloudstack, if the CKS cluster is
created successfully.

If the endpoint is empty, it means the CKS cluster is not setup well, you'd
better remove it if it is not in use.

-Wei

On Thu, Feb 29, 2024 at 12:17 PM Bharat Bhushan Saini
 wrote:

> Hi Wei,
>
>
>
> Last record is empty but new one also having the same endpoint with alert
> condition. Can I delete first the new cluster then empty the table, should
> it work?
>
> If it is then how we will manage multiple cluster!
>
>
>
> Thanks and Regards,
>
> Bharat Saini
>
>
>
> [image: signature_3652424534]
>
>
>
> *From: *Wei ZHOU 
> *Date: *Thursday, 29 February 2024 at 4:34 PM
> *To: *users@cloudstack.apache.org 
> *Subject: *Re: CKS with K8s Offering N/w
>
> EXTERNAL EMAIL: Please verify the sender email address before taking any
> action, replying, clicking any link or opening any attachment.
>
>
> Yes,
>
> They are the Kubernetes API server endpoint of CKS clusters.
>
> Is the endpoint of the last record empty ?
>
> -Wei
>
> On Thu, Feb 29, 2024 at 11:58 AM Bharat Bhushan Saini
>  wrote:
>
> > Hi Wei,
> >
> >
> >
> > It show different IP instead of management
> >
> > mysql> select endpoint from kubernetes_cluster;
> >
> > +--+
> >
> > | endpoint |
> >
> > +--+
> >
> > | https://10.x.x.87:6443/  |
> >
> > | https://10.x.x.87:6443/  |
> >
> > | https://10.x.x.87:6443/  |
> >
> > | https://10.x.x.87:6443/  |
> >
> > |  |
> >
> > +--+
> >
> >
> >
> >
> >
> >
> >
> > Thanks and Regards,
> >
> > Bharat Saini
> >
> >
> >
> > [image: signature_3154659082]
> >
> >
> >
> > *From: *Wei ZHOU 
> > *Date: *Thursday, 29 February 2024 at 4:15 PM
> > *To: *users@cloudstack.apache.org 
> > *Subject: *Re: CKS with K8s Offering N/w
> >
> > EXTERNAL EMAIL: Please verify the sender email address before taking any
> > action, replying, clicking any link or opening any attachment.
> >
> >
> > It is not related to the endpoint.url in the global setting.
> >
> > The endpoint of the CKS cluster is invalid. You can check mysql by
> "select
> > endpoint from kubernetes_cluster;"
> > I guess your CKS cluster was not created successfully.
> >
> > -Wei
> >
> >
> >
> > On Thu, Feb 29, 2024 at 11:40 AM Bharat Bhushan Saini
> >  wrote:
> >
> > > Hi All,
> > >
> > >
> > >
> > > I started a cluster with Network offering by k8s. It shows API endpoint
> > > error as below
> > >
> > > 2024-02-29 10:25:13,433 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> > > (API-Job-Executor-38:ctx-f6f75d23 job-719) (logid:7e7e617f) Complete
> > async
> > > job-719, jobStatus: FAILED, resultCode: 530, result:
> > >
> >
> org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"Kubernetes
> > > cluster : *kspot* has invalid API endpoint. Can not verify if cluster
> is
> > > in ready state"}
> > >
> > >
> > >
> > > The endpoint.url was set as
> > > https://cloudstack.inte.example.com:8443/client/api
> > >
> > >
> > >
> > > Thanks and Regards,
> > >
> > > Bharat Saini
> > >
> > >
> > >
> > > [image: signature_2879974955]
> > >
> > > --- Disclaimer: --
> > > This message and its contents are intended solely for the designated
> > > addressee and are proprietary to Kloudspot. The information in this
> email
> > > is meant exclusively for Kloudspot business use. Any use by individuals
> > > other than the addressee constitutes misuse and an infringement of
> > > Kloudspot's proprietary rights. If you are not the intended recipient,
> > > please return this email to the sender. Kloudspot cannot guarantee the
> > > security or error-free transmission of e-mail communications.
> Information
> > > could be intercepted, corrupted, lost, destroyed, arrive late or
> > > incomplete, or contain viruses. Therefore, Kloudspot shall not be
> liable
> > > for any issues arising from the transmission of this email.
> > >
>

Re: CKS with K8s Offering N/w

2024-02-29 Thread Wei ZHOU
Yes,

They are the Kubernetes API server endpoint of CKS clusters.

Is the endpoint of the last record empty ?

-Wei

On Thu, Feb 29, 2024 at 11:58 AM Bharat Bhushan Saini
 wrote:

> Hi Wei,
>
>
>
> It show different IP instead of management
>
> mysql> select endpoint from kubernetes_cluster;
>
> +--+
>
> | endpoint |
>
> +--+
>
> | https://10.x.x.87:6443/  |
>
> | https://10.x.x.87:6443/  |
>
> | https://10.x.x.87:6443/  |
>
> | https://10.x.x.87:6443/  |
>
> |  |
>
> +--+
>
>
>
>
>
>
>
> Thanks and Regards,
>
> Bharat Saini
>
>
>
> [image: signature_3154659082]
>
>
>
> *From: *Wei ZHOU 
> *Date: *Thursday, 29 February 2024 at 4:15 PM
> *To: *users@cloudstack.apache.org 
> *Subject: *Re: CKS with K8s Offering N/w
>
> EXTERNAL EMAIL: Please verify the sender email address before taking any
> action, replying, clicking any link or opening any attachment.
>
>
> It is not related to the endpoint.url in the global setting.
>
> The endpoint of the CKS cluster is invalid. You can check mysql by "select
> endpoint from kubernetes_cluster;"
> I guess your CKS cluster was not created successfully.
>
> -Wei
>
>
>
> On Thu, Feb 29, 2024 at 11:40 AM Bharat Bhushan Saini
>  wrote:
>
> > Hi All,
> >
> >
> >
> > I started a cluster with Network offering by k8s. It shows API endpoint
> > error as below
> >
> > 2024-02-29 10:25:13,433 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> > (API-Job-Executor-38:ctx-f6f75d23 job-719) (logid:7e7e617f) Complete
> async
> > job-719, jobStatus: FAILED, resultCode: 530, result:
> >
> org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"Kubernetes
> > cluster : *kspot* has invalid API endpoint. Can not verify if cluster is
> > in ready state"}
> >
> >
> >
> > The endpoint.url was set as
> > https://cloudstack.inte.example.com:8443/client/api
> >
> >
> >
> > Thanks and Regards,
> >
> > Bharat Saini
> >
> >
> >
> > [image: signature_2879974955]
> >
> > --- Disclaimer: --
> > This message and its contents are intended solely for the designated
> > addressee and are proprietary to Kloudspot. The information in this email
> > is meant exclusively for Kloudspot business use. Any use by individuals
> > other than the addressee constitutes misuse and an infringement of
> > Kloudspot's proprietary rights. If you are not the intended recipient,
> > please return this email to the sender. Kloudspot cannot guarantee the
> > security or error-free transmission of e-mail communications. Information
> > could be intercepted, corrupted, lost, destroyed, arrive late or
> > incomplete, or contain viruses. Therefore, Kloudspot shall not be liable
> > for any issues arising from the transmission of this email.
> >
>
> --- Disclaimer: --
> This message and its contents are intended solely for the designated
> addressee and are proprietary to Kloudspot. The information in this email
> is meant exclusively for Kloudspot business use. Any use by individuals
> other than the addressee constitutes misuse and an infringement of
> Kloudspot's proprietary rights. If you are not the intended recipient,
> please return this email to the sender. Kloudspot cannot guarantee the
> security or error-free transmission of e-mail communications. Information
> could be intercepted, corrupted, lost, destroyed, arrive late or
> incomplete, or contain viruses. Therefore, Kloudspot shall not be liable
> for any issues arising from the transmission of this email.
>


Re: Storage in avoid set

2024-02-29 Thread Wei ZHOU
oyAsIs":"false"}},"executeInSequence":"true","options":{},"options2":{},"wait":"0","bypassHostMaintenance":"false"}}]
> > } to 33622688187677 2024-02-27 11:24:04,451 DEBUG [c.c.a.t.Request]
> > (AgentManager-Handler-3:null) (logid:) Seq 1-7417428586279207196:
> > Processing: { Ans: , MgmtId: 187740248600989, via: 1, Ver: v1, Flags:
> 110,
> >
> >
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":"false","details":"com.cloud.utils.exception.CloudRuntimeException:
> > *Catch Exception com.xensource.xenapi.Types$UuidInvalid :VDI getByUuid
> for
> > uuid: 44b911df-3138-414b-9604-e7254372ad9b failed due to The uuid you
> > supplied was invalid."*,"wait":"0","bypassHostMaintenance":"false"}}] }
> >
> >
> > On Thu, Feb 29, 2024 at 10:16 AM Slavka Peleva 
> > wrote:
> >
> > > Hi Alex,
> > >
> > > I'm unfamiliar with Xen, but can you check if the template
> > `44b911df-3138-414b-9604-e7254372ad9b`
> > > exists in your primary storage?  On every first deployment of a VM
> with a
> > > new template, CS copies the template from secondary storage to the
> > primary.
> > > The template may be missing on primary (for some reason) but CloudStack
> > > keeps the info for the record in the database and tries to create a
> > volume
> > > from it.
> > >
> > > Best regards,
> > > Slavka
> > >
> > > On Thu, Feb 29, 2024 at 8:49 AM Joan g  wrote:
> > >
> > >> Hi Wei,
> > >>
> > >> Storage also does not have any tags. Attaching logs
> > >>
> > >> Alex
> > >>
> > >> On Thu, Feb 29, 2024 at 12:09 AM Wei ZHOU 
> > wrote:
> > >>
> > >>> Hi Alex,
> > >>>
> > >>> The tags are the disk offering tags.
> > >>>
> > >>> Anyway , can you share the full log of the job ?
> > >>>
> > >>> -Wei
> > >>>
> > >>> On Wed, Feb 28, 2024 at 6:47 PM Alex Paul <
> alex.chris.jun...@gmail.com
> > >
> > >>> wrote:
> > >>>
> > >>> > Hi Wei,
> > >>> >
> > >>> > No tags are there. I think in logs also its not printing  to any
> > tags:
> > >>> >
> > >>> >
> > >>> > Found pools [[Pool[1|PreSetup]]] that match with tags [[]].
> > >>> >
> > >>> > The VM deployments were fine 2 days before. All in a sudden it
> > started
> > >>> > failing.
> > >>> >
> > >>> >
> > >>> > Alex
> > >>> >
> > >>> > On Wednesday, February 28, 2024, Wei ZHOU 
> > >>> wrote:
> > >>> >
> > >>> > > Agree.
> > >>> > >
> > >>> > > Please also check if the pool has any tags.
> > >>> > >
> > >>> > > -Wei
> > >>> > >
> > >>> > > On Wed, Feb 28, 2024 at 5:31 PM Slavka Peleva
> > >>> >  > >>> > > >
> > >>> > > wrote:
> > >>> > >
> > >>> > > > Hi Alex,
> > >>> > > >
> > >>> > > > Sorry for the question but is it possible that the cluster is
> > >>> > disabled? I
> > >>> > > > have faced a similar problem before while testing.
> > >>> > > >
> > >>> > > > Best regards,
> > >>> > > > Slavka
> > >>> > > >
> > >>> > > > On Wed, Feb 28, 2024 at 5:15 PM Alex Paul <
> > >>> alex.chris.jun...@gmail.com
> > >>> > >
> > >>> > > > wrote:
> > >>> > > >
> > >>> > > > > Hi Swen,
> > >>> > > > >
> > >>> > > > > Yes, only 3TB used out of 15TB and double checked the
> threshold
> > >>> is at
> > >>> > > > 85%.
> > >>> > > > > :(
> > >>> > > > >
> > >>> > > > > Alex
> > >>> > > > >
> > >>> > > > > On Wed, Feb 28, 2024 at 7:32 PM  wrote:
&

Re: CKS with K8s Offering N/w

2024-02-29 Thread Wei ZHOU
It is not related to the endpoint.url in the global setting.

The endpoint of the CKS cluster is invalid. You can check mysql by "select
endpoint from kubernetes_cluster;"
I guess your CKS cluster was not created successfully.

-Wei



On Thu, Feb 29, 2024 at 11:40 AM Bharat Bhushan Saini
 wrote:

> Hi All,
>
>
>
> I started a cluster with Network offering by k8s. It shows API endpoint
> error as below
>
> 2024-02-29 10:25:13,433 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> (API-Job-Executor-38:ctx-f6f75d23 job-719) (logid:7e7e617f) Complete async
> job-719, jobStatus: FAILED, resultCode: 530, result:
> org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"Kubernetes
> cluster : *kspot* has invalid API endpoint. Can not verify if cluster is
> in ready state"}
>
>
>
> The endpoint.url was set as
> https://cloudstack.inte.example.com:8443/client/api
>
>
>
> Thanks and Regards,
>
> Bharat Saini
>
>
>
> [image: signature_2879974955]
>
> --- Disclaimer: --
> This message and its contents are intended solely for the designated
> addressee and are proprietary to Kloudspot. The information in this email
> is meant exclusively for Kloudspot business use. Any use by individuals
> other than the addressee constitutes misuse and an infringement of
> Kloudspot's proprietary rights. If you are not the intended recipient,
> please return this email to the sender. Kloudspot cannot guarantee the
> security or error-free transmission of e-mail communications. Information
> could be intercepted, corrupted, lost, destroyed, arrive late or
> incomplete, or contain viruses. Therefore, Kloudspot shall not be liable
> for any issues arising from the transmission of this email.
>


  1   2   3   4   5   6   7   8   9   >