求助,CentOS6.3 安装cloudStack4.0 无法登陆http://ip:8080/client

2013-07-23 Thread sunko2014
各位:
我在CentOS6.3上安装完cloud-client、mysql、NFS后,无法访问UI,查看了下本地8080端口,根本没有服务监听:
tcp0  0 0.0.0.0:33060.0.0.0:*
LISTEN  1958/mysqld
tcp0  0 0.0.0.0:111 0.0.0.0:*
LISTEN  1123/rpcbind
tcp0  0 0.0.0.0:22  0.0.0.0:*
LISTEN  1223/sshd
tcp0  0 0.0.0.0:662 0.0.0.0:*
LISTEN  1150/rpc.statd
tcp0  0 :::111  :::*
 LISTEN  1123/rpcbind
tcp0  0 :::22   :::*
 LISTEN  1223/sshd
tcp0  0 :::662  :::*
 LISTEN  1150/rpc.statd

 我判断是服务没有起来,但是执行service cloud-management
start多次都不行,重启也不行,按照官方文档安装两次了,系统也换了CentOS6.3和6.4,都一样的结果。
 比较了下service cloud-management status的正常结果:
 * CloudStack-specific Tomcat servlet engine is running with pid 5324
我的却是:
The pid file locates at /var/run/cloud-management.pid and lock file at
/var/lock/subsys/cloud-management.
 不知道有谁遇到过,求助。


CloudStack Exception

2013-07-23 Thread liu_dh
各位好
我第一次搭建CloudStack,通过在线安装的方式安装的,虚拟化采用的是KVM,基于RHEL6.2版本安装的,libvirt的版本为0.94,但是在创建zone的时候导入二级存储时候发现二级存储始终为0KB,后台报出的问题如下,同各位请教一下,有什么好办法解决这个问题,谢谢大家。

INFO  [cloud.secstorage.PremiumSecondaryStorageManagerImpl] (secstorage-1:) 
Primary secondary storage is not even started, wait until next turn
INFO  [cloud.secstorage.PremiumSecondaryStorageManagerImpl] (secstorage-1:) No 
running secondary storage vms found in datacenter id=7, starting one
INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:) No 
stopped secondary storage vm is available, need to allocate a new secondary 
storage vm
WARN  [network.element.VpcVirtualRouterElement] (secstorage-1:) Network 
Ntwk[234|Guest|7] is not associated with any VPC
WARN  [network.element.VpcVirtualRouterElement] (secstorage-1:) Network 
Ntwk[232|Control|3] is not associated with any VPC
WARN  [network.element.VpcVirtualRouterElement] (secstorage-1:) Network 
Ntwk[231|Management|2] is not associated with any VPC
INFO  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:) Found a 
stopped console proxy, bring it up to running pool. proxy vm id : 252
WARN  [network.element.VpcVirtualRouterElement] (secstorage-1:) Network 
Ntwk[233|Storage|4] is not associated with any VPC
WARN  [network.element.VpcVirtualRouterElement] (consoleproxy-1:) Network 
Ntwk[234|Guest|7] is not associated with any VPC
WARN  [network.element.VpcVirtualRouterElement] (consoleproxy-1:) Network 
Ntwk[232|Control|3] is not associated with any VPC
WARN  [network.element.VpcVirtualRouterElement] (consoleproxy-1:) Network 
Ntwk[231|Management|2] is not associated with any VPC
INFO  [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:) Unable to start VM 
on Host[-15-Routing] due to internal error unknown timer name 'kvmclock'
INFO  [cloud.vm.VirtualMachineManagerImpl] (consoleproxy-1:) Unable to start VM 
on Host[-15-Routing] due to internal error unknown timer name 'kvmclock'
WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:) Exception 
while trying to start secondary storage vm
com.cloud.exception.InsufficientServerCapacityException: Unable to create a 
deployment for VM[SecondaryStorageVm|s-1168-VM]Scope=interface 
com.cloud.dc.DataCenter; id=7
at 
com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:728)
at 
com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:471)
at 
com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:464)
at 
com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:264)
at 
com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:689)
at 
com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1300)
at 
com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:121)
at 
com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:52)
at com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:104)
at com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:33)
at com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:81)
at com.cloud.vm.SystemVmLoadScanner$1.run(SystemVmLoadScanner.java:72)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:) Unable to 
start secondary storage vm for standby capacity, secStorageVm vm Id : 1168, 
will recycle it and start a new one
INFO  [cloud.secstorage.PremiumSecondaryStorageManagerImpl] (secstorage-1:) 
Primary secondary storage is not even started, wait until next turn
WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:) Exception 
while trying to start console proxy
com.cloud.exception.InsufficientServerCapacityException: Unable to create a 
deployment for VM[ConsoleProxy|v-252-VM]Scope=interface 
com.cloud.dc.DataCenter; id=7
at 
com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:728)
at 
com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:471)
at 
com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:464)
at 
com.cloud.consoleproxy.ConsoleProxyManagerImpl.startProxy(ConsoleProxyManagerImpl.java:632)

Re: 求助,CentOS6.3 安装cloudStack4.0 无法登陆http://ip:8080/client

2013-07-23 Thread sunko2014
非常感谢!改了catalina.out的属主后,Cloud-management正常启动。
但是又遇到了你bolg所说的第二个问题,admin/password登陆时,提示用户密码无效,我的系统的CentOS6.4
minimal,没有找到登陆异常的有关logo。
有改mysql中的/etc/my.conf配置文件,但我不确定我的CentOS minimal系统是否会与CloudStack相关包冲突。


2013/7/23 lanv_11 lanv...@163.com

 请参考这篇文章 http://blog.chinaunix.net/uid-26230811-id-3777972.html




 lanv_11

 发件人: sunko2014
 发送时间: 2013-07-23 17:44
 收件人: users-cn
 主题: 求助,CentOS6.3 安装cloudStack4.0 无法登陆http://ip:8080/client
 各位:

 我在CentOS6.3上安装完cloud-client、mysql、NFS后,无法访问UI,查看了下本地8080端口,根本没有服务监听:
 tcp0  0 0.0.0.0:33060.0.0.0:*
 LISTEN  1958/mysqld
 tcp0  0 0.0.0.0:111 0.0.0.0:*
 LISTEN  1123/rpcbind
 tcp0  0 0.0.0.0:22  0.0.0.0:*
 LISTEN  1223/sshd
 tcp0  0 0.0.0.0:662 0.0.0.0:*
 LISTEN  1150/rpc.statd
 tcp0  0 :::111  :::*
  LISTEN  1123/rpcbind
 tcp0  0 :::22   :::*
  LISTEN  1223/sshd
 tcp0  0 :::662  :::*
  LISTEN  1150/rpc.statd

  我判断是服务没有起来,但是执行service cloud-management
 start多次都不行,重启也不行,按照官方文档安装两次了,系统也换了CentOS6.3和6.4,都一样的结果。
  比较了下service cloud-management status的正常结果:
  * CloudStack-specific Tomcat servlet engine is running with pid 5324
 我的却是:
 The pid file locates at /var/run/cloud-management.pid and lock file at
 /var/lock/subsys/cloud-management.
  不知道有谁遇到过,求助。



Re: CloudStack Exception

2013-07-23 Thread tanthalas

看起来log的第一句话比较重要。
 Primary secondary storage is not even started, wait until next turn
可能存储有问题,所以VM不能启动,具体的还要再往前翻log。

2013-07-24 



  
刘宇超  Richard Liu




发件人: liu_dh 
发送时间: 2013-07-24  09:37:08 
收件人: users-cn 
抄送: 
主题: CloudStack Exception 
 
各位好
我第一次搭建CloudStack,通过在线安装的方式安装的,虚拟化采用的是KVM,基于RHEL6.2版本安装的,libvirt的版本为0.94,但是在创建zone的时候导入二级存储时候发现二级存储始终为0KB,后台报出的问题如下,同各位请教一下,有什么好办法解决这个问题,谢谢大家。
INFO  [cloud.secstorage.PremiumSecondaryStorageManagerImpl] (secstorage-1:) 
Primary secondary storage is not even started, wait until next turn
INFO  [cloud.secstorage.PremiumSecondaryStorageManagerImpl] (secstorage-1:) No 
running secondary storage vms found in datacenter id=7, starting one
INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:) No 
stopped secondary storage vm is available, need to allocate a new secondary 
storage vm
WARN  [network.element.VpcVirtualRouterElement] (secstorage-1:) Network 
Ntwk[234|Guest|7] is not associated with any VPC
WARN  [network.element.VpcVirtualRouterElement] (secstorage-1:) Network 
Ntwk[232|Control|3] is not associated with any VPC
WARN  [network.element.VpcVirtualRouterElement] (secstorage-1:) Network 
Ntwk[231|Management|2] is not associated with any VPC
INFO  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:) Found a 
stopped console proxy, bring it up to running pool. proxy vm id : 252
WARN  [network.element.VpcVirtualRouterElement] (secstorage-1:) Network 
Ntwk[233|Storage|4] is not associated with any VPC
WARN  [network.element.VpcVirtualRouterElement] (consoleproxy-1:) Network 
Ntwk[234|Guest|7] is not associated with any VPC
WARN  [network.element.VpcVirtualRouterElement] (consoleproxy-1:) Network 
Ntwk[232|Control|3] is not associated with any VPC
WARN  [network.element.VpcVirtualRouterElement] (consoleproxy-1:) Network 
Ntwk[231|Management|2] is not associated with any VPC
INFO  [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:) Unable to start VM 
on Host[-15-Routing] due to internal error unknown timer name 'kvmclock'
INFO  [cloud.vm.VirtualMachineManagerImpl] (consoleproxy-1:) Unable to start VM 
on Host[-15-Routing] due to internal error unknown timer name 'kvmclock'
WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:) Exception 
while trying to start secondary storage vm
com.cloud.exception.InsufficientServerCapacityException: Unable to create a 
deployment for VM[SecondaryStorageVm|s-1168-VM]Scope=interface 
com.cloud.dc.DataCenter; id=7
at 
com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:728)
at 
com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:471)
at 
com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:464)
at 
com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:264)
at 
com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:689)
at 
com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1300)
at 
com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:121)
at 
com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:52)
at com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:104)
at com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:33)
at com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:81)
at com.cloud.vm.SystemVmLoadScanner$1.run(SystemVmLoadScanner.java:72)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:) Unable to 
start secondary storage vm for standby capacity, secStorageVm vm Id : 1168, 
will recycle it and start a new one
INFO  [cloud.secstorage.PremiumSecondaryStorageManagerImpl] (secstorage-1:) 
Primary secondary storage is not even started, wait until next turn
WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:) Exception 
while trying to start console proxy
com.cloud.exception.InsufficientServerCapacityException: Unable to create a 
deployment for VM[ConsoleProxy|v-252-VM]Scope=interface 
com.cloud.dc.DataCenter; id=7
at 
com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:728)
at 

Re: cloudstack虚拟机访问控制问题求教

2013-07-23 Thread Alex Yang
用Squid或者其它的软件搭建一个7层代理,然后虚拟机的所有7层流量走代理,在7层代理那作过滤。


在 2013年7月24日上午10:26,0220323 0220...@163.com写道:

 Hi!大家好~~

 我有个问题想向各位大侠请教下。。。我的cloudstack-management安装在192.168.3.140上,集群上只有一台主机192.168.3.150,我现在想禁止150上所有的的虚拟机访问某个网站,比如优酷网,怎么实现啊??



 2013-07-24



 0220323




-- 
  杨雨
  Email:   alex890...@gmail.com
GitHub:   https://github.com/AlexYangYu
 Weibo:   http://www.weibo.com/alexyangyu


Console proxy functionalities

2013-07-23 Thread Kashif Ali
AOA every one

i am new to cloudstack and i didnt understand the functionality of console
proxy.
Is console proxy is just a console view or something else.

-- 
Regards,

*Kashif Ali*
Undergraduate Student | 7th Semester
BESE-1A | NUST-SEECS | Islamabad
10besek...@seecs.edu.pk


Creating ISO files under Templates in CS 4.1 UI

2013-07-23 Thread Ashutosh Narayan
Hi,

I was trying to download a 650MB Ubuntu iso from management server after
following
this link -
https://cwiki.apache.org/CLOUDSTACK/upload-your-own-templates-in-cloudstack.html
Its quite long time since the Status message does not reflect Download
Complete

Also, where is this iso file getting downloaded ?
It also looks that secondary storage is not mounted. Is this the issue for
it ?
Here is the output of mount command ;

[root@RLD1RNDS08 ~]# mount
/dev/sda2 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext=system_u:object_r:tmpfs_t:s0)
/dev/sda1 on /boot type ext4 (rw)
/dev/sda5 on /devops type ext4 (rw)
/dev/sda3 on /home type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
*192.168.105.145:/export/primary on
/mnt/3efd6ecb-0ed0-3f01-80e4-7357f15f8fb7 type nfs
(rw,noac,vers=4,addr=192.168.105.145,clientaddr=192.168.105.145)*

Secondary storage is under /export/secondary, but it is not mounted.
In Management server UI shows Secondary storage as enabled.
Does this internally mounts secondary storage or I have to mount it
manually ?

Please suggest.

Thank you,
-- 
Ashutosh Narayan

http://ashutoshn.wordpress.com/


RE: Console proxy functionalities

2013-07-23 Thread Radhika Puthiyetath
Refer to 
http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html-single/Admin_Guide/index.html#console-proxy


-Original Message-
From: Kashif Ali [mailto:temujin...@gmail.com] 
Sent: Tuesday, July 23, 2013 11:33 AM
To: users@cloudstack.apache.org
Subject: Console proxy functionalities

AOA every one

i am new to cloudstack and i didnt understand the functionality of console 
proxy.
Is console proxy is just a console view or something else.

--
Regards,

*Kashif Ali*
Undergraduate Student | 7th Semester
BESE-1A | NUST-SEECS | Islamabad
10besek...@seecs.edu.pk


Re: Creating ISO files under Templates in CS 4.1 UI

2013-07-23 Thread Dean Kamali
ISO is getting downloaded to Primary storage then move over to secondary,
as I understand, if your secondary storage is on different host, then the
speed of the wire and disk / raid performance comes in to question
On Jul 23, 2013 2:15 AM, Ashutosh Narayan aashutoshnara...@gmail.com
wrote:

 Hi,

 I was trying to download a 650MB Ubuntu iso from management server after
 following
 this link -

 https://cwiki.apache.org/CLOUDSTACK/upload-your-own-templates-in-cloudstack.html
 Its quite long time since the Status message does not reflect Download
 Complete

 Also, where is this iso file getting downloaded ?
 It also looks that secondary storage is not mounted. Is this the issue for
 it ?
 Here is the output of mount command ;

 [root@RLD1RNDS08 ~]# mount
 /dev/sda2 on / type ext4 (rw)
 proc on /proc type proc (rw)
 sysfs on /sys type sysfs (rw)
 devpts on /dev/pts type devpts (rw,gid=5,mode=620)
 tmpfs on /dev/shm type tmpfs
 (rw,rootcontext=system_u:object_r:tmpfs_t:s0)
 /dev/sda1 on /boot type ext4 (rw)
 /dev/sda5 on /devops type ext4 (rw)
 /dev/sda3 on /home type ext4 (rw)
 none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
 sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
 nfsd on /proc/fs/nfsd type nfsd (rw)
 *192.168.105.145:/export/primary on
 /mnt/3efd6ecb-0ed0-3f01-80e4-7357f15f8fb7 type nfs
 (rw,noac,vers=4,addr=192.168.105.145,clientaddr=192.168.105.145)*

 Secondary storage is under /export/secondary, but it is not mounted.
 In Management server UI shows Secondary storage as enabled.
 Does this internally mounts secondary storage or I have to mount it
 manually ?

 Please suggest.

 Thank you,
 --
 Ashutosh Narayan

 http://ashutoshn.wordpress.com/



RE: Console proxy functionalities

2013-07-23 Thread Dean Kamali
I don't want to be rude but he could have googled it or used the index
properly
On Jul 23, 2013 2:18 AM, Radhika Puthiyetath 
radhika.puthiyet...@citrix.com wrote:

 Refer to
 http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html-single/Admin_Guide/index.html#console-proxy


 -Original Message-
 From: Kashif Ali [mailto:temujin...@gmail.com]
 Sent: Tuesday, July 23, 2013 11:33 AM
 To: users@cloudstack.apache.org
 Subject: Console proxy functionalities

 AOA every one

 i am new to cloudstack and i didnt understand the functionality of console
 proxy.
 Is console proxy is just a console view or something else.

 --
 Regards,

 *Kashif Ali*
 Undergraduate Student | 7th Semester
 BESE-1A | NUST-SEECS | Islamabad
 10besek...@seecs.edu.pk



Re: Creating ISO files under Templates in CS 4.1 UI

2013-07-23 Thread Ashutosh Narayan
HI Dean,

The secondary storage is on the same host. But it doesn't seem to be
mounted.
Do I need to mount it ?

On Tue, Jul 23, 2013 at 11:48 AM, Dean Kamali dean.kam...@gmail.com wrote:

 ISO is getting downloaded to Primary storage then move over to secondary,
 as I understand, if your secondary storage is on different host, then the
 speed of the wire and disk / raid performance comes in to question
 On Jul 23, 2013 2:15 AM, Ashutosh Narayan aashutoshnara...@gmail.com
 wrote:

  Hi,
 
  I was trying to download a 650MB Ubuntu iso from management server after
  following
  this link -
 
 
 https://cwiki.apache.org/CLOUDSTACK/upload-your-own-templates-in-cloudstack.html
  Its quite long time since the Status message does not reflect Download
  Complete
 
  Also, where is this iso file getting downloaded ?
  It also looks that secondary storage is not mounted. Is this the issue
 for
  it ?
  Here is the output of mount command ;
 
  [root@RLD1RNDS08 ~]# mount
  /dev/sda2 on / type ext4 (rw)
  proc on /proc type proc (rw)
  sysfs on /sys type sysfs (rw)
  devpts on /dev/pts type devpts (rw,gid=5,mode=620)
  tmpfs on /dev/shm type tmpfs
  (rw,rootcontext=system_u:object_r:tmpfs_t:s0)
  /dev/sda1 on /boot type ext4 (rw)
  /dev/sda5 on /devops type ext4 (rw)
  /dev/sda3 on /home type ext4 (rw)
  none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
  sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
  nfsd on /proc/fs/nfsd type nfsd (rw)
  *192.168.105.145:/export/primary on
  /mnt/3efd6ecb-0ed0-3f01-80e4-7357f15f8fb7 type nfs
  (rw,noac,vers=4,addr=192.168.105.145,clientaddr=192.168.105.145)*
 
  Secondary storage is under /export/secondary, but it is not mounted.
  In Management server UI shows Secondary storage as enabled.
  Does this internally mounts secondary storage or I have to mount it
  manually ?
 
  Please suggest.
 
  Thank you,
  --
  Ashutosh Narayan
 
  http://ashutoshn.wordpress.com/
 




-- 
Ashutosh Narayan

http://ashutoshn.wordpress.com/


time out during storage migration

2013-07-23 Thread david van zeebroeck
hello

i'm trying to migrate some vm's between primary storage
source is an nfs storage and moving to a clvm storage

the template's are about 50gb in size

however during the migration i receive a time out error:
2013-07-23 09:20:09,553 WARN  [utils.script.Script] (Script-4:null)
Interrupting script.
2013-07-23 09:20:09,555 WARN  [utils.script.Script]
(agentRequest-Handler-3:null) Timed out: /bin/bash -c qemu-img convert -f
qcow2 -O qcow2
/mnt/730146b0-d350-35e8-8a1f-bb27d2fab890/a6de5f10-6d80-4fdc-8c43-68cafc22c5c8
/mnt/122195ae-3c01-3e9d-8749-90dc191b3164/6968ff9b-a32b-4bcc-b059-3994898c10a1.qcow2
.  Output is:


any idea from where this time out come's and how to resolve it.
This happens about an hour into the conversion

I also noticed that during the conversion everything else is blocking


RE: cold migrated VMs won't start

2013-07-23 Thread Paul Angus
Thanks Ahmad,

We were wondering about that, although we couldn't find anything that 
explicitly states that you can't migrate across pods in a basic zone.

Our view was that there's no technical reason why the VM can't be started by 
the hypervisor - it would have to get a new ip (as dhcp in the vr would be 
incapable of giving it its orginal one) - but that would be our problem to deal 
with, and if our app was fqdn based - it wouldn't matter anyway.


Regards,

Paul Angus
S: +44 20 3603 0540 | M: +447711418784 | T: CloudyAngus
paul.an...@shapeblue.com

-Original Message-
From: Ahmad Emneina [mailto:aemne...@gmail.com]
Sent: 23 July 2013 05:31
To: Cloudstack users mailing list
Subject: Re: cold migrated VMs won't start

Hey Paul, we'd probably need more logs... but my gut tells me its failing 
because the pod you migrated to isnt part of the same subnet the vm originally 
came from, thus cant allocate a 'suitable ip'.


On Mon, Jul 22, 2013 at 4:15 AM, Paul Angus paul.an...@shapeblue.comwrote:

  Hi Guys has anyone seen this behaviour?



 After cold migrating a VM from one Pod to another we can't start the
 VM any more basic networking: (Xenserver 6.1 + ACS4.1)



 VM state transmitted from :Starting to Stopped with event:
 OperationFailedvm's original host id: null new host id: null host id
 before state transition: 3





 Regards,



 Paul Angus

 *Senior Consultant / Cloud Architect*



 S: +44 20 3603 0540 +442036030540 | M: +4 +44796816158147711418784
 |
 T: CloudyAngus

 paul.an...@shapeblue.com geoff.higginbot...@shapeblue.com |
 www.shapeblue.com | Twitter:@shapeblue https://twitter.com/

 ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS



 Apache CloudStack Bootcamp training courses

 10/11 July, Bangalore,
 Indiahttp://www.shapeblue.com/cloudstack-bootcamp-training-course/

 21/22 August,
 Londonhttp://www.shapeblue.com/cloudstack-bootcamp-training-course/


  This email and any attachments to it may be confidential and are
 intended solely for the use of the individual to whom it is addressed.
 Any views or opinions expressed are solely those of the author and do
 not necessarily represent those of Shape Blue Ltd or related
 companies. If you are not the intended recipient of this email, you
 must neither take any action based upon its contents, nor copy or show
 it to anyone. Please contact the sender if you believe you have
 received this email in error. Shape Blue Ltd is a company incorporated
 in England  Wales. ShapeBlue Services India LLP is operated under
 license from Shape Blue Ltd. ShapeBlue is a registered trademark.

This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 
incorporated in England  Wales. ShapeBlue Services India LLP is operated under 
license from Shape Blue Ltd. ShapeBlue is a registered trademark.


Cloudstack can't deploy new vm

2013-07-23 Thread Pierre Benard
Hi, 



We have a problem with our CloudStack. 
We can't deploying new instance. When we try to deploy new vm we have a short 
error message on the CloudStack interface : Unable to create a deployment for 
VM[User|i-3-2764-VM] . We have the same error when we deploy new instance from 
iso or template. 
In the event page on CS, we have : 

VM.CREATE   Error while starting Vm. Vm Id: 2764pierre.ben...@inria.fr  
22 Jul 2013 13:15:47 
VM.CREATE   Starting job for starting Vm. Vm Id: 2764   
pierre.ben...@inria.fr  22 Jul 2013 13:15:47 
VM.CREATE   Scheduled async job for starting Vm. Vm Id: 2764
pierre.ben...@inria.fr  22 Jul 2013 13:15:46 
VM.CREATE   Successfully created entity for deploying Vm. Vm Id: 2764   
pierre.ben...@inria.fr  22 Jul 2013 13:15:46 

Isn't really verbose ... 


All the other instance are continuous to running correctly, we can stop/start 
it. 
There is no significant error in the log files of CloudStack server and on each 
we sufficient resources to deploy many instances. 
The SSVM and primary storage are available. 


Our CloudStack environment : 
* CloudStack v3 
* 1 pod of 4 clusters KVM, each cluster has 4 KVM hypervisor 


Please Suggest. 


Thank you. 


Pierre Bénard 
System engineer 


Inria Rennes - Bretagne Atlantique 

Campus universitaire de Beaulieu 
35042 Rennes Cedex 
Tél. +33 2 99 84 71 00 
Fax +33 2 99 84 71 71 
www.inria.fr 

Suivez‐nous sur : 
Twitter twitter.com/inria 
YouTube youtube.com/inriachannel 




Re: Cloudstack can't deploy new vm

2013-07-23 Thread Dean Kamali
Just a thought! can you create new user account and launch a vm? it could
be an issue with the account.

if it works, you could use cloudmonkey later to assign all vms from the
affected user account to the new account.



On Tue, Jul 23, 2013 at 4:20 AM, Pierre Benard pierre.ben...@inria.frwrote:

 Hi,



 We have a problem with our CloudStack.
 We can't deploying new instance. When we try to deploy new vm we have a
 short error message on the CloudStack interface : Unable to create a
 deployment for VM[User|i-3-2764-VM] . We have the same error when we
 deploy new instance from iso or template.
 In the event page on CS, we have :

 VM.CREATE   Error while starting Vm. Vm Id: 2764
 pierre.ben...@inria.fr  22 Jul 2013 13:15:47
 VM.CREATE   Starting job for starting Vm. Vm Id: 2764
 pierre.ben...@inria.fr  22 Jul 2013 13:15:47
 VM.CREATE   Scheduled async job for starting Vm. Vm Id: 2764
 pierre.ben...@inria.fr  22 Jul 2013 13:15:46
 VM.CREATE   Successfully created entity for deploying Vm. Vm Id: 2764
   pierre.ben...@inria.fr  22 Jul 2013 13:15:46

 Isn't really verbose ...


 All the other instance are continuous to running correctly, we can
 stop/start it.
 There is no significant error in the log files of CloudStack server and on
 each we sufficient resources to deploy many instances.
 The SSVM and primary storage are available.


 Our CloudStack environment :
 * CloudStack v3
 * 1 pod of 4 clusters KVM, each cluster has 4 KVM hypervisor


 Please Suggest.


 Thank you.


 Pierre Bénard
 System engineer


 Inria Rennes - Bretagne Atlantique

 Campus universitaire de Beaulieu
 35042 Rennes Cedex
 Tél. +33 2 99 84 71 00
 Fax +33 2 99 84 71 71
 www.inria.fr

 Suivez‐nous sur :
 Twitter twitter.com/inria
 YouTube youtube.com/inriachannel





Re: Cloudstack can't deploy new vm

2013-07-23 Thread ramnivas indani
We also face this kind of problem many times but in our case its because of
router or storage instance are disconnected or down under vmware, i will
suggest you to check their connectivity once not only from cloudstack but
also from backend.


On Tue, Jul 23, 2013 at 1:50 PM, Pierre Benard pierre.ben...@inria.frwrote:

 Hi,



 We have a problem with our CloudStack.
 We can't deploying new instance. When we try to deploy new vm we have a
 short error message on the CloudStack interface : Unable to create a
 deployment for VM[User|i-3-2764-VM] . We have the same error when we
 deploy new instance from iso or template.
 In the event page on CS, we have :

 VM.CREATE   Error while starting Vm. Vm Id: 2764
 pierre.ben...@inria.fr  22 Jul 2013 13:15:47
 VM.CREATE   Starting job for starting Vm. Vm Id: 2764
 pierre.ben...@inria.fr  22 Jul 2013 13:15:47
 VM.CREATE   Scheduled async job for starting Vm. Vm Id: 2764
 pierre.ben...@inria.fr  22 Jul 2013 13:15:46
 VM.CREATE   Successfully created entity for deploying Vm. Vm Id: 2764
   pierre.ben...@inria.fr  22 Jul 2013 13:15:46

 Isn't really verbose ...


 All the other instance are continuous to running correctly, we can
 stop/start it.
 There is no significant error in the log files of CloudStack server and on
 each we sufficient resources to deploy many instances.
 The SSVM and primary storage are available.


 Our CloudStack environment :
 * CloudStack v3
 * 1 pod of 4 clusters KVM, each cluster has 4 KVM hypervisor


 Please Suggest.


 Thank you.


 Pierre Bénard
 System engineer


 Inria Rennes - Bretagne Atlantique

 Campus universitaire de Beaulieu
 35042 Rennes Cedex
 Tél. +33 2 99 84 71 00
 Fax +33 2 99 84 71 71
 www.inria.fr

 Suivez‐nous sur :
 Twitter twitter.com/inria
 YouTube youtube.com/inriachannel





Re: Visualizing the Planners

2013-07-23 Thread prakash
Hi,


 Provide visualization based on Host,cluster,pod,zone etc.. that will very
helpfull for future planning the cloud capacity.


 Regards,
 Prakash.M


 def. cool, that and multiple accounts across MORE hosts :D Thinking
 separate colors for each user.


 On Mon, Jul 22, 2013 at 5:01 PM, David Comerford
 davest...@gmail.comwrote:

 That was pretty cool.
 Be interesting to see the behaviour with randomised RAM size instances.

 Best regards,
 David Comerford
 
 Tel: +353 87 1238295
 Email: davest...@gmail.com
 Website: http://dave.ie
 GPG key: http://gpg.dave.ie


 On 22 July 2013 20:07, Chip Childers chip.child...@sungard.com wrote:

  Hi all,
 
  I've been playing with a method of simulating provisioning activity on
 a
  CloudStack cloud, and visualizing the resulting capacity usage on the
  hosts.
 
  I blogged about the first (very early) work here:
 
 
 
 http://www.chipchilders.com/blog/2013/7/22/visualizing-the-cloudstack-planners-in-action.html
 
  Feel free to let me know if you have any ideas / suggestions.
 






Re: Cloudstack can't deploy new vm

2013-07-23 Thread Pierre Benard
Hi,

Thank you for your suggestion.
I've done the test, I've created new user and I've tried to create new vm with 
him. We have exactly the same error.

Regards,

Pierre

- Mail original -
 De: Dean Kamali dean.kam...@gmail.com
 À: users@cloudstack.apache.org
 Envoyé: Mardi 23 Juillet 2013 10:22:56
 Objet: Re: Cloudstack can't deploy new vm
 
 Just a thought! can you create new user account and launch a vm? it
 could
 be an issue with the account.
 
 if it works, you could use cloudmonkey later to assign all vms from
 the
 affected user account to the new account.
 
 
 
 On Tue, Jul 23, 2013 at 4:20 AM, Pierre Benard
 pierre.ben...@inria.frwrote:
 
  Hi,
 
 
 
  We have a problem with our CloudStack.
  We can't deploying new instance. When we try to deploy new vm we
  have a
  short error message on the CloudStack interface : Unable to create
  a
  deployment for VM[User|i-3-2764-VM] . We have the same error when
  we
  deploy new instance from iso or template.
  In the event page on CS, we have :
 
  VM.CREATE   Error while starting Vm. Vm Id: 2764
  pierre.ben...@inria.fr  22 Jul 2013 13:15:47
  VM.CREATE   Starting job for starting Vm. Vm Id: 2764
  pierre.ben...@inria.fr  22 Jul 2013 13:15:47
  VM.CREATE   Scheduled async job for starting Vm. Vm Id: 2764
  pierre.ben...@inria.fr  22 Jul 2013 13:15:46
  VM.CREATE   Successfully created entity for deploying Vm. Vm
  Id: 2764
pierre.ben...@inria.fr  22 Jul 2013 13:15:46
 
  Isn't really verbose ...
 
 
  All the other instance are continuous to running correctly, we can
  stop/start it.
  There is no significant error in the log files of CloudStack server
  and on
  each we sufficient resources to deploy many instances.
  The SSVM and primary storage are available.
 
 
  Our CloudStack environment :
  * CloudStack v3
  * 1 pod of 4 clusters KVM, each cluster has 4 KVM hypervisor
 
 
  Please Suggest.
 
 
  Thank you.
 
 
  Pierre Bénard
  System engineer
 
 
  Inria Rennes - Bretagne Atlantique
 
  Campus universitaire de Beaulieu
  35042 Rennes Cedex
  Tél. +33 2 99 84 71 00
  Fax +33 2 99 84 71 71
  www.inria.fr
 
  Suivez‐nous sur :
  Twitter twitter.com/inria
  YouTube youtube.com/inriachannel
 
 
 
 


management server OS

2013-07-23 Thread Kashif Ali
can cloudstack managment server support ubuntu 12.10

-- 
Regards,

*Kashif Ali*
Undergraduate Student | 7th Semester
BESE-1A | NUST-SEECS | Islamabad
10besek...@seecs.edu.pk


Re: Console proxy functionalities

2013-07-23 Thread Kashif Ali
i read the document .all i understand is its use physical console of VM
and have a public IP 
but i am confused about its functionality compared with web-based UI.


On Mon, Jul 22, 2013 at 11:18 PM, Dean Kamali dean.kam...@gmail.com wrote:

 I don't want to be rude but he could have googled it or used the index
 properly
 On Jul 23, 2013 2:18 AM, Radhika Puthiyetath 
 radhika.puthiyet...@citrix.com wrote:

  Refer to
 
 http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html-single/Admin_Guide/index.html#console-proxy
 
 
  -Original Message-
  From: Kashif Ali [mailto:temujin...@gmail.com]
  Sent: Tuesday, July 23, 2013 11:33 AM
  To: users@cloudstack.apache.org
  Subject: Console proxy functionalities
 
  AOA every one
 
  i am new to cloudstack and i didnt understand the functionality of
 console
  proxy.
  Is console proxy is just a console view or something else.
 
  --
  Regards,
 
  *Kashif Ali*
  Undergraduate Student | 7th Semester
  BESE-1A | NUST-SEECS | Islamabad
  10besek...@seecs.edu.pk
 




-- 
-- 
Regards,

*Kashif Ali*
Undergraduate Student | 7th Semester
BESE-1A | NUST-SEECS | Islamabad
10besek...@seecs.edu.pk


Alerts

2013-07-23 Thread Chitra Manjunath
Hi

Can I able to customize the Alerts?
Like I should get the alert when storage reaches the 85% of threshold value or  
Cpu utilization exceeds the 85% of threshold or No of snapshots per user 
exceeds.


Thanks  regards
Chitra.M

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are 
not
to copy, disclose, or distribute this e-mail or its contents to any other 
person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken
every reasonable precaution to minimize this risk, but is not liable for any 
damage
you may sustain as a result of any virus in this e-mail. You should carry out 
your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this 
e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***


Re: Unable to migrate VM to another host

2013-07-23 Thread Indra Pramana
Dear Prasanna and all,

I have tried to remove the host from CloudStack, uninstall and reinstall
cloudstack-agent and added the host back into CloudStack. The cloud
user-id is still not yet created. I then tried to add the cloud user
manually, using exactly the same credentials as the cloud user on the
other host.

From the host, I tried to do a virsh connect qemu+ssh to the other host
using the cloud user (instead of root), and getting this error:

cloud@hv-kvm-01:~$ virsh --connect qemu+ssh://cloud@10.237.3.22/system list
cloud@10.237.3.22's password:
error: failed to connect to the hypervisor
error: no valid connection
error: End of file while reading data: : Input/output error

If you notice, the error is the same exact error message I see on the
management-server.log when I tried to do a live migration of VM. So I tried
to follow this lead and implement this instruction to allow the cloud
user to have access to the hypervisor on the other host:

http://wiki.libvirt.org/page/SSHSetup

usermod -G libvirtd -a cloud

Enabled these on /etc/libvirt/libvirtd.conf:

unix_sock_group = libvirtd
unix_sock_rw_perms = 0770

I also copied the SSH keys of the cloud user to the other host, so that it
will not prompt for password.

And I am now able to do a virsh connect using the cloud user:

cloud@hv-kvm-01:~$ virsh --connect qemu+ssh://cloud@10.237.3.22/system list
 IdName   State

 2 i-2-275-VM running
 3 i-2-276-VM running
 4 i-2-293-VM running

But I am still not able to perform live migration of VM.

May I know how CloudStack connects to the hypervisors when it performs live
migration, after finding a suitable target host? Does it request the source
host to perform a qemu+ssh connect to the target host?

Appreciate if anyone who is familiar with CloudStack VM live migration can
shed some lights on this.

Looking forward to your reply, thank you.

Cheers.



On Tue, Jul 23, 2013 at 12:25 PM, Indra Pramana in...@sg.or.id wrote:

 Hi Prasanna,

 Good day to you, and thank you for your e-mail.

 On Mon, Jul 22, 2013 at 9:54 PM, Prasanna Santhanam t...@apache.orgwrote:

 On Mon, Jul 22, 2013 at 08:25:11PM +0800, Indra Pramana wrote:
  Dear Prasanna and all,
 
  In addition, earlier I have tried to force-connect the hypervisor host
 when
  it was on disconnected mode. However, the cloud user id is still not
 being
  created.
 
  Looking forward to your reply, thank you.

 please share the /var/log/cloudstack/agent/setupAgent.log via a
 pastebin.


 There's no setupAgent.log file under /var/log/cloudstack/agent directory.
 There's setup.log file, though. However, the file was last updated on 18
 July 2013. The content is inside this pastebin:

 http://pastebin.com/NQQdhkPM

 Looking forward to your reply, thank you.

 Cheers.



Re: Unable to migrate VM to another host

2013-07-23 Thread Prasanna Santhanam
On Tue, Jul 23, 2013 at 06:19:06PM +0800, Indra Pramana wrote:
 Dear Prasanna and all,
 
 I have tried to remove the host from CloudStack, uninstall and reinstall
 cloudstack-agent and added the host back into CloudStack. The cloud
 user-id is still not yet created. I then tried to add the cloud user
 manually, using exactly the same credentials as the cloud user on the
 other host.
 
 From the host, I tried to do a virsh connect qemu+ssh to the other host
 using the cloud user (instead of root), and getting this error:
 
 cloud@hv-kvm-01:~$ virsh --connect qemu+ssh://cloud@10.237.3.22/system list
 cloud@10.237.3.22's password:
 error: failed to connect to the hypervisor
 error: no valid connection
 error: End of file while reading data: : Input/output error
 
 If you notice, the error is the same exact error message I see on the
 management-server.log when I tried to do a live migration of VM. So I tried
 to follow this lead and implement this instruction to allow the cloud
 user to have access to the hypervisor on the other host:
 
 http://wiki.libvirt.org/page/SSHSetup
 
 usermod -G libvirtd -a cloud
 
 Enabled these on /etc/libvirt/libvirtd.conf:
 
 unix_sock_group = libvirtd
 unix_sock_rw_perms = 0770
 
 I also copied the SSH keys of the cloud user to the other host, so that it
 will not prompt for password.
 
 And I am now able to do a virsh connect using the cloud user:
 
 cloud@hv-kvm-01:~$ virsh --connect qemu+ssh://cloud@10.237.3.22/system list
  IdName   State
 
  2 i-2-275-VM running
  3 i-2-276-VM running
  4 i-2-293-VM running
 
 But I am still not able to perform live migration of VM.
 
 May I know how CloudStack connects to the hypervisors when it performs live
 migration, after finding a suitable target host? Does it request the source
 host to perform a qemu+ssh connect to the target host?
 

I'm not sure about the specifics here. Perhaps someone else will chime
in - But from looking at the resource for KVM in cloudstack it appears
the libvirt XML contains a qemu+tcp:// connection on migrate. 

Can you tell us if the KVM hosts share the same management subnet?
Are they in the same cluster as CloudStack denotes a cluster?

Is there a way to trap the XMLs sent to the KVM resource in the
libvirt logs? I'd try to enable that if so.

-- 
Prasanna.,


Powered by BigRock.com



RE: Alerts

2013-07-23 Thread Sanjay Tripathi
Yes, you can customize the alerts by setting the global configuration values.
In global config window, search for notificationthreshold; you'll get all the 
gc (.notificationthreshold) that you can set as per your requirement to get 
alerts.

--Sanjay

 -Original Message-
 From: Chitra Manjunath [mailto:chitra_manjun...@infosys.com]
 Sent: Tuesday, July 23, 2013 3:42 PM
 To: users@cloudstack.apache.org
 Subject: Alerts
 
 Hi
 
 Can I able to customize the Alerts?
 Like I should get the alert when storage reaches the 85% of threshold value
 or  Cpu utilization exceeds the 85% of threshold or No of snapshots per user
 exceeds.
 
 
 Thanks  regards
 Chitra.M
 
  CAUTION - Disclaimer * This e-mail
 contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for
 the use of the addressee(s). If you are not the intended recipient, please
 notify the sender by e-mail and delete the original message. Further, you are
 not to copy, disclose, or distribute this e-mail or its contents to any other
 person and any such actions are unlawful. This e-mail may contain viruses.
 Infosys has taken every reasonable precaution to minimize this risk, but is
 not liable for any damage you may sustain as a result of any virus in this e-
 mail. You should carry out your own virus checks before opening the e-mail
 or attachment. Infosys reserves the right to monitor and review the content
 of all messages sent to or from this e-mail address. Messages sent to or from
 this e-mail address may be stored on the Infosys e-mail system.
 ***INFOSYS End of Disclaimer INFOSYS***


MuleSoft

2013-07-23 Thread Len Bellemore
Hi Guys,

Anyone tried integrating Cloudstack with MuleSoft?

Cheers
Len



















IMPORTANT NOTICE. This electronic message contains information from Control 
Circle Ltd, which may be privileged or confidential. The information is 
intended for use only by the individual(s) or entity named above. If you are 
not the intended recipient, be aware that any disclosure, copying, distribution 
or use of the contents of this information is strictly prohibited. If you have 
received this electronic message in error, please notify me by telephone or 
email (to the number or email address above) immediately. Activity and use of 
the ControlCircle e-mail system is monitored to secure its effective operation 
and for other lawful business purposes. Communications using this system will 
also be monitored and may be recorded to secure effective operation and for 
other lawful business purposes


Re: Unable to migrate VM to another host

2013-07-23 Thread Marcus Sorensen
There is no cloud user on the host/agent side. Agent runs as root. Or is
this an experiment to try to run the agent as another user?
On Jul 23, 2013 4:44 AM, Prasanna Santhanam t...@apache.org wrote:

 On Tue, Jul 23, 2013 at 06:19:06PM +0800, Indra Pramana wrote:
  Dear Prasanna and all,
 
  I have tried to remove the host from CloudStack, uninstall and reinstall
  cloudstack-agent and added the host back into CloudStack. The cloud
  user-id is still not yet created. I then tried to add the cloud user
  manually, using exactly the same credentials as the cloud user on the
  other host.
 
  From the host, I tried to do a virsh connect qemu+ssh to the other host
  using the cloud user (instead of root), and getting this error:
 
  cloud@hv-kvm-01:~$ virsh --connect qemu+ssh://cloud@10.237.3.22/systemlist
  cloud@10.237.3.22's password:
  error: failed to connect to the hypervisor
  error: no valid connection
  error: End of file while reading data: : Input/output error
 
  If you notice, the error is the same exact error message I see on the
  management-server.log when I tried to do a live migration of VM. So I
 tried
  to follow this lead and implement this instruction to allow the cloud
  user to have access to the hypervisor on the other host:
 
  http://wiki.libvirt.org/page/SSHSetup
 
  usermod -G libvirtd -a cloud
 
  Enabled these on /etc/libvirt/libvirtd.conf:
 
  unix_sock_group = libvirtd
  unix_sock_rw_perms = 0770
 
  I also copied the SSH keys of the cloud user to the other host, so that
 it
  will not prompt for password.
 
  And I am now able to do a virsh connect using the cloud user:
 
  cloud@hv-kvm-01:~$ virsh --connect qemu+ssh://cloud@10.237.3.22/systemlist
   IdName   State
  
   2 i-2-275-VM running
   3 i-2-276-VM running
   4 i-2-293-VM running
 
  But I am still not able to perform live migration of VM.
 
  May I know how CloudStack connects to the hypervisors when it performs
 live
  migration, after finding a suitable target host? Does it request the
 source
  host to perform a qemu+ssh connect to the target host?
 

 I'm not sure about the specifics here. Perhaps someone else will chime
 in - But from looking at the resource for KVM in cloudstack it appears
 the libvirt XML contains a qemu+tcp:// connection on migrate.

 Can you tell us if the KVM hosts share the same management subnet?
 Are they in the same cluster as CloudStack denotes a cluster?

 Is there a way to trap the XMLs sent to the KVM resource in the
 libvirt logs? I'd try to enable that if so.

 --
 Prasanna.,

 
 Powered by BigRock.com




Re: How to backup cloudstack data?

2013-07-23 Thread Kirk Jantzer
We won't be able to tell you that. You will have to determine what is most
important to your organization to backup. For simplicity, definitely backup
the DB. If you wanted to backup anything, I'd probably suggest the
secondary storage, as it contains the templates, isos, and snapshots; of
which you'll likely be able to recover from (rebuild instances) more
easily.


On Mon, Jul 22, 2013 at 11:00 PM, WXR 1485739...@qq.com wrote:

 I use a storage device as my cloudstack primary and secondary storage.I
 can do redundant storage configuration on the device.

 But  I must do a backup of the most important data on the storage device
 to  another server.If the storage device is ruined for some reasons,I can
  restore the vms by using the backup data on the server.

 Each vm has its root and data volume files and the nearest 2 weeks
 snapshot files on the storage.
 If there is 50T data on the storage device(including volumes and
 snapshots),I can just copy 2T-10T of them to the backup server.Now the
 problem is which files should I copy and how to restore them.



 -- Original --
 From:  Ahmad Emneinaaemne...@gmail.com;
 Date:  Tue, Jul 23, 2013 10:29 AM
 To:  Cloudstack users mailing listusers@cloudstack.apache.org;

 Subject:  Re: How to backup cloudstack data?



 I agree with Kirk here, configuration management for the virtual infra and
 the important bits of data should be made redundant at the storage level.
 Cloudstack has a snapshotting function but if your secondary storage server
 tanks, you'll be in a world of hurt. If you use cloudstack snapshotting,
 ensure your secondary storage is replicated or has plenty of redundant
 disks.


 On Mon, Jul 22, 2013 at 6:22 PM, Kirk Jantzer kirk.jant...@gmail.com
 wrote:

  I said this in another thread and figured I'd mention it here since it
  seems applicable. It is my belief that the cloud is the IaaS and that the
  applications that run on the cloud should be built for failure of the
 IaaS:
  they (instances/applications) should be rapidly deployable. So, it
  shouldn't matter what cloud product
  (openstack/cloudstack/vmware/aws/etc...)
  you provide to your customers, they should be able to redeploy their
  application where ever they go or are given for IaaS.
 
  With that said, if you really wanted to backup the VMs, you probably want
  to look at something that backed up thorough the storage device, or the
  hypervisor, and then backup the management and mysql db.
 
 
  On Mon, Jul 22, 2013 at 8:57 PM, WXR 1485739...@qq.com wrote:
 
   Virtual machines.
   I want to know how to do data backup and restore the vms when the
   cloudstack storage has been ruined totally.
  
  
  
  
   -- Original --
   From:  Nitin Mehtanitin.me...@citrix.com;
   Date:  Mon, Jul 22, 2013 03:10 PM
   To:  users@cloudstack.apache.orgusers@cloudstack.apache.org;
  
   Subject:  Re: How to backup cloudstack data?
  
  
  
   What is it that you want to back up ? Virtual machines, snapshots -
   anything else ?
  
   On 22/07/13 7:09 AM, WXR 1485739...@qq.com wrote:
  
   I want to do a full backup of cloudstack data and restore them to a
 new
   cloudstack,but I don't know which files should I copy and how to
 restore
   them.
  
   .
 
 
 
 
  --
  Regards,
 
  Kirk Jantzer
  c: (678) 561-5475
  http://about.met/kirkjantzer
 




-- 
Regards,

Kirk Jantzer
c: (678) 561-5475
http://about.met/kirkjantzer


Re: Generating OS Templates

2013-07-23 Thread Celso Fernandes
Hi Prasanna,

Didn't understand where you puppet provisioning is absent, on packer?


On Fri, Jul 19, 2013 at 2:23 AM, Prasanna Santhanam t...@apache.org wrote:
 Agreed this is something I'd like to see in our test pipeline too and
 integrated into our internal clouds. Managing multiple templates can
 be messy. Once I finish off some 4.2 related stuff I'll look at
 implementing a CloudStack provider for packer in Go. Right now puppet
 provisioning is absent as well making it a bit difficult to configure
 the templates with a puppetmaster. So perhaps by the time we get to
 this, there will be support in packer

 --
 Prasanna.,

 On Thu, Jul 18, 2013 at 09:53:10PM +, Brian Galura wrote:
 We have an automated process for deploying code onto existing hosts,
 it would be cool to have it just build an image instead.

 -Original Message-
 From: celso.fernan...@gmail.com [mailto:celso.fernan...@gmail.com] On Behalf 
 Of Celso Fernandes
 Sent: Thursday, July 18, 2013 2:21 PM
 To: users@cloudstack.apache.org
 Subject: Re: Generating OS Templates

 What is this kind of continuous integration? To generate OS templates? ;) 
 Celso Fernandes

 www.zertico.com

 +55 35 4105-0922
 Av. BPS, 1303 - PCE - PCTI - Sala 10


 On Thu, Jul 18, 2013 at 5:11 PM, Brian Galura brian.gal...@citrix.com 
 wrote:
  Yes I opened that issue with packer. Would love to see that support and 
  use it with a continuous integration automation pipeline.
 
  On Jul 18, 2013, at 9:11, Prasanna Santhanam t...@apache.org wrote:
 
  Celso,
 
  There's an issue on the packer [1] github that you may be interested
  in if you plan on building support for CS. I've been playing around
  with packer for the last few weeks and find it quite stable for a
  version 0.1 tool and since it's by the Vagrant author himself I think
  it'll get good traction in the future.
 
  [1] https://github.com/mitchellh/packer/issues/76
 
  --
  Prasanna.,
 
  On Thu, Jul 18, 2013 at 11:40:02AM -0300, Celso Fernandes wrote:
  Christian,
  I've been using veewee to generate vagrant boxes in a while, for me
  is much better to develop something based on this and automate to
  import on Cloudstack instead of develop something from scratch.
 
  Prasanna,
  Thank you for the point.. Packer seems a really cool to do this task,
  I'm gonna try to make a plugin for XenServer, once it worked I try
  something specific to CloudStack, thank you for point me into this
  direction.
 
  Thank you all for replies,
  Celso Fernandes
 
  www.zertico.com
 
  +55 35 4105-0922
  Av. BPS, 1303 - PCE - PCTI - Sala 10
 
 
  On Thu, Jul 18, 2013 at 11:25 AM, Prasanna Santhanam t...@apache.org 
  wrote:
  There are no providers for CloudStack yet in these projects
  (vagrant/packer). Only for AWS, vmware fusion, vbox and possibly
  openstack. So you'll have to convert to vhd manually and then import
  as template and then muck around with the networking a little bit to
  get it right.
 
  On Thu, Jul 18, 2013 at 11:11:04AM -0300, Celso Fernandes wrote:
  Hi Sanjay, thank you for your reply,
 
  I thought were some more automated process like Veewee does for
  Vagrant boxes. Is there any way to convert Vagrant boxes to
  XenServer ones? So would be much more simpler to automate the
  process. I'm gonna search for some info and test, then publish any 
  result I got.
 
  Thank you,
  Celso Fernandes
 
  www.zertico.com
 
  +55 35 4105-0922
  Av. BPS, 1303 - PCE - PCTI - Sala 10
 
 
  On Thu, Jul 18, 2013 at 2:09 AM, Sanjay Tripathi
  sanjay.tripa...@citrix.com wrote:
  If you have VMs running with the mentioned OS types, first stop those 
  VMs then go to Storage tab in the CS UI and select the ROOT disk of 
  the VM for which you want to create the template.
  There you'll get the option to  create template from that ROOT volume.
 
  And VM should have xenserver tools installed to reflect it in the 
  template.
 
  --Sanjay
 
  -Original Message-
  From: celso.fernan...@gmail.com
  [mailto:celso.fernan...@gmail.com] On Behalf Of Celso Fernandes
  Sent: Thursday, July 18, 2013 6:21 AM
  To: users@cloudstack.apache.org
  Subject: Generating OS Templates
 
  I know its an novice question, but I haven't found in the
  documentation the best way to get this.
 
  I'd like to generate template for CentOS 6.4 / Debian 7.1 /
  Ubuntu
  12.04 with xenserver tools installed and password enabled.
 
  What is the best way to generate this templates? Any
  documentation or tutorial some could point would help very much.
 
  Thank you,
  Celso Fernandes
 
  www.zertico.com
 
  +55 35 4105-0922
  Av. BPS, 1303 - PCE - PCTI - Sala 10
 
  --
  Prasanna.,
 
  
  Powered by BigRock.com
 
 
  
  Powered by BigRock.com
 


 
 Powered by BigRock.com



Re: Cloudstack can't deploy new vm

2013-07-23 Thread Pierre Benard
Hi,

Thank you for your answer.

Our virtual router vm was used @50% of CPU and the network traffic it was 
amazing.
We had some system scripts who send DNS request storm on virtual router. Now, 
we have corrected this and now the usage of cpu is under 1% and network traffic 
is normal.

But, this operation don't be resolving our problems of new instance deployment 
:-(

Somebody has an other idea ?

Thanks in advance.

Pierre

- Mail original -
 De: ramnivas indani ramind...@h2osoftwares.com
 À: users@cloudstack.apache.org
 Envoyé: Mardi 23 Juillet 2013 10:27:11
 Objet: Re: Cloudstack can't deploy new vm
 
 We also face this kind of problem many times but in our case its
 because of
 router or storage instance are disconnected or down under vmware, i
 will
 suggest you to check their connectivity once not only from cloudstack
 but
 also from backend.
 
 
 On Tue, Jul 23, 2013 at 1:50 PM, Pierre Benard
 pierre.ben...@inria.frwrote:
 
  Hi,
 
 
 
  We have a problem with our CloudStack.
  We can't deploying new instance. When we try to deploy new vm we
  have a
  short error message on the CloudStack interface : Unable to create
  a
  deployment for VM[User|i-3-2764-VM] . We have the same error when
  we
  deploy new instance from iso or template.
  In the event page on CS, we have :
 
  VM.CREATE   Error while starting Vm. Vm Id: 2764
  pierre.ben...@inria.fr  22 Jul 2013 13:15:47
  VM.CREATE   Starting job for starting Vm. Vm Id: 2764
  pierre.ben...@inria.fr  22 Jul 2013 13:15:47
  VM.CREATE   Scheduled async job for starting Vm. Vm Id: 2764
  pierre.ben...@inria.fr  22 Jul 2013 13:15:46
  VM.CREATE   Successfully created entity for deploying Vm. Vm
  Id: 2764
pierre.ben...@inria.fr  22 Jul 2013 13:15:46
 
  Isn't really verbose ...
 
 
  All the other instance are continuous to running correctly, we can
  stop/start it.
  There is no significant error in the log files of CloudStack server
  and on
  each we sufficient resources to deploy many instances.
  The SSVM and primary storage are available.
 
 
  Our CloudStack environment :
  * CloudStack v3
  * 1 pod of 4 clusters KVM, each cluster has 4 KVM hypervisor
 
 
  Please Suggest.
 
 
  Thank you.
 
 
  Pierre Bénard
  System engineer
 
 
  Inria Rennes - Bretagne Atlantique
 
  Campus universitaire de Beaulieu
  35042 Rennes Cedex
  Tél. +33 2 99 84 71 00
  Fax +33 2 99 84 71 71
  www.inria.fr
 
  Suivez‐nous sur :
  Twitter twitter.com/inria
  YouTube youtube.com/inriachannel
 
 
 



Re: Cloudstack can't deploy new vm

2013-07-23 Thread Kirk Jantzer
Please paste the contents
of /var/log/cloudstack/management/management-server.log to PasteBin so that
we can analyze that.


On Tue, Jul 23, 2013 at 11:10 AM, Pierre Benard pierre.ben...@inria.frwrote:

 Hi,

 Thank you for your answer.

 Our virtual router vm was used @50% of CPU and the network traffic it was
 amazing.
 We had some system scripts who send DNS request storm on virtual router.
 Now, we have corrected this and now the usage of cpu is under 1% and
 network traffic is normal.

 But, this operation don't be resolving our problems of new instance
 deployment :-(

 Somebody has an other idea ?

 Thanks in advance.

 Pierre

 - Mail original -
  De: ramnivas indani ramind...@h2osoftwares.com
  À: users@cloudstack.apache.org
  Envoyé: Mardi 23 Juillet 2013 10:27:11
  Objet: Re: Cloudstack can't deploy new vm
 
  We also face this kind of problem many times but in our case its
  because of
  router or storage instance are disconnected or down under vmware, i
  will
  suggest you to check their connectivity once not only from cloudstack
  but
  also from backend.
 
 
  On Tue, Jul 23, 2013 at 1:50 PM, Pierre Benard
  pierre.ben...@inria.frwrote:
 
   Hi,
  
  
  
   We have a problem with our CloudStack.
   We can't deploying new instance. When we try to deploy new vm we
   have a
   short error message on the CloudStack interface : Unable to create
   a
   deployment for VM[User|i-3-2764-VM] . We have the same error when
   we
   deploy new instance from iso or template.
   In the event page on CS, we have :
  
   VM.CREATE   Error while starting Vm. Vm Id: 2764
   pierre.ben...@inria.fr  22 Jul 2013 13:15:47
   VM.CREATE   Starting job for starting Vm. Vm Id: 2764
   pierre.ben...@inria.fr  22 Jul 2013 13:15:47
   VM.CREATE   Scheduled async job for starting Vm. Vm Id: 2764
   pierre.ben...@inria.fr  22 Jul 2013 13:15:46
   VM.CREATE   Successfully created entity for deploying Vm. Vm
   Id: 2764
 pierre.ben...@inria.fr  22 Jul 2013 13:15:46
  
   Isn't really verbose ...
  
  
   All the other instance are continuous to running correctly, we can
   stop/start it.
   There is no significant error in the log files of CloudStack server
   and on
   each we sufficient resources to deploy many instances.
   The SSVM and primary storage are available.
  
  
   Our CloudStack environment :
   * CloudStack v3
   * 1 pod of 4 clusters KVM, each cluster has 4 KVM hypervisor
  
  
   Please Suggest.
  
  
   Thank you.
  
  
   Pierre Bénard
   System engineer
  
  
   Inria Rennes - Bretagne Atlantique
  
   Campus universitaire de Beaulieu
   35042 Rennes Cedex
   Tél. +33 2 99 84 71 00
   Fax +33 2 99 84 71 71
   www.inria.fr
  
   Suivez‐nous sur :
   Twitter twitter.com/inria
   YouTube youtube.com/inriachannel
  
  
  
 




-- 
Regards,

Kirk Jantzer
c: (678) 561-5475
http://about.met/kirkjantzer


Re: Cloudstack can't deploy new vm

2013-07-23 Thread Pierre Benard
Hi,

The log is really short for today (we've made some creating tests today):

2013-07-23 14:55:58,608 ERROR [cloud.server.ManagementServerImpl] 
(catalina-exec-10:null) Incorrect format of the template id 460
2013-07-23 14:55:59,858 ERROR [cloud.server.ManagementServerImpl] 
(catalina-exec-6:null) Incorrect format of the template id 439

The precedent log is dated on 21th, and it is short too :

2013-07-21 15:17:08,664 ERROR [cloud.api.ApiDispatcher] 
(Job-Executor-32:job-10294) Exception while executing StopVMCmd:
com.cloud.utils.exception.CloudRuntimeException: We cannot stop 
VM[User|i-451-2756-VM] when it is in state Starting
at 
com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1005)
at 
com.cloud.vm.UserVmManagerImpl.stopVirtualMachine(UserVmManagerImpl.java:2776)
at 
com.cloud.event.ActionEventCallback.intercept(ActionEventCallback.java:32)
at com.cloud.api.commands.StopVMCmd.execute(StopVMCmd.java:114)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:132)
at 
com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:427)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)


Regards,


Pierre

- Mail original -
 De: Kirk Jantzer kirk.jant...@gmail.com
 À: Cloudstack users mailing list users@cloudstack.apache.org
 Envoyé: Mardi 23 Juillet 2013 17:21:37
 Objet: Re: Cloudstack can't deploy new vm
 
 Sorry, saw you're on v3. the correct location is:
 /var/log/cloud/management/management-server.log
 
 
 On Tue, Jul 23, 2013 at 11:20 AM, Kirk Jantzer
 kirk.jant...@gmail.comwrote:
 
  Please paste the contents
  of /var/log/cloudstack/management/management-server.log to PasteBin
  so that
  we can analyze that.
 
 
  On Tue, Jul 23, 2013 at 11:10 AM, Pierre Benard
  pierre.ben...@inria.frwrote:
 
  Hi,
 
  Thank you for your answer.
 
  Our virtual router vm was used @50% of CPU and the network traffic
  it was
  amazing.
  We had some system scripts who send DNS request storm on virtual
  router.
  Now, we have corrected this and now the usage of cpu is under 1%
  and
  network traffic is normal.
 
  But, this operation don't be resolving our problems of new
  instance
  deployment :-(
 
  Somebody has an other idea ?
 
  Thanks in advance.
 
  Pierre
 
  - Mail original -
   De: ramnivas indani ramind...@h2osoftwares.com
   À: users@cloudstack.apache.org
   Envoyé: Mardi 23 Juillet 2013 10:27:11
   Objet: Re: Cloudstack can't deploy new vm
  
   We also face this kind of problem many times but in our case its
   because of
   router or storage instance are disconnected or down under
   vmware, i
   will
   suggest you to check their connectivity once not only from
   cloudstack
   but
   also from backend.
  
  
   On Tue, Jul 23, 2013 at 1:50 PM, Pierre Benard
   pierre.ben...@inria.frwrote:
  
Hi,
   
   
   
We have a problem with our CloudStack.
We can't deploying new instance. When we try to deploy new vm
we
have a
short error message on the CloudStack interface : Unable to
create
a
deployment for VM[User|i-3-2764-VM] . We have the same error
when
we
deploy new instance from iso or template.
In the event page on CS, we have :
   
VM.CREATE   Error while starting Vm. Vm Id: 2764
pierre.ben...@inria.fr  22 Jul 2013 13:15:47
VM.CREATE   Starting job for starting Vm. Vm Id: 2764
pierre.ben...@inria.fr  22 Jul 2013 13:15:47
VM.CREATE   Scheduled async job for starting Vm. Vm Id:
2764
pierre.ben...@inria.fr  22 Jul 2013 13:15:46
VM.CREATE   Successfully created entity for deploying Vm.
Vm
Id: 2764
  pierre.ben...@inria.fr  22 Jul 2013 13:15:46
   
Isn't really verbose ...
   
   
All the other instance are continuous to running correctly, we
can
stop/start it.
There is no significant error in the log files of CloudStack
server
and on
each we sufficient resources to deploy many instances.
The SSVM and primary storage are available.
   
   
Our CloudStack environment :
* CloudStack v3
* 1 pod of 4 clusters KVM, each cluster has 4 KVM hypervisor
   
   
Please Suggest.
   
   
Thank you.
   
   
Pierre Bénard
System engineer
   
   
Inria Rennes - Bretagne Atlantique
   
Campus universitaire de Beaulieu
35042 Rennes Cedex
Tél. +33 2 99 84 71 00
Fax +33 2 99 84 71 71
www.inria.fr
   
Suivez‐nous sur :
Twitter twitter.com/inria
YouTube youtube.com/inriachannel
   
   
   
  
 
 
 

Re: Cloudstack can't deploy new vm

2013-07-23 Thread Kirk Jantzer
That's all that's in your log?


On Tue, Jul 23, 2013 at 11:35 AM, Pierre Benard pierre.ben...@inria.frwrote:

 Hi,

 The log is really short for today (we've made some creating tests today):

 2013-07-23 14:55:58,608 ERROR [cloud.server.ManagementServerImpl]
 (catalina-exec-10:null) Incorrect format of the template id 460
 2013-07-23 14:55:59,858 ERROR [cloud.server.ManagementServerImpl]
 (catalina-exec-6:null) Incorrect format of the template id 439

 The precedent log is dated on 21th, and it is short too :

 2013-07-21 15:17:08,664 ERROR [cloud.api.ApiDispatcher]
 (Job-Executor-32:job-10294) Exception while executing StopVMCmd:
 com.cloud.utils.exception.CloudRuntimeException: We cannot stop
 VM[User|i-451-2756-VM] when it is in state Starting
 at
 com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1005)
 at
 com.cloud.vm.UserVmManagerImpl.stopVirtualMachine(UserVmManagerImpl.java:2776)
 at
 com.cloud.event.ActionEventCallback.intercept(ActionEventCallback.java:32)
 at com.cloud.api.commands.StopVMCmd.execute(StopVMCmd.java:114)
 at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:132)
 at
 com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:427)
 at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at
 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
 at java.util.concurrent.FutureTask.run(FutureTask.java:166)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:679)


 Regards,


 Pierre

 - Mail original -
  De: Kirk Jantzer kirk.jant...@gmail.com
  À: Cloudstack users mailing list users@cloudstack.apache.org
  Envoyé: Mardi 23 Juillet 2013 17:21:37
  Objet: Re: Cloudstack can't deploy new vm
 
  Sorry, saw you're on v3. the correct location is:
  /var/log/cloud/management/management-server.log
 
 
  On Tue, Jul 23, 2013 at 11:20 AM, Kirk Jantzer
  kirk.jant...@gmail.comwrote:
 
   Please paste the contents
   of /var/log/cloudstack/management/management-server.log to PasteBin
   so that
   we can analyze that.
  
  
   On Tue, Jul 23, 2013 at 11:10 AM, Pierre Benard
   pierre.ben...@inria.frwrote:
  
   Hi,
  
   Thank you for your answer.
  
   Our virtual router vm was used @50% of CPU and the network traffic
   it was
   amazing.
   We had some system scripts who send DNS request storm on virtual
   router.
   Now, we have corrected this and now the usage of cpu is under 1%
   and
   network traffic is normal.
  
   But, this operation don't be resolving our problems of new
   instance
   deployment :-(
  
   Somebody has an other idea ?
  
   Thanks in advance.
  
   Pierre
  
   - Mail original -
De: ramnivas indani ramind...@h2osoftwares.com
À: users@cloudstack.apache.org
Envoyé: Mardi 23 Juillet 2013 10:27:11
Objet: Re: Cloudstack can't deploy new vm
   
We also face this kind of problem many times but in our case its
because of
router or storage instance are disconnected or down under
vmware, i
will
suggest you to check their connectivity once not only from
cloudstack
but
also from backend.
   
   
On Tue, Jul 23, 2013 at 1:50 PM, Pierre Benard
pierre.ben...@inria.frwrote:
   
 Hi,



 We have a problem with our CloudStack.
 We can't deploying new instance. When we try to deploy new vm
 we
 have a
 short error message on the CloudStack interface : Unable to
 create
 a
 deployment for VM[User|i-3-2764-VM] . We have the same error
 when
 we
 deploy new instance from iso or template.
 In the event page on CS, we have :

 VM.CREATE   Error while starting Vm. Vm Id: 2764
 pierre.ben...@inria.fr  22 Jul 2013 13:15:47
 VM.CREATE   Starting job for starting Vm. Vm Id: 2764
 pierre.ben...@inria.fr  22 Jul 2013 13:15:47
 VM.CREATE   Scheduled async job for starting Vm. Vm Id:
 2764
 pierre.ben...@inria.fr  22 Jul 2013 13:15:46
 VM.CREATE   Successfully created entity for deploying Vm.
 Vm
 Id: 2764
   pierre.ben...@inria.fr  22 Jul 2013 13:15:46

 Isn't really verbose ...


 All the other instance are continuous to running correctly, we
 can
 stop/start it.
 There is no significant error in the log files of CloudStack
 server
 and on
 each we sufficient resources to deploy many instances.
 The SSVM and primary storage are available.


 Our CloudStack environment :
 * CloudStack v3
 * 1 pod of 4 clusters KVM, each cluster has 4 KVM hypervisor


 Please Suggest.


 Thank you.


 Pierre Bénard
 System engineer


 Inria Rennes - Bretagne 

Re: Unable to migrate VM to another host

2013-07-23 Thread Prasanna Santhanam
On Tue, Jul 23, 2013 at 08:18:31AM -0600, Marcus Sorensen wrote:
 There is no cloud user on the host/agent side. Agent runs as root. Or is
 this an experiment to try to run the agent as another user?

That was entirely my mistake. I just went about thinking the agents
ran as cloud (ssvm, cpvm, kvm agent). Looking at my deployment it
seems that /etc/sudoers has an entry for cloud but the service runs as
root. My apologies for misleading on that.

 On Jul 23, 2013 4:44 AM, Prasanna Santhanam t...@apache.org wrote:
 
  On Tue, Jul 23, 2013 at 06:19:06PM +0800, Indra Pramana wrote:
   Dear Prasanna and all,
  
   I have tried to remove the host from CloudStack, uninstall and reinstall
   cloudstack-agent and added the host back into CloudStack. The cloud
   user-id is still not yet created. I then tried to add the cloud user
   manually, using exactly the same credentials as the cloud user on the
   other host.
  
   From the host, I tried to do a virsh connect qemu+ssh to the other host
   using the cloud user (instead of root), and getting this error:
  
   cloud@hv-kvm-01:~$ virsh --connect qemu+ssh://cloud@10.237.3.22/systemlist
   cloud@10.237.3.22's password:
   error: failed to connect to the hypervisor
   error: no valid connection
   error: End of file while reading data: : Input/output error

However - the issue still remains that migration between two KVM hosts
seems to be failing. The log indicates the error shown above which was
tried by hand here. 

Deployment contains KVM hosts with Ceph+RBD as primary storage.

-- 
Prasanna.,


Powered by BigRock.com



storage overprovisioning

2013-07-23 Thread Len Bellemore
Hi Guys,

Was wondering if someone could explain to me the difference between the 
following Global Settings:

pool.storage.allocated.capacity.disablethreshold
pool.storage.capacity.disablethreshold

Many thanks!
Len


IMPORTANT NOTICE. This electronic message contains information from Control 
Circle Ltd, which may be privileged or confidential. The information is 
intended for use only by the individual(s) or entity named above. If you are 
not the intended recipient, be aware that any disclosure, copying, distribution 
or use of the contents of this information is strictly prohibited. If you have 
received this electronic message in error, please notify me by telephone or 
email (to the number or email address above) immediately. Activity and use of 
the ControlCircle e-mail system is monitored to secure its effective operation 
and for other lawful business purposes. Communications using this system will 
also be monitored and may be recorded to secure effective operation and for 
other lawful business purposes


VPC Issue with CS 4.1/KVM/Openvswitch

2013-07-23 Thread Dinu Arateanu
Hello,

I've been testing Cloudstack 4.1 with KVM/Openvswitch networking. When trying 
to add a VPC, the VR's public interface default route was not assigned 
correctly, nor the source nat. Cloudstack reports the VPC is created 
successfully, however the VR is left in an incomplete state. Looking through 
the agent logs I found: 

2013-07-19 16:39:20,961 DEBUG [cloud.agent.Agent] (agentRequest-Handler-2:null) 
Processing command: com.cloud.agent.api.PlugNicCommand
2013-07-19 16:39:20,970 DEBUG [kvm.resource.OvsVifDriver] 
(agentRequest-Handler-2:null) plugging nic=[Nic:Public-192.168.1.68-vlan://32]
2013-07-19 16:39:20,970 DEBUG [kvm.resource.OvsVifDriver] 
(agentRequest-Handler-2:null) creating a vlan dev and bridge for public traffic 
per traffic label vswitch0
2013-07-19 16:39:21,116 DEBUG [cloud.agent.Agent] (agentRequest-Handler-2:null) 
Processing command: com.cloud.agent.api.routing.IpAssocVpcCommand
2013-07-19 16:39:21,126 DEBUG [resource.virtualnetwork.VirtualRoutingResource] 
(agentRequest-Handler-2:null) Executing: 
/usr/share/cloudstack-common/scripts/network/domr/router_proxy.sh 
vpc_ipassoc.sh 169.254.2.23  -A  -l 192.168.1.68 -c ethnull -g 192.168.1.1 -m 
24 -n 192.168.1.0
2013-07-19 16:39:29,107 DEBUG [kvm.resource.LibvirtComputingResource] 
(UgentTask-5:null) Executing: 
/usr/share/cloudstack-common/scripts/vm/network/security_group.py 
get_rule_logs_for_vms
2013-07-19 16:39:29,233 DEBUG [kvm.resource.LibvirtComputingResource] 
(UgentTask-5:null) Execution is successful.
2013-07-19 16:39:29,235 DEBUG [cloud.agent.Agent] (UgentTask-5:null) Sending 
ping: Seq 7-103:  { Cmd , MgmtId: -1, via: 7, Ver: v1, Flags: 11, 
[{PingRoutingWithNwGroupsCommand:{newGroupStates:{},newStates:{},_gatewayAccessible:true,_vnetAccessible:true,hostType:Routing,hostId:7,wait:0}}]
 }
2013-07-19 16:39:29,243 DEBUG [cloud.agent.Agent] (Agent-Handler-5:null) 
Received response: Seq 7-103:  { Ans: , MgmtId: 112938636298, via: 7, Ver: v1, 
Flags: 100010, 
[{PingAnswer:{_command:{hostType:Routing,hostId:7,wait:0},result:true,wait:0}}]
 }
2013-07-19 16:39:38,707 DEBUG [resource.virtualnetwork.VirtualRoutingResource] 
(agentRequest-Handler-2:null) Execution is successful.
2013-07-19 16:39:38,708 DEBUG [resource.virtualnetwork.VirtualRoutingResource] 
(agentRequest-Handler-2:null) Device ethnull does not exist.
Cannot find device ethnull
Error: argument Table_ethnull is wrong: table value is invalid

Error: argument Table_ethnull is wrong: table value is invalid

RTNETLINK answers: No such process

2013-07-19 16:39:38,709 DEBUG [cloud.agent.Agent] (agentRequest-Handler-2:null) 
Processing command: com.cloud.agent.api.routing.SetSourceNatCommand
2013-07-19 16:39:38,719 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:null) failing to get physical interface from 
bridgecloud0, did not find an eth*, bond*, or vlan* in 
/sys/devices/virtual/net/cloud0/brif
2013-07-19 16:39:38,719 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:null) failed to get vlan id from bridge cloud0attached 
to physical interface
2013-07-19 16:39:38,719 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:null) failing to get physical interface from 
bridgevswitch0, did not find an eth*, bond*, or vlan* in 
/sys/devices/virtual/net/vswitch0/brif
2013-07-19 16:39:38,719 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:null) failed to get vlan id from bridge 
vswitch0attached to physical interface
2013-07-19 16:39:38,719 DEBUG [resource.virtualnetwork.VirtualRoutingResource] 
(agentRequest-Handler-2:null) Executing: 
/usr/share/cloudstack-common/scripts/network/domr/router_proxy.sh vpc_snat.sh 
169.254.2.23  -A  -l 192.168.1.68 -c eth2
2013-07-19 16:39:38,947 DEBUG [resource.virtualnetwork.VirtualRoutingResource] 
(agentRequest-Handler-2:null) Execution is successful.
2013-07-19 16:39:38,948 DEBUG [resource.virtualnetwork.VirtualRoutingResource] 
(agentRequest-Handler-2:null) iptables: Bad rule (does a matching rule exist in 
that chain?).
iptables: No chain/target/match by that name.


Cloudstack is configured with advanced networking. Tags for physical networks
- vswitch0 for public  guest traffic
- vif9 for storage traffic
- vif8 for management traffic

Openvswitch configuration: 
# ovs-vsctl show

Bridge vswitch1
Port vswitch1
Interface vswitch1
type: internal
Port eth1
Interface eth1
Port vif9
tag: 9
Interface vif9
type: internal
Bridge vswitch0
Port vnet1
tag: 32
Interface vnet1
Port vswitch0
Interface vswitch0
type: internal
Port vif8
tag: 8
Interface vif8
type: internal
Port eth0
Interface eth0
Bridge cloud0
Port vnet0
Interface vnet0
Port cloud0
Interface cloud0
  

RE: CloudStack performance issue

2013-07-23 Thread David Ortiz
Indra,
 How big are the templates you are attempting to deploy?  I could see the 1 
Gbps connection being a little bit of a bottleneck, but it sounds like there 
may be something else going on.  I know we would have issues on our setup which 
is on 1 Gbps connections at the moment if we tried to do multiple snapshots at 
once, but we could normally get away with deploying a couple VMs at once within 
a few minutes.  As for the question about how they are being copied, I am not 
100% confident on this, but I believe it is copied via the SSVM, so it would be 
going secondary storage -- hypervisor host -- primary storage.  Hopefully 
someone will correct me if I am wrong on that.
-David

 Date: Tue, 23 Jul 2013 12:33:17 +0800
 Subject: Re: CloudStack performance issue
 From: in...@sg.or.id
 To: users@cloudstack.apache.org
 
 Hi David,
 
 Good day to you, and thank you for your e-mail.
 
 My secondary storage is connected to the switch using 1 Gbps connection,
 while my primary storage is connected via a 10 Gbps connection.
 Unfortunately I don't have 10G NIC cards on my secondary storage. Do you
 think upgrading my secondary storage's NIC to 10 Gbps will help?
 
 May I know how the template and ISOs are being copied, is it through the
 hypervisor host (e.g. secondary storage -- hypervisor host -- primary
 storage) or directly (i.e. secondary storage -- primary storage)? My
 primary storage is not on the same subnet/VLAN as secondary storage, since
 it's connected to different NIC cards on the hypervisor hosts. If it's a
 direct connection between secondary storage to primary storage without
 going to the hypervisor, I might be considering changing my network
 topology to make the primary and secondary storage to be on the same
 subnet/VLAN.
 
 Looking forward to your reply, thank you.
 
 Cheers.
 
 
 On Tue, Jul 23, 2013 at 3:19 AM, David Ortiz dpor...@outlook.com wrote:
 
  Meant that question for Indra.  Sorry.
 
   From: dpor...@outlook.com
   To: users@cloudstack.apache.org
   Subject: RE: CloudStack performance issue
   Date: Mon, 22 Jul 2013 11:34:10 -0400
  
   Prasanna,
What kind of network do you use for your setup?  Creating a new VM
  requires copying the template or ISO over from secondary storage to
  primary, so that could be a bottleneck when trying to create multiple VMs
  at once.
   -Dave
  
Date: Sat, 20 Jul 2013 16:20:08 +0530
From: t...@apache.org
To: users@cloudstack.apache.org
Subject: Re: CloudStack performance issue
   
On Sat, Jul 20, 2013 at 03:18:12PM +0800, Indra Pramana wrote:

 Where can I start troubleshooting, which logs I need to go through
  to find
 out the bottleneck? The management-server.log file doesn't show much
 anything about the delay. It seems that there is some locking
  mechanism
 and certain processes will need other processes to complete before
  they can
 start. This is worrying since in a production environment, many
  customers
 might want to try creating VMs at the same time simultaneously.

   
The logs of use would be managment-server.log which defaults to DEBUG
mode. The logs on the agent (inside KVM host) are default in INFO
mode. You can turn them up to DEBUG by altering the log4j config.
Apart from that you can also look at libvirt logs. Folks have been
tuning the deployment of the VMs on KVM host in another thread on dev@
and in the bug https://issues.apache.org/jira/browse/CLOUDSTACK-3163
   
let us know if the symptoms are the same and you can bring this up on
dev@ with more details.
   
 Any thoughts or feedback on this matter is appreciated.

 Looking forward to your reply, thank you.

 Cheers.
   
--
Prasanna.,
   

Powered by BigRock.com
   
  
 
 
  

Re: Console Proxy not starting

2013-07-23 Thread Dean Kamali
I destroyed proxy vm few days ago, and in about 30 seconds or so I saw the
new one getting created and started in about 1 -2 min.

environment: cs 4.1 xenserver 6.0.2


On Tue, Jul 23, 2013 at 12:12 PM, Caleb Call calebc...@me.com wrote:

 That's odd because of all my zones, this is the only one I haven't moved a
 hypervisor in or out of since being built.

 I destroyed the Console Proxy VM, how long should it take before CS spins
 a new one up?

 Thanks

 On Jul 22, 2013, at 10:26 PM, Ahmad Emneina aemne...@gmail.com wrote:

  Hey Caleb, looks like the host the console proxy used to live on is gone.
  see:
  The last host of this VM cannot be found
  2013-07-18 14:02:40,142 DEBUG [cloud.deploy.FirstFitPlanner]
  (Job-Executor-43:job-5916) Cannot choose the last host to deploy this VM
 
  what I would do is nuke (destroy) the console proxy vm, and allow
  cloudstack to spin up a new one.
 
 
  On Mon, Jul 22, 2013 at 8:56 AM, Caleb Call calebc...@me.com wrote:
 
  Primary storage is not in maintenance mode and is available.  I have a
  couple dozen VMs running from this same primary storage and the SSVM and
  router VM are both running from this same storage.  Only the console
 proxy
  seems to be having a problem.
 
  $ ./cloudAPI.pl -c listStoragePools -p
  clusterid=f200c92f-5937-43c7-8bf5-6593f7311400
 
 
 https://cloud.overstock.com/client/api?apiKey=xclusterid=f200c92f-5937-43c7-8bf5-6593f7311400command=listStoragePoolsresponse=jsonsignature=x{
liststoragepoolsresponse : {
   storagepool : [
  {
 clusterid : f200c92f-5937-43c7-8bf5-6593f7311400,
 zonename : Offshore,
 state : Up,
 disksizeallocated : 359196000256,
 podid : 20eff451-3edd-4366-8ab2-60f2390e5134,
 podname : Offshore,
 id : OFFSHORE_FC_LUN01,
 clustername : Offshore,
 zoneid : 8e1c49fc-a5b3-44bb-9d54-932b0047eed0,
 name : OFFSHORE_FC_LUN01,
 disksizeused : 360047443968,
 path : /OFFSHORE_FC_LUN01,
 disksizetotal : 1099499044864,
 tags : ,
 created : 2013-06-08T15:45:05-0600,
 type : PreSetup,
 ipaddress : localhost
  }
   ],
   count : 1
}
  }
 
 
 
  On Jul 20, 2013, at 5:06 PM, David Comerford davest...@gmail.com
 wrote:
 
  For some reason I was thinking the system VMs lived on the secondary
  storage, but I'm probably wrong on that.
  The templates for the system VM's live on secondary storage, then they
  are
  deployed to primary storage.
 
  Allocator seems happy enough to use host id 51 but theres no primary
  storage available in cluster id 9.
  Is it in maintenance mode or anything?
 
  'list storagepools' in cloudmonkey might shed some light.
 
  Best regards,
  David Comerford
  
  Tel: +353 87 1238295
  Email: davest...@gmail.com
  Website: http://dave.ie
  GPG key: http://gpg.dave.ie http://pgp.dave.ie
 
 
  On 18 July 2013 21:27, Bradley Hieber mercsni...@gmail.com wrote:
 
  pastebin please
 
 
  On Thu, Jul 18, 2013 at 4:24 PM, Caleb Call calebc...@me.com wrote:
 
  When trying to start the console proxy in one of my zones fails.  I'm
  getting an error that says no suitable storagePools for in this
  cluster.
  Which storage pool would this be?  For some reason I was thinking the
  system VMs lived on the secondary storage, but I'm probably wrong on
  that.
  Either way, I have ~700GB of free space on my primary storage and
  ~500GB
  free in my secondary storage, what else is this looking for to be
 able
  to
  start this console proxy?  I've included the logs around this event.
 
 
  2013-07-18 14:02:40,031 DEBUG [cloud.api.ApiServlet]
  (catalina-exec-13:null) ===START===  10.4.108.254 -- GET
  command=startSystemVmid=d10d7f57
 
 
 
 
 -8b1b-45b2-9875-8c18995ac37bresponse=jsonsessionkey=uMQLwJmB8uyPSQeSiSBXo04naus%3D_=1374177759969
  2013-07-18 14:02:40,033 DEBUG [ehcache.store.MemoryStore]
  (catalina-exec-13:null) UserDaoCache: UserDaoMemoryStore hit for 10
  2013-07-18 14:02:40,112 DEBUG [cloud.async.AsyncJobManagerImpl]
  (catalina-exec-13:null) submit async job-5916, details: AsyncJobVO
  {id:5916, use
  rId: 10, accountId: 7, sessionKey: null, instanceType: SystemVm,
  instanceId: 1024, cmd: com.cloud.api.commands.StartSystemVMCmd,
  cmdOriginator:
  null, cmdInfo:
 
 
 
 {response:json,id:d10d7f57-8b1b-45b2-9875-8c18995ac37b,sessionkey:uMQLwJmB8uyPSQeSiSBXo04naus\u003d,ctxUserId:10,
  _:1374177759969,ctxAccountId:7,ctxStartEventId:18978},
  cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0,
  processStat
  us: 0, resultCode: 0, result: null, initMsid: 145320940120008,
  completeMsid: null, lastUpdated: null, lastPolled: null, created:
 null}
  2013-07-18 14:02:40,113 DEBUG [cloud.async.AsyncJobManagerImpl]
  (Job-Executor-43:job-5916) Executing
  com.cloud.api.commands.StartSystemVMCmd for
  job-5916
  

Re: Console Proxy not starting

2013-07-23 Thread David Comerford
Yeah, should be a couple of minutes at most.
If you don't have it yet it's time to examine the logs.


Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 23 July 2013 19:35, Dean Kamali dean.kam...@gmail.com wrote:

 I destroyed proxy vm few days ago, and in about 30 seconds or so I saw the
 new one getting created and started in about 1 -2 min.

 environment: cs 4.1 xenserver 6.0.2


 On Tue, Jul 23, 2013 at 12:12 PM, Caleb Call calebc...@me.com wrote:

  That's odd because of all my zones, this is the only one I haven't moved
 a
  hypervisor in or out of since being built.
 
  I destroyed the Console Proxy VM, how long should it take before CS spins
  a new one up?
 
  Thanks
 
  On Jul 22, 2013, at 10:26 PM, Ahmad Emneina aemne...@gmail.com wrote:
 
   Hey Caleb, looks like the host the console proxy used to live on is
 gone.
   see:
   The last host of this VM cannot be found
   2013-07-18 14:02:40,142 DEBUG [cloud.deploy.FirstFitPlanner]
   (Job-Executor-43:job-5916) Cannot choose the last host to deploy this
 VM
  
   what I would do is nuke (destroy) the console proxy vm, and allow
   cloudstack to spin up a new one.
  
  
   On Mon, Jul 22, 2013 at 8:56 AM, Caleb Call calebc...@me.com wrote:
  
   Primary storage is not in maintenance mode and is available.  I have a
   couple dozen VMs running from this same primary storage and the SSVM
 and
   router VM are both running from this same storage.  Only the console
  proxy
   seems to be having a problem.
  
   $ ./cloudAPI.pl -c listStoragePools -p
   clusterid=f200c92f-5937-43c7-8bf5-6593f7311400
  
  
 
 https://cloud.overstock.com/client/api?apiKey=xclusterid=f200c92f-5937-43c7-8bf5-6593f7311400command=listStoragePoolsresponse=jsonsignature=x{
 liststoragepoolsresponse : {
storagepool : [
   {
  clusterid : f200c92f-5937-43c7-8bf5-6593f7311400,
  zonename : Offshore,
  state : Up,
  disksizeallocated : 359196000256,
  podid : 20eff451-3edd-4366-8ab2-60f2390e5134,
  podname : Offshore,
  id : OFFSHORE_FC_LUN01,
  clustername : Offshore,
  zoneid : 8e1c49fc-a5b3-44bb-9d54-932b0047eed0,
  name : OFFSHORE_FC_LUN01,
  disksizeused : 360047443968,
  path : /OFFSHORE_FC_LUN01,
  disksizetotal : 1099499044864,
  tags : ,
  created : 2013-06-08T15:45:05-0600,
  type : PreSetup,
  ipaddress : localhost
   }
],
count : 1
 }
   }
  
  
  
   On Jul 20, 2013, at 5:06 PM, David Comerford davest...@gmail.com
  wrote:
  
   For some reason I was thinking the system VMs lived on the secondary
   storage, but I'm probably wrong on that.
   The templates for the system VM's live on secondary storage, then
 they
   are
   deployed to primary storage.
  
   Allocator seems happy enough to use host id 51 but theres no primary
   storage available in cluster id 9.
   Is it in maintenance mode or anything?
  
   'list storagepools' in cloudmonkey might shed some light.
  
   Best regards,
   David Comerford
   
   Tel: +353 87 1238295
   Email: davest...@gmail.com
   Website: http://dave.ie
   GPG key: http://gpg.dave.ie http://pgp.dave.ie
  
  
   On 18 July 2013 21:27, Bradley Hieber mercsni...@gmail.com wrote:
  
   pastebin please
  
  
   On Thu, Jul 18, 2013 at 4:24 PM, Caleb Call calebc...@me.com
 wrote:
  
   When trying to start the console proxy in one of my zones fails.
  I'm
   getting an error that says no suitable storagePools for in this
   cluster.
   Which storage pool would this be?  For some reason I was thinking
 the
   system VMs lived on the secondary storage, but I'm probably wrong
 on
   that.
   Either way, I have ~700GB of free space on my primary storage and
   ~500GB
   free in my secondary storage, what else is this looking for to be
  able
   to
   start this console proxy?  I've included the logs around this
 event.
  
  
   2013-07-18 14:02:40,031 DEBUG [cloud.api.ApiServlet]
   (catalina-exec-13:null) ===START===  10.4.108.254 -- GET
   command=startSystemVmid=d10d7f57
  
  
  
  
 
 -8b1b-45b2-9875-8c18995ac37bresponse=jsonsessionkey=uMQLwJmB8uyPSQeSiSBXo04naus%3D_=1374177759969
   2013-07-18 14:02:40,033 DEBUG [ehcache.store.MemoryStore]
   (catalina-exec-13:null) UserDaoCache: UserDaoMemoryStore hit for 10
   2013-07-18 14:02:40,112 DEBUG [cloud.async.AsyncJobManagerImpl]
   (catalina-exec-13:null) submit async job-5916, details: AsyncJobVO
   {id:5916, use
   rId: 10, accountId: 7, sessionKey: null, instanceType: SystemVm,
   instanceId: 1024, cmd: com.cloud.api.commands.StartSystemVMCmd,
   cmdOriginator:
   null, cmdInfo:
  
  
  
 
 

Re: cold migrated VMs won't start

2013-07-23 Thread Ahmad Emneina
I agree, I have to work around that kind of issue once in a while. Most of
the time I just destroy the instance and recreate it, specifying host, and
let puppet do the rest of the work. The best way forward is to probably
file a feature enhancement request and bring it up on the dev list.


On Tue, Jul 23, 2013 at 1:03 AM, Paul Angus paul.an...@shapeblue.comwrote:

 Thanks Ahmad,

 We were wondering about that, although we couldn't find anything that
 explicitly states that you can't migrate across pods in a basic zone.

 Our view was that there's no technical reason why the VM can't be started
 by the hypervisor - it would have to get a new ip (as dhcp in the vr would
 be incapable of giving it its orginal one) - but that would be our problem
 to deal with, and if our app was fqdn based - it wouldn't matter anyway.


 Regards,

 Paul Angus
 S: +44 20 3603 0540 | M: +447711418784 | T: CloudyAngus
 paul.an...@shapeblue.com

 -Original Message-
 From: Ahmad Emneina [mailto:aemne...@gmail.com]
 Sent: 23 July 2013 05:31
 To: Cloudstack users mailing list
 Subject: Re: cold migrated VMs won't start

 Hey Paul, we'd probably need more logs... but my gut tells me its failing
 because the pod you migrated to isnt part of the same subnet the vm
 originally came from, thus cant allocate a 'suitable ip'.


 On Mon, Jul 22, 2013 at 4:15 AM, Paul Angus paul.an...@shapeblue.com
 wrote:

   Hi Guys has anyone seen this behaviour?
 
 
 
  After cold migrating a VM from one Pod to another we can't start the
  VM any more basic networking: (Xenserver 6.1 + ACS4.1)
 
 
 
  VM state transmitted from :Starting to Stopped with event:
  OperationFailedvm's original host id: null new host id: null host id
  before state transition: 3
 
 
 
 
 
  Regards,
 
 
 
  Paul Angus
 
  *Senior Consultant / Cloud Architect*
 
 
 
  S: +44 20 3603 0540 +442036030540 | M: +4 +44796816158147711418784
  |
  T: CloudyAngus
 
  paul.an...@shapeblue.com geoff.higginbot...@shapeblue.com |
  www.shapeblue.com | Twitter:@shapeblue https://twitter.com/
 
  ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS
 
 
 
  Apache CloudStack Bootcamp training courses
 
  10/11 July, Bangalore,
  Indiahttp://www.shapeblue.com/cloudstack-bootcamp-training-course/
 
  21/22 August,
  Londonhttp://www.shapeblue.com/cloudstack-bootcamp-training-course/
 
 
   This email and any attachments to it may be confidential and are
  intended solely for the use of the individual to whom it is addressed.
  Any views or opinions expressed are solely those of the author and do
  not necessarily represent those of Shape Blue Ltd or related
  companies. If you are not the intended recipient of this email, you
  must neither take any action based upon its contents, nor copy or show
  it to anyone. Please contact the sender if you believe you have
  received this email in error. Shape Blue Ltd is a company incorporated
  in England  Wales. ShapeBlue Services India LLP is operated under
  license from Shape Blue Ltd. ShapeBlue is a registered trademark.
 
 This email and any attachments to it may be confidential and are intended
 solely for the use of the individual to whom it is addressed. Any views or
 opinions expressed are solely those of the author and do not necessarily
 represent those of Shape Blue Ltd or related companies. If you are not the
 intended recipient of this email, you must neither take any action based
 upon its contents, nor copy or show it to anyone. Please contact the sender
 if you believe you have received this email in error. Shape Blue Ltd is a
 company incorporated in England  Wales. ShapeBlue Services India LLP is
 operated under license from Shape Blue Ltd. ShapeBlue is a registered
 trademark.



Re: Console proxy functionalities

2013-07-23 Thread Ahmad Emneina
the console proxy vm is what provides the console view, of the vm, to the
webui.


On Tue, Jul 23, 2013 at 3:03 AM, Kashif Ali temujin...@gmail.com wrote:

 i read the document .all i understand is its use physical console of VM
 and have a public IP 
 but i am confused about its functionality compared with web-based UI.


 On Mon, Jul 22, 2013 at 11:18 PM, Dean Kamali dean.kam...@gmail.com
 wrote:

  I don't want to be rude but he could have googled it or used the index
  properly
  On Jul 23, 2013 2:18 AM, Radhika Puthiyetath 
  radhika.puthiyet...@citrix.com wrote:
 
   Refer to
  
 
 http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html-single/Admin_Guide/index.html#console-proxy
  
  
   -Original Message-
   From: Kashif Ali [mailto:temujin...@gmail.com]
   Sent: Tuesday, July 23, 2013 11:33 AM
   To: users@cloudstack.apache.org
   Subject: Console proxy functionalities
  
   AOA every one
  
   i am new to cloudstack and i didnt understand the functionality of
  console
   proxy.
   Is console proxy is just a console view or something else.
  
   --
   Regards,
  
   *Kashif Ali*
   Undergraduate Student | 7th Semester
   BESE-1A | NUST-SEECS | Islamabad
   10besek...@seecs.edu.pk
  
 



 --
 --
 Regards,

 *Kashif Ali*
 Undergraduate Student | 7th Semester
 BESE-1A | NUST-SEECS | Islamabad
 10besek...@seecs.edu.pk



Re: management server OS

2013-07-23 Thread Ahmad Emneina
according to the steps here: [1], yes

[1]
http://beingasysadmin.wordpress.com/2013/04/07/setting-up-apache-cloudstack/


On Tue, Jul 23, 2013 at 3:00 AM, Kashif Ali temujin...@gmail.com wrote:

 can cloudstack managment server support ubuntu 12.10

 --
 Regards,

 *Kashif Ali*
 Undergraduate Student | 7th Semester
 BESE-1A | NUST-SEECS | Islamabad
 10besek...@seecs.edu.pk



Re: Console proxy functionalities

2013-07-23 Thread David Comerford
You know when you click the View Console button on an instance and a popup
opens with a view of the instances console? Well what your seeing there
comes from the instance's console via the console proxy.
So it *proxies* the *console* of the instance for the end users who are on
strange and distant networks.

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 23 July 2013 11:03, Kashif Ali temujin...@gmail.com wrote:

 i read the document .all i understand is its use physical console of VM
 and have a public IP 
 but i am confused about its functionality compared with web-based UI.


 On Mon, Jul 22, 2013 at 11:18 PM, Dean Kamali dean.kam...@gmail.com
 wrote:

  I don't want to be rude but he could have googled it or used the index
  properly
  On Jul 23, 2013 2:18 AM, Radhika Puthiyetath 
  radhika.puthiyet...@citrix.com wrote:
 
   Refer to
  
 
 http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html-single/Admin_Guide/index.html#console-proxy
  
  
   -Original Message-
   From: Kashif Ali [mailto:temujin...@gmail.com]
   Sent: Tuesday, July 23, 2013 11:33 AM
   To: users@cloudstack.apache.org
   Subject: Console proxy functionalities
  
   AOA every one
  
   i am new to cloudstack and i didnt understand the functionality of
  console
   proxy.
   Is console proxy is just a console view or something else.
  
   --
   Regards,
  
   *Kashif Ali*
   Undergraduate Student | 7th Semester
   BESE-1A | NUST-SEECS | Islamabad
   10besek...@seecs.edu.pk
  
 



 --
 --
 Regards,

 *Kashif Ali*
 Undergraduate Student | 7th Semester
 BESE-1A | NUST-SEECS | Islamabad
 10besek...@seecs.edu.pk



Re: cloud-usage heap

2013-07-23 Thread David Comerford
Have it fixed now.

Increased -Xmx in /etc/cloud/management/tomcat6.conf and restarted services.


Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 23 July 2013 03:23, Dave Dunaway dave.duna...@gmail.com wrote:

 Dynamically, only because it's not otherwise specified in the options when
 starting up the JVM. You can edit the script it calls (check the
 /etc/init.d/cloud-usage script for the actual name) and add in some -Xmx
 1024mb or something and see how that works.

 Could also be a ulimit rather than an actual memory allocation issue. Check
 that the user running the service can allocate enough resources to the jvm
 (virtual, open files, etc) so it can create enough threads. The error you
 posted seems like it dies off pretty quickly but that it can at least start
 the JVM up, so checking ulimits shed some light.

 hth.


 On Mon, Jul 22, 2013 at 7:56 PM, David Comerford davest...@gmail.com
 wrote:

  If I understand you correctly your saying it's dynamically determined
 when
  it starts?
  If that's the case, why is this instance failing to start with ~13GB of
  memory free (including buffers/cache)
 
 
  Best regards,
  David Comerford
  
  Tel: +353 87 1238295
  Email: davest...@gmail.com
  Website: http://dave.ie
  GPG key: http://gpg.dave.ie
 
 
  On 22 July 2013 21:27, Dave Dunaway dave.duna...@gmail.com wrote:
 
   The mgmt server will get started as a webapp out of Tomcat, so you can
   check the /etc/cloud/management/tomcat6.conf in which you see it is set
  to
   use -Xmx1024m . The usage server is not part of tomcat and does not
  specify
   an -Xmx so it used the runtime determine value based on config and
   resources.
  
   hth.
  
  
  
  
  
   On Mon, Jul 22, 2013 at 2:44 PM, David Comerford davest...@gmail.com
   wrote:
  
Don't see anything like there in server.xml.
There is some useful JAVA_OPTS in /etc/cloud/tomcat6.conf but I don't
   know
if that's specific to cloud-management or shared with cloud-usage.
   
Any thoughts?
   
Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie
   
   
On 22 July 2013 15:38, Dean Kamali dean.kam...@gmail.com wrote:
   
 it should be somewhere in server.xml


 On Mon, Jul 22, 2013 at 9:20 AM, David Comerford 
  davest...@gmail.com
 wrote:

  Hi list,
 
  Anyone know where the Java heap size is defined for cloud-usage
   server?
  And is it a shared heap with cloud-management?
 
  I've got an upset usage server that wants more memory.
 
  11:18:39,444  INFO UsageManagerImpl:232 - Starting Usage Manager
  2013-07-22 11:18:39,444 INFO  [cloud.usage.UsageManagerImpl]
(main:null)
  Starting Usage Manager
  Exception in thread main java.lang.OutOfMemoryError: unable to
   create
 new
  native thread
  at java.lang.Thread.start0(Native Method)
  at java.lang.Thread.start(Thread.java:657)
  at
 
 

   
  
 
 java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:943)
  at
 
 

   
  
 
 java.util.concurrent.ThreadPoolExecutor.prestartCoreThread(ThreadPoolExecutor.java:1536)
  more exception trimmed
 
  Best regards,
  David Comerford
  
  Tel: +353 87 1238295
  Email: davest...@gmail.com
  Website: http://dave.ie
  GPG key: http://gpg.dave.ie
 

   
  
 



Re: How to backup cloudstack data?

2013-07-23 Thread WXR
I can copy all templates,isos files,and the nearest 1 day snapshots.
If I have these files and the db backupfile,how can I rebuild the vms?

I must create a temp template from the root volume snapshot and create a new vm 
with the temp template,and then create a data volume from the data volume 
snapshot and attach it on the vm.Then delete the temp template.
It will take a long time to rebuild a vm,Is there any easy way do rebuild all 
the vms?



-- Original --
From:  Kirk Jantzerkirk.jant...@gmail.com;
Date:  Tue, Jul 23, 2013 10:20 PM
To:  Cloudstack users mailing listusers@cloudstack.apache.org; 

Subject:  Re: How to backup cloudstack data?



We won't be able to tell you that. You will have to determine what is most
important to your organization to backup. For simplicity, definitely backup
the DB. If you wanted to backup anything, I'd probably suggest the
secondary storage, as it contains the templates, isos, and snapshots; of
which you'll likely be able to recover from (rebuild instances) more
easily.


On Mon, Jul 22, 2013 at 11:00 PM, WXR 1485739...@qq.com wrote:

 I use a storage device as my cloudstack primary and secondary storage.I
 can do redundant storage configuration on the device.

 But  I must do a backup of the most important data on the storage device
 to  another server.If the storage device is ruined for some reasons,I can
  restore the vms by using the backup data on the server.

 Each vm has its root and data volume files and the nearest 2 weeks
 snapshot files on the storage.
 If there is 50T data on the storage device(including volumes and
 snapshots),I can just copy 2T-10T of them to the backup server.Now the
 problem is which files should I copy and how to restore them.



 -- Original --
 From:  Ahmad Emneinaaemne...@gmail.com;
 Date:  Tue, Jul 23, 2013 10:29 AM
 To:  Cloudstack users mailing listusers@cloudstack.apache.org;

 Subject:  Re: How to backup cloudstack data?



 I agree with Kirk here, configuration management for the virtual infra and
 the important bits of data should be made redundant at the storage level.
 Cloudstack has a snapshotting function but if your secondary storage server
 tanks, you'll be in a world of hurt. If you use cloudstack snapshotting,
 ensure your secondary storage is replicated or has plenty of redundant
 disks.


 On Mon, Jul 22, 2013 at 6:22 PM, Kirk Jantzer kirk.jant...@gmail.com
 wrote:

  I said this in another thread and figured I'd mention it here since it
  seems applicable. It is my belief that the cloud is the IaaS and that the
  applications that run on the cloud should be built for failure of the
 IaaS:
  they (instances/applications) should be rapidly deployable. So, it
  shouldn't matter what cloud product
  (openstack/cloudstack/vmware/aws/etc...)
  you provide to your customers, they should be able to redeploy their
  application where ever they go or are given for IaaS.
 
  With that said, if you really wanted to backup the VMs, you probably want
  to look at something that backed up thorough the storage device, or the
  hypervisor, and then backup the management and mysql db.
 
 
  On Mon, Jul 22, 2013 at 8:57 PM, WXR 1485739...@qq.com wrote:
 
   Virtual machines.
   I want to know how to do data backup and restore the vms when the
   cloudstack storage has been ruined totally.
  
  
  
  
   -- Original --
   From:  Nitin Mehtanitin.me...@citrix.com;
   Date:  Mon, Jul 22, 2013 03:10 PM
   To:  users@cloudstack.apache.orgusers@cloudstack.apache.org;
  
   Subject:  Re: How to backup cloudstack data?
  
  
  
   What is it that you want to back up ? Virtual machines, snapshots -
   anything else ?
  
   On 22/07/13 7:09 AM, WXR 1485739...@qq.com wrote:
  
   I want to do a full backup of cloudstack data and restore them to a
 new
   cloudstack,but I don't know which files should I copy and how to
 restore
   them.
  
   .
 
 
 
 
  --
  Regards,
 
  Kirk Jantzer
  c: (678) 561-5475
  http://about.met/kirkjantzer
 




-- 
Regards,

Kirk Jantzer
c: (678) 561-5475
http://about.met/kirkjantzer

Re: Unable to migrate VM to another host

2013-07-23 Thread Indra Pramana
Dear David, Prasanna and all,

Good day to you, and thank you for your e-mail.

Thanks for the information and confirmation that the cloudstack-agent runs
as root and that CloudStack uses qemu+tcp (instead of qemu+ssh) on live
migration. Have also confirmed that auth_tcp is configured as none on
libvirtd on both hosts.

/etc/libvirt/libvirtd.conf:

auth_tcp=none

I have tried simulating a live migration directly on the hypervisor host
itself, and I can confirm that I can do the live migration manually (not
through CloudStack).

On the first host (hv-kvm-01):

root@hv-kvm-01:~# virsh list --all
 IdName   State

 2 s-299-VM   running
 3 v-261-VM   running
 4 i-2-273-VM running
 5 i-2-281-VM running
* 6 i-2-278-VM running*
 7 i-33-287-VMrunning

root@hv-kvm-01:~# virsh migrate --live i-2-278-VM qemu+tcp://
root@10.237.3.22/system

After the migration:

root@hv-kvm-01:~# virsh list --all
 IdName   State

 2 s-299-VM   running
 3 v-261-VM   running
 4 i-2-273-VM running
 5 i-2-281-VM running
 7 i-33-287-VMrunning

On the second (target) host (hv-kvm-02):

root@hv-kvm-02:~# virsh list --all
 IdName   State

 2 r-271-VM   running
 3 i-2-275-VM running
 4 i-2-276-VM running
 5 i-34-289-VMrunning
 6 i-2-293-VM running
* 8 i-2-278-VM running*

I can also do a live migration back from hv-kvm-02 to hv-kvm-01.

However, live migration through CloudStack GUI is still failing with the
same error message.

===
2013-07-24 11:47:36,944 DEBUG [agent.transport.Request]
(Job-Executor-1:job-658) Seq 32-1333264394: Sending  { Cmd , MgmtId:
161342671900, via: 32, Ver: v1, Flags: 1001
11,
[{MigrateCommand:{vmName:i-2-281-VM,destIp:10.237.3.22,hostGuid:00dd5dba-7419-3689-bc51-1671035c0d8f-LibvirtComputingResource,isWindows:false,wait
:0}}] }
2013-07-24 11:47:37,712 DEBUG [agent.transport.Request]
(AgentManager-Handler-3:null) Seq 32-1333264394: Processing:  { Ans: ,
MgmtId: 161342671900, via: 32, Ver: v1, F
lags: 110, [{MigrateAnswer:{result:false,details:End of file while
reading data: Input/output error,wait:0}}] }
2013-07-24 11:47:37,713 DEBUG [agent.manager.AgentAttache]
(AgentManager-Handler-3:null) Seq 32-1333264394: No more commands found
2013-07-24 11:47:37,713 DEBUG [agent.transport.Request]
(Job-Executor-1:job-658) Seq 32-1333264394: Received:  { Ans: , MgmtId:
161342671900, via: 32, Ver: v1, Flags: 1
10, { MigrateAnswer } }
2013-07-24 11:47:37,713 ERROR [cloud.vm.VirtualMachineManagerImpl]
(Job-Executor-1:job-658) Unable to migrate due to End of file while reading
data: Input/output error
2013-07-24 11:47:37,713 INFO  [cloud.vm.VirtualMachineManagerImpl]
(Job-Executor-1:job-658) Migration was unsuccessful.  Cleaning up:
VM[User|CentOS59-64bit]
===

Therefore, it seems that the problem is on the CloudStack's end rather than
libvirt's and/or QEMU/KVM's end. I am really at loss on how to resolve this
problem now.

Any help is greatly appreciated. Live migration is very important and I
can't move forward without this important feature.

Looking forward to your reply, thank you.

Cheers.



On Wed, Jul 24, 2013 at 12:27 AM, Prasanna Santhanam t...@apache.org wrote:

 On Tue, Jul 23, 2013 at 08:18:31AM -0600, Marcus Sorensen wrote:
  There is no cloud user on the host/agent side. Agent runs as root. Or is
  this an experiment to try to run the agent as another user?

 That was entirely my mistake. I just went about thinking the agents
 ran as cloud (ssvm, cpvm, kvm agent). Looking at my deployment it
 seems that /etc/sudoers has an entry for cloud but the service runs as
 root. My apologies for misleading on that.

  On Jul 23, 2013 4:44 AM, Prasanna Santhanam t...@apache.org wrote:
 
   On Tue, Jul 23, 2013 at 06:19:06PM +0800, Indra Pramana wrote:
Dear Prasanna and all,
   
I have tried to remove the host from CloudStack, uninstall and
 reinstall
cloudstack-agent and added the host back into CloudStack. The cloud
user-id is still not yet created. I then tried to add the cloud
 user
manually, using exactly the same credentials as the cloud user on
 the
other host.
   
From the host, I tried to do a virsh connect qemu+ssh to the other
 host
using the cloud user (instead of root), and getting this error:
   
cloud@hv-kvm-01:~$ virsh --connect qemu+ssh://
 cloud@10.237.3.22/systemlist
cloud@10.237.3.22's password:
error: failed to connect to the 

Re: Generating OS Templates

2013-07-23 Thread Prasanna Santhanam
On Tue, Jul 23, 2013 at 12:03:31PM -0300, Celso Fernandes wrote:
 Hi Prasanna,
 
 Didn't understand where you puppet provisioning is absent, on packer?

yes - you can use a shell script though to do a puppet apply. i fall
back on vagrant instead since vagrant already can provision using
puppet.

$ packer build template.json
$ vagrant add template.box template
$ vagrant up/vagrant provision (rinse/repeat)

-- 
Prasanna.,


Powered by BigRock.com



Hosts in CloudStack's avoid set

2013-07-23 Thread Indra Pramana
Dear all,

Good day to you.

From time to time, CloudStack will put a hypervisor host on avoid set and
not willing to deploy VM on that host.

===
2013-07-24 13:12:34,639 DEBUG [allocator.impl.FirstFitAllocator]
(Job-Executor-2:job-672 FirstFitRoutingAllocator) Host name: hv-kvm-02,
hostId: 28 is in avoid set, skipping this and trying other available hosts
2013-07-24 13:12:34,639 DEBUG [allocator.impl.FirstFitAllocator]
(Job-Executor-2:job-672 FirstFitRoutingAllocator) Host name: hv-kvm-01,
hostId: 32 is in avoid set, skipping this and trying other available hosts
===

1. What are the possible reasons on why CloudStack would put a hypervisor
host on avoid set?
2. How to manually force CloudStack to remove the hypervisor host from its
avoid set?

Looking forward to your reply, thank you.

Cheers.


Re: CloudStack performance issue

2013-07-23 Thread Indra Pramana
Hi David,

Good day to you, and thank you for your e-mail.

Most of my templates are on 100 GB root disk, which I understand is too
big. I plan to recreate the templates on a 10 GB disk, which should be
sufficient based on an advice from another member of this mailing list on
another thread.

Do you think that might be the cause? I hope that deployment time will be
much faster after I recreated the templates.

Thank you.


On Wed, Jul 24, 2013 at 1:22 AM, David Ortiz dpor...@outlook.com wrote:

 Indra,
  How big are the templates you are attempting to deploy?  I could see
 the 1 Gbps connection being a little bit of a bottleneck, but it sounds
 like there may be something else going on.  I know we would have issues on
 our setup which is on 1 Gbps connections at the moment if we tried to do
 multiple snapshots at once, but we could normally get away with deploying a
 couple VMs at once within a few minutes.  As for the question about how
 they are being copied, I am not 100% confident on this, but I believe it is
 copied via the SSVM, so it would be going secondary storage -- hypervisor
 host -- primary storage.  Hopefully someone will correct me if I am wrong
 on that.
 -David

  Date: Tue, 23 Jul 2013 12:33:17 +0800
  Subject: Re: CloudStack performance issue
  From: in...@sg.or.id
  To: users@cloudstack.apache.org
 
  Hi David,
 
  Good day to you, and thank you for your e-mail.
 
  My secondary storage is connected to the switch using 1 Gbps connection,
  while my primary storage is connected via a 10 Gbps connection.
  Unfortunately I don't have 10G NIC cards on my secondary storage. Do you
  think upgrading my secondary storage's NIC to 10 Gbps will help?
 
  May I know how the template and ISOs are being copied, is it through the
  hypervisor host (e.g. secondary storage -- hypervisor host -- primary
  storage) or directly (i.e. secondary storage -- primary storage)? My
  primary storage is not on the same subnet/VLAN as secondary storage,
 since
  it's connected to different NIC cards on the hypervisor hosts. If it's a
  direct connection between secondary storage to primary storage without
  going to the hypervisor, I might be considering changing my network
  topology to make the primary and secondary storage to be on the same
  subnet/VLAN.
 
  Looking forward to your reply, thank you.
 
  Cheers.
 
 
  On Tue, Jul 23, 2013 at 3:19 AM, David Ortiz dpor...@outlook.com
 wrote:
 
   Meant that question for Indra.  Sorry.
  
From: dpor...@outlook.com
To: users@cloudstack.apache.org
Subject: RE: CloudStack performance issue
Date: Mon, 22 Jul 2013 11:34:10 -0400
   
Prasanna,
 What kind of network do you use for your setup?  Creating a new
 VM
   requires copying the template or ISO over from secondary storage to
   primary, so that could be a bottleneck when trying to create multiple
 VMs
   at once.
-Dave
   
 Date: Sat, 20 Jul 2013 16:20:08 +0530
 From: t...@apache.org
 To: users@cloudstack.apache.org
 Subject: Re: CloudStack performance issue

 On Sat, Jul 20, 2013 at 03:18:12PM +0800, Indra Pramana wrote:
 
  Where can I start troubleshooting, which logs I need to go
 through
   to find
  out the bottleneck? The management-server.log file doesn't show
 much
  anything about the delay. It seems that there is some locking
   mechanism
  and certain processes will need other processes to complete
 before
   they can
  start. This is worrying since in a production environment, many
   customers
  might want to try creating VMs at the same time simultaneously.
 

 The logs of use would be managment-server.log which defaults to
 DEBUG
 mode. The logs on the agent (inside KVM host) are default in INFO
 mode. You can turn them up to DEBUG by altering the log4j config.
 Apart from that you can also look at libvirt logs. Folks have been
 tuning the deployment of the VMs on KVM host in another thread on
 dev@
 and in the bug
 https://issues.apache.org/jira/browse/CLOUDSTACK-3163

 let us know if the symptoms are the same and you can bring this up
 on
 dev@ with more details.

  Any thoughts or feedback on this matter is appreciated.
 
  Looking forward to your reply, thank you.
 
  Cheers.

 --
 Prasanna.,

 
 Powered by BigRock.com

   
  
  




Re: How to backup cloudstack data?

2013-07-23 Thread guren san
management :   /etc/cloud/*
/var/lib/cloud/management

DB: mysql master slave

node: xenserver or kvm (one cluster not less than three host )

storage: if you used local storage , the node all date need backup
 if you nas : backup primary and secondary storage path ,when
you restore ,need same as before ,or update mysql table
  secondary storage can backup every
  primary  only vm storage ,you can take every
vm snapshots ,its will backup to  secondary storage






2013/7/24 WXR 1485739...@qq.com

 I can copy all templates,isos files,and the nearest 1 day snapshots.
 If I have these files and the db backupfile,how can I rebuild the vms?

 I must create a temp template from the root volume snapshot and create a
 new vm with the temp template,and then create a data volume from the data
 volume snapshot and attach it on the vm.Then delete the temp template.
 It will take a long time to rebuild a vm,Is there any easy way do rebuild
 all the vms?



 -- Original --
 From:  Kirk Jantzerkirk.jant...@gmail.com;
 Date:  Tue, Jul 23, 2013 10:20 PM
 To:  Cloudstack users mailing listusers@cloudstack.apache.org;

 Subject:  Re: How to backup cloudstack data?



 We won't be able to tell you that. You will have to determine what is most
 important to your organization to backup. For simplicity, definitely backup
 the DB. If you wanted to backup anything, I'd probably suggest the
 secondary storage, as it contains the templates, isos, and snapshots; of
 which you'll likely be able to recover from (rebuild instances) more
 easily.


 On Mon, Jul 22, 2013 at 11:00 PM, WXR 1485739...@qq.com wrote:

  I use a storage device as my cloudstack primary and secondary storage.I
  can do redundant storage configuration on the device.
 
  But  I must do a backup of the most important data on the storage device
  to  another server.If the storage device is ruined for some reasons,I can
   restore the vms by using the backup data on the server.
 
  Each vm has its root and data volume files and the nearest 2 weeks
  snapshot files on the storage.
  If there is 50T data on the storage device(including volumes and
  snapshots),I can just copy 2T-10T of them to the backup server.Now the
  problem is which files should I copy and how to restore them.
 
 
 
  -- Original --
  From:  Ahmad Emneinaaemne...@gmail.com;
  Date:  Tue, Jul 23, 2013 10:29 AM
  To:  Cloudstack users mailing listusers@cloudstack.apache.org;
 
  Subject:  Re: How to backup cloudstack data?
 
 
 
  I agree with Kirk here, configuration management for the virtual infra
 and
  the important bits of data should be made redundant at the storage level.
  Cloudstack has a snapshotting function but if your secondary storage
 server
  tanks, you'll be in a world of hurt. If you use cloudstack snapshotting,
  ensure your secondary storage is replicated or has plenty of redundant
  disks.
 
 
  On Mon, Jul 22, 2013 at 6:22 PM, Kirk Jantzer kirk.jant...@gmail.com
  wrote:
 
   I said this in another thread and figured I'd mention it here since it
   seems applicable. It is my belief that the cloud is the IaaS and that
 the
   applications that run on the cloud should be built for failure of the
  IaaS:
   they (instances/applications) should be rapidly deployable. So, it
   shouldn't matter what cloud product
   (openstack/cloudstack/vmware/aws/etc...)
   you provide to your customers, they should be able to redeploy their
   application where ever they go or are given for IaaS.
  
   With that said, if you really wanted to backup the VMs, you probably
 want
   to look at something that backed up thorough the storage device, or the
   hypervisor, and then backup the management and mysql db.
  
  
   On Mon, Jul 22, 2013 at 8:57 PM, WXR 1485739...@qq.com wrote:
  
Virtual machines.
I want to know how to do data backup and restore the vms when the
cloudstack storage has been ruined totally.
   
   
   
   
-- Original --
From:  Nitin Mehtanitin.me...@citrix.com;
Date:  Mon, Jul 22, 2013 03:10 PM
To:  users@cloudstack.apache.orgusers@cloudstack.apache.org;
   
Subject:  Re: How to backup cloudstack data?
   
   
   
What is it that you want to back up ? Virtual machines, snapshots -
anything else ?
   
On 22/07/13 7:09 AM, WXR 1485739...@qq.com wrote:
   
I want to do a full backup of cloudstack data and restore them to a
  new
cloudstack,but I don't know which files should I copy and how to
  restore
them.
   
.
  
  
  
  
   --
   Regards,
  
   Kirk Jantzer
   c: (678) 561-5475
   http://about.met/kirkjantzer
  
 



 --
 Regards,

 Kirk Jantzer
 c: (678) 561-5475
 http://about.met/kirkjantzer