Re: 回复: CloudStack+xenserver删除VM,主存储上的vhd磁盘清除不了
是的,这个会保存下来,如果你再创建,就还会用到这个基本模版。但不会是无限制的浪费空间。从整体来看这个空间占用是可接受的。 2013-05-08 刘宇超 Richard Liu 发件人: 雷帆 发送时间: 2013-05-08 10:32:22 收件人: users-cn@cloudstack.apache.org 抄送: 主题: 回复: CloudStack+xenserver删除VM,主存储上的vhd磁盘清除不了 估计是删掉模板就行了 因为首次从模板创建虚拟机的时候会把模板复制到主存储上 雷帆 电话 0510-81122000-1036 www.coolcloudz.com 无锡新区太湖国际科技园菱湖大道200号中国微纳传感网国际创新园B幢三楼 214135 200 Linghu Blvd.,Bldg.B.3/F,Taihu lnt’l Science and Technology Park, Wuxi New District, Jiangsu 214135, PRC ... Please see the attached hyperlink for an important electronic communications disclaimer / 请点击以下链接阅读电子邮件声明 http://www.coolcloudz.com/emailstatement/ 发件人: 王耀锋 发送时间: 2013-05-08 10:25 收件人: stack cload 主题: CloudStack+xenserver删除VM,主存储上的vhd磁盘清除不了 在CloudStack+xenserver环境中,使用平台一段时间后,发现主存储的空间只增加,不减。上去看里面很多vhd磁盘文件,包括之前删除掉的虚拟机磁盘文件。 做过一些实验,发现从模板创建出来的VM都会生成三个vhd文件,(个人觉得这是使用差异磁盘方式)一个基磁盘,一个子磁盘,还有个就不清楚。 然后,再使用同一模板第二次创建VM,就只有一个vhd文件生成,这是子磁盘,同时还是和前面的基磁盘相关联。 能理解这样的好处。 但是问题出现了,当我把这两个模版创建的VM都删除,发现只删除了两个VM的子磁盘,而基磁盘和另外一个vhd文件并没删除。 就这样一直累积下来,主存储磁盘空间浪费不少。 这个问题怎么解决呢?
RE: 回复: CloudStack+xenserver删除VM,主存储上的vhd磁盘清除不了
主存储上得模版会被GC掉得,如果storage.template.cleanup.enabled设置为true得话。 -Original Message- From: 王耀锋 [mailto:wilc...@hotmail.com] Sent: Tuesday, May 07, 2013 7:50 PM To: users-cn@cloudstack.apache.org Subject: RE: 回复: CloudStack+xenserver删除VM,主存储上的vhd磁盘 清除不了 一般一个模版里面都至少是一个操作系统,然后主存储里保存下来的磁 盘大小也上1G大小了,如果我创建的模版和相应的VM都删除了,那 这个文件留在主存储里就完全成为了一个垃圾文件了,这样处理感觉还 是不太合理。 Date: Wed, 8 May 2013 10:45:00 +0800 From: tanthalas...@hotmail.com To: users-cn@cloudstack.apache.org Subject: Re: 回复: CloudStack+xenserver删除VM,主存储上的vhd磁盘 清除不了 是的,这个会保存下来,如果你再创建,就还会用到这个基本模版。但 不会是无限制的浪费空间。从整体来看这个空间占用是可接受的。 2013-05-08 刘宇超 Richard Liu 发件人: 雷帆 发送时间: 2013-05-08 10:32:22 收件人: users-cn@cloudstack.apache.org 抄送: 主题: 回复: CloudStack+xenserver删除VM,主存储上的vhd磁盘清除不了 估计是删掉模板就行了 因为首次从模板创建虚拟机的时候会把模板复制到主存储上 雷帆 电话 0510-81122000-1036 www.coolcloudz.com 无锡新区太湖国际科技园菱湖大道200号中国微纳传感网国际创新园B 幢三楼 214135 200 Linghu Blvd.,Bldg.B.3/F,Taihu lnt’l Science and Technology Park, Wuxi New District, Jiangsu 214135, PRC ... Please see the attached hyperlink for an important electronic communications disclaimer / 请点击以下链接阅读电子邮件声明 http://www.coolcloudz.com/emailstatement/ 发件人: 王耀锋 发送时间: 2013-05-08 10:25 收件人: stack cload 主题: CloudStack+xenserver删除VM,主存储上的vhd磁盘清除不了 在CloudStack+xenserver环境中,使用平台一段时间后,发现主存储的 空间只增加,不减。上去看里面很多vhd磁盘文件,包括之前删除掉的 虚拟机磁盘文件。做过一些实验,发现从模板创建出来的VM都会生 成三个vhd文件,(个人觉得这是使用差异磁盘方式)一个基磁盘,一 个子磁盘,还有个就不清楚。然后,再使用同一模板第二次创建VM, 就只有一个vhd文件生成,这是子磁盘,同时还是和前面的基磁盘相关 联。 能理解这样的好处。 但是问题出现了,当我把这两个模版创建 的VM都删除,发现只删除了两个VM的子磁盘,而基磁盘和另外一个 vhd文件并没删除。 就这样一直累积下来,主存储磁盘空间浪费不少。 这个问题怎么解决呢?
回复: RE: CloudStack+xenserver删除VM,主存储上的vhd磁盘清除不了
如果被删掉,那通过这个模板创建的vm会怎样? zanghongtu2006 发件人: Edison Su 发送时间: 2013-05-08 10:56 收件人: users-cn@cloudstack.apache.org 主题: RE: 回复: CloudStack+xenserver删除VM,主存储上的vhd磁盘清除不了 主存储上得模版会被GC掉得,如果storage.template.cleanup.enabled设置为true得话。 -Original Message- From: 王耀锋 [mailto:wilc...@hotmail.com] Sent: Tuesday, May 07, 2013 7:50 PM To: users-cn@cloudstack.apache.org Subject: RE: 回复: CloudStack+xenserver删除VM,主存储上的vhd磁盘 清除不了 一般一个模版里面都至少是一个操作系统,然后主存储里保存下来的磁 盘大小也上1G大小了,如果我创建的模版和相应的VM都删除了,那 这个文件留在主存储里就完全成为了一个垃圾文件了,这样处理感觉还 是不太合理。 Date: Wed, 8 May 2013 10:45:00 +0800 From: tanthalas...@hotmail.com To: users-cn@cloudstack.apache.org Subject: Re: 回复: CloudStack+xenserver删除VM,主存储上的vhd磁盘 清除不了 是的,这个会保存下来,如果你再创建,就还会用到这个基本模版。但 不会是无限制的浪费空间。从整体来看这个空间占用是可接受的。 2013-05-08 刘宇超 Richard Liu 发件人: 雷帆 发送时间: 2013-05-08 10:32:22 收件人: users-cn@cloudstack.apache.org 抄送: 主题: 回复: CloudStack+xenserver删除VM,主存储上的vhd磁盘清除不了 估计是删掉模板就行了 因为首次从模板创建虚拟机的时候会把模板复制到主存储上 雷帆 电话 0510-81122000-1036 www.coolcloudz.com 无锡新区太湖国际科技园菱湖大道200号中国微纳传感网国际创新园B 幢三楼 214135 200 Linghu Blvd.,Bldg.B.3/F,Taihu lnt’l Science and Technology Park, Wuxi New District, Jiangsu 214135, PRC ... Please see the attached hyperlink for an important electronic communications disclaimer / 请点击以下链接阅读电子邮件声明 http://www.coolcloudz.com/emailstatement/ 发件人: 王耀锋 发送时间: 2013-05-08 10:25 收件人: stack cload 主题: CloudStack+xenserver删除VM,主存储上的vhd磁盘清除不了 在CloudStack+xenserver环境中,使用平台一段时间后,发现主存储的 空间只增加,不减。上去看里面很多vhd磁盘文件,包括之前删除掉的 虚拟机磁盘文件。做过一些实验,发现从模板创建出来的VM都会生 成三个vhd文件,(个人觉得这是使用差异磁盘方式)一个基磁盘,一 个子磁盘,还有个就不清楚。然后,再使用同一模板第二次创建VM, 就只有一个vhd文件生成,这是子磁盘,同时还是和前面的基磁盘相关 联。 能理解这样的好处。 但是问题出现了,当我把这两个模版创建 的VM都删除,发现只删除了两个VM的子磁盘,而基磁盘和另外一个 vhd文件并没删除。 就这样一直累积下来,主存储磁盘空间浪费不少。 这个问题怎么解决呢?
RE: CloudStack+xenserver删除VM,主存储上的vhd磁盘清除不了
哦,谢谢。还有个问题就是前面问题中的,一个模版创建VM,会有三个vhd文件,如果看作是差异磁盘,一个是基磁盘,一个是子磁盘, 还有个vhd文件是干嘛的? From: edison...@citrix.com To: users-cn@cloudstack.apache.org; zanghongtu2...@gmail.com Date: Tue, 7 May 2013 20:09:45 -0700 Subject: RE: RE: CloudStack+xenserver删除VM,主存储上的vhd磁盘清除不了 被删掉得前提条件是所有从这个模版上创建得vm都已经被杀掉了。Mgt server里面有一个周期性得线程,定期回收没有VM使用得模版。 以下几个选线用来控制这个线程得运行: storage.cleanup.enabled storage.template.cleanup.enabled storage.cleanup.interval -Original Message- From: zanghongtu2006 [mailto:zanghongtu2...@gmail.com] Sent: Tuesday, May 07, 2013 7:59 PM To: users-cn Subject: 回复: RE: CloudStack+xenserver删除VM,主存储上的vhd磁盘 清除不了 如果被删掉,那通过这个模板创建的vm会怎样? zanghongtu2006 发件人: Edison Su 发送时间: 2013-05-08 10:56 收件人: users-cn@cloudstack.apache.org 主题: RE: 回复: CloudStack+xenserver删除VM,主存储上的vhd磁盘清 除不了 主存储上得模版会被GC掉得,如果storage.template.cleanup.enabled设 置为true得话。 -Original Message- From: 王耀锋 [mailto:wilc...@hotmail.com] Sent: Tuesday, May 07, 2013 7:50 PM To: users-cn@cloudstack.apache.org Subject: RE: 回复: CloudStack+xenserver删除VM,主存储上的vhd磁盘 清除不了 一般一个模版里面都至少是一个操作系统,然后主存储里保存下来的 磁 盘大小也上1G大小了,如果我创建的模版和相应的VM都删除了,那 这个文件留在主存储里就完全成为了一个垃圾文件了,这样处理感觉 还 是不太合理。 Date: Wed, 8 May 2013 10:45:00 +0800 From: tanthalas...@hotmail.com To: users-cn@cloudstack.apache.org Subject: Re: 回复: CloudStack+xenserver删除VM,主存储上的vhd磁盘 清除不了 是的,这个会保存下来,如果你再创建,就还会用到这个基本模版。 但 不会是无限制的浪费空间。从整体来看这个空间占用是可接受的。 2013-05-08 刘宇超 Richard Liu 发件人: 雷帆 发送时间: 2013-05-08 10:32:22 收件人: users-cn@cloudstack.apache.org 抄送: 主题: 回复: CloudStack+xenserver删除VM,主存储上的vhd磁盘清除不了 估计是删掉模板就行了 因为首次从模板创建虚拟机的时候会把模板复制到主存储上 雷帆 电话 0510-81122000-1036 www.coolcloudz.com 无锡新区太湖国际科技园菱湖大道200号中国微纳传感网国际创新园B 幢三楼 214135 200 Linghu Blvd.,Bldg.B.3/F,Taihu lnt’l Science and Technology Park, Wuxi New District, Jiangsu 214135, PRC ... Please see the attached hyperlink for an important electronic communications disclaimer / 请点击以下链接阅读电子邮件声明 http://www.coolcloudz.com/emailstatement/ 发件人: 王耀锋 发送时间: 2013-05-08 10:25 收件人: stack cload 主题: CloudStack+xenserver删除VM,主存储上的vhd磁盘清除不了 在CloudStack+xenserver环境中,使用平台一段时间后,发现主存储的 空间只增加,不减。上去看里面很多vhd磁盘文件,包括之前删除掉 的 虚拟机磁盘文件。做过一些实验,发现从模板创建出来的VM都会 生 成三个vhd文件,(个人觉得这是使用差异磁盘方式)一个基磁盘, 一 个子磁盘,还有个就不清楚。然后,再使用同一模板第二次创建VM, 就只有一个vhd文件生成,这是子磁盘,同时还是和前面的基磁盘相 关 联。 能理解这样的好处。 但是问题出现了,当我把这两个模版创 建 的VM都删除,发现只删除了两个VM的子磁盘,而基磁盘和另外一 个 vhd文件并没删除。 就这样一直累积下来,主存储磁盘空间浪费不少。 这个问题怎么解决呢?
mvn3 -P deps Error
I was trying to install cloudstack 4.0.1 and following the error I see while mvn3 -P deps [INFO] Scanning for projects... Downloading: http://repo.maven.apache.org/maven2/org/apache/apache/11/apache-11.pom [ERROR] The build could not read 1 project - [Help 1] [ERROR] [ERROR] The project org.apache.cloudstack:cloudstack:4.0.1-incubating-SNAPSHOT (/home/pe1/Apache-Cloudstack/apache-cloudstack-4.0.1-incubating-src/pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not transfer artifact org.apache:apache:pom:11 from/ to central (http://repo.maven.apache.org/maven2): repo.maven.apache.org and 'parent.relativePath' points at wrong local POM @ line 23, column 11: Unknown host repo.maven.apache.org - [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException repo.maven.apache.org appears to be down. nslookup return error repo.maven.apache.org Thanks and Regards, Karthik Kothuri
Re: mvn3 -P deps Error
On Tue, May 07, 2013 at 05:45:58PM +0530, Karthik Kothuri wrote: [ERROR] Non-resolvable parent POM: Could not transfer artifact org.apache:apache:pom:11 from/ to central (http://repo.maven.apache.org/maven2): repo.maven.apache.org and 'parent.relativePath' points at wrong local POM @ line 23, column 11: Unknown host repo.maven.apache.org - [Help 2] The key error is the line above. Either the repo.maven.apache.org site was having problems, or you had network connectivity problems. -chip
CS4 tuning/optimization for high rate VM operations
Hello Are there any recommendations on tuning CS configuration for high rate VM operations and big setups? I have CS 4.1.0 with 2 Xenserver hosts in the cluster. When I try to create 50 VMs for 50 accounts using cloudmonkey async requests my installation after some operations end up with stuck management-server - seems like it's working (logs are filling with new rows), but in the same time it's doing nothing - no VM creations, UI acting weird, API returns internal server error, routers stuck in starting state, etc. Also I can't restart it in normal way - only with killing the java process. When I add delay for a minute between VMs deployment CS is doing much better and all routers + VMs are created successfully. Any advice? -- Best Regards, Nikita Gubenko
RE: Problem creating VMware cluster after building 4.0.2 from source
Ahmad, If not from source, how else can I install with nonoss? Seems like we've tried everything we could find, including a Jenkins package, which gave us different errors. As of right now, we are suspecting that something is wrong during the build process since we are getting the same results every time. We will try using ant instead of mvn3. From: Ahmad Emneina [mailto:aemne...@gmail.com] Sent: Tuesday, May 7, 2013 10:58 AM To: Stanley Kaytovich; Kelven Yang; vijayendra.bhamidip...@citrix.com Cc: users@cloudstack.apache.org Subject: Re: Problem creating VMware cluster after building 4.0.2 from source Sounds good, I havent built and deployed from source in a very long time, so i wont be much help... but I know who has. Looping in Vijay and Kelven. On Tue, May 7, 2013 at 6:18 AM, Stanley Kaytovich stanl...@qwertyc.commailto:stanl...@qwertyc.com wrote: Ahmad, Thank you. I sent a copy to the dev list as well. In the meantime, trying to perform the install on Debian following the same article and see if we get the same results. -Original Message- From: Ahmad Emneina [mailto:aemne...@gmail.commailto:aemne...@gmail.com] Sent: Monday, May 6, 2013 5:36 PM To: Cloudstack users mailing list Subject: Re: Problem creating VMware cluster after building 4.0.2 from source Hey Stanley, you might want to ping the dev list for this as well. I'm sure people are more familiar with building cloudstack on that ml. On Mon, May 6, 2013 at 2:16 PM, Stanley Kaytovich stanl...@qwertyc.commailto:stanl...@qwertyc.comwrote: Hello, I followed the documentation on http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/I nstallation_Guide/index.html, and have tried this several times with no luck. Package: 4.0.2 OS: Ubuntu 12.04 Below are the steps I took to perform the build as outlined in the above article: Manually downloaded VMware-*.jar files into deps folder deps/install-non-oss.sh mvn -P deps -Dnonoss (fails looking for vmware-base) cd ../vmware-base mvn install (completes) mvn -P deps -Dnonoss (completes) mvn install -Dnonoss (completes) build packages and install debs cloudstack UI works, but we cannot add the VMware cluster. We receive an error Could not find corresponding resource manager for VMware Manually moved all the vmware-*.jar files into WEB-INF\lib checked components.xml and there were no references to VMWare nonoss added VMWare nonoss parameters manually (from: http://markmail.org/message/5eqasgpjxy2oqsoc#query:+page:1+mid:dvf3aqb syl4kphrm+state:resultsand also referenced https://cwiki.apache.org/CLOUDSTACK/building.data/4.0-nonoss.patch ) Now can't start cloud-management with the com.cloud.utils.exception.CloudRuntimeException: Unable to find class: com.cloud.hypervisor.vmware.VmwareServerDiscoverer Additional info: Once the lines added into components.xml are commented out, the service starts but we are back to the original error Could not find corresponding resource manager for VMware Any guidance on this is much appreciated!
Re: Problem creating VMware cluster after building 4.0.2 from source - Found word(s) list error in the Text body
Stanley: Also - make sure you have adjusted debian control files to include the nonoss jars - otherwise even if it builds successfully, it won't work when deployed because the jars won't be present. --David On Tue, May 7, 2013 at 1:20 PM, Vijayendra Bhamidipati vijayendra.bhamidip...@citrix.com wrote: Hi Stanley, To build nonoss from source, please try the instructions given in this link to build the nonoss components - https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+on+master+branch You need to just take care to ensure that you extract the vim* jar files (for vmware's vi sdk) after you download the websdk 510 file, and copy them over to your deps directory. Typically, for non-oss, this is what you will need to do: find / | grep -I systemvm.iso; rm all the files found (you needn't do this everytime - I do this whenever I deploy a fresh cloudstack testbed). cd deps; wget and rename all jar files as directed; download the vi sdk jar files, and extract the jars from them; rename as directed; ./install-non-oss.sh cd ../ mvn clean; mvn install -P systemvm -Dnonoss -DskipTests; mvn install -Dnonoss -DskipTests If you have a mysql root password set, cp utils/conf/db.properties utils/conf/db.properties.override; edit db.properties.override to set db.root.password=your_mysql_root_password mvn -e -P developer -pl developer -Ddeploydb; mvn -pl :cloud-client-ui jetty:run -Dnonoss The -DskipTests should not be used if you have edited any part of the code, for it skips running mockito tests. Regards, Vijay -Original Message- From: Stanley Kaytovich [mailto:stanl...@qwertyc.com] Sent: Tuesday, May 07, 2013 8:03 AM To: aemne...@gmail.com; Kelven Yang; Vijayendra Bhamidipati Cc: users@cloudstack.apache.org Subject: RE: Problem creating VMware cluster after building 4.0.2 from source - Found word(s) list error in the Text body Ahmad, If not from source, how else can I install with nonoss? Seems like we've tried everything we could find, including a Jenkins package, which gave us different errors. As of right now, we are suspecting that something is wrong during the build process since we are getting the same results every time. We will try using ant instead of mvn3. From: Ahmad Emneina [mailto:aemne...@gmail.com] Sent: Tuesday, May 7, 2013 10:58 AM To: Stanley Kaytovich; Kelven Yang; vijayendra.bhamidip...@citrix.com Cc: users@cloudstack.apache.org Subject: Re: Problem creating VMware cluster after building 4.0.2 from source Sounds good, I havent built and deployed from source in a very long time, so i wont be much help... but I know who has. Looping in Vijay and Kelven. On Tue, May 7, 2013 at 6:18 AM, Stanley Kaytovich stanl...@qwertyc.commailto:stanl...@qwertyc.com wrote: Ahmad, Thank you. I sent a copy to the dev list as well. In the meantime, trying to perform the install on Debian following the same article and see if we get the same results. -Original Message- From: Ahmad Emneina [mailto:aemne...@gmail.commailto:aemne...@gmail.com] Sent: Monday, May 6, 2013 5:36 PM To: Cloudstack users mailing list Subject: Re: Problem creating VMware cluster after building 4.0.2 from source Hey Stanley, you might want to ping the dev list for this as well. I'm sure people are more familiar with building cloudstack on that ml. On Mon, May 6, 2013 at 2:16 PM, Stanley Kaytovich stanl...@qwertyc.commailto:stanl...@qwertyc.comwrote: Hello, I followed the documentation on http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/I nstallation_Guide/index.html, and have tried this several times with no luck. Package: 4.0.2 OS: Ubuntu 12.04 Below are the steps I took to perform the build as outlined in the above article: Manually downloaded VMware-*.jar files into deps folder deps/install-non-oss.sh mvn -P deps -Dnonoss (fails looking for vmware-base) cd ../vmware-base mvn install (completes) mvn -P deps -Dnonoss (completes) mvn install -Dnonoss (completes) build packages and install debs cloudstack UI works, but we cannot add the VMware cluster. We receive an error Could not find corresponding resource manager for VMware Manually moved all the vmware-*.jar files into WEB-INF\lib checked components.xml and there were no references to VMWare nonoss added VMWare nonoss parameters manually (from: http://markmail.org/message/5eqasgpjxy2oqsoc#query:+page:1+mid:dvf3aqb syl4kphrm+state:resultsand also referenced https://cwiki.apache.org/CLOUDSTACK/building.data/4.0-nonoss.patch ) Now can't start cloud-management with the com.cloud.utils.exception.CloudRuntimeException: Unable to find class: com.cloud.hypervisor.vmware.VmwareServerDiscoverer Additional info: Once the lines added into components.xml are commented out, the service starts but we are back to the original error Could not find corresponding resource manager for VMware Any guidance on this is much
RE: Problem creating VMware cluster after building 4.0.2 from source - Found word(s) list error in the Text body
Vijay, Thank you, we will give this a go and update the thread. Thanks! -Original Message- From: Vijayendra Bhamidipati [mailto:vijayendra.bhamidip...@citrix.com] Sent: Tuesday, May 7, 2013 1:21 PM To: users@cloudstack.apache.org; aemne...@gmail.com; Kelven Yang Subject: RE: Problem creating VMware cluster after building 4.0.2 from source - Found word(s) list error in the Text body Hi Stanley, To build nonoss from source, please try the instructions given in this link to build the nonoss components - https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+on+master+branch You need to just take care to ensure that you extract the vim* jar files (for vmware's vi sdk) after you download the websdk 510 file, and copy them over to your deps directory. Typically, for non-oss, this is what you will need to do: find / | grep -I systemvm.iso; rm all the files found (you needn't do this everytime - I do this whenever I deploy a fresh cloudstack testbed). cd deps; wget and rename all jar files as directed; download the vi sdk jar files, and extract the jars from them; rename as directed; ./install-non-oss.sh cd ../ mvn clean; mvn install -P systemvm -Dnonoss -DskipTests; mvn install -Dnonoss -DskipTests If you have a mysql root password set, cp utils/conf/db.properties utils/conf/db.properties.override; edit db.properties.override to set db.root.password=your_mysql_root_password mvn -e -P developer -pl developer -Ddeploydb; mvn -pl :cloud-client-ui jetty:run -Dnonoss The -DskipTests should not be used if you have edited any part of the code, for it skips running mockito tests. Regards, Vijay -Original Message- From: Stanley Kaytovich [mailto:stanl...@qwertyc.com] Sent: Tuesday, May 07, 2013 8:03 AM To: aemne...@gmail.com; Kelven Yang; Vijayendra Bhamidipati Cc: users@cloudstack.apache.org Subject: RE: Problem creating VMware cluster after building 4.0.2 from source - Found word(s) list error in the Text body Ahmad, If not from source, how else can I install with nonoss? Seems like we've tried everything we could find, including a Jenkins package, which gave us different errors. As of right now, we are suspecting that something is wrong during the build process since we are getting the same results every time. We will try using ant instead of mvn3. From: Ahmad Emneina [mailto:aemne...@gmail.com] Sent: Tuesday, May 7, 2013 10:58 AM To: Stanley Kaytovich; Kelven Yang; vijayendra.bhamidip...@citrix.com Cc: users@cloudstack.apache.org Subject: Re: Problem creating VMware cluster after building 4.0.2 from source Sounds good, I havent built and deployed from source in a very long time, so i wont be much help... but I know who has. Looping in Vijay and Kelven. On Tue, May 7, 2013 at 6:18 AM, Stanley Kaytovich stanl...@qwertyc.commailto:stanl...@qwertyc.com wrote: Ahmad, Thank you. I sent a copy to the dev list as well. In the meantime, trying to perform the install on Debian following the same article and see if we get the same results. -Original Message- From: Ahmad Emneina [mailto:aemne...@gmail.commailto:aemne...@gmail.com] Sent: Monday, May 6, 2013 5:36 PM To: Cloudstack users mailing list Subject: Re: Problem creating VMware cluster after building 4.0.2 from source Hey Stanley, you might want to ping the dev list for this as well. I'm sure people are more familiar with building cloudstack on that ml. On Mon, May 6, 2013 at 2:16 PM, Stanley Kaytovich stanl...@qwertyc.commailto:stanl...@qwertyc.comwrote: Hello, I followed the documentation on http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/I nstallation_Guide/index.html, and have tried this several times with no luck. Package: 4.0.2 OS: Ubuntu 12.04 Below are the steps I took to perform the build as outlined in the above article: Manually downloaded VMware-*.jar files into deps folder deps/install-non-oss.sh mvn -P deps -Dnonoss (fails looking for vmware-base) cd ../vmware-base mvn install (completes) mvn -P deps -Dnonoss (completes) mvn install -Dnonoss (completes) build packages and install debs cloudstack UI works, but we cannot add the VMware cluster. We receive an error Could not find corresponding resource manager for VMware Manually moved all the vmware-*.jar files into WEB-INF\lib checked components.xml and there were no references to VMWare nonoss added VMWare nonoss parameters manually (from: http://markmail.org/message/5eqasgpjxy2oqsoc#query:+page:1+mid:dvf3aqb syl4kphrm+state:resultsand also referenced https://cwiki.apache.org/CLOUDSTACK/building.data/4.0-nonoss.patch ) Now can't start cloud-management with the com.cloud.utils.exception.CloudRuntimeException: Unable to find class: com.cloud.hypervisor.vmware.VmwareServerDiscoverer Additional info: Once the lines added into components.xml are commented out, the service starts but we are back to the original error Could not find corresponding resource
RE: Problem creating VMware cluster after building 4.0.2 from source - Found word(s) list error in the Text body
David, Thanks for this info. Do you know where I can find how to adjust debian control files to include the nonoss jars? Regards, STANLEY KAYTOVICH DIRECTOR OF IT BUSINESS DEVELOPMENT QWERTY Concepts, Inc. Innovative Technology Solutions 877.793.7891x203(w) | 877.724.3291(f) | stanl...@qwertyc.com SUPPORT PROCEDURES: To open a trouble ticket, email supp...@qwertyc.com, or call us at 877.793.7891 and press '1' for Tech Support. Emailing and/or calling the engineers directly will not guarantee service. DISCLAIMER: This email contains information, which is confidential, privileged, and/or protected from disclosure. The contents are intended only for the use of the person(s) to whom it is addressed. If you are not the intended recipient, any use, review, disclosure, copying, or distribution of the contents of this email is prohibited. If you have received this email in error, please notify the sender immediately. -Original Message- From: David Nalley [mailto:da...@gnsa.us] Sent: Tuesday, May 7, 2013 1:23 PM To: users@cloudstack.apache.org Cc: aemne...@gmail.com; Kelven Yang Subject: Re: Problem creating VMware cluster after building 4.0.2 from source - Found word(s) list error in the Text body Stanley: Also - make sure you have adjusted debian control files to include the nonoss jars - otherwise even if it builds successfully, it won't work when deployed because the jars won't be present. --David On Tue, May 7, 2013 at 1:20 PM, Vijayendra Bhamidipati vijayendra.bhamidip...@citrix.com wrote: Hi Stanley, To build nonoss from source, please try the instructions given in this link to build the nonoss components - https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+on +master+branch You need to just take care to ensure that you extract the vim* jar files (for vmware's vi sdk) after you download the websdk 510 file, and copy them over to your deps directory. Typically, for non-oss, this is what you will need to do: find / | grep -I systemvm.iso; rm all the files found (you needn't do this everytime - I do this whenever I deploy a fresh cloudstack testbed). cd deps; wget and rename all jar files as directed; download the vi sdk jar files, and extract the jars from them; rename as directed; ./install-non-oss.sh cd ../ mvn clean; mvn install -P systemvm -Dnonoss -DskipTests; mvn install -Dnonoss -DskipTests If you have a mysql root password set, cp utils/conf/db.properties utils/conf/db.properties.override; edit db.properties.override to set db.root.password=your_mysql_root_password mvn -e -P developer -pl developer -Ddeploydb; mvn -pl :cloud-client-ui jetty:run -Dnonoss The -DskipTests should not be used if you have edited any part of the code, for it skips running mockito tests. Regards, Vijay -Original Message- From: Stanley Kaytovich [mailto:stanl...@qwertyc.com] Sent: Tuesday, May 07, 2013 8:03 AM To: aemne...@gmail.com; Kelven Yang; Vijayendra Bhamidipati Cc: users@cloudstack.apache.org Subject: RE: Problem creating VMware cluster after building 4.0.2 from source - Found word(s) list error in the Text body Ahmad, If not from source, how else can I install with nonoss? Seems like we've tried everything we could find, including a Jenkins package, which gave us different errors. As of right now, we are suspecting that something is wrong during the build process since we are getting the same results every time. We will try using ant instead of mvn3. From: Ahmad Emneina [mailto:aemne...@gmail.com] Sent: Tuesday, May 7, 2013 10:58 AM To: Stanley Kaytovich; Kelven Yang; vijayendra.bhamidip...@citrix.com Cc: users@cloudstack.apache.org Subject: Re: Problem creating VMware cluster after building 4.0.2 from source Sounds good, I havent built and deployed from source in a very long time, so i wont be much help... but I know who has. Looping in Vijay and Kelven. On Tue, May 7, 2013 at 6:18 AM, Stanley Kaytovich stanl...@qwertyc.commailto:stanl...@qwertyc.com wrote: Ahmad, Thank you. I sent a copy to the dev list as well. In the meantime, trying to perform the install on Debian following the same article and see if we get the same results. -Original Message- From: Ahmad Emneina [mailto:aemne...@gmail.commailto:aemne...@gmail.com] Sent: Monday, May 6, 2013 5:36 PM To: Cloudstack users mailing list Subject: Re: Problem creating VMware cluster after building 4.0.2 from source Hey Stanley, you might want to ping the dev list for this as well. I'm sure people are more familiar with building cloudstack on that ml. On Mon, May 6, 2013 at 2:16 PM, Stanley Kaytovich stanl...@qwertyc.commailto:stanl...@qwertyc.comwrote: Hello, I followed the documentation on http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/ I nstallation_Guide/index.html, and have tried this several times with no luck. Package: 4.0.2 OS: Ubuntu 12.04 Below
Re: Jclouds
Hi Mike, I am interested in your code for the test Java client, would you mind sharing? Thanks CK On 1 May 2013 22:53, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I have been using the CloudStack API from a test Java client I wrote. If the code for this is of interest to you, just let me know. On Wed, May 1, 2013 at 11:46 AM, David Nalley da...@gnsa.us wrote: On Wed, May 1, 2013 at 1:14 PM, Seif Eddine Jemli seifeddineje...@gmail.com wrote: Hi, i am trying to implement a java code that should enable me to do simple things: deploy Virtual machines for example. I was advised to use Jclouds API, the problem is that i didn't find enough documentation on how to use Jclouds on a cloudstack private cloud . Where can i find a jclouds code on cloudstack that i can use as a start (like a tuto)? thanks This isn't the first time this has come up. Let me paste an IRC conversation that should help you make progress. 13:27 adrianc ke4qqq I think using the raw cloudstack api isn't something there's a very nice guide on 13:28 adrianc however, they can get started quite easily using jclouds-examples/compute-basics 13:28 adrianc and pass in the url to the cloudstack instance 13:28 adrianc abayer also has cloudcat 13:28 adrianc which is a cloudstack app 13:28 adrianc yp 13:28 adrianc ke4qqq the other thing is that there's tons of examples, if one is ok looking at live tests 13:29 adrianc ex. apis/cloudstack/src/test/java/...*LiveTest.java 13:29 adrianc contextBuilder.overrides 13:30 adrianc ke4qqq anyway we can do a lot better on asf in cloudstack doc stuff The cloudcat referenced is: https://github.com/abayer/cloudcat -- which uses jclouds for CloudStack, so should give you an example. --David -- *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloudhttp://solidfire.com/solution/overview/?video=play *™*
Re: Jclouds
FWIW, in jclouds, the easiest way is to treat cloudstack as any other compute provider. You can get advanced, like how cloudcat does, but easiest way to start is using the basics. ex. here's an example project that is portable. https://github.com/jclouds/jclouds-examples/tree/master/compute-basics java -Dcloudstack.endpoint=http://1.2.3.4/client/api -jar target/compute-basics-jar-with-dependencies.jar cloudstack API_KEY SECRET_KEY webserver add HTH -A On Tue, May 7, 2013 at 10:44 AM, CK cloudw...@gmail.com wrote: Hi Mike, I am interested in your code for the test Java client, would you mind sharing? Thanks CK On 1 May 2013 22:53, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I have been using the CloudStack API from a test Java client I wrote. If the code for this is of interest to you, just let me know. On Wed, May 1, 2013 at 11:46 AM, David Nalley da...@gnsa.us wrote: On Wed, May 1, 2013 at 1:14 PM, Seif Eddine Jemli seifeddineje...@gmail.com wrote: Hi, i am trying to implement a java code that should enable me to do simple things: deploy Virtual machines for example. I was advised to use Jclouds API, the problem is that i didn't find enough documentation on how to use Jclouds on a cloudstack private cloud . Where can i find a jclouds code on cloudstack that i can use as a start (like a tuto)? thanks This isn't the first time this has come up. Let me paste an IRC conversation that should help you make progress. 13:27 adrianc ke4qqq I think using the raw cloudstack api isn't something there's a very nice guide on 13:28 adrianc however, they can get started quite easily using jclouds-examples/compute-basics 13:28 adrianc and pass in the url to the cloudstack instance 13:28 adrianc abayer also has cloudcat 13:28 adrianc which is a cloudstack app 13:28 adrianc yp 13:28 adrianc ke4qqq the other thing is that there's tons of examples, if one is ok looking at live tests 13:29 adrianc ex. apis/cloudstack/src/test/java/...*LiveTest.java 13:29 adrianc contextBuilder.overrides 13:30 adrianc ke4qqq anyway we can do a lot better on asf in cloudstack doc stuff The cloudcat referenced is: https://github.com/abayer/cloudcat -- which uses jclouds for CloudStack, so should give you an example. --David -- *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloudhttp://solidfire.com/solution/overview/?video=play *™*
RE: Problem creating VMware cluster after building 4.0.2 from source - Found word(s) list error in the Text body
Hi Vijay and David (and everyone else), We were able to build 4.0.1 successfully and install the debs after switching to 4.0 branch with the non-oss patch. Now we are getting the following error when creating a new VMware cluster: ERROR [cloud.api.ApiDispatcher] (catalina-exec-18:null) Exception while executing AddClusterCmd: java.lang.NoClassDefFoundError: org/apache/commons/discovery/tools/DiscoverSingleton We suspect the file is being referenced does not exist. Searching for DiscoverSingleton.java did not show results. We have commons-discovery-0.5.jar in the deps folder when building. Thank you, Stan -Original Message- From: Vijayendra Bhamidipati [mailto:vijayendra.bhamidip...@citrix.com] Sent: Tuesday, May 7, 2013 1:21 PM To: users@cloudstack.apache.org; aemne...@gmail.com; Kelven Yang Subject: RE: Problem creating VMware cluster after building 4.0.2 from source - Found word(s) list error in the Text body Hi Stanley, To build nonoss from source, please try the instructions given in this link to build the nonoss components - https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+on+master+branch You need to just take care to ensure that you extract the vim* jar files (for vmware's vi sdk) after you download the websdk 510 file, and copy them over to your deps directory. Typically, for non-oss, this is what you will need to do: find / | grep -I systemvm.iso; rm all the files found (you needn't do this everytime - I do this whenever I deploy a fresh cloudstack testbed). cd deps; wget and rename all jar files as directed; download the vi sdk jar files, and extract the jars from them; rename as directed; ./install-non-oss.sh cd ../ mvn clean; mvn install -P systemvm -Dnonoss -DskipTests; mvn install -Dnonoss -DskipTests If you have a mysql root password set, cp utils/conf/db.properties utils/conf/db.properties.override; edit db.properties.override to set db.root.password=your_mysql_root_password mvn -e -P developer -pl developer -Ddeploydb; mvn -pl :cloud-client-ui jetty:run -Dnonoss The -DskipTests should not be used if you have edited any part of the code, for it skips running mockito tests. Regards, Vijay -Original Message- From: Stanley Kaytovich [mailto:stanl...@qwertyc.com] Sent: Tuesday, May 07, 2013 8:03 AM To: aemne...@gmail.com; Kelven Yang; Vijayendra Bhamidipati Cc: users@cloudstack.apache.org Subject: RE: Problem creating VMware cluster after building 4.0.2 from source - Found word(s) list error in the Text body Ahmad, If not from source, how else can I install with nonoss? Seems like we've tried everything we could find, including a Jenkins package, which gave us different errors. As of right now, we are suspecting that something is wrong during the build process since we are getting the same results every time. We will try using ant instead of mvn3. From: Ahmad Emneina [mailto:aemne...@gmail.com] Sent: Tuesday, May 7, 2013 10:58 AM To: Stanley Kaytovich; Kelven Yang; vijayendra.bhamidip...@citrix.com Cc: users@cloudstack.apache.org Subject: Re: Problem creating VMware cluster after building 4.0.2 from source Sounds good, I havent built and deployed from source in a very long time, so i wont be much help... but I know who has. Looping in Vijay and Kelven. On Tue, May 7, 2013 at 6:18 AM, Stanley Kaytovich stanl...@qwertyc.commailto:stanl...@qwertyc.com wrote: Ahmad, Thank you. I sent a copy to the dev list as well. In the meantime, trying to perform the install on Debian following the same article and see if we get the same results. -Original Message- From: Ahmad Emneina [mailto:aemne...@gmail.commailto:aemne...@gmail.com] Sent: Monday, May 6, 2013 5:36 PM To: Cloudstack users mailing list Subject: Re: Problem creating VMware cluster after building 4.0.2 from source Hey Stanley, you might want to ping the dev list for this as well. I'm sure people are more familiar with building cloudstack on that ml. On Mon, May 6, 2013 at 2:16 PM, Stanley Kaytovich stanl...@qwertyc.commailto:stanl...@qwertyc.comwrote: Hello, I followed the documentation on http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/I nstallation_Guide/index.html, and have tried this several times with no luck. Package: 4.0.2 OS: Ubuntu 12.04 Below are the steps I took to perform the build as outlined in the above article: Manually downloaded VMware-*.jar files into deps folder deps/install-non-oss.sh mvn -P deps -Dnonoss (fails looking for vmware-base) cd ../vmware-base mvn install (completes) mvn -P deps -Dnonoss (completes) mvn install -Dnonoss (completes) build packages and install debs cloudstack UI works, but we cannot add the VMware cluster. We receive an error Could not find corresponding resource manager for VMware Manually moved all the vmware-*.jar files into WEB-INF\lib checked components.xml and there were no references to VMWare nonoss added VMWare nonoss parameters