Forcing IP allocation from new range

2023-03-30 Thread Fariborz Navidan
Hi All,

We are going to add a new IP range to provision our new users. We would
like to force new IP allocation to be only done from new range and avoid
any allocation from existing IP ranges.

Is it possible to force cloudstack to assign IPs to guests only from the
new IP range or make existing free IPs unavailable for new guests?

Thanks in advance for your advice.
Regards.


Failed Volume Migration

2023-03-30 Thread Antoine Boucher
Hello,

I few days ago we did 3 migrations that eventually failed because of secondary 
storage issues.  However, the volumes entry are duplicated on the Web UI, one 
showing ready and the other one showing migrating.

Could I edit the volume table to remove the migrating entry to remove it from 
the UI?

Regards,
Antoine




SV: SSVM - Getting "Unable to create deployment, no usable volumes found for the VM" after Cloudstack/Mysql/Ubuntu upgrade.

2023-03-30 Thread David Larsen

Hi 

Any tips on how to get the SSVM agent up? 
Getting a bit frustrated!! 

The only error message I can see when ssvm boots up is: "Failed to start raised 
interface"

I can log into it from the console but not from ssh...
From the s-1177-VM console I have checked connectivity. I can ping the 
management server and public dns (google)

Any services or logs I have to check?
I checked the /var/log/cloud.log on the ssvm. 
Just a few lines there. Anything particular to look for?

Agent on consoleproxy is up..

What about the cloudstack Agent service on the management server?
Is it just for KVM or do I need it for vmware as well?
Looks like it's not running...

service cloudstack-agent stop
root@cloudstack02:~# service cloudstack-agent status
cloudstack-agent.service - CloudStack Agent
Loaded: loaded (/lib/systemd/system/cloudstack-agent.service; enabled; vendor 
preset: enabled)
Active: inactive (dead) (Result: exit-code) since Thu 2023-03-30 20:57:45 CEST; 
16min ago
Docs: http://www.cloudstack.org/
Process: 15391 ExecStart=/usr/bin/java $JAVA_OPTS $JAVA_DEBUG -cp $CLASSPATH 
$JAVA_CLASS (code=exited, status=66)
Main PID: 15391 (code=exited, status=66)

Mar 30 20:57:45 cloudstack02 systemd[1]: Stopped CloudStack Agent.
root@cloudstack02:~# service cloudstack-agent start
root@cloudstack02:~# service cloudstack-agent status
cloudstack-agent.service - CloudStack Agent
Loaded: loaded (/lib/systemd/system/cloudstack-agent.service; enabled; vendor 
preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2023-03-30 
21:14:43 CEST; 3s ago
Docs: http://www.cloudstack.org/
Process: 16882 ExecStart=/usr/bin/java $JAVA_OPTS $JAVA_DEBUG -cp $CLASSPATH 
$JAVA_CLASS (code=exited, status=66)
Main PID: 16882 (code=exited, status=66)

 Thanks

-David


-Opprinnelig melding-
Fra: David Larsen  
Sendt: torsdag 30. mars 2023 09:03
Til: users@cloudstack.apache.org
Emne: SV: SSVM - Getting "Unable to create deployment, no usable volumes found 
for the VM" after Cloudstack/Mysql/Ubuntu upgrade.

Hi Jithin

After i sent this email yesterday, I reverted back to ubuntu 18.04/cloudstack 
4.17.2/mysql 5.7.41 from snapshots. ☹ After about five minutes, the S-1177-VM 
was created successfully...(?) hmm.
The only problem with the S-1177-VM now is Agent State (down). I have tried to 
restart it several times. I have not yet restarted management server.

When I checked primary and secondary volumes with 4.18.0, all volumes was 
present in cloudstack. 
Which log can I check to see if the volume allocation worked fine for SSVM?



-Opprinnelig melding-
Fra: Jithin Raju 
Sendt: torsdag 30. mars 2023 05:39
Til: users@cloudstack.apache.org
Emne: Re: SSVM - Getting "Unable to create deployment, no usable volumes found 
for the VM" after Cloudstack/Mysql/Ubuntu upgrade.

Hi David,

Can you check in the logs if the volume allocation worked fine for SSVM? Is 
there a record present in the volumes table?

-Jithin

From: David Larsen 
Date: Thursday, 30 March 2023 at 1:31 AM
To: users@cloudstack.apache.org 
Subject: SSVM - Getting "Unable to create deployment, no usable volumes found 
for the VM" after Cloudstack/Mysql/Ubuntu upgrade.

Hi

Today i upgraded our Cloudstack (4.17.2 --> 4.18.0) , mysql (5.7--> 8) and  
ubuntu (18.04-->22.04) in production.
I thought I had tested it well in a lab... and of course  the only important 
thing I couldn't test went wrong!!
Secondary Storage VM...

At first it looked fine. I successfully upgraded console proxy system vm to 
4.18.0.
But when I tried to do the same with secondarystoragevm, stop it and wait for 
it to upgrade, Cloudstack  deleted the secondary systemvm from vmware and when 
it started the copy job it complained about a locked file on the vmware 
volume(?) I didn't find any locked files in the s-1177-VM vm directory on 
the vmware volume.

From the error log bellow: "Unable to create deployment, no usable volumes 
found for the VM: 1177"
Every five vmware volumes have about 50% free space, so enough space is not an 
issue...
In the case of locked file on vmware I have restarted vcenter and management 
agents on every host, so every locked files should be released.
No change.

Then I reverted to cloudstack 4.17.2 on ubuntu 22.04 on both management and 
mysql server hoping cloudstack would create the SSVM from scratch... it did 
not. Same error in the log and no S--VM created...

In Cloudstack dashboard it show  S-1177-VM as stopped, but in vmware, it's 
gone...
Everything else I have checked is running fine. Start/stop vm ++

Can it be any ubuntu 22.04 upgrade issues here?
Until I upgraded today, everything was running fine on ubuntu 18.04, Cloudstack 
4.17.2 and Mysql 5.7 Any new settings in db.properties regarding new mysql or 
ubuntu?



2023-03-29 20:58:18,866 INFO  [o.a.c.s.SecondaryStorageManagerImpl] 
(secstorage-1:ctx-0dd13ec7) (logid:c5bd94b0) Found a stopped secondary storage 
VM instance {id: "1177", name: "s-1177-VM", uuid: 

Re: Issues building cloudstack

2023-03-30 Thread Sina Kashipazha

Hey Pierre,


I had the same issue when I configured a new VM to build CloudStack. I've Java 
11 and Java 17 installed. Java and javac commands pointed to the java 11 but 
Maven used java 17. I configured the JAVA_PATH environment variable and it 
worked.

Check the first output lines of the`mvn clean install -P systemvm,developer` 
command. I will show which version of java it is using.




--- Original Message ---
On Thursday, March 30th, 2023 at 17:06, Pierre Le Fevre  wrote:


> 

> 

> Aha! Thanks Daan :) Got it to build and run now.
> Didn't know maven had an internal version of java.
> 

> Have a great evening
> Pierre
> 

> On Thu, 30 Mar 2023 at 15:53, Daan Hoogland daan.hoogl...@gmail.com wrote:
> 

> > there is a suspect for your problem, you use jdk 11 but your maven is using
> > jdk 17 under the hood.
> > 

> > On Thu, Mar 30, 2023 at 3:47 PM Pierre Le Fevre pierr...@kth.se wrote:
> > 

> > > Hi Daan,
> > > Here are my versions:
> > > 

> > > ➜ cloudstack git:(main) ✗ mvn --version
> > > Apache Maven 3.8.5 (Red Hat 3.8.5-3)
> > > Maven home: /usr/share/maven
> > > Java version: 17.0.6, vendor: Red Hat, Inc., runtime:
> > > /usr/lib/jvm/java-17-openjdk-17.0.6.0.10-1.fc37.x86_64
> > > Default locale: en_US, platform encoding: UTF-8
> > > OS name: "linux", version: "6.2.8-200.fc37.x86_64", arch: "amd64",
> > > family:
> > > "unix"
> > > ➜ cloudstack git:(main) ✗ java --version
> > > openjdk 11.0.18 2023-01-17
> > > OpenJDK Runtime Environment (Red_Hat-11.0.18.0.10-1.fc37) (build
> > > 11.0.18+10)
> > > OpenJDK 64-Bit Server VM (Red_Hat-11.0.18.0.10-1.fc37) (build 11.0.18+10,
> > > mixed mode, sharing)
> > > ➜ cloudstack git:(main) ✗ javac --version
> > > javac 11.0.18
> > > 

> > > I have JDK 17 installed but switched java and javac to use 11 using sudo
> > > update-alternatives --config java(c)
> > > 

> > > Thanks,
> > > Pierre
> > > 

> > > On Thu, 30 Mar 2023 at 15:42, Daan Hoogland daan.hoogl...@gmail.com
> > > wrote:
> > > 

> > > > Pierre it looks like an issue with the JDK, but just to be sure, what
> > > > maven
> > > > version do you use? Can you give the output of
> > > > $ mvs --version
> > > > 

> > > > On Thu, Mar 30, 2023 at 3:19 PM Pierre Le Fevre pierr...@kth.se
> > > > wrote:
> > > > 

> > > > > Hi all :)
> > > > > Been using cloudstack for a while so thought I could contribute some,
> > > > > however I'm running into some issues with building the project for
> > > > > local
> > > > > development.
> > > > > 

> > > > > Following the instructions in INSTALL.md, using JDK 11 and MySQL 8
> > > > > (on
> > > > > Fedora 37)
> > > > > mvn clean install -P systemvm,developer
> > > > > mvn -P developer -pl developer -Ddeploydb
> > > > > mvn -pl :cloud-client-ui jetty:run
> > > > > 

> > > > > When running these, my build seems to get stuck at some tests in
> > > > > CloudStack
> > > > > Utils. I've tried building in IntelliJ, which gets further but seems
> > > > > all
> > > > > config is not correct so it fails later on.
> > > > > 

> > > > > Is there something obvious I am missing? First time working in such a
> > > > > big
> > > > > maven project :)
> > > > > 

> > > > > All the best
> > > > > Pierre
> > > > > 

> > > > > Test failures during build
> > > > > [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time
> > > > > elapsed:
> > > > > 0.046 s <<< FAILURE! - in
> > 

> > org.apache.cloudstack.utils.reflectiontostringbuilderutils.ReflectionToStringBuilderUtilsTest
> > 

> > > > > [ERROR]
> > 

> > org.apache.cloudstack.utils.reflectiontostringbuilderutils.ReflectionToStringBuilderUtilsTest
> > 

> > > > > Time elapsed: 0.046 s <<< ERROR!
> > > > > java.lang.ExceptionInInitializerError
> > > > > at
> > 

> > org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> > 

> > > > > at
> > 

> > org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
> > 

> > > > > at
> > 

> > org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> > 

> > > > > at
> > 

> > org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> > 

> > > > > Caused by: java.lang.reflect.InaccessibleObjectException: Unable to
> > > > > make
> > > > > static void java.util.Arrays.rangeCheck(int,int,int) accessible:
> > > > > module
> > > > > java.base does not "opens java.util" to unnamed module @7f0db310
> > > > > at
> > 

> > org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> > 

> > > > > at
> > 

> > org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
> > 

> > > > > at
> > 

> > org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> > 

> > > > > at
> > 

> > org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> > 

> > > > > *Stacktrace of jetty command in terminal *
> > > > > mvn -pl :cloud-client-ui jetty:run
> > > > > [...]
> > > > > 

Re: CS scheduler not working properly?

2023-03-30 Thread Sina Kashipazha
Hey Jordan,

It seems to be a race condition, I ran small scenario which failed. This was my 
setup:

Node:
Node84: 8GB ram available, 4GB of that allocated to the VM-1
Node85: 8GB ram, NO VMs.{}
 

The following actions run at the same time using cmk:
 

Deploy 4GB ram on Node84
Migrate VM-1 from Node84 to Node85
Deploy 4GB (without specifying the host id)
 

First Round:
Deploy 4GB ram on Node84 -> Successful
Migrate VM-1 from Node84 to Node85 -> Migration cancelled because Host does not 
have enough capacity for vm
Deploy 4GB (without specifying the host id) -> Successful
 

Second Round:
Deploy 4GB ram on Node84 -> Unsuccessful, unable to create a deployment for VM 
instance
Migrate VM-1 from Node84 to Node85 -> Successful
Deploy 4GB (without specifying the host id) -> Successful
 

Third Round:
Deploy 4GB ram on Node84 -> Successful
Migrate VM-1 from Node84 to Node85 -> Successful
Deploy 4GB (without specifying the host id) -> Unsuccessful, unable to create a 
deployment for VM instance
 

Fourth Round:
Same as first round.

Kind regards,
Sina

--- Original Message ---
On Thursday, March 30th, 2023 at 2:24 PM, jordan j  wrote:


>
>
> Hey everyone,
>
> This week we are doing performance tests on the environment and we noticed
> something weird.
>
> Setup:
> - Cloudstack 4.17.2 + XCP-NG advanced network with SG.
> - zone with 30 XCP hosts (in 30 clusters) each with 100 GB ram and 100 cores
> - There is one compute offering with user dispersing planner. The offering
> has a local storage bound (no shared storage on servers) .
>
> Using terraform we tried to deploy 60 instances, 49 GB of ram each and 50
> cores.
> Some of them were not deployed (about 5).
> Running the same task again and again eventually makes the failed instances
> be deployed eventually.
>
> Wondering why this happens... looking at the logs i found out that the VMs
> fail because of not enough memory on the XCPs. Error comes from XAPI and
> not from Cloudstack which makes me conclude that Cloudstack allows the task
> but for some reason the scheduler/planner does not compute the memory
> resource properly. I wonder if there is a race condition problem where 2
> instances are assigned the same host server and what happens is sa both get
> created there is memory just for one of them.
>
> Tried to simulate the issue by simultaneously creating instances from the
> GUI on a group of 2 servers but it seems GUI-created-instances even if
> launched together are executed in order so the scheduler detects when there
> is no more RAM and the rest of the processes are stopped.
>
> Has anyone experienced such a problem?
>
> Regards,
> Jordan

signature.asc
Description: OpenPGP digital signature


Re: Issues building cloudstack

2023-03-30 Thread Pierre Le Fevre
Aha! Thanks Daan :) Got it to build and run now.
Didn't know maven had an internal version of java.

Have a great evening
Pierre

On Thu, 30 Mar 2023 at 15:53, Daan Hoogland  wrote:

> there is a suspect for your problem, you use jdk 11 but your maven is using
> jdk 17 under the hood.
>
> On Thu, Mar 30, 2023 at 3:47 PM Pierre Le Fevre  wrote:
>
> > Hi Daan,
> > Here are my versions:
> >
> > ➜  cloudstack git:(main) ✗ *mvn --version*
> > Apache Maven 3.8.5 (Red Hat 3.8.5-3)
> > Maven home: /usr/share/maven
> > Java version: 17.0.6, vendor: Red Hat, Inc., runtime:
> > /usr/lib/jvm/java-17-openjdk-17.0.6.0.10-1.fc37.x86_64
> > Default locale: en_US, platform encoding: UTF-8
> > OS name: "linux", version: "6.2.8-200.fc37.x86_64", arch: "amd64",
> family:
> > "unix"
> > ➜  cloudstack git:(main) ✗ *java --version*
> > openjdk 11.0.18 2023-01-17
> > OpenJDK Runtime Environment (Red_Hat-11.0.18.0.10-1.fc37) (build
> > 11.0.18+10)
> > OpenJDK 64-Bit Server VM (Red_Hat-11.0.18.0.10-1.fc37) (build 11.0.18+10,
> > mixed mode, sharing)
> > ➜  cloudstack git:(main) ✗ *javac --version*
> > javac 11.0.18
> >
> > I have JDK 17 installed but switched java and javac to use 11 using sudo
> > update-alternatives --config java(c)
> >
> > Thanks,
> > Pierre
> >
> > On Thu, 30 Mar 2023 at 15:42, Daan Hoogland 
> > wrote:
> >
> > > Pierre it looks like an issue with the JDK, but just to be sure, what
> > maven
> > > version do you use? Can you give the output of
> > > $ mvs --version
> > >
> > > On Thu, Mar 30, 2023 at 3:19 PM Pierre Le Fevre 
> wrote:
> > >
> > > > Hi all :)
> > > > Been using cloudstack for a while so thought I could contribute some,
> > > > however I'm running into some issues with building the project for
> > local
> > > > development.
> > > >
> > > > Following the instructions in INSTALL.md, using JDK 11 and MySQL 8
> (on
> > > > Fedora 37)
> > > > mvn clean install -P systemvm,developer
> > > > mvn -P developer -pl developer -Ddeploydb
> > > > mvn -pl :cloud-client-ui jetty:run
> > > >
> > > > When running these, my build seems to get stuck at some tests in
> > > CloudStack
> > > > Utils. I've tried building in IntelliJ, which gets further but seems
> > all
> > > > config is not correct so it fails later on.
> > > >
> > > > Is there something obvious I am missing? First time working in such a
> > big
> > > > maven project :)
> > > >
> > > > All the best
> > > > Pierre
> > > >
> > > > *Test failures during build*
> > > > [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time
> elapsed:
> > > > 0.046 s <<< FAILURE! - in
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.utils.reflectiontostringbuilderutils.ReflectionToStringBuilderUtilsTest
> > > > [ERROR]
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.utils.reflectiontostringbuilderutils.ReflectionToStringBuilderUtilsTest
> > > >  Time elapsed: 0.046 s  <<< ERROR!
> > > > java.lang.ExceptionInInitializerError
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> > > > Caused by: java.lang.reflect.InaccessibleObjectException: Unable to
> > make
> > > > static void java.util.Arrays.rangeCheck(int,int,int) accessible:
> module
> > > > java.base does not "opens java.util" to unnamed module @7f0db310
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> > > >
> > > > *Stacktrace of jetty command in terminal *
> > > > mvn -pl :cloud-client-ui jetty:run
> > > > [...]
> > > > org.springframework.beans.factory.UnsatisfiedDependencyException:
> Error
> > > > creating bean with name
> > > > 'org.apache.cloudstack.spring.lifecycle.ConfigDepotLifeCycle#0':
> > > > Unsatisfied dependency expressed through field 'configDepotAdmin';
> > nested
> > > > exception is
> > > > org.springframework.beans.factory.UnsatisfiedDependencyException:
> Error
> > > > creating bean with name 'configDepot': Unsatisfied dependency
> expressed
> > > > through field '_configDao'; nested exception is
> > > > org.springframework.beans.factory.BeanCreationException: Error
> creating
> > > > bean with name 'configurationDaoImpl' defined in URL
> > > >
> > 

Re: Issues building cloudstack

2023-03-30 Thread Daan Hoogland
there is a suspect for your problem, you use jdk 11 but your maven is using
jdk 17 under the hood.

On Thu, Mar 30, 2023 at 3:47 PM Pierre Le Fevre  wrote:

> Hi Daan,
> Here are my versions:
>
> ➜  cloudstack git:(main) ✗ *mvn --version*
> Apache Maven 3.8.5 (Red Hat 3.8.5-3)
> Maven home: /usr/share/maven
> Java version: 17.0.6, vendor: Red Hat, Inc., runtime:
> /usr/lib/jvm/java-17-openjdk-17.0.6.0.10-1.fc37.x86_64
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "6.2.8-200.fc37.x86_64", arch: "amd64", family:
> "unix"
> ➜  cloudstack git:(main) ✗ *java --version*
> openjdk 11.0.18 2023-01-17
> OpenJDK Runtime Environment (Red_Hat-11.0.18.0.10-1.fc37) (build
> 11.0.18+10)
> OpenJDK 64-Bit Server VM (Red_Hat-11.0.18.0.10-1.fc37) (build 11.0.18+10,
> mixed mode, sharing)
> ➜  cloudstack git:(main) ✗ *javac --version*
> javac 11.0.18
>
> I have JDK 17 installed but switched java and javac to use 11 using sudo
> update-alternatives --config java(c)
>
> Thanks,
> Pierre
>
> On Thu, 30 Mar 2023 at 15:42, Daan Hoogland 
> wrote:
>
> > Pierre it looks like an issue with the JDK, but just to be sure, what
> maven
> > version do you use? Can you give the output of
> > $ mvs --version
> >
> > On Thu, Mar 30, 2023 at 3:19 PM Pierre Le Fevre  wrote:
> >
> > > Hi all :)
> > > Been using cloudstack for a while so thought I could contribute some,
> > > however I'm running into some issues with building the project for
> local
> > > development.
> > >
> > > Following the instructions in INSTALL.md, using JDK 11 and MySQL 8 (on
> > > Fedora 37)
> > > mvn clean install -P systemvm,developer
> > > mvn -P developer -pl developer -Ddeploydb
> > > mvn -pl :cloud-client-ui jetty:run
> > >
> > > When running these, my build seems to get stuck at some tests in
> > CloudStack
> > > Utils. I've tried building in IntelliJ, which gets further but seems
> all
> > > config is not correct so it fails later on.
> > >
> > > Is there something obvious I am missing? First time working in such a
> big
> > > maven project :)
> > >
> > > All the best
> > > Pierre
> > >
> > > *Test failures during build*
> > > [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> > > 0.046 s <<< FAILURE! - in
> > >
> > >
> >
> org.apache.cloudstack.utils.reflectiontostringbuilderutils.ReflectionToStringBuilderUtilsTest
> > > [ERROR]
> > >
> > >
> >
> org.apache.cloudstack.utils.reflectiontostringbuilderutils.ReflectionToStringBuilderUtilsTest
> > >  Time elapsed: 0.046 s  <<< ERROR!
> > > java.lang.ExceptionInInitializerError
> > > at
> > >
> > >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> > > at
> > >
> > >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
> > > at
> > >
> > >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> > > at
> > >
> > >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> > > Caused by: java.lang.reflect.InaccessibleObjectException: Unable to
> make
> > > static void java.util.Arrays.rangeCheck(int,int,int) accessible: module
> > > java.base does not "opens java.util" to unnamed module @7f0db310
> > > at
> > >
> > >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> > > at
> > >
> > >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
> > > at
> > >
> > >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> > > at
> > >
> > >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> > >
> > > *Stacktrace of jetty command in terminal *
> > > mvn -pl :cloud-client-ui jetty:run
> > > [...]
> > > org.springframework.beans.factory.UnsatisfiedDependencyException: Error
> > > creating bean with name
> > > 'org.apache.cloudstack.spring.lifecycle.ConfigDepotLifeCycle#0':
> > > Unsatisfied dependency expressed through field 'configDepotAdmin';
> nested
> > > exception is
> > > org.springframework.beans.factory.UnsatisfiedDependencyException: Error
> > > creating bean with name 'configDepot': Unsatisfied dependency expressed
> > > through field '_configDao'; nested exception is
> > > org.springframework.beans.factory.BeanCreationException: Error creating
> > > bean with name 'configurationDaoImpl' defined in URL
> > >
> > >
> >
> [jar:file:/home/pierrelf/misc/cloudstack/client/target/cloud-client-ui-4.19.0.0-SNAPSHOT.jar!/META-INF/cloudstack/system/spring-framework-config-system-context.xml]:
> > > Instantiation of bean failed; nested exception is
> > > org.springframework.beans.BeanInstantiationException: Failed to
> > instantiate
> > > [org.apache.cloudstack.framework.config.dao.ConfigurationDaoImpl]:
> > > Constructor threw exception; nested exception is
> > > java.lang.ExceptionInInitializerError
> > > 

Re: Issues building cloudstack

2023-03-30 Thread Pierre Le Fevre
Hi Daan,
Here are my versions:

➜  cloudstack git:(main) ✗ *mvn --version*
Apache Maven 3.8.5 (Red Hat 3.8.5-3)
Maven home: /usr/share/maven
Java version: 17.0.6, vendor: Red Hat, Inc., runtime:
/usr/lib/jvm/java-17-openjdk-17.0.6.0.10-1.fc37.x86_64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.2.8-200.fc37.x86_64", arch: "amd64", family:
"unix"
➜  cloudstack git:(main) ✗ *java --version*
openjdk 11.0.18 2023-01-17
OpenJDK Runtime Environment (Red_Hat-11.0.18.0.10-1.fc37) (build 11.0.18+10)
OpenJDK 64-Bit Server VM (Red_Hat-11.0.18.0.10-1.fc37) (build 11.0.18+10,
mixed mode, sharing)
➜  cloudstack git:(main) ✗ *javac --version*
javac 11.0.18

I have JDK 17 installed but switched java and javac to use 11 using sudo
update-alternatives --config java(c)

Thanks,
Pierre

On Thu, 30 Mar 2023 at 15:42, Daan Hoogland  wrote:

> Pierre it looks like an issue with the JDK, but just to be sure, what maven
> version do you use? Can you give the output of
> $ mvs --version
>
> On Thu, Mar 30, 2023 at 3:19 PM Pierre Le Fevre  wrote:
>
> > Hi all :)
> > Been using cloudstack for a while so thought I could contribute some,
> > however I'm running into some issues with building the project for local
> > development.
> >
> > Following the instructions in INSTALL.md, using JDK 11 and MySQL 8 (on
> > Fedora 37)
> > mvn clean install -P systemvm,developer
> > mvn -P developer -pl developer -Ddeploydb
> > mvn -pl :cloud-client-ui jetty:run
> >
> > When running these, my build seems to get stuck at some tests in
> CloudStack
> > Utils. I've tried building in IntelliJ, which gets further but seems all
> > config is not correct so it fails later on.
> >
> > Is there something obvious I am missing? First time working in such a big
> > maven project :)
> >
> > All the best
> > Pierre
> >
> > *Test failures during build*
> > [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> > 0.046 s <<< FAILURE! - in
> >
> >
> org.apache.cloudstack.utils.reflectiontostringbuilderutils.ReflectionToStringBuilderUtilsTest
> > [ERROR]
> >
> >
> org.apache.cloudstack.utils.reflectiontostringbuilderutils.ReflectionToStringBuilderUtilsTest
> >  Time elapsed: 0.046 s  <<< ERROR!
> > java.lang.ExceptionInInitializerError
> > at
> >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> > at
> >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
> > at
> >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> > at
> >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> > Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make
> > static void java.util.Arrays.rangeCheck(int,int,int) accessible: module
> > java.base does not "opens java.util" to unnamed module @7f0db310
> > at
> >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> > at
> >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
> > at
> >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> > at
> >
> >
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> >
> > *Stacktrace of jetty command in terminal *
> > mvn -pl :cloud-client-ui jetty:run
> > [...]
> > org.springframework.beans.factory.UnsatisfiedDependencyException: Error
> > creating bean with name
> > 'org.apache.cloudstack.spring.lifecycle.ConfigDepotLifeCycle#0':
> > Unsatisfied dependency expressed through field 'configDepotAdmin'; nested
> > exception is
> > org.springframework.beans.factory.UnsatisfiedDependencyException: Error
> > creating bean with name 'configDepot': Unsatisfied dependency expressed
> > through field '_configDao'; nested exception is
> > org.springframework.beans.factory.BeanCreationException: Error creating
> > bean with name 'configurationDaoImpl' defined in URL
> >
> >
> [jar:file:/home/pierrelf/misc/cloudstack/client/target/cloud-client-ui-4.19.0.0-SNAPSHOT.jar!/META-INF/cloudstack/system/spring-framework-config-system-context.xml]:
> > Instantiation of bean failed; nested exception is
> > org.springframework.beans.BeanInstantiationException: Failed to
> instantiate
> > [org.apache.cloudstack.framework.config.dao.ConfigurationDaoImpl]:
> > Constructor threw exception; nested exception is
> > java.lang.ExceptionInInitializerError
> > at
> >
> >
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue
> > (AutowiredAnnotationBeanPostProcessor.java:659)
> > at
> >
> >
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject
> > (AutowiredAnnotationBeanPostProcessor.java:639)
> > at
> > 

Re: Issues building cloudstack

2023-03-30 Thread Daan Hoogland
Pierre it looks like an issue with the JDK, but just to be sure, what maven
version do you use? Can you give the output of
$ mvs --version

On Thu, Mar 30, 2023 at 3:19 PM Pierre Le Fevre  wrote:

> Hi all :)
> Been using cloudstack for a while so thought I could contribute some,
> however I'm running into some issues with building the project for local
> development.
>
> Following the instructions in INSTALL.md, using JDK 11 and MySQL 8 (on
> Fedora 37)
> mvn clean install -P systemvm,developer
> mvn -P developer -pl developer -Ddeploydb
> mvn -pl :cloud-client-ui jetty:run
>
> When running these, my build seems to get stuck at some tests in CloudStack
> Utils. I've tried building in IntelliJ, which gets further but seems all
> config is not correct so it fails later on.
>
> Is there something obvious I am missing? First time working in such a big
> maven project :)
>
> All the best
> Pierre
>
> *Test failures during build*
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> 0.046 s <<< FAILURE! - in
>
> org.apache.cloudstack.utils.reflectiontostringbuilderutils.ReflectionToStringBuilderUtilsTest
> [ERROR]
>
> org.apache.cloudstack.utils.reflectiontostringbuilderutils.ReflectionToStringBuilderUtilsTest
>  Time elapsed: 0.046 s  <<< ERROR!
> java.lang.ExceptionInInitializerError
> at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
> at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make
> static void java.util.Arrays.rangeCheck(int,int,int) accessible: module
> java.base does not "opens java.util" to unnamed module @7f0db310
> at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
> at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
>
> *Stacktrace of jetty command in terminal *
> mvn -pl :cloud-client-ui jetty:run
> [...]
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error
> creating bean with name
> 'org.apache.cloudstack.spring.lifecycle.ConfigDepotLifeCycle#0':
> Unsatisfied dependency expressed through field 'configDepotAdmin'; nested
> exception is
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error
> creating bean with name 'configDepot': Unsatisfied dependency expressed
> through field '_configDao'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'configurationDaoImpl' defined in URL
>
> [jar:file:/home/pierrelf/misc/cloudstack/client/target/cloud-client-ui-4.19.0.0-SNAPSHOT.jar!/META-INF/cloudstack/system/spring-framework-config-system-context.xml]:
> Instantiation of bean failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Failed to instantiate
> [org.apache.cloudstack.framework.config.dao.ConfigurationDaoImpl]:
> Constructor threw exception; nested exception is
> java.lang.ExceptionInInitializerError
> at
>
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue
> (AutowiredAnnotationBeanPostProcessor.java:659)
> at
>
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject
> (AutowiredAnnotationBeanPostProcessor.java:639)
> at
> org.springframework.beans.factory.annotation.InjectionMetadata.inject
> (InjectionMetadata.java:119)
> at
>
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties
> (AutowiredAnnotationBeanPostProcessor.java:399)
> at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
> (AbstractAutowireCapableBeanFactory.java:1431)
> at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean
> (AbstractAutowireCapableBeanFactory.java:619)
> 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
> 

Re: cloudstack-management not opening port 8250 after update from 4.17.0 to 4.18.0

2023-03-30 Thread Bram Gillemon
root@cs-man-1:~# echo "select * from version" | mysql cloud 
id  version updated step
1   4.0.0   2021-12-31 08:13:28 Complete
2   4.1.0   2021-12-31 07:14:26 Complete
3   4.2.0   2021-12-31 07:14:35 Complete
4   4.2.1   2021-12-31 07:14:35 Complete
5   4.3.0   2021-12-31 07:14:41 Complete
6   4.4.0   2021-12-31 07:14:46 Complete
7   4.4.1   2021-12-31 07:14:46 Complete
8   4.4.2   2021-12-31 07:14:46 Complete
9   4.5.0   2021-12-31 07:14:52 Complete
10  4.4.4   2021-12-31 07:14:52 Complete
11  4.5.1   2021-12-31 07:14:52 Complete
12  4.5.2   2021-12-31 07:14:52 Complete
13  4.5.3   2021-12-31 07:14:52 Complete
14  4.6.0   2021-12-31 07:14:53 Complete
15  4.6.1   2021-12-31 07:14:53 Complete
16  4.7.0   2021-12-31 07:14:53 Complete
17  4.7.1   2021-12-31 07:14:54 Complete
18  4.8.0   2021-12-31 07:14:54 Complete
19  4.8.1   2021-12-31 07:14:54 Complete
20  4.9.0   2021-12-31 07:14:57 Complete
21  4.9.1.0 2021-12-31 07:14:57 Complete
22  4.9.2.0 2021-12-31 07:14:58 Complete
23  4.9.3.0 2021-12-31 07:14:58 Complete
24  4.10.0.02021-12-31 07:14:59 Complete
25  4.11.0.02021-12-31 07:15:00 Complete
26  4.11.1.02021-12-31 07:15:00 Complete
27  4.11.2.02021-12-31 07:15:00 Complete
28  4.11.3.02021-12-31 07:15:00 Complete
29  4.12.0.02021-12-31 07:15:02 Complete
30  4.13.0.02021-12-31 07:15:03 Complete
31  4.13.1.02021-12-31 07:15:03 Complete
32  4.14.0.02021-12-31 07:15:04 Complete
33  4.15.0.02021-12-31 07:15:06 Complete
34  4.15.1.02021-12-31 07:15:06 Complete
35  4.15.2.02021-12-31 07:15:06 Complete
36  4.16.0.02021-12-31 07:15:08 Complete
37  4.16.1.02022-03-24 10:43:03 Complete
38  4.17.0.02022-06-18 21:51:47 Complete
39  4.17.1.02023-03-30 09:18:29 Complete
40  4.17.2.02023-03-30 09:18:29 Complete
41  4.18.0.02023-03-30 09:18:40 Complete



Kind Regards,
Bram

> On 30 Mar 2023, at 11:56, Wei ZHOU  wrote:
> 
> Hi Bram,
> 
> Good to know it is fixed.
> 
> Regarding the issue with missing procedures in 4.17.0.0, can you share the
> "version" table in your database ?
> 
> 
> Kind regards,
> Wei
> 
> 
> 
> On Thu, 30 Mar 2023 at 11:29, Bram Gillemon  wrote:
> 
>> Hi Wei,
>> 
>> Thanks for the pointer! i had a duplicate db.cloud.encryption.type value.
>> 
>> Everything is working again.
>> 
>> Kr,
>> Bram
>> 
>>> On 30 Mar 2023, at 10:54, Wei ZHOU  wrote:
>>> 
>>> Hi Bram,
>>> 
>>> Can you check the setting of "db.cloud.encryption.type"
>>> in /etc/cloudstack/management/db.properties ?
>>> 
>>> -Wei
>>> 
>>> On Thu, 30 Mar 2023 at 10:31, Bram Gillemon  wrote:
>>> 
 To recap:
 
 First time i upgraded cloudstack, got a lot of errors on missing
 procedures (they just don't exist on my installation, not sure why).
 
 Second upgrade:
 
 - dropped the cloud database, dropped the cloud_usage database
 - reimported the cloud database and the cloud_usage database
 - created the procedures (if i don't, i can't even upgrade cloudstack)
 - restarted cloudstack-management which completed the upgrade without
>> any
 problems?
 
 If i then try to connect to the cloudstack mgmt interface i get an
 
 HTTP ERROR 503 Service Unavailable
 
 URI:/client/
 STATUS: 503
 MESSAGE:Service Unavailable
 SERVLET:-
 
 
 Kr,
 Bram
 
 
> On 30 Mar 2023, at 10:23, Bram Gillemon  wrote:
> 
> Hi,
> 
> that was my second attempt, you'll see that the second upgrade ran
 without any issues.
> I dropped the database, reimported them and than restarted
 cloudstack-management and cloudstack-usage. The second upgrade ran
>> without
 any problems.
> 
> 
> Met vriendelijke groeten,
> Bram Gillemon
> 
> Voor technische vragen kan je terecht op supp...@x-plose.be
> 
> --
> 
> b...@x-plose.be
> https://www.x-plose.be
> t. +32 (0)50 89 26 10
> BTW BE0675.723.477
> 
> X-plose BV
> Lieven Bauwensstraat 16
> 8200 Brugge
> België
> 
> Dit emailbericht is strikt vertrouwelijk. Indien het een verkeerde
 bestemmeling zou bereiken, verzoeken wij u ons daarvan onmiddellijk te
 verwittigen door ons het bericht terug te sturen via reply. Gelieve het
 bericht daarna te wissen en dit niet te lezen of kenbaar te maken aan
 derden. Klik hier om het privacybeleid van de onderneming te vinden.
> 
>> On 30 Mar 2023, at 10:21, Wei ZHOU  wrote:
>> 
>> Hi Bram,
>> 
>> If the upgrade fails, you need to restore the database from backup.

Issues building cloudstack

2023-03-30 Thread Pierre Le Fevre
Hi all :)
Been using cloudstack for a while so thought I could contribute some,
however I'm running into some issues with building the project for local
development.

Following the instructions in INSTALL.md, using JDK 11 and MySQL 8 (on
Fedora 37)
mvn clean install -P systemvm,developer
mvn -P developer -pl developer -Ddeploydb
mvn -pl :cloud-client-ui jetty:run

When running these, my build seems to get stuck at some tests in CloudStack
Utils. I've tried building in IntelliJ, which gets further but seems all
config is not correct so it fails later on.

Is there something obvious I am missing? First time working in such a big
maven project :)

All the best
Pierre

*Test failures during build*
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
0.046 s <<< FAILURE! - in
org.apache.cloudstack.utils.reflectiontostringbuilderutils.ReflectionToStringBuilderUtilsTest
[ERROR]
org.apache.cloudstack.utils.reflectiontostringbuilderutils.ReflectionToStringBuilderUtilsTest
 Time elapsed: 0.046 s  <<< ERROR!
java.lang.ExceptionInInitializerError
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make
static void java.util.Arrays.rangeCheck(int,int,int) accessible: module
java.base does not "opens java.util" to unnamed module @7f0db310
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)

*Stacktrace of jetty command in terminal *
mvn -pl :cloud-client-ui jetty:run
[...]
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name
'org.apache.cloudstack.spring.lifecycle.ConfigDepotLifeCycle#0':
Unsatisfied dependency expressed through field 'configDepotAdmin'; nested
exception is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'configDepot': Unsatisfied dependency expressed
through field '_configDao'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'configurationDaoImpl' defined in URL
[jar:file:/home/pierrelf/misc/cloudstack/client/target/cloud-client-ui-4.19.0.0-SNAPSHOT.jar!/META-INF/cloudstack/system/spring-framework-config-system-context.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[org.apache.cloudstack.framework.config.dao.ConfigurationDaoImpl]:
Constructor threw exception; nested exception is
java.lang.ExceptionInInitializerError
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue
(AutowiredAnnotationBeanPostProcessor.java:659)
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject
(AutowiredAnnotationBeanPostProcessor.java:639)
at
org.springframework.beans.factory.annotation.InjectionMetadata.inject
(InjectionMetadata.java:119)
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties
(AutowiredAnnotationBeanPostProcessor.java:399)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
(AbstractAutowireCapableBeanFactory.java:1431)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean
(AbstractAutowireCapableBeanFactory.java:619)
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:213)
at
org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors
(PostProcessorRegistrationDelegate.java:270)
at
org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors
(AbstractApplicationContext.java:762)
at

RE: [ANNOUNCE] New VP of Apache CloudStack - Rohit Yadav

2023-03-30 Thread Giles Sirett
Congratulations Rohit - its been a long time coming !


Simon - thank you so much for your dedication to the community and 
professionalism in undertaking the VP role in the last 12 months 

Kind Regards
Giles

 


-Original Message-
From: Ruben Bosch  
Sent: Thursday, March 30, 2023 2:04 PM
To: users@cloudstack.apache.org
Subject: Re: [ANNOUNCE] New VP of Apache CloudStack - Rohit Yadav

Congratulations Rohit!

On Thursday, March 30, 2023, Simon Weller  wrote:

> All,
>
> I'm very pleased to announce that the ASF board has accepted the 
> nomination of Rohit Yadav to be the new VP of the Apache CloudStack project.
>
> It has been my pleasure to serve as the VP over the past year, and I'd 
> like to thank the community for all of the support.
>
> Rohit, congratulations and I wish you the best as you take on this new 
> role.
>
> -Simon
>


Re: [ANNOUNCE] New VP of Apache CloudStack - Rohit Yadav

2023-03-30 Thread Ruben Bosch
Congratulations Rohit!

On Thursday, March 30, 2023, Simon Weller  wrote:

> All,
>
> I'm very pleased to announce that the ASF board has accepted the nomination
> of Rohit Yadav to be the new VP of the Apache CloudStack project.
>
> It has been my pleasure to serve as the VP over the past year, and I'd like
> to thank the community for all of the support.
>
> Rohit, congratulations and I wish you the best as you take on this new
> role.
>
> -Simon
>


AW: Compute offerings and Disk offerings

2023-03-30 Thread me
I did some testing today with the following setup:

2 disk offerings: 1 for shared storage and 1 for local storage. Both with "Disk 
size strictness false" and using the a tag to map it to the corresponding 
primary storage.
2 compute offerings: 1 for shared storage with ha enabled and using the created 
disk offering and 1 for local with ha disabled and using the other disk 
offering. On both compute offerings I enabled Disk offering strictness to make 
sure a user cannot override the disk offering in the UI wizard during the 
creation of the VM.

This works as expected. New VMs will be created on the respective storage. Even 
resizing the volume is working.

What I did not get to work is to change compute offering/disk offering and move 
the volume to another storage. And here starts some kind of inconsistency in CS.

migrateVirtualMachineWithVolume is able to perform a live migration from local 
to shared storage (even in UI) and ignores storage tags of disk offerings. You 
end up in a situation where your VM has a still the local compute offering 
mapped and your volume has still the local disk offering mapped, but the volume 
is on shared storage and the VM runs on a host that only has shared storage.

scaleVirtualMachine is not able to perform the task and fails with: Unable to 
upgrade virtual machine VM, target offering use shared storage but the storage 
pool where the volume is allocated is a local

changeOfferingForVolume is not working: It stops with message: Cannot resize 
ROOT volume with new disk offering since existing disk offering is strictly 
assigned to the ROOT volume.
Remember that I was able to resize the disk vi UI without any problem!

migrateVolume will not work and stops with: Disk offering cannot be changed to 
the volume since existing disk offering is strictly associated with the volume
This api call should work, because is has parameters like livemigrate and 
newdiskofferingid.


As far as I understand it is not possible to change a compute offering/disk 
offering of an instance in my scenario, but in my opinion it should be 
possible. migrateVirtualMachineWithVolume shows that you can migrate a VM with 
Volumes from local to shared storage but it is not editing the offerings.

Did I missed something. Are there any other api calls which are capable to do 
this?



-Ursprüngliche Nachricht-
Von: m...@swen.io  
Gesendet: Donnerstag, 30. März 2023 11:18
An: users@cloudstack.apache.org
Betreff: AW: Compute offerings and Disk offerings

Hi,

Ok, I get it. But if I work with 2 strict Compute offerings each using a strict 
Disk offering, it looks like I am unable to migrate a shared to local or vice 
versa via UI.
- Scale VM (Instances) does not show the other offering
- Migrate Volume (Volumes) does not show the other primary storage
- Change disk offering (Volumes) does not show the other Disk offering even 
when Auto migrate is enabled

The following steps needed to be done to achieve my goal:
- volume needs to be migrate from shared to local storage (or vice versa)
- disk offering needs to be changed
- compute offering needs to be changed

Did I missed something?

In a perfect world this should be able to do even when the VM is running and 
via UI. I will test if I can achieve it via api and if so I will open an issue 
in github for and enhancement. 

-Ursprüngliche Nachricht-
Von: Hean Seng 
Gesendet: Donnerstag, 30. März 2023 10:09
An: users@cloudstack.apache.org
Betreff: Re: Compute offerings and Disk offerings

Hi
If you allow them in the Offering, then of cause they have the flexibility and 
you too have the flexibility .

In the current control , there is no  variable to restrict user from doing
that, and only admin can do.   It all depend on the offering you created. .

Probably you can try is restrict it at offering, and when you need to change, 
first change the Vm to another offering first, then only migrate the volumn.






On Thu, Mar 30, 2023 at 4:01 PM  wrote:

> Hey jordan,
>
> thx for your reply! I am suing custom offerings, my problem is to deny 
> the customer to change the Disk offering in the UI wizard when 
> creating a new VM. Of course I can use the strictness, but then I am 
> unable to migrate the volume from local to shared storage or vice versa later 
> in time.
>
> Regards,
> Swen
>
> -Ursprüngliche Nachricht-
> Von: jordan j 
> Gesendet: Donnerstag, 30. März 2023 08:15
> An: users@cloudstack.apache.org
> Betreff: Re: Compute offerings and Disk offerings
>
> I have the same hardware setup and use the same configuration.
> Not sure if one can run away from having multiple compute offerings 
> for each storage type and server group.
> The only thing that reduced the amount of compute offerings is to set 
> both compute and disk offerings to be custom.
> So actually you have just one offering per specific server/storage 
> group with resources customizable by the users.
>
> Regards,
> Jordan
>
> On Wed, Mar 29, 2023 at 6:47 PM 

CS scheduler not working properly?

2023-03-30 Thread jordan j
Hey everyone,

This week we are doing performance tests on the environment and we noticed
something weird.

Setup:
- Cloudstack 4.17.2 + XCP-NG advanced network with SG.
- zone with 30 XCP hosts (in 30 clusters) each with 100 GB ram and 100 cores
- There is one compute offering with user dispersing planner. The offering
has a local storage bound (no shared storage on servers) .

Using terraform we tried to deploy 60 instances, 49 GB of ram each and 50
cores.
Some of them were not deployed (about 5).
Running the same task again and again eventually makes the failed instances
be deployed eventually.

Wondering why this happens... looking at the logs i found out that the VMs
fail because of not enough memory on the XCPs. Error comes from XAPI and
not from Cloudstack which makes me conclude that Cloudstack allows the task
but for some reason the scheduler/planner does not compute the memory
resource properly. I wonder if there is a race condition problem where 2
instances are assigned the same host server and what happens is sa both get
created there is memory just for one of them.

Tried to simulate the issue by simultaneously creating instances from the
GUI on a group of 2 servers but it seems GUI-created-instances even if
launched together are executed in order so the scheduler detects when there
is no more RAM and the rest of the processes are stopped.

Has anyone experienced such a problem?

Regards,
Jordan


Re: [ANNOUNCE] New VP of Apache CloudStack - Rohit Yadav

2023-03-30 Thread David Jumani
Congrats Rohit, and thank you Simon!

From: Simon Weller 
Sent: Thursday, March 30, 2023 9:05 AM
To: d...@cloudstack.apache.org ; 
users@cloudstack.apache.org 
Cc: priv...@cloudstack.apache.org 
Subject: [ANNOUNCE] New VP of Apache CloudStack - Rohit Yadav

All,

I'm very pleased to announce that the ASF board has accepted the nomination
of Rohit Yadav to be the new VP of the Apache CloudStack project.

It has been my pleasure to serve as the VP over the past year, and I'd like
to thank the community for all of the support.

Rohit, congratulations and I wish you the best as you take on this new role.

-Simon

 



Re: [ANNOUNCE] New VP of Apache CloudStack - Rohit Yadav

2023-03-30 Thread Nicolas Vazquez
Congratulations Rohit and thanks Simon!

Regards,
Nicolas Vazquez


From: Simon Weller 
Date: Thursday, 30 March 2023 at 00:36
To: d...@cloudstack.apache.org , 
users@cloudstack.apache.org 
Cc: priv...@cloudstack.apache.org 
Subject: [ANNOUNCE] New VP of Apache CloudStack - Rohit Yadav
All,

I'm very pleased to announce that the ASF board has accepted the nomination
of Rohit Yadav to be the new VP of the Apache CloudStack project.

It has been my pleasure to serve as the VP over the past year, and I'd like
to thank the community for all of the support.

Rohit, congratulations and I wish you the best as you take on this new role.

-Simon

 



Re: [ANNOUNCE] New VP of Apache CloudStack - Rohit Yadav

2023-03-30 Thread Vishesh Jindal
Congratulations Rohit!

From: Slavka Peleva 
Sent: Thursday, March 30, 2023 2:04 PM
To: users@cloudstack.apache.org 
Cc: d...@cloudstack.apache.org 
Subject: Re: [ANNOUNCE] New VP of Apache CloudStack - Rohit Yadav

Congratulations, Rohit, I wish you all the best!
Thank you, Simon, for your work as a VP!

Best regards,
Slavka

On Thu, Mar 30, 2023 at 11:23 AM Boris Stoyanov <
boris.stoya...@shapeblue.com> wrote:

> Congrats Rohit!
>
> From: Simon Weller 
> Date: Thursday, 30 March 2023, 6:36
> To: d...@cloudstack.apache.org ,
> users@cloudstack.apache.org 
> Cc: priv...@cloudstack.apache.org 
> Subject: [ANNOUNCE] New VP of Apache CloudStack - Rohit Yadav
> All,
>
> I'm very pleased to announce that the ASF board has accepted the nomination
> of Rohit Yadav to be the new VP of the Apache CloudStack project.
>
> It has been my pleasure to serve as the VP over the past year, and I'd like
> to thank the community for all of the support.
>
> Rohit, congratulations and I wish you the best as you take on this new
> role.
>
> -Simon
>
>
>
>

 



Re: [ANNOUNCE] New VP of Apache CloudStack - Rohit Yadav

2023-03-30 Thread Abhishek Kumar
Congratulations Rohit!

From: Simon Weller 
Sent: 30 March 2023 09:05
To: d...@cloudstack.apache.org ; 
users@cloudstack.apache.org 
Cc: priv...@cloudstack.apache.org 
Subject: [ANNOUNCE] New VP of Apache CloudStack - Rohit Yadav

All,

I'm very pleased to announce that the ASF board has accepted the nomination
of Rohit Yadav to be the new VP of the Apache CloudStack project.

It has been my pleasure to serve as the VP over the past year, and I'd like
to thank the community for all of the support.

Rohit, congratulations and I wish you the best as you take on this new role.

-Simon

 



Re: cloudstack-management not opening port 8250 after update from 4.17.0 to 4.18.0

2023-03-30 Thread Wei ZHOU
Hi Bram,

Good to know it is fixed.

Regarding the issue with missing procedures in 4.17.0.0, can you share the
"version" table in your database ?


Kind regards,
Wei



On Thu, 30 Mar 2023 at 11:29, Bram Gillemon  wrote:

> Hi Wei,
>
> Thanks for the pointer! i had a duplicate db.cloud.encryption.type value.
>
> Everything is working again.
>
> Kr,
> Bram
>
> > On 30 Mar 2023, at 10:54, Wei ZHOU  wrote:
> >
> > Hi Bram,
> >
> > Can you check the setting of "db.cloud.encryption.type"
> > in /etc/cloudstack/management/db.properties ?
> >
> > -Wei
> >
> > On Thu, 30 Mar 2023 at 10:31, Bram Gillemon  wrote:
> >
> >> To recap:
> >>
> >> First time i upgraded cloudstack, got a lot of errors on missing
> >> procedures (they just don't exist on my installation, not sure why).
> >>
> >> Second upgrade:
> >>
> >> - dropped the cloud database, dropped the cloud_usage database
> >> - reimported the cloud database and the cloud_usage database
> >> - created the procedures (if i don't, i can't even upgrade cloudstack)
> >> - restarted cloudstack-management which completed the upgrade without
> any
> >> problems?
> >>
> >> If i then try to connect to the cloudstack mgmt interface i get an
> >>
> >> HTTP ERROR 503 Service Unavailable
> >>
> >> URI:/client/
> >> STATUS: 503
> >> MESSAGE:Service Unavailable
> >> SERVLET:-
> >>
> >>
> >> Kr,
> >> Bram
> >>
> >>
> >>> On 30 Mar 2023, at 10:23, Bram Gillemon  wrote:
> >>>
> >>> Hi,
> >>>
> >>> that was my second attempt, you'll see that the second upgrade ran
> >> without any issues.
> >>> I dropped the database, reimported them and than restarted
> >> cloudstack-management and cloudstack-usage. The second upgrade ran
> without
> >> any problems.
> >>>
> >>>
> >>> Met vriendelijke groeten,
> >>> Bram Gillemon
> >>>
> >>> Voor technische vragen kan je terecht op supp...@x-plose.be
> >>>
> >>> --
> >>>
> >>> b...@x-plose.be
> >>> https://www.x-plose.be
> >>> t. +32 (0)50 89 26 10
> >>> BTW BE0675.723.477
> >>>
> >>> X-plose BV
> >>> Lieven Bauwensstraat 16
> >>> 8200 Brugge
> >>> België
> >>>
> >>> Dit emailbericht is strikt vertrouwelijk. Indien het een verkeerde
> >> bestemmeling zou bereiken, verzoeken wij u ons daarvan onmiddellijk te
> >> verwittigen door ons het bericht terug te sturen via reply. Gelieve het
> >> bericht daarna te wissen en dit niet te lezen of kenbaar te maken aan
> >> derden. Klik hier om het privacybeleid van de onderneming te vinden.
> >>>
>  On 30 Mar 2023, at 10:21, Wei ZHOU  wrote:
> 
>  Hi Bram,
> 
>  If the upgrade fails, you need to restore the database from backup.
>  Otherwise, you will face the issue like
>  Caused by: java.sql.SQLSyntaxErrorException: Duplicate column name
>  'public_mtu'
> 
>  Please try the following (assume you have backed up the database
> before
>  upgrade)
>  - stop cloudstack-management
>  - drop old databases cloud and cloud_usage
>  - restore databases
>  - create the missing procedures
>  - start cloudstack-management
> 
> 
>  -Wei
> 
>  On Thu, 30 Mar 2023 at 09:40, Bram Gillemon  wrote:
> 
> > Hi,
> >
> > so i restarted the upgrade procedure from the previous database.
> >
> > the only 2 things missing in the database to upgrade without any
> issues
> > where these procedures:
> >
> > CREATE PROCEDURE `cloud`.`ADD_GUEST_OS_AND_HYPERVISOR_MAPPING` (
> >  IN guest_os_category_id bigint(20) unsigned,
> >  IN guest_os_display_name VARCHAR(255),
> >  IN guest_os_hypervisor_hypervisor_type VARCHAR(32),
> >  IN guest_os_hypervisor_hypervisor_version VARCHAR(32),
> >  IN guest_os_hypervisor_guest_os_name VARCHAR(255)
> >  )
> > BEGIN
> > INSERT  INTO cloud.guest_os (uuid, category_id, display_name,
> created)
> > SELECT  UUID(), guest_os_category_id, guest_os_display_name, now()
> > FROMDUAL
> > WHERE   not exists( SELECT  1
> >   FROMcloud.guest_os
> >   WHERE   cloud.guest_os.category_id =
> > guest_os_category_id
> > AND cloud.guest_os.display_name =
> > guest_os_display_name)
> >
> > ;   INSERT  INTO cloud.guest_os_hypervisor (uuid,
> hypervisor_type,
> > hypervisor_version, guest_os_name, guest_os_id, created)
> >   SELECT UUID(), guest_os_hypervisor_hypervisor_type,
> > guest_os_hypervisor_hypervisor_version,
> >> guest_os_hypervisor_guest_os_name,
> > guest_os.id, now()
> >   FROM   cloud.guest_os
> >   WHERE  guest_os.category_id = guest_os_category_id
> > AND  guest_os.display_name = guest_os_display_name
> > AND  NOT EXISTS (SELECT  1
> >FROMcloud.guest_os_hypervisor as
> hypervisor
> >WHERE   hypervisor_type =
> > guest_os_hypervisor_hypervisor_type
> >  AND hypervisor_version 

Re: cloudstack-management not opening port 8250 after update from 4.17.0 to 4.18.0

2023-03-30 Thread Bram Gillemon
Hi Wei,

Thanks for the pointer! i had a duplicate db.cloud.encryption.type value.

Everything is working again.

Kr,
Bram

> On 30 Mar 2023, at 10:54, Wei ZHOU  wrote:
> 
> Hi Bram,
> 
> Can you check the setting of "db.cloud.encryption.type"
> in /etc/cloudstack/management/db.properties ?
> 
> -Wei
> 
> On Thu, 30 Mar 2023 at 10:31, Bram Gillemon  wrote:
> 
>> To recap:
>> 
>> First time i upgraded cloudstack, got a lot of errors on missing
>> procedures (they just don't exist on my installation, not sure why).
>> 
>> Second upgrade:
>> 
>> - dropped the cloud database, dropped the cloud_usage database
>> - reimported the cloud database and the cloud_usage database
>> - created the procedures (if i don't, i can't even upgrade cloudstack)
>> - restarted cloudstack-management which completed the upgrade without any
>> problems?
>> 
>> If i then try to connect to the cloudstack mgmt interface i get an
>> 
>> HTTP ERROR 503 Service Unavailable
>> 
>> URI:/client/
>> STATUS: 503
>> MESSAGE:Service Unavailable
>> SERVLET:-
>> 
>> 
>> Kr,
>> Bram
>> 
>> 
>>> On 30 Mar 2023, at 10:23, Bram Gillemon  wrote:
>>> 
>>> Hi,
>>> 
>>> that was my second attempt, you'll see that the second upgrade ran
>> without any issues.
>>> I dropped the database, reimported them and than restarted
>> cloudstack-management and cloudstack-usage. The second upgrade ran without
>> any problems.
>>> 
>>> 
>>> Met vriendelijke groeten,
>>> Bram Gillemon
>>> 
>>> Voor technische vragen kan je terecht op supp...@x-plose.be
>>> 
>>> --
>>> 
>>> b...@x-plose.be
>>> https://www.x-plose.be
>>> t. +32 (0)50 89 26 10
>>> BTW BE0675.723.477
>>> 
>>> X-plose BV
>>> Lieven Bauwensstraat 16
>>> 8200 Brugge
>>> België
>>> 
>>> Dit emailbericht is strikt vertrouwelijk. Indien het een verkeerde
>> bestemmeling zou bereiken, verzoeken wij u ons daarvan onmiddellijk te
>> verwittigen door ons het bericht terug te sturen via reply. Gelieve het
>> bericht daarna te wissen en dit niet te lezen of kenbaar te maken aan
>> derden. Klik hier om het privacybeleid van de onderneming te vinden.
>>> 
 On 30 Mar 2023, at 10:21, Wei ZHOU  wrote:
 
 Hi Bram,
 
 If the upgrade fails, you need to restore the database from backup.
 Otherwise, you will face the issue like
 Caused by: java.sql.SQLSyntaxErrorException: Duplicate column name
 'public_mtu'
 
 Please try the following (assume you have backed up the database before
 upgrade)
 - stop cloudstack-management
 - drop old databases cloud and cloud_usage
 - restore databases
 - create the missing procedures
 - start cloudstack-management
 
 
 -Wei
 
 On Thu, 30 Mar 2023 at 09:40, Bram Gillemon  wrote:
 
> Hi,
> 
> so i restarted the upgrade procedure from the previous database.
> 
> the only 2 things missing in the database to upgrade without any issues
> where these procedures:
> 
> CREATE PROCEDURE `cloud`.`ADD_GUEST_OS_AND_HYPERVISOR_MAPPING` (
>  IN guest_os_category_id bigint(20) unsigned,
>  IN guest_os_display_name VARCHAR(255),
>  IN guest_os_hypervisor_hypervisor_type VARCHAR(32),
>  IN guest_os_hypervisor_hypervisor_version VARCHAR(32),
>  IN guest_os_hypervisor_guest_os_name VARCHAR(255)
>  )
> BEGIN
> INSERT  INTO cloud.guest_os (uuid, category_id, display_name, created)
> SELECT  UUID(), guest_os_category_id, guest_os_display_name, now()
> FROMDUAL
> WHERE   not exists( SELECT  1
>   FROMcloud.guest_os
>   WHERE   cloud.guest_os.category_id =
> guest_os_category_id
> AND cloud.guest_os.display_name =
> guest_os_display_name)
> 
> ;   INSERT  INTO cloud.guest_os_hypervisor (uuid, hypervisor_type,
> hypervisor_version, guest_os_name, guest_os_id, created)
>   SELECT UUID(), guest_os_hypervisor_hypervisor_type,
> guest_os_hypervisor_hypervisor_version,
>> guest_os_hypervisor_guest_os_name,
> guest_os.id, now()
>   FROM   cloud.guest_os
>   WHERE  guest_os.category_id = guest_os_category_id
> AND  guest_os.display_name = guest_os_display_name
> AND  NOT EXISTS (SELECT  1
>FROMcloud.guest_os_hypervisor as hypervisor
>WHERE   hypervisor_type =
> guest_os_hypervisor_hypervisor_type
>  AND hypervisor_version =
> guest_os_hypervisor_hypervisor_version
>  AND hypervisor.guest_os_id = guest_os.id
>  AND hypervisor.guest_os_name =
> guest_os_hypervisor_guest_os_name)
> ;END;
> 
> CREATE PROCEDURE `cloud`.`IDEMPOTENT_ADD_COLUMN` (
>  IN in_table_name VARCHAR(200)
> , IN in_column_name VARCHAR(200)
> , IN in_column_definition VARCHAR(1000)
> )
> BEGIN
>  DECLARE CONTINUE HANDLER 

AW: Compute offerings and Disk offerings

2023-03-30 Thread me
Hi,

Ok, I get it. But if I work with 2 strict Compute offerings each using a strict 
Disk offering, it looks like I am unable to migrate a shared to local or vice 
versa via UI.
- Scale VM (Instances) does not show the other offering
- Migrate Volume (Volumes) does not show the other primary storage
- Change disk offering (Volumes) does not show the other Disk offering even 
when Auto migrate is enabled

The following steps needed to be done to achieve my goal:
- volume needs to be migrate from shared to local storage (or vice versa)
- disk offering needs to be changed
- compute offering needs to be changed

Did I missed something?

In a perfect world this should be able to do even when the VM is running and 
via UI. I will test if I can achieve it via api and if so I will open an issue 
in github for and enhancement. 

-Ursprüngliche Nachricht-
Von: Hean Seng  
Gesendet: Donnerstag, 30. März 2023 10:09
An: users@cloudstack.apache.org
Betreff: Re: Compute offerings and Disk offerings

Hi
If you allow them in the Offering, then of cause they have the flexibility and 
you too have the flexibility .

In the current control , there is no  variable to restrict user from doing
that, and only admin can do.   It all depend on the offering you created. .

Probably you can try is restrict it at offering, and when you need to change, 
first change the Vm to another offering first, then only migrate the volumn.






On Thu, Mar 30, 2023 at 4:01 PM  wrote:

> Hey jordan,
>
> thx for your reply! I am suing custom offerings, my problem is to deny 
> the customer to change the Disk offering in the UI wizard when 
> creating a new VM. Of course I can use the strictness, but then I am 
> unable to migrate the volume from local to shared storage or vice versa later 
> in time.
>
> Regards,
> Swen
>
> -Ursprüngliche Nachricht-
> Von: jordan j 
> Gesendet: Donnerstag, 30. März 2023 08:15
> An: users@cloudstack.apache.org
> Betreff: Re: Compute offerings and Disk offerings
>
> I have the same hardware setup and use the same configuration.
> Not sure if one can run away from having multiple compute offerings 
> for each storage type and server group.
> The only thing that reduced the amount of compute offerings is to set 
> both compute and disk offerings to be custom.
> So actually you have just one offering per specific server/storage 
> group with resources customizable by the users.
>
> Regards,
> Jordan
>
> On Wed, Mar 29, 2023 at 6:47 PM Hean Seng  wrote:
>
> > So what you actually wish to achieve ?
> >
> > On Wed, Mar 29, 2023 at 11:41 PM  wrote:
> >
> > > Hi Hean,
> > >
> > > sure, this works, but is not really flexible and you run into 
> > > problems when using the override function in the UI wizard.
> > >
> > > -Ursprüngliche Nachricht-
> > > Von: Hean Seng 
> > > Gesendet: Mittwoch, 29. März 2023 17:20
> > > An: users@cloudstack.apache.org
> > > Betreff: Re: Compute offerings and Disk offerings
> > >
> > > Hi
> > >
> > > In Compute offering, you can choose if the compute offering is 
> > > Local or Shared Storage .
> > >
> > > And you can also tag the storage with Tags, and define the tag in 
> > > Compute offering.
> > >
> > > Like this, it will goes to the storage you wish to.
> > >
> > >
> > > On Wed, Mar 29, 2023 at 11:12 PM  wrote:
> > >
> > > > Hey all,
> > > >
> > > >
> > > >
> > > > does someone use local AND shared storage in Cloudstack? I am 
> > > > using tags on storage level which I use in Disk offerings then 
> > > > to assign them to shared or local storage. I use xcp-ng as 
> > > > hypervisor and each host has shared or local storage, but not both.
> > > >
> > > > I created a default-compute-offering without mapping it directly 
> > > > to a Disk offering vi api, because the UI wants to have a Disk 
> > > > offering mapped. In the VM installation wizard I can choose 
> > > > between local an shared storage and it works fine.
> > > >
> > > >
> > > >
> > > > But I run into some issues:
> > > >
> > > > 1.  I am unable to configure the default Disk offering which will
> > be
> > > > used when not overriding root disk offering
> > > >
> > > > It looks like CS is using the one with the lowest id in den database.
> > > >
> > > > 2.  When I want to migrate a running VM from local to shared
> > storage
> > > > (or
> > > > vice versa) via UI "Migrate instance to another host" I see the 
> > > > other hosts, but there are shown as not suitable.
> > > > 3.  When I want to migrate a Volume from local to shared storage
> > (or
> > > > vice versa) via UI "Migrate volume" I do not see the other type 
> > > > of storage even when enable the "Replace disk offering" button.
> > > >
> > > >
> > > >
> > > > Is my workflow just not correct, or do we have some kind of 
> > > > issue here? I hope someone else already using this setup and can 
> > > > tell me how it was configured. Thanks for help!
> > > >
> > > >
> > > >
> > > > Regards,
> > > >
> > > > Swen
> > > >
> > > >
> > >
> > > 

Re: cloudstack-management not opening port 8250 after update from 4.17.0 to 4.18.0

2023-03-30 Thread Wei ZHOU
Hi Bram,

Can you check the setting of "db.cloud.encryption.type"
in /etc/cloudstack/management/db.properties ?

-Wei

On Thu, 30 Mar 2023 at 10:31, Bram Gillemon  wrote:

> To recap:
>
> First time i upgraded cloudstack, got a lot of errors on missing
> procedures (they just don't exist on my installation, not sure why).
>
> Second upgrade:
>
> - dropped the cloud database, dropped the cloud_usage database
> - reimported the cloud database and the cloud_usage database
> - created the procedures (if i don't, i can't even upgrade cloudstack)
> - restarted cloudstack-management which completed the upgrade without any
> problems?
>
> If i then try to connect to the cloudstack mgmt interface i get an
>
> HTTP ERROR 503 Service Unavailable
>
> URI:/client/
> STATUS: 503
> MESSAGE:Service Unavailable
> SERVLET:-
>
>
> Kr,
> Bram
>
>
> > On 30 Mar 2023, at 10:23, Bram Gillemon  wrote:
> >
> > Hi,
> >
> > that was my second attempt, you'll see that the second upgrade ran
> without any issues.
> > I dropped the database, reimported them and than restarted
> cloudstack-management and cloudstack-usage. The second upgrade ran without
> any problems.
> >
> >
> > Met vriendelijke groeten,
> > Bram Gillemon
> >
> > Voor technische vragen kan je terecht op supp...@x-plose.be
> >
> > --
> >
> > b...@x-plose.be
> > https://www.x-plose.be
> > t. +32 (0)50 89 26 10
> > BTW BE0675.723.477
> >
> > X-plose BV
> > Lieven Bauwensstraat 16
> > 8200 Brugge
> > België
> >
> > Dit emailbericht is strikt vertrouwelijk. Indien het een verkeerde
> bestemmeling zou bereiken, verzoeken wij u ons daarvan onmiddellijk te
> verwittigen door ons het bericht terug te sturen via reply. Gelieve het
> bericht daarna te wissen en dit niet te lezen of kenbaar te maken aan
> derden. Klik hier om het privacybeleid van de onderneming te vinden.
> >
> >> On 30 Mar 2023, at 10:21, Wei ZHOU  wrote:
> >>
> >> Hi Bram,
> >>
> >> If the upgrade fails, you need to restore the database from backup.
> >> Otherwise, you will face the issue like
> >> Caused by: java.sql.SQLSyntaxErrorException: Duplicate column name
> >> 'public_mtu'
> >>
> >> Please try the following (assume you have backed up the database before
> >> upgrade)
> >> - stop cloudstack-management
> >> - drop old databases cloud and cloud_usage
> >> - restore databases
> >> - create the missing procedures
> >> - start cloudstack-management
> >>
> >>
> >> -Wei
> >>
> >> On Thu, 30 Mar 2023 at 09:40, Bram Gillemon  wrote:
> >>
> >>> Hi,
> >>>
> >>> so i restarted the upgrade procedure from the previous database.
> >>>
> >>> the only 2 things missing in the database to upgrade without any issues
> >>> where these procedures:
> >>>
> >>> CREATE PROCEDURE `cloud`.`ADD_GUEST_OS_AND_HYPERVISOR_MAPPING` (
> >>>   IN guest_os_category_id bigint(20) unsigned,
> >>>   IN guest_os_display_name VARCHAR(255),
> >>>   IN guest_os_hypervisor_hypervisor_type VARCHAR(32),
> >>>   IN guest_os_hypervisor_hypervisor_version VARCHAR(32),
> >>>   IN guest_os_hypervisor_guest_os_name VARCHAR(255)
> >>>   )
> >>> BEGIN
> >>> INSERT  INTO cloud.guest_os (uuid, category_id, display_name, created)
> >>> SELECT  UUID(), guest_os_category_id, guest_os_display_name, now()
> >>> FROMDUAL
> >>> WHERE   not exists( SELECT  1
> >>>FROMcloud.guest_os
> >>>WHERE   cloud.guest_os.category_id =
> >>> guest_os_category_id
> >>>  AND cloud.guest_os.display_name =
> >>> guest_os_display_name)
> >>>
> >>> ;   INSERT  INTO cloud.guest_os_hypervisor (uuid, hypervisor_type,
> >>> hypervisor_version, guest_os_name, guest_os_id, created)
> >>>SELECT UUID(), guest_os_hypervisor_hypervisor_type,
> >>> guest_os_hypervisor_hypervisor_version,
> guest_os_hypervisor_guest_os_name,
> >>> guest_os.id, now()
> >>>FROM   cloud.guest_os
> >>>WHERE  guest_os.category_id = guest_os_category_id
> >>>  AND  guest_os.display_name = guest_os_display_name
> >>>  AND  NOT EXISTS (SELECT  1
> >>> FROMcloud.guest_os_hypervisor as hypervisor
> >>> WHERE   hypervisor_type =
> >>> guest_os_hypervisor_hypervisor_type
> >>>   AND hypervisor_version =
> >>> guest_os_hypervisor_hypervisor_version
> >>>   AND hypervisor.guest_os_id = guest_os.id
> >>>   AND hypervisor.guest_os_name =
> >>> guest_os_hypervisor_guest_os_name)
> >>> ;END;
> >>>
> >>> CREATE PROCEDURE `cloud`.`IDEMPOTENT_ADD_COLUMN` (
> >>>   IN in_table_name VARCHAR(200)
> >>> , IN in_column_name VARCHAR(200)
> >>> , IN in_column_definition VARCHAR(1000)
> >>> )
> >>> BEGIN
> >>>   DECLARE CONTINUE HANDLER FOR 1060 BEGIN END; SET @ddl = CONCAT('ALTER
> >>> TABLE ', in_table_name); SET @ddl = CONCAT(@ddl, ' ', 'ADD COLUMN') ;
> SET
> >>> @ddl = CONCAT(@ddl, ' ', in_column_name); SET @ddl = CONCAT(@ddl, ' ',
> >>> in_column_definition); 

Re: [ANNOUNCE] New VP of Apache CloudStack - Rohit Yadav

2023-03-30 Thread Slavka Peleva
Congratulations, Rohit, I wish you all the best!
Thank you, Simon, for your work as a VP!

Best regards,
Slavka

On Thu, Mar 30, 2023 at 11:23 AM Boris Stoyanov <
boris.stoya...@shapeblue.com> wrote:

> Congrats Rohit!
>
> From: Simon Weller 
> Date: Thursday, 30 March 2023, 6:36
> To: d...@cloudstack.apache.org ,
> users@cloudstack.apache.org 
> Cc: priv...@cloudstack.apache.org 
> Subject: [ANNOUNCE] New VP of Apache CloudStack - Rohit Yadav
> All,
>
> I'm very pleased to announce that the ASF board has accepted the nomination
> of Rohit Yadav to be the new VP of the Apache CloudStack project.
>
> It has been my pleasure to serve as the VP over the past year, and I'd like
> to thank the community for all of the support.
>
> Rohit, congratulations and I wish you the best as you take on this new
> role.
>
> -Simon
>
>
>
>


Re: cloudstack-management not opening port 8250 after update from 4.17.0 to 4.18.0

2023-03-30 Thread Bram Gillemon
To recap:

First time i upgraded cloudstack, got a lot of errors on missing procedures 
(they just don't exist on my installation, not sure why).

Second upgrade:

- dropped the cloud database, dropped the cloud_usage database
- reimported the cloud database and the cloud_usage database
- created the procedures (if i don't, i can't even upgrade cloudstack)
- restarted cloudstack-management which completed the upgrade without any 
problems?

If i then try to connect to the cloudstack mgmt interface i get an 

HTTP ERROR 503 Service Unavailable

URI:/client/
STATUS: 503
MESSAGE:Service Unavailable
SERVLET:-


Kr,
Bram


> On 30 Mar 2023, at 10:23, Bram Gillemon  wrote:
> 
> Hi,
> 
> that was my second attempt, you'll see that the second upgrade ran without 
> any issues. 
> I dropped the database, reimported them and than restarted 
> cloudstack-management and cloudstack-usage. The second upgrade ran without 
> any problems.
> 
> 
> Met vriendelijke groeten, 
> Bram Gillemon
> 
> Voor technische vragen kan je terecht op supp...@x-plose.be
> 
> --
> 
> b...@x-plose.be
> https://www.x-plose.be
> t. +32 (0)50 89 26 10
> BTW BE0675.723.477
> 
> X-plose BV
> Lieven Bauwensstraat 16
> 8200 Brugge
> België
> 
> Dit emailbericht is strikt vertrouwelijk. Indien het een verkeerde 
> bestemmeling zou bereiken, verzoeken wij u ons daarvan onmiddellijk te 
> verwittigen door ons het bericht terug te sturen via reply. Gelieve het 
> bericht daarna te wissen en dit niet te lezen of kenbaar te maken aan derden. 
> Klik hier om het privacybeleid van de onderneming te vinden. 
> 
>> On 30 Mar 2023, at 10:21, Wei ZHOU  wrote:
>> 
>> Hi Bram,
>> 
>> If the upgrade fails, you need to restore the database from backup.
>> Otherwise, you will face the issue like
>> Caused by: java.sql.SQLSyntaxErrorException: Duplicate column name
>> 'public_mtu'
>> 
>> Please try the following (assume you have backed up the database before
>> upgrade)
>> - stop cloudstack-management
>> - drop old databases cloud and cloud_usage
>> - restore databases
>> - create the missing procedures
>> - start cloudstack-management
>> 
>> 
>> -Wei
>> 
>> On Thu, 30 Mar 2023 at 09:40, Bram Gillemon  wrote:
>> 
>>> Hi,
>>> 
>>> so i restarted the upgrade procedure from the previous database.
>>> 
>>> the only 2 things missing in the database to upgrade without any issues
>>> where these procedures:
>>> 
>>> CREATE PROCEDURE `cloud`.`ADD_GUEST_OS_AND_HYPERVISOR_MAPPING` (
>>>   IN guest_os_category_id bigint(20) unsigned,
>>>   IN guest_os_display_name VARCHAR(255),
>>>   IN guest_os_hypervisor_hypervisor_type VARCHAR(32),
>>>   IN guest_os_hypervisor_hypervisor_version VARCHAR(32),
>>>   IN guest_os_hypervisor_guest_os_name VARCHAR(255)
>>>   )
>>> BEGIN
>>> INSERT  INTO cloud.guest_os (uuid, category_id, display_name, created)
>>> SELECT  UUID(), guest_os_category_id, guest_os_display_name, now()
>>> FROMDUAL
>>> WHERE   not exists( SELECT  1
>>>FROMcloud.guest_os
>>>WHERE   cloud.guest_os.category_id =
>>> guest_os_category_id
>>>  AND cloud.guest_os.display_name =
>>> guest_os_display_name)
>>> 
>>> ;   INSERT  INTO cloud.guest_os_hypervisor (uuid, hypervisor_type,
>>> hypervisor_version, guest_os_name, guest_os_id, created)
>>>SELECT UUID(), guest_os_hypervisor_hypervisor_type,
>>> guest_os_hypervisor_hypervisor_version, guest_os_hypervisor_guest_os_name,
>>> guest_os.id, now()
>>>FROM   cloud.guest_os
>>>WHERE  guest_os.category_id = guest_os_category_id
>>>  AND  guest_os.display_name = guest_os_display_name
>>>  AND  NOT EXISTS (SELECT  1
>>> FROMcloud.guest_os_hypervisor as hypervisor
>>> WHERE   hypervisor_type =
>>> guest_os_hypervisor_hypervisor_type
>>>   AND hypervisor_version =
>>> guest_os_hypervisor_hypervisor_version
>>>   AND hypervisor.guest_os_id = guest_os.id
>>>   AND hypervisor.guest_os_name =
>>> guest_os_hypervisor_guest_os_name)
>>> ;END;
>>> 
>>> CREATE PROCEDURE `cloud`.`IDEMPOTENT_ADD_COLUMN` (
>>>   IN in_table_name VARCHAR(200)
>>> , IN in_column_name VARCHAR(200)
>>> , IN in_column_definition VARCHAR(1000)
>>> )
>>> BEGIN
>>>   DECLARE CONTINUE HANDLER FOR 1060 BEGIN END; SET @ddl = CONCAT('ALTER
>>> TABLE ', in_table_name); SET @ddl = CONCAT(@ddl, ' ', 'ADD COLUMN') ; SET
>>> @ddl = CONCAT(@ddl, ' ', in_column_name); SET @ddl = CONCAT(@ddl, ' ',
>>> in_column_definition); PREPARE stmt FROM @ddl; EXECUTE stmt; DEALLOCATE
>>> PREPARE stmt; END;
>>> 
>>> 
>>> After i ran these manually the upgrade went smooth, but i still can't
>>> reach the mgmt platform.
>>> 
>>> I uploaded the log files, this is the first attempt of the update.
>>> 
>>> https://upload.bugoff.be//first-attempt-management-server.log
>>> 
>>> this is the second attempt where i only added the 

Re: cloudstack-management not opening port 8250 after update from 4.17.0 to 4.18.0

2023-03-30 Thread Bram Gillemon
Hi,

that was my second attempt, you'll see that the second upgrade ran without any 
issues. 
I dropped the database, reimported them and than restarted 
cloudstack-management and cloudstack-usage. The second upgrade ran without any 
problems.


Met vriendelijke groeten, 
Bram Gillemon

Voor technische vragen kan je terecht op supp...@x-plose.be

--

b...@x-plose.be
https://www.x-plose.be
t. +32 (0)50 89 26 10
BTW BE0675.723.477

X-plose BV
Lieven Bauwensstraat 16
8200 Brugge
België

Dit emailbericht is strikt vertrouwelijk. Indien het een verkeerde bestemmeling 
zou bereiken, verzoeken wij u ons daarvan onmiddellijk te verwittigen door ons 
het bericht terug te sturen via reply. Gelieve het bericht daarna te wissen en 
dit niet te lezen of kenbaar te maken aan derden. Klik hier om het 
privacybeleid van de onderneming te vinden. 

> On 30 Mar 2023, at 10:21, Wei ZHOU  wrote:
> 
> Hi Bram,
> 
> If the upgrade fails, you need to restore the database from backup.
> Otherwise, you will face the issue like
> Caused by: java.sql.SQLSyntaxErrorException: Duplicate column name
> 'public_mtu'
> 
> Please try the following (assume you have backed up the database before
> upgrade)
> - stop cloudstack-management
> - drop old databases cloud and cloud_usage
> - restore databases
> - create the missing procedures
> - start cloudstack-management
> 
> 
> -Wei
> 
> On Thu, 30 Mar 2023 at 09:40, Bram Gillemon  wrote:
> 
>> Hi,
>> 
>> so i restarted the upgrade procedure from the previous database.
>> 
>> the only 2 things missing in the database to upgrade without any issues
>> where these procedures:
>> 
>> CREATE PROCEDURE `cloud`.`ADD_GUEST_OS_AND_HYPERVISOR_MAPPING` (
>>IN guest_os_category_id bigint(20) unsigned,
>>IN guest_os_display_name VARCHAR(255),
>>IN guest_os_hypervisor_hypervisor_type VARCHAR(32),
>>IN guest_os_hypervisor_hypervisor_version VARCHAR(32),
>>IN guest_os_hypervisor_guest_os_name VARCHAR(255)
>>)
>> BEGIN
>> INSERT  INTO cloud.guest_os (uuid, category_id, display_name, created)
>> SELECT  UUID(), guest_os_category_id, guest_os_display_name, now()
>> FROMDUAL
>> WHERE   not exists( SELECT  1
>> FROMcloud.guest_os
>> WHERE   cloud.guest_os.category_id =
>> guest_os_category_id
>>   AND cloud.guest_os.display_name =
>> guest_os_display_name)
>> 
>> ;   INSERT  INTO cloud.guest_os_hypervisor (uuid, hypervisor_type,
>> hypervisor_version, guest_os_name, guest_os_id, created)
>> SELECT UUID(), guest_os_hypervisor_hypervisor_type,
>> guest_os_hypervisor_hypervisor_version, guest_os_hypervisor_guest_os_name,
>> guest_os.id, now()
>> FROM   cloud.guest_os
>> WHERE  guest_os.category_id = guest_os_category_id
>>   AND  guest_os.display_name = guest_os_display_name
>>   AND  NOT EXISTS (SELECT  1
>>  FROMcloud.guest_os_hypervisor as hypervisor
>>  WHERE   hypervisor_type =
>> guest_os_hypervisor_hypervisor_type
>>AND hypervisor_version =
>> guest_os_hypervisor_hypervisor_version
>>AND hypervisor.guest_os_id = guest_os.id
>>AND hypervisor.guest_os_name =
>> guest_os_hypervisor_guest_os_name)
>> ;END;
>> 
>> CREATE PROCEDURE `cloud`.`IDEMPOTENT_ADD_COLUMN` (
>>IN in_table_name VARCHAR(200)
>> , IN in_column_name VARCHAR(200)
>> , IN in_column_definition VARCHAR(1000)
>> )
>> BEGIN
>>DECLARE CONTINUE HANDLER FOR 1060 BEGIN END; SET @ddl = CONCAT('ALTER
>> TABLE ', in_table_name); SET @ddl = CONCAT(@ddl, ' ', 'ADD COLUMN') ; SET
>> @ddl = CONCAT(@ddl, ' ', in_column_name); SET @ddl = CONCAT(@ddl, ' ',
>> in_column_definition); PREPARE stmt FROM @ddl; EXECUTE stmt; DEALLOCATE
>> PREPARE stmt; END;
>> 
>> 
>> After i ran these manually the upgrade went smooth, but i still can't
>> reach the mgmt platform.
>> 
>> I uploaded the log files, this is the first attempt of the update.
>> 
>> https://upload.bugoff.be//first-attempt-management-server.log
>> 
>> this is the second attempt where i only added the stored procedures and
>> ran the upgrade.
>> 
>> https://upload.bugoff.be//second-attempt-management-server.log
>> 
>> 
>> Kind Regards,
>> Bram Gillemon
>> 
>>> On 30 Mar 2023, at 09:15, Wei ZHOU  wrote:
>>> 
>>> There might be something wrong during the upgrade, for example SQL
>> errors.
>>> 
>>> Could you upload the full log ?
>>> 
>>> -Wei
>>> 
>>> On Wed, 29 Mar 2023 at 23:06, Bram Gillemon  wrote:
>>> 
 Hi,
 
 i'm having some problems updating met cloudstack setup, after the update
 of the cloudstack-management i tried to start it and got some errors on
 missing procedures,
 
 After creating the necessary procedures by hand, and removing some mtu
 fields, cloudstack started, at least i thought.
 
 It's not listening on port 8250, and i can't seem to figure out why.
 
 

Re: [ANNOUNCE] New VP of Apache CloudStack - Rohit Yadav

2023-03-30 Thread Boris Stoyanov
Congrats Rohit!

From: Simon Weller 
Date: Thursday, 30 March 2023, 6:36
To: d...@cloudstack.apache.org , 
users@cloudstack.apache.org 
Cc: priv...@cloudstack.apache.org 
Subject: [ANNOUNCE] New VP of Apache CloudStack - Rohit Yadav
All,

I'm very pleased to announce that the ASF board has accepted the nomination
of Rohit Yadav to be the new VP of the Apache CloudStack project.

It has been my pleasure to serve as the VP over the past year, and I'd like
to thank the community for all of the support.

Rohit, congratulations and I wish you the best as you take on this new role.

-Simon

 



Re: cloudstack-management not opening port 8250 after update from 4.17.0 to 4.18.0

2023-03-30 Thread Wei ZHOU
Hi Bram,

If the upgrade fails, you need to restore the database from backup.
Otherwise, you will face the issue like
Caused by: java.sql.SQLSyntaxErrorException: Duplicate column name
'public_mtu'

Please try the following (assume you have backed up the database before
upgrade)
- stop cloudstack-management
- drop old databases cloud and cloud_usage
- restore databases
- create the missing procedures
- start cloudstack-management


-Wei

On Thu, 30 Mar 2023 at 09:40, Bram Gillemon  wrote:

> Hi,
>
> so i restarted the upgrade procedure from the previous database.
>
> the only 2 things missing in the database to upgrade without any issues
> where these procedures:
>
> CREATE PROCEDURE `cloud`.`ADD_GUEST_OS_AND_HYPERVISOR_MAPPING` (
> IN guest_os_category_id bigint(20) unsigned,
> IN guest_os_display_name VARCHAR(255),
> IN guest_os_hypervisor_hypervisor_type VARCHAR(32),
> IN guest_os_hypervisor_hypervisor_version VARCHAR(32),
> IN guest_os_hypervisor_guest_os_name VARCHAR(255)
> )
> BEGIN
> INSERT  INTO cloud.guest_os (uuid, category_id, display_name, created)
> SELECT  UUID(), guest_os_category_id, guest_os_display_name, now()
> FROMDUAL
> WHERE   not exists( SELECT  1
>  FROMcloud.guest_os
>  WHERE   cloud.guest_os.category_id =
> guest_os_category_id
>AND cloud.guest_os.display_name =
> guest_os_display_name)
>
> ;   INSERT  INTO cloud.guest_os_hypervisor (uuid, hypervisor_type,
> hypervisor_version, guest_os_name, guest_os_id, created)
>  SELECT UUID(), guest_os_hypervisor_hypervisor_type,
> guest_os_hypervisor_hypervisor_version, guest_os_hypervisor_guest_os_name,
> guest_os.id, now()
>  FROM   cloud.guest_os
>  WHERE  guest_os.category_id = guest_os_category_id
>AND  guest_os.display_name = guest_os_display_name
>AND  NOT EXISTS (SELECT  1
>   FROMcloud.guest_os_hypervisor as hypervisor
>   WHERE   hypervisor_type =
> guest_os_hypervisor_hypervisor_type
> AND hypervisor_version =
> guest_os_hypervisor_hypervisor_version
> AND hypervisor.guest_os_id = guest_os.id
> AND hypervisor.guest_os_name =
> guest_os_hypervisor_guest_os_name)
> ;END;
>
> CREATE PROCEDURE `cloud`.`IDEMPOTENT_ADD_COLUMN` (
> IN in_table_name VARCHAR(200)
> , IN in_column_name VARCHAR(200)
> , IN in_column_definition VARCHAR(1000)
> )
> BEGIN
> DECLARE CONTINUE HANDLER FOR 1060 BEGIN END; SET @ddl = CONCAT('ALTER
> TABLE ', in_table_name); SET @ddl = CONCAT(@ddl, ' ', 'ADD COLUMN') ; SET
> @ddl = CONCAT(@ddl, ' ', in_column_name); SET @ddl = CONCAT(@ddl, ' ',
> in_column_definition); PREPARE stmt FROM @ddl; EXECUTE stmt; DEALLOCATE
> PREPARE stmt; END;
>
>
> After i ran these manually the upgrade went smooth, but i still can't
> reach the mgmt platform.
>
> I uploaded the log files, this is the first attempt of the update.
>
> https://upload.bugoff.be//first-attempt-management-server.log
>
> this is the second attempt where i only added the stored procedures and
> ran the upgrade.
>
> https://upload.bugoff.be//second-attempt-management-server.log
>
>
> Kind Regards,
> Bram Gillemon
>
> > On 30 Mar 2023, at 09:15, Wei ZHOU  wrote:
> >
> > There might be something wrong during the upgrade, for example SQL
> errors.
> >
> > Could you upload the full log ?
> >
> > -Wei
> >
> > On Wed, 29 Mar 2023 at 23:06, Bram Gillemon  wrote:
> >
> >> Hi,
> >>
> >> i'm having some problems updating met cloudstack setup, after the update
> >> of the cloudstack-management i tried to start it and got some errors on
> >> missing procedures,
> >>
> >> After creating the necessary procedures by hand, and removing some mtu
> >> fields, cloudstack started, at least i thought.
> >>
> >> It's not listening on port 8250, and i can't seem to figure out why.
> >>
> >> the logs mention it's listening, but ss -tpln doesn't show anything
> >> listening on the port.
> >>
> >> Attached is the management-server.log, the only "error" i see is the
> >> commands.properties is missing.
> >>
> >> I couldn't find any troubleshooting tips on to debug this, so i hope
> >> somebody has some tips.
> >>
> >>
> >>
> >>
> >> Kind Regards,
> >> Bram
> >>
> >>
> >>
> >>
> >>
> >>
> >>
>
>


Re: Compute offerings and Disk offerings

2023-03-30 Thread Hean Seng
Hi
If you allow them in the Offering, then of cause they have the
flexibility and you too have the flexibility .

In the current control , there is no  variable to restrict user from doing
that, and only admin can do.   It all depend on the offering you created. .

Probably you can try is restrict it at offering, and when you need to
change, first change the Vm to another offering first, then only migrate
the volumn.






On Thu, Mar 30, 2023 at 4:01 PM  wrote:

> Hey jordan,
>
> thx for your reply! I am suing custom offerings, my problem is to deny the
> customer to change the Disk offering in the UI wizard when creating a new
> VM. Of course I can use the strictness, but then I am unable to migrate the
> volume from local to shared storage or vice versa later in time.
>
> Regards,
> Swen
>
> -Ursprüngliche Nachricht-
> Von: jordan j 
> Gesendet: Donnerstag, 30. März 2023 08:15
> An: users@cloudstack.apache.org
> Betreff: Re: Compute offerings and Disk offerings
>
> I have the same hardware setup and use the same configuration.
> Not sure if one can run away from having multiple compute offerings for
> each storage type and server group.
> The only thing that reduced the amount of compute offerings is to set both
> compute and disk offerings to be custom.
> So actually you have just one offering per specific server/storage group
> with resources customizable by the users.
>
> Regards,
> Jordan
>
> On Wed, Mar 29, 2023 at 6:47 PM Hean Seng  wrote:
>
> > So what you actually wish to achieve ?
> >
> > On Wed, Mar 29, 2023 at 11:41 PM  wrote:
> >
> > > Hi Hean,
> > >
> > > sure, this works, but is not really flexible and you run into
> > > problems when using the override function in the UI wizard.
> > >
> > > -Ursprüngliche Nachricht-
> > > Von: Hean Seng 
> > > Gesendet: Mittwoch, 29. März 2023 17:20
> > > An: users@cloudstack.apache.org
> > > Betreff: Re: Compute offerings and Disk offerings
> > >
> > > Hi
> > >
> > > In Compute offering, you can choose if the compute offering is Local
> > > or Shared Storage .
> > >
> > > And you can also tag the storage with Tags, and define the tag in
> > > Compute offering.
> > >
> > > Like this, it will goes to the storage you wish to.
> > >
> > >
> > > On Wed, Mar 29, 2023 at 11:12 PM  wrote:
> > >
> > > > Hey all,
> > > >
> > > >
> > > >
> > > > does someone use local AND shared storage in Cloudstack? I am
> > > > using tags on storage level which I use in Disk offerings then to
> > > > assign them to shared or local storage. I use xcp-ng as hypervisor
> > > > and each host has shared or local storage, but not both.
> > > >
> > > > I created a default-compute-offering without mapping it directly
> > > > to a Disk offering vi api, because the UI wants to have a Disk
> > > > offering mapped. In the VM installation wizard I can choose
> > > > between local an shared storage and it works fine.
> > > >
> > > >
> > > >
> > > > But I run into some issues:
> > > >
> > > > 1.  I am unable to configure the default Disk offering which will
> > be
> > > > used when not overriding root disk offering
> > > >
> > > > It looks like CS is using the one with the lowest id in den database.
> > > >
> > > > 2.  When I want to migrate a running VM from local to shared
> > storage
> > > > (or
> > > > vice versa) via UI "Migrate instance to another host" I see the
> > > > other hosts, but there are shown as not suitable.
> > > > 3.  When I want to migrate a Volume from local to shared storage
> > (or
> > > > vice versa) via UI "Migrate volume" I do not see the other type of
> > > > storage even when enable the "Replace disk offering" button.
> > > >
> > > >
> > > >
> > > > Is my workflow just not correct, or do we have some kind of issue
> > > > here? I hope someone else already using this setup and can tell me
> > > > how it was configured. Thanks for help!
> > > >
> > > >
> > > >
> > > > Regards,
> > > >
> > > > Swen
> > > >
> > > >
> > >
> > > --
> > > Regards,
> > > Hean Seng
> > >
> > >
> > >
> >
> > --
> > Regards,
> > Hean Seng
> >
>
>
>

-- 
Regards,
Hean Seng


AW: Compute offerings and Disk offerings

2023-03-30 Thread me
Hey jordan,

thx for your reply! I am suing custom offerings, my problem is to deny the 
customer to change the Disk offering in the UI wizard when creating a new VM. 
Of course I can use the strictness, but then I am unable to migrate the volume 
from local to shared storage or vice versa later in time.

Regards,
Swen

-Ursprüngliche Nachricht-
Von: jordan j  
Gesendet: Donnerstag, 30. März 2023 08:15
An: users@cloudstack.apache.org
Betreff: Re: Compute offerings and Disk offerings

I have the same hardware setup and use the same configuration.
Not sure if one can run away from having multiple compute offerings for each 
storage type and server group.
The only thing that reduced the amount of compute offerings is to set both 
compute and disk offerings to be custom.
So actually you have just one offering per specific server/storage group with 
resources customizable by the users.

Regards,
Jordan

On Wed, Mar 29, 2023 at 6:47 PM Hean Seng  wrote:

> So what you actually wish to achieve ?
>
> On Wed, Mar 29, 2023 at 11:41 PM  wrote:
>
> > Hi Hean,
> >
> > sure, this works, but is not really flexible and you run into 
> > problems when using the override function in the UI wizard.
> >
> > -Ursprüngliche Nachricht-
> > Von: Hean Seng 
> > Gesendet: Mittwoch, 29. März 2023 17:20
> > An: users@cloudstack.apache.org
> > Betreff: Re: Compute offerings and Disk offerings
> >
> > Hi
> >
> > In Compute offering, you can choose if the compute offering is Local 
> > or Shared Storage .
> >
> > And you can also tag the storage with Tags, and define the tag in 
> > Compute offering.
> >
> > Like this, it will goes to the storage you wish to.
> >
> >
> > On Wed, Mar 29, 2023 at 11:12 PM  wrote:
> >
> > > Hey all,
> > >
> > >
> > >
> > > does someone use local AND shared storage in Cloudstack? I am 
> > > using tags on storage level which I use in Disk offerings then to 
> > > assign them to shared or local storage. I use xcp-ng as hypervisor 
> > > and each host has shared or local storage, but not both.
> > >
> > > I created a default-compute-offering without mapping it directly 
> > > to a Disk offering vi api, because the UI wants to have a Disk 
> > > offering mapped. In the VM installation wizard I can choose 
> > > between local an shared storage and it works fine.
> > >
> > >
> > >
> > > But I run into some issues:
> > >
> > > 1.  I am unable to configure the default Disk offering which will
> be
> > > used when not overriding root disk offering
> > >
> > > It looks like CS is using the one with the lowest id in den database.
> > >
> > > 2.  When I want to migrate a running VM from local to shared
> storage
> > > (or
> > > vice versa) via UI "Migrate instance to another host" I see the 
> > > other hosts, but there are shown as not suitable.
> > > 3.  When I want to migrate a Volume from local to shared storage
> (or
> > > vice versa) via UI "Migrate volume" I do not see the other type of 
> > > storage even when enable the "Replace disk offering" button.
> > >
> > >
> > >
> > > Is my workflow just not correct, or do we have some kind of issue 
> > > here? I hope someone else already using this setup and can tell me 
> > > how it was configured. Thanks for help!
> > >
> > >
> > >
> > > Regards,
> > >
> > > Swen
> > >
> > >
> >
> > --
> > Regards,
> > Hean Seng
> >
> >
> >
>
> --
> Regards,
> Hean Seng
>




Re: cloudstack-management not opening port 8250 after update from 4.17.0 to 4.18.0

2023-03-30 Thread Bram Gillemon
Hi,

so i restarted the upgrade procedure from the previous database.

the only 2 things missing in the database to upgrade without any issues where 
these procedures:

CREATE PROCEDURE `cloud`.`ADD_GUEST_OS_AND_HYPERVISOR_MAPPING` (
IN guest_os_category_id bigint(20) unsigned,
IN guest_os_display_name VARCHAR(255),
IN guest_os_hypervisor_hypervisor_type VARCHAR(32),
IN guest_os_hypervisor_hypervisor_version VARCHAR(32),
IN guest_os_hypervisor_guest_os_name VARCHAR(255)
)
BEGIN
INSERT  INTO cloud.guest_os (uuid, category_id, display_name, created)
SELECT  UUID(), guest_os_category_id, guest_os_display_name, now()
FROMDUAL
WHERE   not exists( SELECT  1
 FROMcloud.guest_os
 WHERE   cloud.guest_os.category_id = guest_os_category_id
   AND cloud.guest_os.display_name = 
guest_os_display_name)

;   INSERT  INTO cloud.guest_os_hypervisor (uuid, hypervisor_type, 
hypervisor_version, guest_os_name, guest_os_id, created)
 SELECT UUID(), guest_os_hypervisor_hypervisor_type, 
guest_os_hypervisor_hypervisor_version, guest_os_hypervisor_guest_os_name, 
guest_os.id, now()
 FROM   cloud.guest_os
 WHERE  guest_os.category_id = guest_os_category_id
   AND  guest_os.display_name = guest_os_display_name
   AND  NOT EXISTS (SELECT  1
  FROMcloud.guest_os_hypervisor as hypervisor
  WHERE   hypervisor_type = 
guest_os_hypervisor_hypervisor_type
AND hypervisor_version = 
guest_os_hypervisor_hypervisor_version
AND hypervisor.guest_os_id = guest_os.id
AND hypervisor.guest_os_name = 
guest_os_hypervisor_guest_os_name)
;END;

CREATE PROCEDURE `cloud`.`IDEMPOTENT_ADD_COLUMN` (
IN in_table_name VARCHAR(200)
, IN in_column_name VARCHAR(200)
, IN in_column_definition VARCHAR(1000)
)
BEGIN
DECLARE CONTINUE HANDLER FOR 1060 BEGIN END; SET @ddl = CONCAT('ALTER TABLE 
', in_table_name); SET @ddl = CONCAT(@ddl, ' ', 'ADD COLUMN') ; SET @ddl = 
CONCAT(@ddl, ' ', in_column_name); SET @ddl = CONCAT(@ddl, ' ', 
in_column_definition); PREPARE stmt FROM @ddl; EXECUTE stmt; DEALLOCATE PREPARE 
stmt; END;


After i ran these manually the upgrade went smooth, but i still can't reach the 
mgmt platform.

I uploaded the log files, this is the first attempt of the update.

https://upload.bugoff.be//first-attempt-management-server.log

this is the second attempt where i only added the stored procedures and ran the 
upgrade.

https://upload.bugoff.be//second-attempt-management-server.log


Kind Regards, 
Bram Gillemon

> On 30 Mar 2023, at 09:15, Wei ZHOU  wrote:
> 
> There might be something wrong during the upgrade, for example SQL errors.
> 
> Could you upload the full log ?
> 
> -Wei
> 
> On Wed, 29 Mar 2023 at 23:06, Bram Gillemon  wrote:
> 
>> Hi,
>> 
>> i'm having some problems updating met cloudstack setup, after the update
>> of the cloudstack-management i tried to start it and got some errors on
>> missing procedures,
>> 
>> After creating the necessary procedures by hand, and removing some mtu
>> fields, cloudstack started, at least i thought.
>> 
>> It's not listening on port 8250, and i can't seem to figure out why.
>> 
>> the logs mention it's listening, but ss -tpln doesn't show anything
>> listening on the port.
>> 
>> Attached is the management-server.log, the only "error" i see is the
>> commands.properties is missing.
>> 
>> I couldn't find any troubleshooting tips on to debug this, so i hope
>> somebody has some tips.
>> 
>> 
>> 
>> 
>> Kind Regards,
>> Bram
>> 
>> 
>> 
>> 
>> 
>> 
>> 



SV: SSVM - Getting "Unable to create deployment, no usable volumes found for the VM" after Cloudstack/Mysql/Ubuntu upgrade.

2023-03-30 Thread David Larsen
Hi Harikrishna

Yes i tried. But nothing changed. When I first stopped SSVM, everything was 
looking as normal in vmware. After it was deleted from vmware nothing happened. 

-Opprinnelig melding-
Fra: Harikrishna Patnala  
Sendt: torsdag 30. mars 2023 07:12
Til: users@cloudstack.apache.org
Emne: Re: SSVM - Getting "Unable to create deployment, no usable volumes found 
for the VM" after Cloudstack/Mysql/Ubuntu upgrade.

Hi David,

Did you try deleting the existing SSVM in CloudStack and let it recreate ?

Thanks,
Harikrishna

From: David Larsen 
Date: Thursday, 30 March 2023 at 1:31 AM
To: users@cloudstack.apache.org 
Subject: SSVM - Getting "Unable to create deployment, no usable volumes found 
for the VM" after Cloudstack/Mysql/Ubuntu upgrade.

Hi

Today i upgraded our Cloudstack (4.17.2 --> 4.18.0) , mysql (5.7--> 8) and  
ubuntu (18.04-->22.04) in production.
I thought I had tested it well in a lab... and of course  the only important 
thing I couldn't test went wrong!!
Secondary Storage VM...

At first it looked fine. I successfully upgraded console proxy system vm to 
4.18.0.
But when I tried to do the same with secondarystoragevm, stop it and wait for 
it to upgrade, Cloudstack  deleted the secondary systemvm from vmware and when 
it started the copy job it complained about a locked file on the vmware 
volume(?) I didn't find any locked files in the s-1177-VM vm directory on 
the vmware volume.

>From the error log bellow: "Unable to create deployment, no usable volumes 
>found for the VM: 1177"
Every five vmware volumes have about 50% free space, so enough space is not an 
issue...
In the case of locked file on vmware I have restarted vcenter and management 
agents on every host, so every locked files should be released.
No change.

Then I reverted to cloudstack 4.17.2 on ubuntu 22.04 on both management and 
mysql server hoping cloudstack would create the SSVM from scratch... it did 
not. Same error in the log and no S--VM created...

In Cloudstack dashboard it show  S-1177-VM as stopped, but in vmware, it's 
gone...
Everything else I have checked is running fine. Start/stop vm ++

Can it be any ubuntu 22.04 upgrade issues here?
Until I upgraded today, everything was running fine on ubuntu 18.04, Cloudstack 
4.17.2 and Mysql 5.7 Any new settings in db.properties regarding new mysql or 
ubuntu?



2023-03-29 20:58:18,866 INFO  [o.a.c.s.SecondaryStorageManagerImpl] 
(secstorage-1:ctx-0dd13ec7) (logid:c5bd94b0) Found a stopped secondary storage 
VM instance {id: "1177", name: "s-1177-VM", uuid: 
"602280ac-a809-4ac9-b229-ea43c0ac0145", type="SecondaryStorageVm"}, starting it.
2023-03-29 20:58:19,743 DEBUG [c.c.v.VirtualMachineManagerImpl] 
(Work-Job-Executor-93:ctx-c7b556c4 job-12132/job-12228 ctx-8a5aa0c5) 
(logid:4c5d9052) orchestrating VM start for 's-1177-VM' 
com.cloud.vm.VirtualMachineProfile$Param@b66cdd7d
 set to null
2023-03-29 20:58:19,753 DEBUG [c.c.c.CapacityManagerImpl] 
(Work-Job-Executor-93:ctx-c7b556c4 job-12132/job-12228 ctx-8a5aa0c5) 
(logid:4c5d9052) VM instance {id: "1177", name: "s-1177-VM", uuid: 
"602280ac-a809-4ac9-b229-ea43c0ac0145", type="SecondaryStorageVm"} state 
transited from [Stopped] to [Starting] with event [StartRequested]. VM's 
original host: null, new host: null, host before state transition: null
2023-03-29 20:58:19,753 DEBUG [c.c.v.VirtualMachineManagerImpl] 
(Work-Job-Executor-93:ctx-c7b556c4 job-12132/job-12228 ctx-8a5aa0c5) 
(logid:4c5d9052) Successfully transitioned to start state for VM instance {id: 
"1177", name: "s-1177-VM", uuid: "602280ac-a809-4ac9-b229-ea43c0ac0145", 
type="SecondaryStorageVm"} reservation id = 30f7264c-1598-45aa-a71e-b2b0f88a4519
2023-03-29 20:58:19,886 DEBUG [c.c.c.CapacityManagerImpl] 
(Work-Job-Executor-93:ctx-c7b556c4 job-12132/job-12228 ctx-8a5aa0c5) 
(logid:4c5d9052) VM instance {id: "1177", name: "s-1177-VM", uuid: 
"602280ac-a809-4ac9-b229-ea43c0ac0145", type="SecondaryStorageVm"} state 
transited from [Starting] to [Stopped] with event [OperationFailed]. VM's 
original host: null, new host: null, host before state transition: null
2023-03-29 20:58:19,887 WARN  [c.c.v.VirtualMachineManagerImpl] 
(Work-Job-Executor-93:ctx-c7b556c4 job-12132/job-12228 ctx-8a5aa0c5) 
(logid:4c5d9052) Unable to orchestrate start VM instance {id: "1177", name: 
"s-1177-VM", uuid: "602280ac-a809-4ac9-b229-ea43c0ac0145", 
type="SecondaryStorageVm"} due to [Unable to create deployment, no usable 
volumes found for the VM: 1177].
2023-03-29 20:58:19,943 WARN  [c.c.v.SystemVmLoadScanner] 
(secstorage-1:ctx-0dd13ec7) (logid:c5bd94b0) Unexpected exception Unable to 
orchestrate start VM instance {id: "1177", name: "s-1177-VM", uuid: 
"602280ac-a809-4ac9-b229-ea43c0ac0145", type="SecondaryStorageVm"} due to 
[Unable to create deployment, no usable volumes found for the VM: 1177].
com.cloud.utils.exception.CloudRuntimeException: Unable to orchestrate start VM 
instance {id: "1177", 

Re: [ANNOUNCE] New VP of Apache CloudStack - Rohit Yadav

2023-03-30 Thread Info Manager
Congratulations

On Thu, Mar 30, 2023, 06:37 Simon Weller  wrote:

> All,
>
> I'm very pleased to announce that the ASF board has accepted the nomination
> of Rohit Yadav to be the new VP of the Apache CloudStack project.
>
> It has been my pleasure to serve as the VP over the past year, and I'd like
> to thank the community for all of the support.
>
> Rohit, congratulations and I wish you the best as you take on this new
> role.
>
> -Simon
>


Re: cloudstack-management not opening port 8250 after update from 4.17.0 to 4.18.0

2023-03-30 Thread Wei ZHOU
There might be something wrong during the upgrade, for example SQL errors.

Could you upload the full log ?

-Wei

On Wed, 29 Mar 2023 at 23:06, Bram Gillemon  wrote:

> Hi,
>
> i'm having some problems updating met cloudstack setup, after the update
> of the cloudstack-management i tried to start it and got some errors on
> missing procedures,
>
> After creating the necessary procedures by hand, and removing some mtu
> fields, cloudstack started, at least i thought.
>
> It's not listening on port 8250, and i can't seem to figure out why.
>
> the logs mention it's listening, but ss -tpln doesn't show anything
> listening on the port.
>
> Attached is the management-server.log, the only "error" i see is the
> commands.properties is missing.
>
> I couldn't find any troubleshooting tips on to debug this, so i hope
> somebody has some tips.
>
>
>
>
> Kind Regards,
> Bram
>
>
>
>
>
>
>


SV: SSVM - Getting "Unable to create deployment, no usable volumes found for the VM" after Cloudstack/Mysql/Ubuntu upgrade.

2023-03-30 Thread David Larsen
Hi Jithin

After i sent this email yesterday, I reverted back to ubuntu 18.04/cloudstack 
4.17.2/mysql 5.7.41 from snapshots. ☹
After about five minutes, the S-1177-VM was created successfully...(?) hmm.
The only problem with the S-1177-VM now is Agent State (down). I have tried to 
restart it several times. I have not yet restarted management server.

When I checked primary and secondary volumes with 4.18.0, all volumes was 
present in cloudstack. 
Which log can I check to see if the volume allocation worked fine for SSVM?



-Opprinnelig melding-
Fra: Jithin Raju  
Sendt: torsdag 30. mars 2023 05:39
Til: users@cloudstack.apache.org
Emne: Re: SSVM - Getting "Unable to create deployment, no usable volumes found 
for the VM" after Cloudstack/Mysql/Ubuntu upgrade.

Hi David,

Can you check in the logs if the volume allocation worked fine for SSVM? Is 
there a record present in the volumes table?

-Jithin

From: David Larsen 
Date: Thursday, 30 March 2023 at 1:31 AM
To: users@cloudstack.apache.org 
Subject: SSVM - Getting "Unable to create deployment, no usable volumes found 
for the VM" after Cloudstack/Mysql/Ubuntu upgrade.

Hi

Today i upgraded our Cloudstack (4.17.2 --> 4.18.0) , mysql (5.7--> 8) and  
ubuntu (18.04-->22.04) in production.
I thought I had tested it well in a lab... and of course  the only important 
thing I couldn't test went wrong!!
Secondary Storage VM...

At first it looked fine. I successfully upgraded console proxy system vm to 
4.18.0.
But when I tried to do the same with secondarystoragevm, stop it and wait for 
it to upgrade, Cloudstack  deleted the secondary systemvm from vmware and when 
it started the copy job it complained about a locked file on the vmware 
volume(?) I didn't find any locked files in the s-1177-VM vm directory on 
the vmware volume.

From the error log bellow: "Unable to create deployment, no usable volumes 
found for the VM: 1177"
Every five vmware volumes have about 50% free space, so enough space is not an 
issue...
In the case of locked file on vmware I have restarted vcenter and management 
agents on every host, so every locked files should be released.
No change.

Then I reverted to cloudstack 4.17.2 on ubuntu 22.04 on both management and 
mysql server hoping cloudstack would create the SSVM from scratch... it did 
not. Same error in the log and no S--VM created...

In Cloudstack dashboard it show  S-1177-VM as stopped, but in vmware, it's 
gone...
Everything else I have checked is running fine. Start/stop vm ++

Can it be any ubuntu 22.04 upgrade issues here?
Until I upgraded today, everything was running fine on ubuntu 18.04, Cloudstack 
4.17.2 and Mysql 5.7 Any new settings in db.properties regarding new mysql or 
ubuntu?



2023-03-29 20:58:18,866 INFO  [o.a.c.s.SecondaryStorageManagerImpl] 
(secstorage-1:ctx-0dd13ec7) (logid:c5bd94b0) Found a stopped secondary storage 
VM instance {id: "1177", name: "s-1177-VM", uuid: 
"602280ac-a809-4ac9-b229-ea43c0ac0145", type="SecondaryStorageVm"}, starting it.
2023-03-29 20:58:19,743 DEBUG [c.c.v.VirtualMachineManagerImpl] 
(Work-Job-Executor-93:ctx-c7b556c4 job-12132/job-12228 ctx-8a5aa0c5) 
(logid:4c5d9052) orchestrating VM start for 's-1177-VM' 
com.cloud.vm.VirtualMachineProfile$Param@b66cdd7d
 set to null
2023-03-29 20:58:19,753 DEBUG [c.c.c.CapacityManagerImpl] 
(Work-Job-Executor-93:ctx-c7b556c4 job-12132/job-12228 ctx-8a5aa0c5) 
(logid:4c5d9052) VM instance {id: "1177", name: "s-1177-VM", uuid: 
"602280ac-a809-4ac9-b229-ea43c0ac0145", type="SecondaryStorageVm"} state 
transited from [Stopped] to [Starting] with event [StartRequested]. VM's 
original host: null, new host: null, host before state transition: null
2023-03-29 20:58:19,753 DEBUG [c.c.v.VirtualMachineManagerImpl] 
(Work-Job-Executor-93:ctx-c7b556c4 job-12132/job-12228 ctx-8a5aa0c5) 
(logid:4c5d9052) Successfully transitioned to start state for VM instance {id: 
"1177", name: "s-1177-VM", uuid: "602280ac-a809-4ac9-b229-ea43c0ac0145", 
type="SecondaryStorageVm"} reservation id = 30f7264c-1598-45aa-a71e-b2b0f88a4519
2023-03-29 20:58:19,886 DEBUG [c.c.c.CapacityManagerImpl] 
(Work-Job-Executor-93:ctx-c7b556c4 job-12132/job-12228 ctx-8a5aa0c5) 
(logid:4c5d9052) VM instance {id: "1177", name: "s-1177-VM", uuid: 
"602280ac-a809-4ac9-b229-ea43c0ac0145", type="SecondaryStorageVm"} state 
transited from [Starting] to [Stopped] with event [OperationFailed]. VM's 
original host: null, new host: null, host before state transition: null
2023-03-29 20:58:19,887 WARN  [c.c.v.VirtualMachineManagerImpl] 
(Work-Job-Executor-93:ctx-c7b556c4 job-12132/job-12228 ctx-8a5aa0c5) 
(logid:4c5d9052) Unable to orchestrate start VM instance {id: "1177", name: 
"s-1177-VM", uuid: "602280ac-a809-4ac9-b229-ea43c0ac0145", 
type="SecondaryStorageVm"} due to [Unable to create deployment, no usable 
volumes found for the VM: 1177].
2023-03-29 20:58:19,943 WARN  [c.c.v.SystemVmLoadScanner] 

Re: cloudstack-management not opening port 8250 after update from 4.17.0 to 4.18.0

2023-03-30 Thread jordan j
Hey Bram,

There is no log attached (attachments are unavailable in the mail list).
port 8250 is required for the system VMs to contact to the management
server so i dont think it is required for the cloudstack server to be
running.
I assume there is some other underlying issue that affects the server.

Regards,
Jordan

On Thu, Mar 30, 2023 at 12:06 AM Bram Gillemon  wrote:

> Hi,
>
> i'm having some problems updating met cloudstack setup, after the update
> of the cloudstack-management i tried to start it and got some errors on
> missing procedures,
>
> After creating the necessary procedures by hand, and removing some mtu
> fields, cloudstack started, at least i thought.
>
> It's not listening on port 8250, and i can't seem to figure out why.
>
> the logs mention it's listening, but ss -tpln doesn't show anything
> listening on the port.
>
> Attached is the management-server.log, the only "error" i see is the
> commands.properties is missing.
>
> I couldn't find any troubleshooting tips on to debug this, so i hope
> somebody has some tips.
>
>
>
>
> Kind Regards,
> Bram
>
>
>
>
>
>
>


Re: [ANNOUNCE] New VP of Apache CloudStack - Rohit Yadav

2023-03-30 Thread Sina Kashipazha
   Congratulations Rohit!And thank you Simon.Best regards,Sina On Thu, Mar 30, 2023 at 08:00, Suresh Kumar Anaparti  wrote:  Congratulations Rohit, All the best!and thank you Simon...Regards,SureshOn Thu, Mar 30, 2023 at 9:07 AM Simon Weller  wrote:>> All,>> I'm very pleased to announce that the ASF board has accepted the nomination> of Rohit Yadav to be the new VP of the Apache CloudStack project.>> It has been my pleasure to serve as the VP over the past year, and I'd like> to thank the community for all of the support.>> Rohit, congratulations and I wish you the best as you take on this new role.>> -Simon




signature.asc
Description: OpenPGP digital signature


Re: Compute offerings and Disk offerings

2023-03-30 Thread jordan j
I have the same hardware setup and use the same configuration.
Not sure if one can run away from having multiple compute offerings for
each storage type and server group.
The only thing that reduced the amount of compute offerings is to set both
compute and disk offerings to be custom.
So actually you have just one offering per specific server/storage group
with resources customizable by the users.

Regards,
Jordan

On Wed, Mar 29, 2023 at 6:47 PM Hean Seng  wrote:

> So what you actually wish to achieve ?
>
> On Wed, Mar 29, 2023 at 11:41 PM  wrote:
>
> > Hi Hean,
> >
> > sure, this works, but is not really flexible and you run into problems
> > when using the override function in the UI wizard.
> >
> > -Ursprüngliche Nachricht-
> > Von: Hean Seng 
> > Gesendet: Mittwoch, 29. März 2023 17:20
> > An: users@cloudstack.apache.org
> > Betreff: Re: Compute offerings and Disk offerings
> >
> > Hi
> >
> > In Compute offering, you can choose if the compute offering is Local or
> > Shared Storage .
> >
> > And you can also tag the storage with Tags, and define the tag in Compute
> > offering.
> >
> > Like this, it will goes to the storage you wish to.
> >
> >
> > On Wed, Mar 29, 2023 at 11:12 PM  wrote:
> >
> > > Hey all,
> > >
> > >
> > >
> > > does someone use local AND shared storage in Cloudstack? I am using
> > > tags on storage level which I use in Disk offerings then to assign
> > > them to shared or local storage. I use xcp-ng as hypervisor and each
> > > host has shared or local storage, but not both.
> > >
> > > I created a default-compute-offering without mapping it directly to a
> > > Disk offering vi api, because the UI wants to have a Disk offering
> > > mapped. In the VM installation wizard I can choose between local an
> > > shared storage and it works fine.
> > >
> > >
> > >
> > > But I run into some issues:
> > >
> > > 1.  I am unable to configure the default Disk offering which will
> be
> > > used when not overriding root disk offering
> > >
> > > It looks like CS is using the one with the lowest id in den database.
> > >
> > > 2.  When I want to migrate a running VM from local to shared
> storage
> > > (or
> > > vice versa) via UI "Migrate instance to another host" I see the other
> > > hosts, but there are shown as not suitable.
> > > 3.  When I want to migrate a Volume from local to shared storage
> (or
> > > vice versa) via UI "Migrate volume" I do not see the other type of
> > > storage even when enable the "Replace disk offering" button.
> > >
> > >
> > >
> > > Is my workflow just not correct, or do we have some kind of issue
> > > here? I hope someone else already using this setup and can tell me how
> > > it was configured. Thanks for help!
> > >
> > >
> > >
> > > Regards,
> > >
> > > Swen
> > >
> > >
> >
> > --
> > Regards,
> > Hean Seng
> >
> >
> >
>
> --
> Regards,
> Hean Seng
>


Re: [ANNOUNCE] New VP of Apache CloudStack - Rohit Yadav

2023-03-30 Thread Suresh Kumar Anaparti
Congratulations Rohit, All the best!

and thank you Simon...

Regards,
Suresh

On Thu, Mar 30, 2023 at 9:07 AM Simon Weller  wrote:
>
> All,
>
> I'm very pleased to announce that the ASF board has accepted the nomination
> of Rohit Yadav to be the new VP of the Apache CloudStack project.
>
> It has been my pleasure to serve as the VP over the past year, and I'd like
> to thank the community for all of the support.
>
> Rohit, congratulations and I wish you the best as you take on this new role.
>
> -Simon