Re: [ANNOUNCEMENT] Apache CloudStack LTS Maintenance Release 4.18.1.0

2023-09-18 Thread Jithin Raju
Congratulations everyone on the new release. Thanks Wei.

-Jithin

From: Wei ZHOU 
Date: Friday, 15 September 2023 at 7:15 PM
To: users 
Subject: [ANNOUNCEMENT] Apache CloudStack LTS Maintenance Release 4.18.1.0
The Apache CloudStack project is pleased to announce the release of
CloudStack 4.18.1.0.

The CloudStack 4.18.1.0 release is a maintenance release as part of
its 4.18.x LTS branch and contains around 200 fixes and
improvements since the CloudStack 4.18.0.0 release. Some of the
highlights include:

- Support Managed User Data in AutoScale VM groups
- Support CKS (CloudStack Kubernetes Cluster) in VPC tiers
- Support for VMware 8.0.0.x
- Several Hypervisor (VMware, KVM, XenServer) fixes and improvements
- Several UI fixes and improvements
- Several Network (L2, VXLAN, etc) fixes and improvements
- Several System VM (CPVM, SSVM) fixes and improvements
- Improve Solidfire storage plugin integration on VMware
- Support volume migration in ScaleIO/PowerFlex within and across
ScaleIO/PowerFlex storage clusters
- Volume encryption support for StorPool
- Fix CloudStack upgrade with some MySQL versions
- Fix guest OSes and guest OS mappings in CloudStack database


CloudStack LTS branches are supported for 18 months and will receive
updates for the first 12 months and only security updates in the last
6 months.

Apache CloudStack is an integrated Infrastructure-as-a-Service (IaaS)
software platform that allows users to build feature-rich public and
private cloud environments. CloudStack includes an intuitive user
interface and rich API for managing the compute, networking, software,
and storage resources. The project became an Apache top-level project
in March, 2013.

More information about Apache CloudStack can be found at:
https://cloudstack.apache.org/

# Documentation

What's new in CloudStack 4.18.1.0:
https://docs.cloudstack.apache.org/en/4.18.1.0/releasenotes/about.html

The 4.18.1.0 release notes include a full list of issues fixed, as
well as upgrade instructions from previous versions of Apache
CloudStack, and can be found at:
https://docs.cloudstack.apache.org/en/4.18.1.0/releasenotes/

The official installation, administration, and API documentation for
each of the releases are available on our documentation page:
https://docs.cloudstack.apache.org/

# Downloads

The official source code for the 4.18.1.0 release can be downloaded
from our downloads page:
https://cloudstack.apache.org/downloads.html

In addition to the official source code release, individual
contributors have also made convenience binaries available on the
Apache CloudStack download page, and can be found at:

https://download.cloudstack.org/el/7/
https://download.cloudstack.org/el/8/
https://download.cloudstack.org/ubuntu/dists/
https://www.shapeblue.com/packages/

 



RE: Index 0 out of bounds for length 0 - Scale VM

2023-09-18 Thread cristian.c
Hi Wei,

  There are no reason to migrate, there is enough capacity on the same host. No 
storage tags and we use local storage.

Regards,
Cristian

-Original Message-
From: Wei ZHOU  
Sent: Monday, September 18, 2023 11:24 AM
To: users@cloudstack.apache.org
Subject: Re: Index 0 out of bounds for length 0 - Scale VM

Hi,

it looks there is no suitable pool found for the migration. good to know you 
fixed by manual db changes.
However, If you expect the volume not be migrated in the future, it would be 
better to figure out why cloudstack tried to migrate it ( probably due to 
storage tags or capacity, etc)

-Wei

On Mon, 18 Sept 2023 at 09:42,  wrote:

> Hi Wei,
>
>Please see,.:
>
> 2023-09-18 02:07:13,556 INFO  [c.c.s.ManagementServerImpl]
> (API-Job-Executor-2:ctx-89843446 job-85583 ctx-db5354a6) 
> (logid:f25c5504) Volume Vol[709
> 8|name=ROOT-4591|vm=4591|ROOT] isn't attached to any running vm. 
> 8|Looking
> for storage pools in the cluster to which this volumes can be migrated.
> 2023-09-18 02:07:13,565 INFO  [c.c.s.StorageManagerImpl]
> (API-Job-Executor-2:ctx-89843446 job-85583 ctx-db5354a6) 
> (logid:f25c5504) Storage pool tro -ca-001.internal.host-local-dd761a4d 
> (36) does not supply IOPS capacity, assuming enough capacity
> 2023-09-18 02:07:13,577 INFO  [c.c.s.StorageManagerImpl]
> (API-Job-Executor-2:ctx-89843446 job-85583 ctx-db5354a6) 
> (logid:f25c5504) Storage pool tro
> -ca-002.internal.host-local-bc4e09c8 (41) does not supply IOPS 
> capacity, assuming enough capacity
> 2023-09-18 02:07:13,595 ERROR [c.c.a.ApiAsyncJobDispatcher]
> (API-Job-Executor-2:ctx-89843446 job-85583) (logid:f25c5504) 
> Unexpected exception while  executing 
> org.apache.cloudstack.api.command.admin.vm.ScaleVMCmdByAdmin
> java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
> at
> java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
> at
> java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
> at
> java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
> at java.base/java.util.Objects.checkIndex(Objects.java:372)
> at java.base/java.util.ArrayList.get(ArrayList.java:459)
> at
> com.cloud.storage.VolumeApiServiceImpl.changeDiskOfferingForVolumeInternal(VolumeApiServiceImpl.java:1898)
> at
> com.cloud.storage.VolumeApiServiceImpl.changeDiskOfferingForVolume(VolumeApiServiceImpl.java:1824)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
> at
> org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:107)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
> at
> com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:52)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
> at
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
> at
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
> at com.sun.proxy.$Proxy232.changeDiskOfferingForVolume(Unknown
> Source)
> at
> com.cloud.vm.UserVmManagerImpl.changeDiskOfferingForRootVolume(UserVmManagerImpl.java:2131)
> at
> com.cloud.vm.UserVmManagerImpl.upgradeStoppedVirtualMachine(UserVmManagerImpl.java:1305)
> at
> com.cloud.vm.UserVmManagerImpl.upgradeVirtualMachine(UserVmManagerImpl.java:1885)
> at
> com.cloud.vm.UserVmManagerImpl.upgradeVirtualMachine(UserVmManagerImpl.java:1859)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at
> 

Re: Index 0 out of bounds for length 0 - Scale VM

2023-09-18 Thread Wei ZHOU
Hi,

it looks there is no suitable pool found for the migration. good to know
you fixed by manual db changes.
However, If you expect the volume not be migrated in the future, it would
be better to figure out why cloudstack tried to migrate it ( probably due
to storage tags or capacity, etc)

-Wei

On Mon, 18 Sept 2023 at 09:42,  wrote:

> Hi Wei,
>
>Please see,.:
>
> 2023-09-18 02:07:13,556 INFO  [c.c.s.ManagementServerImpl]
> (API-Job-Executor-2:ctx-89843446 job-85583 ctx-db5354a6) (logid:f25c5504)
> Volume Vol[709
> 8|name=ROOT-4591|vm=4591|ROOT] isn't attached to any running vm. Looking
> for storage pools in the cluster to which this volumes can be migrated.
> 2023-09-18 02:07:13,565 INFO  [c.c.s.StorageManagerImpl]
> (API-Job-Executor-2:ctx-89843446 job-85583 ctx-db5354a6) (logid:f25c5504)
> Storage pool tro
> -ca-001.internal.host-local-dd761a4d (36) does not supply IOPS capacity,
> assuming enough capacity
> 2023-09-18 02:07:13,577 INFO  [c.c.s.StorageManagerImpl]
> (API-Job-Executor-2:ctx-89843446 job-85583 ctx-db5354a6) (logid:f25c5504)
> Storage pool tro
> -ca-002.internal.host-local-bc4e09c8 (41) does not supply IOPS capacity,
> assuming enough capacity
> 2023-09-18 02:07:13,595 ERROR [c.c.a.ApiAsyncJobDispatcher]
> (API-Job-Executor-2:ctx-89843446 job-85583) (logid:f25c5504) Unexpected
> exception while
>  executing org.apache.cloudstack.api.command.admin.vm.ScaleVMCmdByAdmin
> java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
> at
> java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
> at
> java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
> at
> java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
> at java.base/java.util.Objects.checkIndex(Objects.java:372)
> at java.base/java.util.ArrayList.get(ArrayList.java:459)
> at
> com.cloud.storage.VolumeApiServiceImpl.changeDiskOfferingForVolumeInternal(VolumeApiServiceImpl.java:1898)
> at
> com.cloud.storage.VolumeApiServiceImpl.changeDiskOfferingForVolume(VolumeApiServiceImpl.java:1824)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
> at
> org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:107)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
> at
> com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:52)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
> at
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
> at
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
> at com.sun.proxy.$Proxy232.changeDiskOfferingForVolume(Unknown
> Source)
> at
> com.cloud.vm.UserVmManagerImpl.changeDiskOfferingForRootVolume(UserVmManagerImpl.java:2131)
> at
> com.cloud.vm.UserVmManagerImpl.upgradeStoppedVirtualMachine(UserVmManagerImpl.java:1305)
> at
> com.cloud.vm.UserVmManagerImpl.upgradeVirtualMachine(UserVmManagerImpl.java:1885)
> at
> com.cloud.vm.UserVmManagerImpl.upgradeVirtualMachine(UserVmManagerImpl.java:1859)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
> at
> 

UPCOMING DEADLINE: CFP for CloudStack Collaboration Conference 2023 closes on Friday

2023-09-18 Thread Ivet Petrova
Dear community members,

I am writing to remind that on September 22nd, we are closing the CFP for the 
CloudStack Collaboration Conference.
We would love to have at least a few more submissions from the community of 
interesting talks until Friday.

REMINDER: Sharing your success stories with Apache Cloudstack is important to 
help increasing the visibility towards CloudStack and attract more new users.
As a completely free and open-source solution, our project needs your help on 
the marketing side and to grow the community.

Please, submit your talk here: https://forms.gle/6qZiMNA124CbKaJB8

I am available to help everyone who wants to be a speaker to create a good 
topic and abstract.

Kind regards,


 



RE: Index 0 out of bounds for length 0 - Scale VM

2023-09-18 Thread cristian.c
Hi Wei,

   Please see,.:

2023-09-18 02:07:13,556 INFO  [c.c.s.ManagementServerImpl] 
(API-Job-Executor-2:ctx-89843446 job-85583 ctx-db5354a6) (logid:f25c5504) 
Volume Vol[709
8|name=ROOT-4591|vm=4591|ROOT] isn't attached to any running vm. Looking for 
storage pools in the cluster to which this volumes can be migrated.
2023-09-18 02:07:13,565 INFO  [c.c.s.StorageManagerImpl] 
(API-Job-Executor-2:ctx-89843446 job-85583 ctx-db5354a6) (logid:f25c5504) 
Storage pool tro
-ca-001.internal.host-local-dd761a4d (36) does not supply IOPS capacity, 
assuming enough capacity
2023-09-18 02:07:13,577 INFO  [c.c.s.StorageManagerImpl] 
(API-Job-Executor-2:ctx-89843446 job-85583 ctx-db5354a6) (logid:f25c5504) 
Storage pool tro
-ca-002.internal.host-local-bc4e09c8 (41) does not supply IOPS capacity, 
assuming enough capacity
2023-09-18 02:07:13,595 ERROR [c.c.a.ApiAsyncJobDispatcher] 
(API-Job-Executor-2:ctx-89843446 job-85583) (logid:f25c5504) Unexpected 
exception while
 executing org.apache.cloudstack.api.command.admin.vm.ScaleVMCmdByAdmin
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at 
java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at 
java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at 
java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
at java.base/java.util.Objects.checkIndex(Objects.java:372)
at java.base/java.util.ArrayList.get(ArrayList.java:459)
at 
com.cloud.storage.VolumeApiServiceImpl.changeDiskOfferingForVolumeInternal(VolumeApiServiceImpl.java:1898)
at 
com.cloud.storage.VolumeApiServiceImpl.changeDiskOfferingForVolume(VolumeApiServiceImpl.java:1824)
at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at 
org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:107)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
at 
com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:52)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
at com.sun.proxy.$Proxy232.changeDiskOfferingForVolume(Unknown Source)
at 
com.cloud.vm.UserVmManagerImpl.changeDiskOfferingForRootVolume(UserVmManagerImpl.java:2131)
at 
com.cloud.vm.UserVmManagerImpl.upgradeStoppedVirtualMachine(UserVmManagerImpl.java:1305)
at 
com.cloud.vm.UserVmManagerImpl.upgradeVirtualMachine(UserVmManagerImpl.java:1885)
at 
com.cloud.vm.UserVmManagerImpl.upgradeVirtualMachine(UserVmManagerImpl.java:1859)
at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at 
org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:107)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
at 
com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:52)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
at 

Re: Index 0 out of bounds for length 0 - Scale VM

2023-09-18 Thread Wei ZHOU
Hi,

any error logs ?

-Wei


On Mon, 18 Sept 2023 at 08:16,  wrote:

> Hello,
>
>
>
>I just upgraded to cloudstack 4.18.1 from 4.17.2, and looks like the
> offering change/scale still not working. Any suggestion how can I scale
> these VMs without rebuild?
>
>
>
>(localcloud)  > scale virtualmachine
> id=191178f7-4f55-460c-87e8-5261d962f32f
> serviceofferingid=c7822345-0f4f-4425-a544-48af4380c5a0
>
> {
>
>   "accountid": "17274c5e-d492-11e5-86c3-000c298715c8",
>
>   "cmd": "org.apache.cloudstack.api.command.admin.vm.ScaleVMCmdByAdmin",
>
>   "completed": "2023-09-18T02:08:22-0400",
>
>   "created": "2023-09-18T02:08:22-0400",
>
>   "jobid": "ca1dd5f2-985c-40d8-bcc7-0d0c60db156d",
>
>   "jobinstanceid": "191178f7-4f55-460c-87e8-5261d962f32f",
>
>   "jobinstancetype": "VirtualMachine",
>
>   "jobprocstatus": 0,
>
>   "jobresult": {
>
> "errorcode": 431,
>
> "errortext": "Failed to change offering for volume
> 4f529ab2-e8f4-4844-8b8f-514fcc78647a since automigrate is set to false but
> volume needs to migrated"
>
>   },
>
>   "jobresultcode": 431,
>
>   "jobresulttype": "object",
>
>   "jobstatus": 2,
>
>   "userid": "1727541a-d492-11e5-86c3-000c298715c8"
>
> }
>
>  Error: async API failed for job ca1dd5f2-985c-40d8-bcc7-0d0c60db156d
>
> (localcloud)  > scale virtualmachine
> id=191178f7-4f55-460c-87e8-5261d962f32f
> serviceofferingid=c7822345-0f4f-4425-a544-48af4380c5a0 automigrate=true
>
> {
>
>   "accountid": "17274c5e-d492-11e5-86c3-000c298715c8",
>
>   "cmd": "org.apache.cloudstack.api.command.admin.vm.ScaleVMCmdByAdmin",
>
>   "completed": "2023-09-18T02:08:46-0400",
>
>   "created": "2023-09-18T02:08:46-0400",
>
>   "jobid": "d052fa4d-b62d-4539-98c7-d9e7a915feb9",
>
>   "jobinstanceid": "191178f7-4f55-460c-87e8-5261d962f32f",
>
>   "jobinstancetype": "VirtualMachine",
>
>   "jobprocstatus": 0,
>
>   "jobresult": {
>
> "errorcode": 530,
>
> "errortext": "Index 0 out of bounds for length 0"
>
>   },
>
>   "jobresultcode": 530,
>
>   "jobresulttype": "object",
>
>   "jobstatus": 2,
>
>   "userid": "1727541a-d492-11e5-86c3-000c298715c8"
>
> }
>
>  Error: async API failed for job d052fa4d-b62d-4539-98c7-d9e7a915feb9
>
>
> Thank you,
>
> Cristian
>
>


Re: ISO Ready Status Remain "No"

2023-09-18 Thread Granwille Strauss
Thank you. I recently installed a new SSL certificate via UI, which I 
believe caused this issue. Sadly, I could not fix it even after 
destroying SSVM. I deleted all ISOs and had to re-register them and now 
it works as expected.


On 9/18/23 09:00, Andrija Panic wrote:

Hi,

you should check the mgmt logs to see WHY this ISO failed to register
(perhaps there is HTTPS ssl issue or similar).

No reason to destroy SSVM (though it doesn't hurt) - a simple SSVM reboot
(or service cloud restartinside SSVM)  will trigger checking all the
templates/ISOs and try to register (from the URL in DB) the ones that are
not in the "Ready" state.

You can also check the DB, vm_template table - find the ISO and check the
"URL" filed - see if that URL is reachable, returns HTTP status 200 (OK)
when trying to download it, etc.

Regards,

On Sat, 16 Sept 2023 at 15:58, Granwille Strauss
  wrote:


Hi Guys

For some reason my ISO files via Cloudstack all show their ready status =
No. I have rebooted the SSVM and its connects and runs all fine and all my
templates show they are ready. Its only ISO that remains as NO. Any ideas
on how I can troubleshoot this? Should I destroy SSVM?
--
Regards / Groete

  Granwille Strauss  //  Senior Systems Admin

*e:*granwi...@namhost.com
*m:* +264 81 323 1260 <+264813231260>
*w:*www.namhost.com

  







Namhost Internet Services (Pty) Ltd,

24 Black Eagle Rd, Hermanus, 7210, RSA



The content of this message is confidential. If you have received it by
mistake, please inform us by email reply and then delete the message. It is
forbidden to copy, forward, or in any way reveal the contents of this
message to anyone without our explicit consent. The integrity and security
of this email cannot be guaranteed over the Internet. Therefore, the sender
will not be held liable for any damage caused by the message. For our full
privacy policy and disclaimers, please go to
https://www.namhost.com/privacy-policy

[image: Powered by AdSigner]





--
Regards / Groete

 Granwille Strauss  // Senior Systems Admin

*e:* granwi...@namhost.com
*m:* +264 81 323 1260 
*w:* www.namhost.com 





Namhost Internet Services (Pty) Ltd,

24 Black Eagle Rd, Hermanus, 7210, RSA



The content of this message is confidential. If you have received it by 
mistake, please inform us by email reply and then delete the message. It 
is forbidden to copy, forward, or in any way reveal the contents of this 
message to anyone without our explicit consent. The integrity and 
security of this email cannot be guaranteed over the Internet. 
Therefore, the sender will not be held liable for any damage caused by 
the message. For our full privacy policy and disclaimers, please go to 
https://www.namhost.com/privacy-policy


Powered by AdSigner 


smime.p7s
Description: S/MIME Cryptographic Signature


Re: ISO Ready Status Remain "No"

2023-09-18 Thread Andrija Panic
Hi,

you should check the mgmt logs to see WHY this ISO failed to register
(perhaps there is HTTPS ssl issue or similar).

No reason to destroy SSVM (though it doesn't hurt) - a simple SSVM reboot
(or service cloud restartinside SSVM)  will trigger checking all the
templates/ISOs and try to register (from the URL in DB) the ones that are
not in the "Ready" state.

You can also check the DB, vm_template table - find the ISO and check the
"URL" filed - see if that URL is reachable, returns HTTP status 200 (OK)
when trying to download it, etc.

Regards,

On Sat, 16 Sept 2023 at 15:58, Granwille Strauss
 wrote:

> Hi Guys
>
> For some reason my ISO files via Cloudstack all show their ready status =
> No. I have rebooted the SSVM and its connects and runs all fine and all my
> templates show they are ready. Its only ISO that remains as NO. Any ideas
> on how I can troubleshoot this? Should I destroy SSVM?
> --
> Regards / Groete
>
>  Granwille Strauss  //  Senior Systems Admin
>
> *e:* granwi...@namhost.com
> *m:* +264 81 323 1260 <+264813231260>
> *w:* www.namhost.com
>
>  
> 
> 
> 
>
>
> 
>
> Namhost Internet Services (Pty) Ltd,
>
> 24 Black Eagle Rd, Hermanus, 7210, RSA
>
>
>
> The content of this message is confidential. If you have received it by
> mistake, please inform us by email reply and then delete the message. It is
> forbidden to copy, forward, or in any way reveal the contents of this
> message to anyone without our explicit consent. The integrity and security
> of this email cannot be guaranteed over the Internet. Therefore, the sender
> will not be held liable for any damage caused by the message. For our full
> privacy policy and disclaimers, please go to
> https://www.namhost.com/privacy-policy
>
> [image: Powered by AdSigner]
> 
>


-- 

Andrija Panić


Re: CloudStack agent can't connect to upgraded CEPH Cluster

2023-09-18 Thread Andrija Panic
Hi,

the message " Agent-Handler-1:null) (logid:) Connection with libvirtd is
broken: invalid connection pointer in virConnectGetVersion " - is a false
alarm and does NOT means any errors actually.

I can see that ACS agent sees different storage pools - namely
"daab90ad-42d3-3c48-a9e4-b4c3c7fcdc84" and
"a2d455c6-68cb-303f-a7fa-287e62a5be9c" - and I don't see any explicit error
message about these 2 pools (both RBD/Ceph) pools.

Also I can see that the cloudstack agent says it's connected to the mgmt
host - which means that all pools are in place (otherwise the agent would
not connect)

1. Are you KVM hosts all green when checking in CloudStack UI
(Connected/Up)?
2. You can always use virsh to list pools and see if they are there

Best,

On Wed, 13 Sept 2023 at 13:54, Mosharaf Hossain <
mosharaf.hoss...@bol-online.com> wrote:

> Hello Folks
> We've recently performed an upgrade on our Cephadm cluster, transitioning
> from Ceph Quiency to Reef. However, following the manual implementation of
> a read balancer in the Reef cluster, we've experienced a significant
> slowdown in client I/O operations within the Ceph cluster, affecting both
> client bandwidth and overall cluster performance.
>
> This slowdown has resulted in unresponsiveness across all virtual machines
> within the cluster, despite the fact that the cluster exclusively utilizes
> SSD storage."
>
> In the CloudStack agent, we are getting libvirrt can't connect to CEPH pool
> and generating an error message.
>
> 2023-09-13 16:57:51,660 INFO  [cloud.agent.Agent] (Agent-Handler-4:null)
> (logid:) Lost connection to host: 10.10.11.61. Attempting reconnection
> while we still have 1 command in progress.
> 2023-09-13 16:57:51,661 INFO  [utils.nio.NioClient] (Agent-Handler-4:null)
> (logid:) NioClient connection closed
> 2023-09-13 16:57:51,662 INFO  [cloud.agent.Agent] (Agent-Handler-4:null)
> (logid:) Reconnecting to host:10.10.11.62
> 2023-09-13 16:57:51,662 INFO  [utils.nio.NioClient] (Agent-Handler-4:null)
> (logid:) Connecting to 10.10.11.62:8250
> 2023-09-13 16:57:51,663 INFO  [utils.nio.Link] (Agent-Handler-4:null)
> (logid:) Conf file found: /etc/cloudstack/agent/agent.properties
> 2023-09-13 16:57:51,779 INFO  [utils.nio.NioClient] (Agent-Handler-4:null)
> (logid:) SSL: Handshake done
> 2023-09-13 16:57:51,779 INFO  [utils.nio.NioClient] (Agent-Handler-4:null)
> (logid:) Connected to 10.10.11.62:8250
> 2023-09-13 16:57:51,815 INFO  [utils.linux.KVMHostInfo]
> (Agent-Handler-1:null) (logid:) Fetching CPU speed from command "lscpu".
> 2023-09-13 16:57:51,836 INFO  [utils.linux.KVMHostInfo]
> (Agent-Handler-1:null) (logid:) Command [lscpu | grep -i 'Model name' |
> head -n 1 | egrep -o '[[:digit:]].[[:digit:]]+GHz' | sed 's/GHz//g']
> resulted in the value [2100] for CPU speed.
> 2023-09-13 16:57:51,900 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (Agent-Handler-1:null) (logid:) Attempting to create storage pool
> e205cf5f-ea32-46c7-ba18-d18f62772b80 (Filesystem) in libvirt
> 2023-09-13 16:57:51,901 ERROR [kvm.resource.LibvirtConnection]
> (Agent-Handler-1:null) (logid:) Connection with libvirtd is broken: invalid
> connection pointer in virConnectGetVersion
> 2023-09-13 16:57:51,903 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (Agent-Handler-1:null) (logid:) Found existing defined storage pool
> e205cf5f-ea32-46c7-ba18-d18f62772b80, using it.
> 2023-09-13 16:57:51,904 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (Agent-Handler-1:null) (logid:) Trying to fetch storage pool
> e205cf5f-ea32-46c7-ba18-d18f62772b80 from libvirt
> 2023-09-13 16:57:51,924 INFO  [cloud.agent.Agent] (Agent-Handler-2:null)
> (logid:) Process agent startup answer, agent id = 0
> 2023-09-13 16:57:51,924 INFO  [cloud.agent.Agent] (Agent-Handler-2:null)
> (logid:) Set agent id 0
> 2023-09-13 16:57:51,955 INFO  [cloud.agent.Agent] (Agent-Handler-2:null)
> (logid:) Startup Response Received: agent id = 0
> 2023-09-13 16:57:52,047 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-5:null) (logid:e396a97c) Attempting to create storage
> pool daab90ad-42d3-3c48-a9e4-b4c3c7fcdc84 (RBD) in libvirt
> 2023-09-13 16:57:52,050 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-5:null) (logid:e396a97c) Found existing defined
> storage pool daab90ad-42d3-3c48-a9e4-b4c3c7fcdc84, using it.
> 2023-09-13 16:57:52,050 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-5:null) (logid:e396a97c) Trying to fetch storage pool
> daab90ad-42d3-3c48-a9e4-b4c3c7fcdc84 from libvirt
> 2023-09-13 16:57:52,161 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-1:null) (logid:e396a97c) Attempting to create storage
> pool a2d455c6-68cb-303f-a7fa-287e62a5be9c (RBD) in libvirt
> 2023-09-13 16:57:52,163 WARN  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-1:null) (logid:e396a97c) Storage pool
> a2d455c6-68cb-303f-a7fa-287e62a5be9c was not found running in libvirt. Need
> to create it.
> 2023-09-13 16:57:52,164 INFO  

Index 0 out of bounds for length 0 - Scale VM

2023-09-18 Thread cristian.c
Hello,

 

   I just upgraded to cloudstack 4.18.1 from 4.17.2, and looks like the 
offering change/scale still not working. Any suggestion how can I scale these 
VMs without rebuild?

 

   (localcloud)  > scale virtualmachine 
id=191178f7-4f55-460c-87e8-5261d962f32f 
serviceofferingid=c7822345-0f4f-4425-a544-48af4380c5a0

{

  "accountid": "17274c5e-d492-11e5-86c3-000c298715c8",

  "cmd": "org.apache.cloudstack.api.command.admin.vm.ScaleVMCmdByAdmin",

  "completed": "2023-09-18T02:08:22-0400",

  "created": "2023-09-18T02:08:22-0400",

  "jobid": "ca1dd5f2-985c-40d8-bcc7-0d0c60db156d",

  "jobinstanceid": "191178f7-4f55-460c-87e8-5261d962f32f",

  "jobinstancetype": "VirtualMachine",

  "jobprocstatus": 0,

  "jobresult": {

"errorcode": 431,

"errortext": "Failed to change offering for volume 
4f529ab2-e8f4-4844-8b8f-514fcc78647a since automigrate is set to false but 
volume needs to migrated"

  },

  "jobresultcode": 431,

  "jobresulttype": "object",

  "jobstatus": 2,

  "userid": "1727541a-d492-11e5-86c3-000c298715c8"

}

 Error: async API failed for job ca1dd5f2-985c-40d8-bcc7-0d0c60db156d

(localcloud)  > scale virtualmachine id=191178f7-4f55-460c-87e8-5261d962f32f 
serviceofferingid=c7822345-0f4f-4425-a544-48af4380c5a0 automigrate=true

{

  "accountid": "17274c5e-d492-11e5-86c3-000c298715c8",

  "cmd": "org.apache.cloudstack.api.command.admin.vm.ScaleVMCmdByAdmin",

  "completed": "2023-09-18T02:08:46-0400",

  "created": "2023-09-18T02:08:46-0400",

  "jobid": "d052fa4d-b62d-4539-98c7-d9e7a915feb9",

  "jobinstanceid": "191178f7-4f55-460c-87e8-5261d962f32f",

  "jobinstancetype": "VirtualMachine",

  "jobprocstatus": 0,

  "jobresult": {

"errorcode": 530,

"errortext": "Index 0 out of bounds for length 0"

  },

  "jobresultcode": 530,

  "jobresulttype": "object",

  "jobstatus": 2,

  "userid": "1727541a-d492-11e5-86c3-000c298715c8"

}

 Error: async API failed for job d052fa4d-b62d-4539-98c7-d9e7a915feb9


Thank you,

Cristian