Re: Recommended Qemu And Ceph version

2015-03-28 Thread Yitao Jiang
Thanks Wido, BTW, had you deployed in production, or just a development env


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Sat, Mar 28, 2015 at 10:35 PM, Wido den Hollander w...@widodh.nl wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1



 On 03/27/2015 03:35 PM, Yitao Jiang wrote:
  Hi, stackers, for those using kvm hypervisor and ceph block
  storage, can you share the recommend versions for deployment?

 I would recommend at least Qemu 2.0 with Ceph version firefly (0.80.X)
 to start with.

 Ubuntu 14.04 should be a good start, it has it all by default.

 Wido

  Currently we are using fc-san for storage, but i wanna to test and
  get the best performance  using such stack architicure.
 
  Thanks for your guys sharing
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1

 iQIcBAEBAgAGBQJVFrweAAoJEAGbWC3bPspCUKkP/jODtGnYMPw1vGLe6zJJiXoF
 ioCnw8JB0qoXdeu9LZXRX7vOXuzJnqoM8qgb7OYXnaAhKnfAAWQoxmHVtoUEoZUZ
 /1dS7N54spzfHnSZi0UeKSIiF+Sdb0CoVzy8CQ4qCLipr/gfe/4n0x2mIopew3d/
 AbCqjEhmUdsZDO9nW4y1ao8DbyQH4xkr0ZHu5mN7xoW/CTYbJaK6ERPGWrLnAaa5
 EMhFqlKCNk8annLBWsS0OrOKP9Cqi4ossxiKi8uhGjmvkF5bzbPkxiW8XSfTjMvM
 aVqCb5JdzxS6RBTpRA6yD3KDnw1yzSO4xpUqTHu6158hlWequxbxxPf9rDOBzyfx
 zk/ZZbLZ3Tu6DuXWG9N7xGHBiHSAWvIWcoVXJRIXmmijJlTWbOubiY0NZT//X6C3
 AXHqrWdEfyXZZHq0A/PykhQaynJ3oltK377uyCmheHUEABOo7EzsrxP1RNFgDNLu
 EUdRE2O36RStfrX/zi63Ei8KR9231jI9el8eC+wl0RiQviZT9mLHOfqP2gok/t+1
 gy0eJ1BhWwWBWO/TOPzge78Eaa20122TGUaKwI1HJe9ZFAFX4qRum3VBd62euDQf
 7TLyd5Hcb3Ed2ZZE2kjakHouuPhM+oxyBioR5QUFtDXrmMrPVpnJJD/7fJH93GJV
 nyvwStSG876gqmXll7NR
 =pV0V
 -END PGP SIGNATURE-



Statistics Issues of ESXi hypervisor Host And VM

2015-03-23 Thread Yitao Jiang
Hi,

Under ACS 4.2.1 the esxi host and it's vm did not show Network Read Or
Write under statistics tab view on UI.

In the snips of(vmware resource
https://github.com/apache/cloudstack/blob/4.2.1/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java#L6584),it
does not collect the host network usage.
And Even collected vm net usage(here
https://github.com/apache/cloudstack/blob/4.2.1/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java#L6351),
but did not calculate correctly, stays zero,both read and write.

Is anyone realize the problem or what i missing, and what's the logical
here?

---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io


Re: Reset instance Statistics

2015-03-23 Thread Yitao Jiang
ACS, clearly.Once Management service restart, the samples all gone.


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Fri, Mar 20, 2015 at 12:37 AM, Nux! n...@li.nux.ro wrote:

 To clarify, these stats are kept in which memory? ACS's? Libvirt's?

 Lucian

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro

 - Original Message -
  From: Somesh Naidu somesh.na...@citrix.com
  To: dev@cloudstack.apache.org
  Sent: Tuesday, 17 March, 2015 20:48:16
  Subject: RE: Reset instance Statistics

  Lucian,
 
  These values get collected every minute (controlled by global config
  vm.stats.interval) from the hypervisor.
 
  These values do not seem to be persisted in DB. I guess there won't be a
 need to
  reset these.
 
  Somesh
  CloudPlatform Escalations
  Citrix Systems, Inc.
 
 
  -Original Message-
  From: Nux! [mailto:n...@li.nux.ro]
  Sent: Tuesday, March 17, 2015 2:31 PM
  To: dev@cloudstack.apache.org
  Subject: Reset instance Statistics
 
  Hello,
 
  Anyone knows how often these values get reset or if at all?
  http://img.nux.ro/fK7-Selection_016.png
 
  I'm interested in tracking some of these values, but on a monthly basis
 or so.
 
  Lucian
 
  --
  Sent from the Delta quadrant using Borg technology!
 
  Nux!
  www.nux.ro



Re: build cloudstack in windows error

2015-03-11 Thread Yitao Jiang
paste more error details with run mvn goals -rf :cloud-apidoc command.
BYW, maybe the error caused by python interpreter cannot find the gentoc.py
file, edit
build-apidoc.sh file, changeing code of  *python $thisdir/gen_toc.py
$(find . -type f)* of $thisdir
to the absolute directory of gen_toc.py exists. Note to the double \


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Wed, Mar 11, 2015 at 6:15 PM, wangyuyang1...@163.com 
wangyuyang1...@163.com wrote:


 i build cloudstack in windows with cygwin ,but get this error,who know why?


 [INFO] Apache CloudStack Test . SUCCESS [
 3.018 s]
 [INFO] Apache CloudStack Developer Mode ... SUCCESS [
 2.284 s]
 [INFO] Apache CloudStack Developer Tools .. SUCCESS [
 2.054 s]
 [INFO] Apache CloudStack apidocs .. FAILURE [
 13.904 s]
 [INFO] Apache CloudStack marvin ... SKIPPED
 [INFO] Apache CloudStack DevCloud . SKIPPED
 [INFO] Apache CloudStack DevCloud-KVM . SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 04:25 min
 [INFO] Finished at: 2015-03-11T18:12:11+08:00
 [INFO] Final Memory: 90M/715M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile) on project
 cloud-apidoc: Command execution failed. Process exited with an error: 1
 (Exit value: 1) - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf :cloud-apidoc



 wangyuyang1...@163.com


Re: How can I change the listening port of VNC Server on XenServer

2015-02-05 Thread Yitao Jiang
Hi
Due to the security issue, what you are doing are not suggested.If you
unblock the connection, anyone knows the port of vms and management ip of
xenserver will get the access to the vms. Don't know which version of
xenserver you are working.FYI, below are the steps to enable direct vnc
connection to xenserver 6.2.0

1. edit the file  /opt/xensource/libexec/qemu-dm-wrapper add below args
to the guest under main method after qemu_args = ['qemu-dm-%d'%domid] +
argv[2:]
qemu_args.append(-vnc)
qemu_args.append(0.0.0.0:1)
2. restart xapi(maybe unnecessory)
3.open the firewall of vnc ports
iptables -I RH-Firewall-1-INPUT -m tcp -p tcp --dport 5900:6900 -j
ACCEPT
4.shutdown and start your guest
5. find the vnc port of your guest using
6. using vncviewer other vnc client to connect your guest


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Fri, Feb 6, 2015 at 10:32 AM, evanitsharp evanitsh...@gmail.com wrote:

 Hi, all:
 Here are the config of vncterm of XenServer:

 
 [root@xenserver-nubbmomt ~]# vi /opt/xensource/libexec/vncterm-wrapper

 #!/bin/sh
 #
 # Copyright (c) Citrix Systems 2007-2008. All rights reserved.
 #
 # Xen, the Xen logo, XenCenter, XenMotion are trademarks or registered
 # trademarks of Citrix Systems, Inc., in the United States and other
 # countries.

 DOMID=$1
 shift 1

 #Getting the VM UUID
 export VMUUID=`/opt/xensource/bin/list_domains -domid $DOMID -minimal`

 #For security reasons, we only listen on locahost by default
 export VNCTERM_LISTEN='-v 127.0.0.1:1'
 

 I want to change vncterm to listen to all address. So I changed the
 express export VNCTERM_LISTEN='-v 127.0.0.1:1' to export
 VNCTERM_LISTEN='-v 0.0.0.0:1'.
 But some minutes later, XenServer change it back Automatically.
 Why?How can I change config of vncterm Permanently?


Looking forward to your reply, thanks.

   Alex




 TravekSky

 Mail:evanitsh...@gmail.com


Re: [STATUS] Redundant VPC

2015-02-04 Thread Yitao Jiang
Awesome!


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Wed, Feb 4, 2015 at 6:54 PM, Wilder Rodrigues 
wrodrig...@schubergphilis.com wrote:

 Hi all,

 We are currently testing the first big chunk of the Redundant VPC
 implementation. It will add the following features / fixes

 * Redundant VPC Offering
 * Create a VPC using the new offering
 * 2 routers deployed for a redundant VPC
 * Restart VPC with clean-up option - destroy both routers and create 2 new
 ones
 * Restart VPC without clean-up option - if 1 router is missing, only 1
 router will be created
 * Turn a single VPC into a Redundant VPC via restart and check “Make
 redundant” checkbox

 Besides what has been mentioned above, we are also testing (Marvin)
 [redundant] isolated networks, FW, PF, LB, ACLs, VM life cycle, Pvt
 Gateways and VPNs.

 The idea behind the tests is to make sure our branch is healthy enough so
 we can create a Pull Request by the end of the week.

 Will keep you up to date.

 Cheers,
 Wilder


Re: Any Plan of Distributed VR Within cloudstack?

2015-01-31 Thread Yitao Jiang
Awesome. look forward the relase and hope to make contribuation.
On Jan 31, 2015 7:28 AM, Wilder Rodrigues wrodrig...@schubergphilis.com
wrote:

 Hi Yitao,

 We, at Schuberg Philis, are currently working on the implementation of
 Redundant VPCs. We are now on the test phase and the first open demo of it
 will take place in London, 12th February, during the Cloudstack European
 User Group meeting (
 http://shapeblue.com/events/cloudstack-european-user-group-3/)

 Once the work is pushed towards master we will put some documentation on
 the Apache CS wiki and ando get the community involved with the development.

 After the 12th Feb I will send more details about the status and what we
 are using.

 Cheers,
 Wilder


 On 30 Jan 2015, at 01:16, Yitao Jiang willier...@gmail.commailto:
 willier...@gmail.com wrote:

 Hi,guys
 I just want to know is there any plan to develop distributed vr feature,
 and What's the progress now?

 ---
 Thanks,
 Yitao(依涛 姜)
 jiangyt.github.io




Any Plan of Distributed VR Within cloudstack?

2015-01-29 Thread Yitao Jiang
Hi,guys
I just want to know is there any plan to develop distributed vr feature,
and What's the progress now?

---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io


Re: 答复: About The Instance Name on Cloudstack

2014-12-31 Thread Yitao Jiang
Havent ye use cloudmonkey, nothing to say.but using httpclient(Java based)
fire the api call ,all works fine.


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Wed, Dec 31, 2014 at 4:05 PM, Star Guo st...@ceph.me wrote:

 If you set the displayname of  instance within Chinese name, I find the
 command “list virtualmachines”  throw: Error processing json: 'ascii'
 codec can't encode characters in position 1203-1209: ordinal not in
 range(128)

 Does the cloudmonkey not support UTF-8? Thanks.



 Best Regards,

 Star Guo



 发件人: Star Guo [mailto:st...@ceph.me]
 发送时间: 2014年12月30日 16:59
 收件人: dev@cloudstack.apache.org
 主题: About The Instance Name on Cloudstack



 Hi, All,



   When I create instance on cloudstack 4.4.2,set name within simple chinese
 as instance name but it tell me “Instance name can not be longer than 63
 characters. Only ASCII letters a~z, A~Z, digits 0~9, hyphen are allowed.
 Must start with a letter and end with a letter or a digit.”

   Is it mean I just set the name of instance within ASCII letters? I notic
 that the charater of mysql is UTF-8.



 Best Regards,

 Star Guo




Re: ACS 4.4.1 How reinstall vm working within Xenserver 6.2.0

2014-12-18 Thread Yitao Jiang
After changed the value of  storage.cleanup.interval to 1, the volumn got
expunged.


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Wed, Dec 17, 2014 at 2:55 PM, Yitao Jiang willier...@gmail.com wrote:

 Yes,Removed column is null.

 I'll check later to see whether its still exist.


 ---
 Thanks,
 Yitao(依涛 姜)
 jiangyt.github.io

 On Wed, Dec 17, 2014 at 12:35 AM, Somesh Naidu somesh.na...@citrix.com
 wrote:

  Besides the state of root volume is Destroy

 What about the removed column for that volume? Does that have a date or
 it's null?

  Is it a bug or missing something?
 It might be a bug if at some point the storage GC doesn't clean up this
 volume.

 -Original Message-
 From: Yitao Jiang [mailto:willier...@gmail.com]
 Sent: Tuesday, December 16, 2014 9:17 AM
 To: dev@cloudstack.apache.org
 Subject: ACS 4.4.1 How reinstall vm working within Xenserver 6.2.0

 Hi,
 I wonder how reinstall vm working now with ACS 4.4.1.

 I just reinstall a vm launched from template.It work successfully.
 But within Xencenter , There are two same Root volumes of reinstalled vm.
 Obviously, the former volume didn't expunged,Besides the state of root
 volume is Destroy
 Is it a bug or missing something?

 ---
 Thanks,
 Yitao(依涛 姜)
 jiangyt.github.io




Re: Review Request 29087: Add Feature Root Disk Resize for XenServer 6.2.0

2014-12-16 Thread Yitao Jiang
(XenServer610Resource.java:102)
  at 
  com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:307)
  at 
  org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
  at 
  org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
  at 
  org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
  at 
  org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
  at 
  org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
  at 
  java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
  at java.util.concurrent.FutureTask.run(FutureTask.java:262)
  at 
  java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
  at 
  java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
  at 
  java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  at 
  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  at java.lang.Thread.run(Thread.java:745)
 
 Erik Weber wrote:
 Most likely because the size for the systemvm template (in my case) is 
 zero. Not sure if that is normal or not, but preferably it should be handled 
 somehow

Not sure whether your systemvm template is zero, but everything seems fine with 
me .
Yes some validation with volume size is needed.
Anyone confront the issue?

BTW, i'm using 
http://cloudstack.apt-get.eu/systemvm/4.4/systemvm64template-4.4.1-7-xen.vhd.bz2


- Yitao


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29087/#review65190
---


On 十二月 16, 2014, 6:07 a.m., Yitao Jiang wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 https://reviews.apache.org/r/29087/
 ---
 
 (Updated 十二月 16, 2014, 6:07 a.m.)
 
 
 Review request for cloudstack, Mike Tutkowski and Min Chen.
 
 
 Repository: cloudstack-git
 
 
 Description
 ---
 
 Currently, only KVM support root disk resize feature in ACS 4.4.1.
 As we are now using Xenserver 6.2.0, and it's so convient feature,
 So we do some hack.
 
 
 Diffs
 -
 
   
 plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageProcessor.java
  e326770 
   server/src/com/cloud/vm/UserVmManagerImpl.java 4fdacd5 
   ui/scripts/instanceWizard.js 9df6ecc 
 
 Diff: https://reviews.apache.org/r/29087/diff/
 
 
 Testing
 ---
 
 Mgmt Server : CentOS release 6.4 (Final)
 ACS: 4.4.1
 Primary  Secondary : NFS
 
 
 Thanks,
 
 Yitao Jiang
 




ACS 4.4.1 How reinstall vm working within Xenserver 6.2.0

2014-12-16 Thread Yitao Jiang
Hi,
I wonder how reinstall vm working now with ACS 4.4.1.

I just reinstall a vm launched from template.It work successfully.
But within Xencenter , There are two same Root volumes of reinstalled vm.
Obviously, the former volume didn't expunged,Besides the state of root
volume is Destroy
Is it a bug or missing something?

---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io


Re: ACS 4.4.1 How reinstall vm working within Xenserver 6.2.0

2014-12-16 Thread Yitao Jiang
yeah,i know that.

Strangly, I have set expunge.delay  expunge.interal expunge.workers all to 1


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Tue, Dec 16, 2014 at 10:25 PM, Matthew Midgett 
clouds...@trick-solutions.com.invalid wrote:

 The expunging is done on a separate process and can be found in the global
 configuration. Just search expunging.

 -Original Message-
 From: Yitao Jiang [mailto:willier...@gmail.com]
 Sent: Tuesday, December 16, 2014 9:17 AM
 To: dev@cloudstack.apache.org
 Subject: ACS 4.4.1 How reinstall vm working within Xenserver 6.2.0

 Hi,
 I wonder how reinstall vm working now with ACS 4.4.1.

 I just reinstall a vm launched from template.It work successfully.
 But within Xencenter , There are two same Root volumes of reinstalled vm.
 Obviously, the former volume didn't expunged,Besides the state of root
 volume is Destroy Is it a bug or missing something?

 ---
 Thanks,
 Yitao(依涛 姜)
 jiangyt.github.io




Re: ACS 4.4.1 How reinstall vm working within Xenserver 6.2.0

2014-12-16 Thread Yitao Jiang
Yes,Removed column is null.

I'll check later to see whether its still exist.


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Wed, Dec 17, 2014 at 12:35 AM, Somesh Naidu somesh.na...@citrix.com
wrote:

  Besides the state of root volume is Destroy

 What about the removed column for that volume? Does that have a date or
 it's null?

  Is it a bug or missing something?
 It might be a bug if at some point the storage GC doesn't clean up this
 volume.

 -Original Message-
 From: Yitao Jiang [mailto:willier...@gmail.com]
 Sent: Tuesday, December 16, 2014 9:17 AM
 To: dev@cloudstack.apache.org
 Subject: ACS 4.4.1 How reinstall vm working within Xenserver 6.2.0

 Hi,
 I wonder how reinstall vm working now with ACS 4.4.1.

 I just reinstall a vm launched from template.It work successfully.
 But within Xencenter , There are two same Root volumes of reinstalled vm.
 Obviously, the former volume didn't expunged,Besides the state of root
 volume is Destroy
 Is it a bug or missing something?

 ---
 Thanks,
 Yitao(依涛 姜)
 jiangyt.github.io



Review Request 29087: Add Feature Root Disk Resize for XenServer 6.2.0

2014-12-15 Thread Yitao Jiang

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29087/
---

Review request for cloudstack, Mike Tutkowski and Min Chen.


Repository: cloudstack-git


Description
---

Currently, only KVM support root disk resize feature in ACS 4.4.1.
As we are now using Xenserver 6.2.0, and it's so convient feature,
So we do some hack.


Diffs
-

  
plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageProcessor.java
 e326770 
  server/src/com/cloud/vm/UserVmManagerImpl.java 4fdacd5 
  ui/scripts/instanceWizard.js 9df6ecc 

Diff: https://reviews.apache.org/r/29087/diff/


Testing
---

Mgmt Server : CentOS release 6.4 (Final)
ACS: 4.4.1
Primary  Secondary : NFS


Thanks,

Yitao Jiang



Re: Status of Root Disk Resize for XenServer

2014-12-15 Thread Yitao Jiang
Hi,
I just upload a patch which implements the root -resize feature within
xenserver 6.2.0.

Hopes can help.


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Fri, Dec 12, 2014 at 11:29 PM, Matthew Midgett 
clouds...@trick-solutions.com.invalid wrote:

 Root disk resize during deployment is a huge advantage when you don't have
 10GB networking. Who should we contact to see if some sponsorship could be
 put together to make the code happen for XenServer and ACS 4.4. The XAPI
 can
 resize the root disk so we only need code to tell it that it can. Once the
 disk is resized then it's up to cloud-init or the administrator to take
 care
 of resizing the partitions.



 I've been watching

 https://issues.apache.org/jira/browse/CLOUDSTACK-6181?jql=text%20~%20%22root
 %20disk%20resize%22 and it says resolved but it not for all hypervisors.



 Will someone direct me on to the correct path?





 Matthew Midgett

 Trick Solutions

 143 Jenny Marie Rd

 Mooresville NC,28115

 336-618-7425 Office

 704-728-5644 Cell

 www.trick-solutions.com










Re: [GitHub] cloudstack pull request: Add the Userdata setting to the UI on VM ...

2014-12-09 Thread Yitao Jiang
just wandering whether checking selected network supported userdata or not
On Dec 9, 2014 8:07 PM, asfgit g...@git.apache.org wrote:

 Github user asfgit closed the pull request at:

 https://github.com/apache/cloudstack/pull/55


 ---
 If your project is set up for it, you can reply to this email and have your
 reply appear on GitHub as well. If your project does not have this feature
 enabled and wishes so, or if the feature is enabled but not working, please
 contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
 with INFRA.
 ---



Re: [jira] [Created] (CLOUDSTACK-6424) Citrix Xenserver 6.2 Support

2014-12-09 Thread Yitao Jiang
Hi, neo
currently we are using acs 4.2.1 ship with xenserver 6.2.0 without service
pack. Till now works pretty well.


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Wed, Apr 16, 2014 at 4:44 PM, neo (JIRA) j...@apache.org wrote:

 neo created CLOUDSTACK-6424:
 ---

  Summary: Citrix Xenserver 6.2 Support
  Key: CLOUDSTACK-6424
  URL:
 https://issues.apache.org/jira/browse/CLOUDSTACK-6424
  Project: CloudStack
   Issue Type: Improvement
   Security Level: Public (Anyone can view this level - this is the
 default.)
   Components: Hypervisor Controller
 Affects Versions: 4.2.0
  Environment: Citrix Xenserver 6.2, Cloudstack 4.2.1
 Reporter: neo


 Hi,

 I'm having issue configuring Cloudstack, later on reading release note
 found Citrix XenServer 6.2 is not supported with cloudstack 4.2.1

 Cloudstack 4.2.1 Release Note -

 https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.1/html/Release_Notes/supported-os.html#supported-hv

 but somewhere on bug, i have found its supported with cloudstack 4.2 even
 citrix updated this for Cloudplatform where they are saying XenServer 6.2
 is suported with Cloudplatform 4.2.1 and later

 http://support.citrix.com/cms/kc/cloud-troubleshooting/cloudplatform-compatibility-matrix/

 Its pretty confusing now, i'm experiencing some issue in cloudstack
 deployment which i think because of XenServer 6.2 support.

 Please confirm whether its supported or not and also update release note,
 release note really helps.

 Thanks




 --
 This message was sent by Atlassian JIRA
 (v6.2#6252)



Re: [jira] [Updated] (CLOUDSTACK-8026) Unable to Create/Delete the Firewall Rule

2014-12-05 Thread Yitao Jiang
Seems that the connection between mgmt server and vRouter unavailable. Make
sure the they can talk to each other .
BTW, which ACS version r u running and it's system VM template. If you sure
about the connectiin is OK, try logging into vRouter, check logs what
happened
On Dec 5, 2014 1:09 PM, ArunVS (JIRA) j...@apache.org wrote:


  [
 https://issues.apache.org/jira/browse/CLOUDSTACK-8026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

 ArunVS updated CLOUDSTACK-8026:
 ---
 Description:
 We are unable to create or delete the firewall rule for Virtual Routers.

 From the management server logs we observed the below logs,

 _

 2014-12-04 17:56:40,235 DEBUG [agent.transport.Request]
 (Job-Executor-39:job-5010) Seq 1-1429165745: Received:  { Ans: , MgmtId:
 52234706542, via: 1, Ver: v1, Flags: 0, { SetFirewallRulesAnswer } }
 2014-12-04 17:56:40,235 WARN  [network.firewall.FirewallManagerImpl]
 (Job-Executor-39:job-5010) Failed to apply firewall rules due to
 com.cloud.exception.ResourceUnavailableException: Resource [DataCenter:1]
 is unreachable: Unable to apply firewall rules on router
  at
 com.cloud.network.router.VirtualNetworkApplianceManagerImpl.applyRules(VirtualNetworkApplianceManagerImpl.java:3574)
  at
 com.cloud.network.router.VirtualNetworkApplianceManagerImpl.applyFirewallRules(VirtualNetworkApplianceManagerImpl.java:3430)
  at
 com.cloud.network.element.VirtualRouterElement.applyFWRules(VirtualRouterElement.java:235)
  at
 com.cloud.network.NetworkManagerImpl.applyRules(NetworkManagerImpl.java:4123)
  at
 com.cloud.network.firewall.FirewallManagerImpl.applyRules(FirewallManagerImpl.java:512)
  at
 com.cloud.network.firewall.FirewallManagerImpl.applyFirewallRules(FirewallManagerImpl.java:581)
  at
 com.cloud.network.firewall.FirewallManagerImpl.revokeFirewallRule(FirewallManagerImpl.java:617)
  at
 com.cloud.event.ActionEventCallback.intercept(ActionEventCallback.java:32)
  at
 com.cloud.network.firewall.FirewallManagerImpl.revokeFirewallRule(FirewallManagerImpl.java:634)
  at
 com.cloud.api.commands.DeleteFirewallRuleCmd.execute(DeleteFirewallRuleCmd.java:91)
  at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:263)
  at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:430)
  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)
 2014-12-04 17:56:40,250 WARN  [cloud.api.ApiDispatcher]
 (Job-Executor-39:job-5010) class com.cloud.api.ServerApiException : Failed
 to delete firewall rule
 2014-12-04 17:56:40,250 DEBUG [cloud.async.AsyncJobManagerImpl]
 (Job-Executor-39:job-5010) Complete async job-5010, jobStatus: 2,
 resultCode: 530, result: Error Code: 530 Error text: Failed to delete
 firewall rule

 __

 Note: Target device is in UP status only.

  Unable to Create/Delete the Firewall Rule
  -
 
  Key: CLOUDSTACK-8026
  URL:
 https://issues.apache.org/jira/browse/CLOUDSTACK-8026
  Project: CloudStack
   Issue Type: Bug
   Security Level: Public(Anyone can view this level - this is the
 default.)
   Components: Management Server, Virtual Router
 Reporter: ArunVS
 
  We are unable to create or delete the firewall rule for Virtual Routers.
  From the management server logs we observed the below logs,
  _
  2014-12-04 17:56:40,235 DEBUG [agent.transport.Request]
 (Job-Executor-39:job-5010) Seq 1-1429165745: Received:  { Ans: , MgmtId:
 52234706542, via: 1, Ver: v1, Flags: 0, { SetFirewallRulesAnswer } }
  2014-12-04 17:56:40,235 WARN  [network.firewall.FirewallManagerImpl]
 (Job-Executor-39:job-5010) Failed to apply firewall rules due to
  com.cloud.exception.ResourceUnavailableException: Resource
 [DataCenter:1] is unreachable: Unable to apply firewall rules on router
   at
 com.cloud.network.router.VirtualNetworkApplianceManagerImpl.applyRules(VirtualNetworkApplianceManagerImpl.java:3574)
   at
 com.cloud.network.router.VirtualNetworkApplianceManagerImpl.applyFirewallRules(VirtualNetworkApplianceManagerImpl.java:3430)
   at
 com.cloud.network.element.VirtualRouterElement.applyFWRules(VirtualRouterElement.java:235)
   at
 com.cloud.network.NetworkManagerImpl.applyRules(NetworkManagerImpl.java:4123)
   at
 com.cloud.network.firewall.FirewallManagerImpl.applyRules(FirewallManagerImpl.java:512)
   at
 com.cloud.network.firewall.FirewallManagerImpl.applyFirewallRules(FirewallManagerImpl.java:581)
   at
 com.cloud.network.firewall.FirewallManagerImpl.revokeFirewallRule(FirewallManagerImpl.java:617)
   at
 

Re: How to skip some child projects maven test intentionally ?

2014-11-27 Thread Yitao Jiang
Try  -D skiTests​


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Fri, Nov 28, 2014 at 3:12 PM, ChunFeng chunf...@domolo.com wrote:

 How to skip some child projects maven test intentionally ?


 I am now building my coding development environment , of course , I do not
 need some sub projects , such as : Network Brocade VCS,  Midokura Midonet
 etc .


 When I run command : mvn install -P developer,systemvm ,  maven list all
 sub child projects of cloudstack , especially for Plugin projects , I want
 just SKIP maven test them for time cost reason.


 Can I just skip those maven test by assign some command after :  mvn
 install -P developer,systemvm  ( such as -skip:midonet ) ?




 --


 Regards,


 ChunFeng


Can not Start ACS 4.2.1 With CentOS 6.5 Management Server

2014-11-24 Thread Yitao Jiang
Hi, guys

My home lab is CentOS 6.5 management server with acs 4.2.1, i am sure i can
access dashboard to set up a datacenter, but after restart managment
server, can not login anymore. Below is exceptions of management server log

INFO  [utils.component.ComponentContext] (Timer-2:) Configuring
com.cloud.user.dao.UserDaoImpl_EnhancerByCloudStack_a529c2dd
ERROR [ehcache.distribution.MulticastRMICacheManagerPeerProvider]
(Timer-2:) Error starting heartbeat. Error was: No such device
java.net.SocketException: No such device
at java.net.PlainDatagramSocketImpl.join(Native Method)
at
java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:178)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:319)
at
net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatReceiver.init(MulticastKeepaliveHeartbeatReceiver.java:78)
at
net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.init(MulticastRMICacheManagerPeerProvider.java:89)
at net.sf.ehcache.CacheManager.init(CacheManager.java:229)
at net.sf.ehcache.CacheManager.init(CacheManager.java:213)
at net.sf.ehcache.CacheManager.create(CacheManager.java:394)
at
com.cloud.utils.db.GenericDaoBase.createCache(GenericDaoBase.java:1743)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at
com.cloud.utils.db.GenericDaoBase.configure(GenericDaoBase.java:1762)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at
com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111)
at
com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:54)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Exception in thread Timer-2 net.sf.ehcache.CacheException: No such device
at
net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.init(MulticastRMICacheManagerPeerProvider.java:93)
at net.sf.ehcache.CacheManager.init(CacheManager.java:229)
at net.sf.ehcache.CacheManager.init(CacheManager.java:213)
at net.sf.ehcache.CacheManager.create(CacheManager.java:394)
at
com.cloud.utils.db.GenericDaoBase.createCache(GenericDaoBase.java:1743)
at
com.cloud.user.dao.UserDaoImpl_EnhancerByCloudStack_a529c2dd.CGLIB$createCache$77(generated)
at
com.cloud.user.dao.UserDaoImpl_EnhancerByCloudStack_a529c2dd_FastClassByCloudStack_1372f30a.invoke(generated)
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at
com.cloud.user.dao.UserDaoImpl_EnhancerByCloudStack_a529c2dd.createCache(generated)
at
com.cloud.utils.db.GenericDaoBase.configure(GenericDaoBase.java:1762)
at
com.cloud.user.dao.UserDaoImpl_EnhancerByCloudStack_a529c2dd.CGLIB$configure$14(generated)
at
com.cloud.user.dao.UserDaoImpl_EnhancerByCloudStack_a529c2dd_FastClassByCloudStack_1372f30a.invoke(generated)
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at
com.cloud.user.dao.UserDaoImpl_EnhancerByCloudStack_a529c2dd.configure(generated)
at
com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111)
at
com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:54)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io


Re: [DISCUSS] Major business logic refactoring: Move from Account to UserAccount

2014-11-14 Thread Yitao Jiang
Agreed. Using userid could make isolation of resources more strictly. Which
is more suitable for public cloud,but more work have to be done I think.
On Nov 14, 2014 4:54 PM, Rohit Yadav rohit.ya...@shapeblue.com wrote:

 Hi,

 All CloudStack DB entities (VM, storage, network etc.) have an owner field
 which is mostly the account. An account can have multiple users so just by
 looking at the resource (say VM) it’s not possible to make out which user
 in the account (owner or account_id field in the db row of the entity)
 created it. CloudStack users may want to know this information for at least
 entities such as VMs and Volumes.

 Historically, why is the account owner of an entity and not a user? If
 user were the owner, we could easily get the account Id using the user Id.

 One solution to fix this problem is to refactor and replace Account
 (interface) usage with UserAccount (interface) usage, fix the DAO and
 resource layer, and add columns in the schema. This gets us all the
 information we need to determine domainId, AccountId and Id (the user ID).
 Should we do it for all entities or just keep status quo (use account as
 owners), or just fix it on-demand basis for specific entities such as for
 user VMs [1].

 [1] https://issues.apache.org/jira/browse/CLOUDSTACK-7908

 Regards,
 Rohit Yadav
 Software Architect, ShapeBlue
 M. +91 88 262 30892 | rohit.ya...@shapeblue.com
 Blog: bhaisaab.org | Twitter: @_bhaisaab



 Find out more about ShapeBlue and our range of CloudStack related services

 IaaS Cloud Design  Build
 http://shapeblue.com/iaas-cloud-design-and-build//
 CSForge – rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/
 CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/
 CloudStack Software Engineering
 http://shapeblue.com/cloudstack-software-engineering/
 CloudStack Infrastructure Support
 http://shapeblue.com/cloudstack-infrastructure-support/
 CloudStack Bootcamp Training Courses
 http://shapeblue.com/cloudstack-training/

 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 a
 company incorporated in India and is operated under license from Shape Blue
 Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
 and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is
 a company registered by The Republic of South Africa and is traded under
 license from Shape Blue Ltd. ShapeBlue is a registered trademark.



Re: Re: The SSVM cannot run succesfully in the development environment

2014-10-31 Thread Yitao Jiang
Hi,XQ

Have you imported system vm template successfully?
Maybe, Something wrong with your primary stroage (NFS ?) ,you can just
verify whether can launch instance directly from hypervisor(xenserver? )

Hopes can help


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Fri, Oct 31, 2014 at 4:20 PM, XQ m15366190...@163.com wrote:

 Hello Hugo
 I run the cmd mvn -pl :cloud-client-ui jetty:run ,To start the
 management server.
 I hava add the zone suceesfully,but the two vm can not start up.
 the vmops.log:


 DEBUG [o.a.c.s.i.BaseImageStoreDriverImpl] (AgentTaskPool-1:ctx-6b61f408)
 Downloading template to data store 1
 WARN  [c.c.s.d.DownloadMonitorImpl] (AgentTaskPool-1:ctx-6b61f408) There
 is no secondary storage VM for downloading template to image store CCF
  DEBUG [o.a.c.s.i.TemplateDataFactoryImpl] (AgentTaskPool-1:ctx-6b61f408)
 template 5 is already in store:1, type:Image

 DEBUG [c.c.a.t.Request] (StatsCollector-1:ctx-34387474) Seq
 1-8395835605325447178: Received:  { Ans: , MgmtId: 52236036618, via: 1,
 Ver: v1, Flags: 10, { UnsupportedAnswer } }
  WARN  [c.c.a.m.AgentManagerImpl] (StatsCollector-1:ctx-34387474)
 Unsupported Command: Unsupported command
 issued:com.cloud.agent.api.GetGPUStatsCommand.  Are you sure you got the
 right type of server?
  DEBUG [c.c.a.m.AgentManagerImpl] (StatsCollector-1:ctx-34387474) Details
 from executing class com.cloud.agent.api.GetGPUStatsCommand: Unsupported
 command issued:com.cloud.agent.api.GetGPUStatsCommand.  Are you sure you
 got the right type of server?
  DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-2:ctx-b63b21f4) Seq
 1-8395835605325447177: Response Received:
  DEBUG [c.c.a.t.Request] (StatsCollector-3:ctx-7e978663) Seq
 1-8395835605325447177: Received:  { Ans: , MgmtId: 52236036618, via: 1,
 Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-8:ctx-dd3df651) Seq
 1-8395835605325447179: Executing request
 300 WARN  [c.c.h.x.r.XenServerStorageProcessor]
 (DirectAgent-8:ctx-dd3df651) destoryVDIbyNameLabel failed due to there are
 0 VDIs with name cloud-a3a84a3a-d970-4175-a1b8-216250a8f53a2014-10-31
 15:43:58,304 WARN  [c.c.h.x.r.XenServerStorageProcessor]
 (DirectAgent-8:ctx-dd3df651) can not create vdi in sr
 cc3f752d-9b31-235e-73ae-50537461b849
 305 WARN  [c.c.h.x.r.XenServerStorageProcessor]
 (DirectAgent-8:ctx-dd3df651) Catch Exception
 com.cloud.utils.exception.CloudRuntimeException for template +  due to
 com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
 cc3f752d-9b31-235e-73ae-50537461b849
 com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
 cc3f752d-9b31-235e-73ae-50537461b849
 INFO  [o.a.c.s.v.VolumeServiceImpl] (Work-Job-Executor-2:ctx-864a1711
 job-580/job-582 ctx-d21a5eaa) releasing lock for VMTemplateStoragePool 224
 323 WARN  [c.c.u.d.Merovingian2] (Work-Job-Executor-2:ctx-864a1711
 job-580/job-582 ctx-d21a5eaa) Was unable to find lock for the key
 template_spool_ref224 and thread id 276030255
 323 DEBUG [o.a.c.e.o.VolumeOrchestrator] (Work-Job-Executor-2:ctx-864a1711
 job-580/job-582 ctx-d21a5eaa) Unable to create Vol[1|vm=1|ROOT]:Catch
 Exception com.cloud.utils.exception.CloudRuntimeException for template +
 due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi
 in sr cc3f752d-9b31-235e-73ae-50537461b849
 323 INFO  [c.c.v.VirtualMachineManagerImpl]
 (Work-Job-Executor-2:ctx-864a1711 job-580/job-582 ctx-d21a5eaa) Unable to
 contact resource.
 com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1]
 is unreachable: Unable to create Vol[1|vm=1|ROOT]:Catch Exception
 com.cloud.utils.exception.CloudRuntimeException for template +  due to
 com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
 cc3f752d-9b31-235e-73ae-50537461b849











 At 2014-10-31 15:01:37, Hugo Trippaers trip...@gmail.com wrote:
 Hello XQ,
 
 We need a little bit more info before we can help you. For example the
 error message in the log file and a short description of how your
 environment is build up.
 
 Cheers,
 
 Hugo
 
 Sent from my iPhone
 
  On 31 Oct 2014, at 06:56, 徐书敏 m15366190...@163.com wrote:
 
  Hi
 
 I have done the dev-environment building.when I configure the
 host,the Error :Monitor DownloaderListener says there is a error in the
 connect process for 1 due to failed to update state.before it there is a
 warn there is no seondnary storage vm for downloading template to image
 store .
 In the secondnary storage host ,there are a  template file of vhd
 and a properties file of template.
 
 
  Thanks,
  XQ



Re: Issue VM Access

2014-10-16 Thread Yitao Jiang
Try loging into vms each other using ssh ,maybe your template play trick.
Or Using vnc-viewer logged into vm to see if the sshd deamon running


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Fri, Oct 17, 2014 at 5:48 AM, Bikas mbik...@uic.edu wrote:

 Thanks for the replies.

 I created another VM and connectivity between both VM works (ping from one
 VM console to another).
 But still not being able to remote login to any of them from the same
 network.

 Please let me what other option I should check.
 I have created the basic zone so could not able to provide any public ip
 range as there is no such option in basic mode. Could that be a reason.

 Thanks,
 Bikas


 On Tue, Oct 14, 2014 at 11:03 PM, Carlos Reategui create...@gmail.com
 wrote:

  Also try logging in from the console to verify ssh is running and also
  verify the IP address to make sure it has the ip it is supposed to.  If
 it
  doesn't match there may be a rouge dhcp server.
 
   On Oct 14, 2014, at 7:41 PM, Yitao Jiang willier...@gmail.com wrote:
  
   Try spawning another instance within the same network of above , then
   verify the connectivity between two vms.
  
  
   ---
   Thanks,
   Yitao(依涛 姜)
   jiangyt.github.io
  
   On Wed, Oct 15, 2014 at 2:46 AM, Bikas mbik...@uic.edu wrote:
  
   Hi all,
  
   We are using basic zone configuration in cloud infrastructure. We have
  VM
   deployed with Ubuntu OS.  We are able to ping the VM IP
   (instanceVMNameNICsIP address) from local desktop in the same
  network.
   However, we are not able to remote access(or ssh) the VM using remote
   desktop software even though  we disable the firewall  in both
  management
   server and host in hypervisor . We also added the ingress rules for
 TCP
   port 22 0.0.0.0/0
   at the default security group.
  
   Thanks in advance,
   Bikas
  
 



Re: Help in Adding XenServer to CS Management Server

2014-10-15 Thread Yitao Jiang
1.Check zone status, make sure enabled.
2.change mgmt server debug level, watch ing the log file in /var/log/cloud/
On Oct 16, 2014 7:13 AM, Ritu Sabharwal rsabh...@brocade.com wrote:

 Hi,

 I am trying to add XenServer to the CS Management Server.

 I could add the hosts and I see Host status as up on the GUI. But I don't
 see any System VMs coming up and Virtual Router coming up in the dashboard.
 When I try to create a User VM there is no template available to select.

 I am blocked at this point.

 I did seed Secondary Storage by importing system VM templat from
 http://jenkins.buildacloud.org/view/4.4/job/cloudstack-4.4-systemvm64/
 for Xen (systemvm64template-4.4-2014-09-30-xen.vhd.bz2
 http://jenkins.buildacloud.org/view/4.4/job/cloudstack-4.4-systemvm64/lastSuccessfulBuild/artifact/tools/appliance/dist/systemvm64template-4.4-2014-09-30-xen.vhd.bz2
 )

 Any help on this is appreciated.

 Thanks  Regards,
 Ritu S.



Re: Issue VM Access

2014-10-14 Thread Yitao Jiang
Try spawning another instance within the same network of above , then
verify the connectivity between two vms.


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Wed, Oct 15, 2014 at 2:46 AM, Bikas mbik...@uic.edu wrote:

 Hi all,

 We are using basic zone configuration in cloud infrastructure. We have VM
 deployed with Ubuntu OS.  We are able to ping the VM IP
 (instanceVMNameNICsIP address) from local desktop in the same network.
 However, we are not able to remote access(or ssh) the VM using remote
 desktop software even though  we disable the firewall  in both management
 server and host in hypervisor . We also added the ingress rules for TCP
 port 22 0.0.0.0/0
 at the default security group.

 Thanks in advance,
 Bikas



Re: Load Balancer Crosszone

2014-10-14 Thread Yitao Jiang
AFAIK, currently ACS suport LoadBalancer among vms within same network of
single advanced zone.
Maybe you can hack system vm to meet your needs


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Wed, Oct 15, 2014 at 1:31 AM, Silvano Nogueira Buback 
silv...@corp.globo.com wrote:

 Guys,

 There is any way to create a load balancer between zones, using shared
 network and advanced zone? This is not the idea of Global Load Balancer, is
 the same idea of Amazon LB cross zone.

 Att,

 Silvano Buback



How setting development environment without network connection

2014-09-13 Thread Yitao Jiang
Hi, stackers
Is there any way that i can setting development environment without network
connnection. I mean i had been once set up everything ok in development
with network. Every time i launch cloudstack using command mvn jetty run it
will update some dependence pom , it  failed without network connection. Is
it configurable that do not update m2 repos locally since they are already
esists


Re: How setting development environment without network connection

2014-09-13 Thread Yitao Jiang
Thanks it work
 On Sep 13, 2014 3:49 PM, Ian Duffy i...@ianduffy.ie wrote:

 Assuming you have all dependencies cached in your m2 folded you can use
 with -o flag
 On 13 Sep 2014 07:28, Yitao Jiang willier...@gmail.com wrote:

  Hi, stackers
  Is there any way that i can setting development environment without
 network
  connnection. I mean i had been once set up everything ok in development
  with network. Every time i launch cloudstack using command mvn jetty run
 it
  will update some dependence pom , it  failed without network connection.
 Is
  it configurable that do not update m2 repos locally since they are
 already
  esists
 



RE: Problem of build

2014-09-12 Thread Yitao Jiang
Logs will be more helpful
On Sep 11, 2014 5:40 PM, Stephen Turner stephen.tur...@citrix.com wrote:

 Could you send the exact errors?

 --
 Stephen Turner


 -Original Message-
 From: yan_5...@163.com [mailto:yan_5...@163.com]
 Sent: 11 September 2014 08:35
 To: dev
 Subject: Problem of build

 If I modify a function and make sure the modify is correct,and run mvn
 clean install,it will be many kinds of strange error.

 who can help me? Thanks very much



 yan_5...@163.com



[CS 4.1.0] Unable Migrate Volume From FC-SAN With ESXI 5.0.0 Hypervisor

2014-09-01 Thread Yitao Jiang
Hi,

I'm working on a cloudstack 4.1.0 vmware cluster, after detach a data
volume of vm, migrate to another primary FC-SAN primary storage, exception
occured
But other commands works fine, snapshot, volume create or destroy , etc.
BYW, my volume to be migrated is 40G, and NFS based secondary has 100
capacity

DEBUG [agent.transport.Request] (AgentManager-Handler-13:) Seq
25-529272254: Processing:  { Ans: , MgmtId: 203178712092966, via: 25, Ver:
v1, Flags: 110,
[{storage.CopyVolumeAnswer:{result:false,details:CopyVolumeCommand
failed due to exception: java.lang.Exception: Unable to finish the whole
process to package as a OVA
file\ncom.cloud.hypervisor.vmware.mo.VirtualMachineMO.exportVm(VirtualMachineMO.java:1336)\ncom.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.exportVolumeToSecondaryStroage(VmwareStorageManagerImpl.java:758)\ncom.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.copyVolumeToSecStorage(VmwareStorageManagerImpl.java:841)\ncom.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.execute(VmwareStorageManagerImpl.java:343)\ncom.cloud.storage.resource.VmwareSecondaryStorageResourceHandler.execute(VmwareSecondaryStorageResourceHandler.java:137)\ncom.cloud.storage.resource.VmwareSecondaryStorageResourceHandler.executeRequest(VmwareSecondaryStorageResourceHandler.java:77)\ncom.cloud.storage.resource.PremiumSecondaryStorageResource.executeRequest(PremiumSecondaryStorageResource.java:54)\ncom.cloud.agent.Agent.processRequest(Agent.java:525)\ncom.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:852)\ncom.cloud.utils.nio.Task.run(Task.java:83)\njava.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)\njava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)\njava.lang.Thread.run(Thread.java:662)\n,wait:0}}]
}
DEBUG [agent.transport.Request] (Job-Executor-39:job-577) Seq 25-529272254:
Received:  { Ans: , MgmtId: 203178712092966, via: 25, Ver: v1, Flags: 110,
{ CopyVolumeAnswer } }
DEBUG [agent.manager.AgentAttache] (AgentManager-Handler-13:) Seq
25-529272254: No more commands found
ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-39:job-577)
Unexpected exception while executing
org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to copy the volume
from the source primary storage pool to secondary storage.
at
com.cloud.storage.StorageManagerImpl.migrateVolumes(StorageManagerImpl.java:3263)
 at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
 at
com.cloud.storage.StorageManagerImpl.migrateVolume(StorageManagerImpl.java:3209)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
 at
org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd.execute(MigrateVolumeCmd.java:95)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
 at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
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)
DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-39:job-577) Complete
async job-577, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error
text: Failed to copy the volume from the source primary storage pool to
secondary storage.

---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io


Fwd: [CS 4.1.0] Unable Migrate Volume From FC-SAN With ESXI 5.0.0 Hypervisor

2014-09-01 Thread Yitao Jiang
Do you hava any ideas ?

---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io


-- Forwarded message --
From: Yitao Jiang willier...@gmail.com
Date: Mon, Sep 1, 2014 at 2:00 PM
Subject: [CS 4.1.0] Unable Migrate Volume From FC-SAN With ESXI 5.0.0
Hypervisor
To: dev@cloudstack.apache.org dev@cloudstack.apache.org


Hi,

I'm working on a cloudstack 4.1.0 vmware cluster, after detach a data
volume of vm, migrate to another primary FC-SAN primary storage, exception
occured
But other commands works fine, snapshot, volume create or destroy , etc.
BYW, my volume to be migrated is 40G, and NFS based secondary has 100
capacity

DEBUG [agent.transport.Request] (AgentManager-Handler-13:) Seq
25-529272254: Processing:  { Ans: , MgmtId: 203178712092966, via: 25, Ver:
v1, Flags: 110,
[{storage.CopyVolumeAnswer:{result:false,details:CopyVolumeCommand
failed due to exception: java.lang.Exception: Unable to finish the whole
process to package as a OVA
file\ncom.cloud.hypervisor.vmware.mo.VirtualMachineMO.exportVm(VirtualMachineMO.java:1336)\ncom.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.exportVolumeToSecondaryStroage(VmwareStorageManagerImpl.java:758)\ncom.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.copyVolumeToSecStorage(VmwareStorageManagerImpl.java:841)\ncom.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.execute(VmwareStorageManagerImpl.java:343)\ncom.cloud.storage.resource.VmwareSecondaryStorageResourceHandler.execute(VmwareSecondaryStorageResourceHandler.java:137)\ncom.cloud.storage.resource.VmwareSecondaryStorageResourceHandler.executeRequest(VmwareSecondaryStorageResourceHandler.java:77)\ncom.cloud.storage.resource.PremiumSecondaryStorageResource.executeRequest(PremiumSecondaryStorageResource.java:54)\ncom.cloud.agent.Agent.processRequest(Agent.java:525)\ncom.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:852)\ncom.cloud.utils.nio.Task.run(Task.java:83)\njava.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)\njava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)\njava.lang.Thread.run(Thread.java:662)\n,wait:0}}]
}
DEBUG [agent.transport.Request] (Job-Executor-39:job-577) Seq 25-529272254:
Received:  { Ans: , MgmtId: 203178712092966, via: 25, Ver: v1, Flags: 110,
{ CopyVolumeAnswer } }
DEBUG [agent.manager.AgentAttache] (AgentManager-Handler-13:) Seq
25-529272254: No more commands found
ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-39:job-577)
Unexpected exception while executing
org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to copy the volume
from the source primary storage pool to secondary storage.
at
com.cloud.storage.StorageManagerImpl.migrateVolumes(StorageManagerImpl.java:3263)
 at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
 at
com.cloud.storage.StorageManagerImpl.migrateVolume(StorageManagerImpl.java:3209)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
 at
org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd.execute(MigrateVolumeCmd.java:95)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
 at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
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)
DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-39:job-577) Complete
async job-577, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error
text: Failed to copy the volume from the source primary storage pool to
secondary storage.

---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io


Is apache repository down ?

2014-08-30 Thread Yitao Jiang
Running cloudstack in develop mode using jetty, it failed with
juniper-contrail-api-1.0-SNAPSHOT.pom.

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-remote-resources-plugin:1.3:process
(default) on project cloud-client-ui: Error resolving project artifact:
Could not transfer artifact
net.juniper.contrail:juniper-contrail-api:pom:1.0-SNAPSHOT from/to
apache.snapshots (http://repository.apache.org/snapshots): Failed to
transfer file:
http://repository.apache.org/snapshots/net/juniper/contrail/juniper-contrail-api/1.0-SNAPSHOT/juniper-contrail-api-1.0-SNAPSHOT.pom.
Return code is: 503, ReasonPhrase: Service Temporarily Unavailable. for
project net.juniper.contrail:juniper-contrail-api:jar:1.0-SNAPSHOT - [Help
1]

Does it not working now?

---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io


Cloudstack KVM Agent Installed Failed : error: Failed dependencies

2014-08-19 Thread Yitao Jiang
Hi,
When install cloudstack-agent from my own repos which built from source, it
failed

[root@devstack ~]# rpm -ivh
http://192.168.129.7/ieureka/cloudstack-agent-4.3.0-1.el6.x86_64.rpm
Retrieving
http://192.168.129.7/ieureka/cloudstack-agent-4.3.0-1.el6.x86_64.rpm

error: Failed dependencies:
 libvirt is needed by cloudstack-agent-4.3.0-1.el6.x86_64

But actually libvirt has installed from source (because the current
libvirt that
CentOS is shipping with in EL6  not support rbd )and works fine

[root@devstack ~]# libvirtd --version
libvirtd (libvirt) 1.2.7
[root@devstack ~]# virsh version
Compiled against library: libvirt 1.2.7
Using library: libvirt 1.2.7
Using API: QEMU 1.2.7
Running hypervisor: QEMU 0.12.1

If i used libvirt from CentOS 's repos i can install cloudstack-agent.

Can you help me out?


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io


Re: Cloudstack KVM Agent Installed Failed : error: Failed dependencies

2014-08-19 Thread Yitao Jiang
Thanks Simon, I'll hava a try


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io


On Wed, Aug 20, 2014 at 11:00 AM, Simon Weller swel...@ena.com wrote:

 Yitao,

 If you're building your own CS rpms, you should be able to remove the
 Requires: libvirt from the cloud.spec file under packaging/centos63 prior
 to running the build.

 - Si


 
 From: Yitao Jiang willier...@gmail.com
 Sent: Tuesday, August 19, 2014 9:08 PM
 To: dev@cloudstack.apache.org
 Subject: Cloudstack KVM Agent Installed Failed : error: Failed dependencies

 Hi,
 When install cloudstack-agent from my own repos which built from source, it
 failed

 [root@devstack ~]# rpm -ivh
 http://192.168.129.7/ieureka/cloudstack-agent-4.3.0-1.el6.x86_64.rpm
 Retrieving
 http://192.168.129.7/ieureka/cloudstack-agent-4.3.0-1.el6.x86_64.rpm

 error: Failed dependencies:
  libvirt is needed by cloudstack-agent-4.3.0-1.el6.x86_64

 But actually libvirt has installed from source (because the current
 libvirt that
 CentOS is shipping with in EL6  not support rbd )and works fine

 [root@devstack ~]# libvirtd --version
 libvirtd (libvirt) 1.2.7
 [root@devstack ~]# virsh version
 Compiled against library: libvirt 1.2.7
 Using library: libvirt 1.2.7
 Using API: QEMU 1.2.7
 Running hypervisor: QEMU 0.12.1

 If i used libvirt from CentOS 's repos i can install cloudstack-agent.

 Can you help me out?


 ---
 Thanks,
 Yitao(依涛 姜)
 jiangyt.github.io



Re: Cloudstack KVM Agent Installed Failed : error: Failed dependencies

2014-08-19 Thread Yitao Jiang
I once create a libvirt rpm, but after install that on CentOS, it appears
not support RBD, so i installed it from source


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io


On Wed, Aug 20, 2014 at 10:57 AM, Carlos Reátegui create...@gmail.com
wrote:

 Did you create a libvirt rpm and install that way?

  On Aug 19, 2014, at 7:08 PM, Yitao Jiang willier...@gmail.com wrote:
 
  Hi,
  When install cloudstack-agent from my own repos which built from source,
 it
  failed
 
  [root@devstack ~]# rpm -ivh
  http://192.168.129.7/ieureka/cloudstack-agent-4.3.0-1.el6.x86_64.rpm
  Retrieving
  http://192.168.129.7/ieureka/cloudstack-agent-4.3.0-1.el6.x86_64.rpm
 
  error: Failed dependencies:
  libvirt is needed by cloudstack-agent-4.3.0-1.el6.x86_64
 
  But actually libvirt has installed from source (because the current
  libvirt that
  CentOS is shipping with in EL6  not support rbd )and works fine
 
  [root@devstack ~]# libvirtd --version
  libvirtd (libvirt) 1.2.7
  [root@devstack ~]# virsh version
  Compiled against library: libvirt 1.2.7
  Using library: libvirt 1.2.7
  Using API: QEMU 1.2.7
  Running hypervisor: QEMU 0.12.1
 
  If i used libvirt from CentOS 's repos i can install cloudstack-agent.
 
  Can you help me out?
 
 
  ---
  Thanks,
  Yitao(依涛 姜)
  jiangyt.github.io



Re: How to config linux native bridge to forward vxlan encapsulated pkts

2014-08-06 Thread Yitao Jiang
Do u turned neteork forward on? Sysctl -p can tell you the configuration
On Aug 6, 2014 7:09 PM, Michael Li cloudcomp...@163.com wrote:

 Does anyone meet this issue:
 Create VM using vxlan for isolation guest network,
  both brvx-139 and vxlan139 is created,
 tcpdump can see the pkts has been encapsulated and forward to cloudbr1,
 but cloudbr1 does not forward pkts out from eth1, is there some special
 configuration on eth1, cloudbr1 or routes ? Does the fdb or mdb learn the
 address automically ?

 Regards



Xenserver Host Memory Usage Incorrect

2014-07-22 Thread Yitao Jiang
Hi, stackers,

Is there any issues when collect Host Memory info with Xenserver 6.2.0
Hypervisor?

Here is what i got confuesed, using xe command i got host memory info not
same with cloudstack ui host info

[root@xenserver-01 ~]# xe host-param-list
uuid=6565eb67-9b5d-46c4-8694-f18d54235150 | grep memory
  memory-overhead ( RO): 318652416
 memory-total ( RO): 21432041472
  memory-free ( RO): 16447246336
 memory-free-computed ( RO): 16401612800

But cloudstack ui said Memory Total: 18.56 GB, Allocated: 3.13GB,, Used:
4.64MB,
I don't konw how cloudstack scan Host Memory Info, and why they are not
same.
Appreciate anyone can clarify me

---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io


ACS 4.2.1 VM DISK Stats not working Under Xenserver

2014-07-04 Thread Yitao Jiang
Hi, stackers

Under Xenserver, the code
https://github.com/apache/cloudstack/blob/4.2.1/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java#L2809
does not implement GetVmDiskStatsCommand, but i want to get the vm disk
usages to make a graph, so do u know how can i get it ? Or is there any
patches or anything ?
Besides, currently  the vm usages(network, cpu, mem ) are all stores in
memory, and is there anyway can persist them. Seems cloud-usage not working
?
BYW, I am working on cloudstack 4.2.1 with xenserver 6.2 hypervisor.

---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io


Re: ACS 4.2.1 VM DISK Stats not working Under Xenserver

2014-07-04 Thread Yitao Jiang
Thanks Wei, and how can i  persist the statistics of vms into DB?


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io


On Fri, Jul 4, 2014 at 4:48 PM, Wei ZHOU ustcweiz...@gmail.com wrote:

 As far as I know, this functionality only supports KVM.
 I can not get the aggregate data from xenapi, as it returns the disk rate
 (bps, iops), not aggregate disk statistics.

 Wei


 2014-07-04 10:12 GMT+02:00 Yitao Jiang willier...@gmail.com:

  Hi, stackers
 
  Under Xenserver, the code
 
 
 https://github.com/apache/cloudstack/blob/4.2.1/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java#L2809
  does not implement GetVmDiskStatsCommand, but i want to get the vm disk
  usages to make a graph, so do u know how can i get it ? Or is there any
  patches or anything ?
  Besides, currently  the vm usages(network, cpu, mem ) are all stores in
  memory, and is there anyway can persist them. Seems cloud-usage not
 working
  ?
  BYW, I am working on cloudstack 4.2.1 with xenserver 6.2 hypervisor.
 
  ---
  Thanks,
  Yitao(依涛 姜)
  jiangyt.github.io
 



Re: ACS 4.2.1 VM DISK Stats not working Under Xenserver

2014-07-04 Thread Yitao Jiang
Is it configurable?


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io


On Fri, Jul 4, 2014 at 5:00 PM, Yitao Jiang willier...@gmail.com wrote:

 Thanks Wei, and how can i  persist the statistics of vms into DB?


 ---
 Thanks,
 Yitao(依涛 姜)
 jiangyt.github.io


 On Fri, Jul 4, 2014 at 4:48 PM, Wei ZHOU ustcweiz...@gmail.com wrote:

 As far as I know, this functionality only supports KVM.
 I can not get the aggregate data from xenapi, as it returns the disk rate
 (bps, iops), not aggregate disk statistics.

 Wei


 2014-07-04 10:12 GMT+02:00 Yitao Jiang willier...@gmail.com:

  Hi, stackers
 
  Under Xenserver, the code
 
 
 https://github.com/apache/cloudstack/blob/4.2.1/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java#L2809
  does not implement GetVmDiskStatsCommand, but i want to get the vm disk
  usages to make a graph, so do u know how can i get it ? Or is there any
  patches or anything ?
  Besides, currently  the vm usages(network, cpu, mem ) are all stores in
  memory, and is there anyway can persist them. Seems cloud-usage not
 working
  ?
  BYW, I am working on cloudstack 4.2.1 with xenserver 6.2 hypervisor.
 
  ---
  Thanks,
  Yitao(依涛 姜)
  jiangyt.github.io
 





Re: Access console VM via custom portal

2014-06-05 Thread Yitao Jiang
Hi,

For me, using httpclient (java) can access the VM console.
Passed in vm id and setting CookieStore with GET method and paste returned
url into browser and all works fine


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io


On Wed, Jun 4, 2014 at 11:22 PM, dimas yoga pratama smid...@gmail.com
wrote:

 Hello,
 can anyone answer my question?

 I create a custom web portal that provide some provisioning for user
 I want user can access cloudstack VM from my web , but I kept gtting this
 message: Access denied. Invalid web session or API key in request

 I already pass the sessionkey like this :

 http://10.151.32.11:8080/client/console?cmd=accessvm=018f88b2-4edc-4e6d-b318-3ec02029180fsessionkey=d01AlQ2ZzwKBVqB2Rkj0qsHP/aw=


 I google it and i found in order to access the console VM I need a token,
 is there any easy way to access console VM from outside the MS? :(


 thanks, please answer my question,
 Dimas.



Re: Hypervisor version and XenServer

2014-04-23 Thread Yitao Jiang
cloud.host table contains hypervisor_version column.
Hopes can help.


---
Thanks,
Yitao
jiangyt.github.io


On Thu, Apr 24, 2014 at 7:22 AM, Chiradeep Vittal 
chiradeep.vit...@citrix.com wrote:

 Where is this HYPERVISOR_VERSION? In the code? Docs?

 From: Tim Mackey tmac...@gmail.commailto:tmac...@gmail.com
 Reply-To: dev@cloudstack.apache.orgmailto:dev@cloudstack.apache.org 
 dev@cloudstack.apache.orgmailto:dev@cloudstack.apache.org
 Date: Wednesday, April 23, 2014 at 2:50 PM
 To: dev@cloudstack.apache.orgmailto:dev@cloudstack.apache.org 
 dev@cloudstack.apache.orgmailto:dev@cloudstack.apache.org
 Subject: Hypervisor version and XenServer

 I'm running through some bugs with my Xen-XenServer work and just ran
 across the HYPERVISOR_VERSION being the Xen version and not the XenServer
 version.  Does anyone know why that is?  Given that feature/function in
 XenServer is tied to the XenServer version, I see using the Xen version as
 a bug waiting to bite us.  Since I don't want to break API compatability,
 I'm not inclined to change it for this work, but do wonder if we shouldn't
 change it when the API revs next.

 Thoughts?

 -tim




Is this a bug when creating VPN failed because UDP ports conflicts

2014-04-21 Thread Yitao Jiang
Hi, stackers

I just found that if the the firewall of sourced nat ip of Isolated
network has opened UDP port such as 1-65535 range , the create vpn command
will faile, because the system will

reopen the udp port of 500, 1701, 4500 which are conflicts with origin port
range.Response as below

[{createremoteaccessvpnresponse:{errortext:The range specified,
500-500, conflicts with rule 84 which has
1-65535,cserrorcode:,errorcode:537,uuidList:[]}}]

So is this a bug ?Or we should ommit the conflict of UDP ports and continue
to creating VPN , Is that right

Any thoughts?

​BYW, i am working on cloudstack 4.2.1 build from source​

Thanks,

Yitao


Re: Instance on KVM + NFS fails

2014-04-16 Thread Yitao Jiang
Hi, David

Did u see anything wrong within kvm agent log file?



Thanks,

Yitao


2014-04-16 22:59 GMT+08:00 La Motta, David david.lamo...@netapp.com:

 Hey everybody, I am trying to deploy a VM instance in KVM using NFS for
 primary storage (on 4.3).  Unfortunately, this is the exception I am
 getting:

 2014-04-16 06:44:53,128 DEBUG [o.a.c.e.o.VolumeOrchestrator]
 (Work-Job-Executor-6:job-30/job-31 ctx-b83982e8) Unable to create
 Vol[4|vm=4|ROOT]:java.lang.ClassCastException:
 com.cloud.agent.api.to.NfsTO cannot be cast to
 org.apache.cloudstack.storage.to.PrimaryDataStoreTO
 at
 com.cloud.hypervisor.kvm.storage.KVMStorageProcessor.copyTemplateToPrimaryS
 torage(KVMStorageProcessor.java:150)
 at
 com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(Stora
 geSubsystemCommandHandlerBase.java:75)
 at
 com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorage
 Commands(StorageSubsystemCommandHandlerBase.java:50)
 at
 com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(L
 ibvirtComputingResource.java:1359)
 at com.cloud.agent.Agent.processRequest(Agent.java:498)
 at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:806)
 at com.cloud.utils.nio.Task.run(Task.java:83)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1
 110)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:
 603)
 at java.lang.Thread.run(Thread.java:722)


 Is this a known issue or are there any gotchas that I am overlooking?

 Thanks!

 // David


 P.s., good to have seen some of you at CCCNA14 last week.  Looking forward
 to Budapest.




RE: Cloud Stack 4.2.1 issue (Unable to start instance due to DB Exception)

2014-04-04 Thread Yitao Jiang
Hi, Amin
Can u make sure that the vrouter of new network created ?never saw this
exception before. More related logs will be helpful.
On Apr 3, 2014 9:13 AM, Amin Samir a...@opencloud.net.au wrote:

 Hello,

 Can anyone please help with the below issue?

 Kind Regards
 Amin




 -Original Message-
 From: Amin Samir
 Sent: Tuesday, 1 April 2014 4:18 PM
 To: dev@cloudstack.apache.org
 Subject: Cloud Stack 4.2.1 issue (Unable to start instance due to DB
 Exception)

 Hello,


 We are facing an issue when we spin up a new instance with a new network
 (router VM), it gives the following error:

 Resource [Host:59] is unreachable: Host 59: Unable to start instance due
 to DB Exception on: com.mysql.jdbc.JDBC4PreparedStatement@5126808amailto:
 com.mysql.jdbc.JDBC4PreparedStatement@5126808a : INSERT INTO
 user_statistics (user_statistics.data_center_id,
 user_statistics.account_id, user_statistics.public_ip_address,
 user_statistics.device_id, user_statistics.device_type,
 user_statistics.network_id, user_statistics.net_bytes_received,
 user_statistics.net_bytes_sent, user_statistics.current_bytes_received,
 user_statistics.current_bytes_sent, user_statistics.agg_bytes_received,
 user_statistics.agg_bytes_sent) VALUES (1, 28, null, 360,
 _binary'DomainRouter', 237, 0, 0, 0, 0, 0, 0)


 Also we are facing this error every now and then:

 (DirectAgent-93:null) GetStorageStats Exception:SR_BACKEND_FAILURE_40The
 SR scan failed
  
 [opterr=uuid=870ed96e-d62b-428a-88dc-41afc75d311a]host:13944281-3f7e-4065-8580-1dc5b64cfdb1storageid:
 098d4f7a-a040-3462-add1-d618d6ec53c1



 However when spinning a new instance with an existing network (router VM)
 it works fine!! Has anyone faced this issue, your help would be much
 appreciated.


 Thanks


 Kind Regards

 Amin






Re: Merge AutoScaling without NetScaler to MASTER

2014-04-04 Thread Yitao Jiang
Hi,does this feature available for 4.2.1 ?
On Mar 28, 2014 1:29 AM, Nguyen Anh Tu t...@apache.org wrote:

 On Fri, Mar 28, 2014 at 12:23 AM, benoit lair kurushi4...@gmail.com
 wrote:

  So why do i have this doc present in docs.cloudstack.apache.org ? :
 
 
 
 http://docs.cloudstack.apache.org/en/latest/networking/autoscale_without_netscaler.html#configuration
 

 AFAIK, this is not an official document.

 For AutoScaling feature, I would love to finish some enhancements before
 planning for an official release. Take a look:

 http://ngtuna.blogspot.com/2013/12/autoscaling-in-cloudstack.html

 --Tuna



Re: Unable to deploy systemvms

2014-04-03 Thread Yitao Jiang
Hi,as you defined the STORAGE network, the SSVM need access NFSserver
through storage network ,just as Pierre-Luc Dion  said there maybe vlan rag
or namelable play the trick ,so you can check whether the compute node with
xen can manualy mount the nfs mount point through xenbr1
On Apr 2, 2014 8:55 PM, Tejas Gadaria refond.g...@gmail.com wrote:

 Hi Yitao,

 xenbr0 : acting as Management network and no VLAN is assigned to it
 xenbr1 : acting as public, guest storage network. All of this are in same
 VLAN.
 Also I have given same name-label as here in Cloudstack network
 configuraion.

 I don't know much about xen VLAN networking..if anything wrong please
 point it out.

 [root@xen-dev ~]# xe network-list
 uuid ( RO): bfb89346-9eae-4554-a46a-59f9b4587983
   name-label ( RW): cloud_link_local_network
 name-description ( RW): link local network used by system vms
   bridge ( RO): xapi0


 uuid ( RO): eeb9fb94-7468-6b78-aaae-8d4e84b48afd
   name-label ( RW): Host internal management network
 name-description ( RW): Network on which guests will be assigned a
 private link-local IP address which can be used to talk XenAPI
   bridge ( RO): xenapi


 uuid ( RO): 90f6f78a-d4d8-463a-ccca-e28f7ea4e7d2
   name-label ( RW): cloud-manage
 name-description ( RW):
   bridge ( RO): xenbr0


 uuid ( RO): 88f0843e-feb9-44d0-5a04-06f32a258b81
   name-label ( RW): cloud-public
 name-description ( RW):
   bridge ( RO): xenbr1


 Regards,
 Tejas



 On Wed, Apr 2, 2014 at 5:42 PM, Yitao Jiang willier...@gmail.com wrote:

  Can you post your network configuration here, and do u able make
 operation
  on xenseever through xencenter? May be something wrong with ur storage
  On Apr 2, 2014 6:47 PM, Tejas Gadaria refond.g...@gmail.com wrote:
 
   Hi Punith,
  
   Thanks for reply,
  
   I have already uploaded
 systemvm64template-2014-01-14-master-xen.vhd.bz2
  in
   secondary .
  
   [root@con-xen ~]# ls -lR /vol/
   /vol/:
   total 8
   drwxr-xr-x 2 root root 4096 Apr  2 12:46 primary
   drwxr-xr-x 3 root root 4096 Apr  2 12:14 secondary
  
   /vol/primary:
   total 4
   -rw-r--r-- 1 root root 11 Apr  2 16:03
   hb-ecff5b59-a2bc-4c0c-9ec8-05f7b4cda546
  
   /vol/secondary:
   total 4
   drwxr-xr-x 3 root root 4096 Apr  2 12:14 template
  
   /vol/secondary/template:
   total 4
   drwxr-xr-x 3 root root 4096 Apr  2 12:14 tmpl
  
   /vol/secondary/template/tmpl:
   total 4
   drwxr-xr-x 3 root root 4096 Apr  2 12:14 1
  
   /vol/secondary/template/tmpl/1:
   total 4
   drwxr-xr-x 2 root root 4096 Apr  2 12:26 1
  
   /vol/secondary/template/tmpl/1/1:
   total 2565016
   -rw-r--r-- 1 root root 2626564608 Apr  2 12:19
   041bb2b7-2c84-4a72-a2bb-573d6c1ba56e.vhd
   -rw-r--r-- 1 root root287 Apr  2 12:26 template.properties
  
  
   Regards,
   Tejas
  
  
   On Wed, Apr 2, 2014 at 3:59 PM, Punith S punit...@cloudbyte.com
 wrote:
  
hi,
   
check whether you have seeded the vdh util for sysytem vms in
 secondary
storage.
   
   
  
 
 http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html#prepare-the-system-vm-template
   
thanks.
   
   
On Wed, Apr 2, 2014 at 3:54 PM, Tejas Gadaria refond.g...@gmail.com
 
wrote:
   
 Hi,

 I am trying to create system vms, in CS 4.3 with Xenserver 6.2
 I am trying to create advance zone. I have 2nics.
 1 for management network  second is trunk.

 I am getting below error

 2014-04-02 15:18:28,827 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
 (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
type:Image
 2014-04-02 15:18:28,831 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
 (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
 type:Primary
 2014-04-02 15:18:28,832 DEBUG [o.a.c.s.v.VolumeServiceImpl]
 (consoleproxy-1:ctx-774da64a) Found template routing-1 in storage
  pool
   1
 with VMTemplateStoragePool id: 4
 2014-04-02 15:18:28,840 DEBUG [o.a.c.s.v.VolumeServiceImpl]
 (consoleproxy-1:ctx-774da64a) Acquire lock on
 VMTemplateStoragePool 4
with
 timeout 3600 seconds
 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
 (DirectAgent-111:ctx-f68bde71) destoryVDIbyNameLabel failed due to
   there
 are 0 VDIs with name cloud-cff5e443-72df-4aae-a4fd-1278fc0cbeb4
 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
 (DirectAgent-111:ctx-f68bde71) can not create vdi in sr
 d2bf95cc-8761-c31d-37a5-173304cc621e
 2014-04-02 15:18:30,904 WARN  [c.c.h.x.r.XenServerStorageProcessor]
 (DirectAgent-111:ctx-f68bde71) Catch Exception
 com.cloud.utils.exception.CloudRuntimeException for template +  due
  to
 com.cloud.utils.exception.CloudRuntimeException: can not create vdi
  in
   sr
 d2bf95cc-8761-c31d-37a5

Re: cloudstack debug level when running mvn -pl :cloud-client-ui jetty:run

2014-04-03 Thread Yitao Jiang
Hi

You can hava a try modify file client/tomcatconf/log4j-cloud.xml.in,
changing log level INFO to DEBUG.

Hopes working.


Thanks,

Yitao


2014-04-02 2:24 GMT+08:00 chris snow chsnow...@gmail.com:

 How can I increase the debug level when I am running:

mvn -pl :cloud-client-ui jetty:run

 Currently log level seems to be set to INFO, and doesn't tell me much
 when things go wrong.

 Many thanks,

 Chris



Re: Unable to deploy systemvms

2014-04-02 Thread Yitao Jiang
Can you post your network configuration here, and do u able make operation
on xenseever through xencenter? May be something wrong with ur storage
On Apr 2, 2014 6:47 PM, Tejas Gadaria refond.g...@gmail.com wrote:

 Hi Punith,

 Thanks for reply,

 I have already uploaded systemvm64template-2014-01-14-master-xen.vhd.bz2 in
 secondary .

 [root@con-xen ~]# ls -lR /vol/
 /vol/:
 total 8
 drwxr-xr-x 2 root root 4096 Apr  2 12:46 primary
 drwxr-xr-x 3 root root 4096 Apr  2 12:14 secondary

 /vol/primary:
 total 4
 -rw-r--r-- 1 root root 11 Apr  2 16:03
 hb-ecff5b59-a2bc-4c0c-9ec8-05f7b4cda546

 /vol/secondary:
 total 4
 drwxr-xr-x 3 root root 4096 Apr  2 12:14 template

 /vol/secondary/template:
 total 4
 drwxr-xr-x 3 root root 4096 Apr  2 12:14 tmpl

 /vol/secondary/template/tmpl:
 total 4
 drwxr-xr-x 3 root root 4096 Apr  2 12:14 1

 /vol/secondary/template/tmpl/1:
 total 4
 drwxr-xr-x 2 root root 4096 Apr  2 12:26 1

 /vol/secondary/template/tmpl/1/1:
 total 2565016
 -rw-r--r-- 1 root root 2626564608 Apr  2 12:19
 041bb2b7-2c84-4a72-a2bb-573d6c1ba56e.vhd
 -rw-r--r-- 1 root root287 Apr  2 12:26 template.properties


 Regards,
 Tejas


 On Wed, Apr 2, 2014 at 3:59 PM, Punith S punit...@cloudbyte.com wrote:

  hi,
 
  check whether you have seeded the vdh util for sysytem vms in secondary
  storage.
 
 
 http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html#prepare-the-system-vm-template
 
  thanks.
 
 
  On Wed, Apr 2, 2014 at 3:54 PM, Tejas Gadaria refond.g...@gmail.com
  wrote:
 
   Hi,
  
   I am trying to create system vms, in CS 4.3 with Xenserver 6.2
   I am trying to create advance zone. I have 2nics.
   1 for management network  second is trunk.
  
   I am getting below error
  
   2014-04-02 15:18:28,827 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
   (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
  type:Image
   2014-04-02 15:18:28,831 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
   (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
   type:Primary
   2014-04-02 15:18:28,832 DEBUG [o.a.c.s.v.VolumeServiceImpl]
   (consoleproxy-1:ctx-774da64a) Found template routing-1 in storage pool
 1
   with VMTemplateStoragePool id: 4
   2014-04-02 15:18:28,840 DEBUG [o.a.c.s.v.VolumeServiceImpl]
   (consoleproxy-1:ctx-774da64a) Acquire lock on VMTemplateStoragePool 4
  with
   timeout 3600 seconds
   2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
   (DirectAgent-111:ctx-f68bde71) destoryVDIbyNameLabel failed due to
 there
   are 0 VDIs with name cloud-cff5e443-72df-4aae-a4fd-1278fc0cbeb4
   2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
   (DirectAgent-111:ctx-f68bde71) can not create vdi in sr
   d2bf95cc-8761-c31d-37a5-173304cc621e
   2014-04-02 15:18:30,904 WARN  [c.c.h.x.r.XenServerStorageProcessor]
   (DirectAgent-111:ctx-f68bde71) Catch Exception
   com.cloud.utils.exception.CloudRuntimeException for template +  due to
   com.cloud.utils.exception.CloudRuntimeException: can not create vdi in
 sr
   d2bf95cc-8761-c31d-37a5-173304cc621e
   com.cloud.utils.exception.CloudRuntimeException: can not create vdi in
 sr
   d2bf95cc-8761-c31d-37a5-173304cc621e
   at
  
  
 
 com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:848)
   at
  
  
 
 com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:918)
   at
  
  
 
 com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:75)
   at
  
  
 
 com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
   at
  
  
 
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:609)
   at
  
  
 
 com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
   at
  
  
 
 com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
   at
  
  
 
 com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
   at
  
  
 
 org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
   at
  
  
 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
   at
  
  
 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
   at
  
  
 
 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
   at
  
  
 
 org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
   at
   java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at
 

Re: Xenserver 6.2.0 CreateSnapshot weird error log

2014-03-20 Thread Yitao Jiang
Hi,

I figured it out.

Default vmsnapshot.create.wait  value in global configuration is 1(s), and
i don't know why the operation takes much more than 10 seconds,so i changed
it to 60s. Now i can make vm snapshot.


Thanks,

Yitao


2014-03-20 9:33 GMT+08:00 Yitao Jiang willier...@gmail.com:

 I can not make vm snapshot now . Do you guys know why ?

 Thanks,

  Yitao


 2014-03-19 19:23 GMT+08:00 Yitao Jiang willier...@gmail.com:

 Hi, stackers

 now i found a weird log happend in xenserver message log when creating a
 snapshot through cloudstack 4.2.1 web ui.
 And the task failed.
 Below are cloudstack log and log of xenserver

 management/catalina.out
 =
 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-3:) SeqA
 3-30863: Processing Seq 3-30863:  { Cmd , MgmtId: -1, via: 3, Ver: v1,
 Flags: 11,
 [{com.cloud.agent.api.ConsoleProxyLoadReportCommand:{_proxyVmId:2,_loadInfo:{\n
  \connections\: []\n},wait:0}}] }
 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-3:) SeqA
 3-30863: Sending Seq 3-30863:  { Ans: , MgmtId: 90520742010332, via: 3,
 Ver: v1, Flags: 100010,
 [{com.cloud.agent.api.AgentControlAnswer:{result:true,wait:0}}] }
 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:) Resetting
 hosts suitable for reconnect
 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:) Completed
 resetting hosts suitable for reconnect
 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:) Acquiring
 hosts for clusters already owned by this management server
 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:) Completed
 acquiring hosts for clusters already owned by this management server
 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:) Acquiring
 hosts for clusters not owned by any management server
 DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:) Completed
 acquiring hosts for clusters not owned by any management server
 DEBUG [cloud.server.StatsCollector] (StatsCollector-3:) StorageCollector
 is running...
 DEBUG [agent.transport.Request] (StatsCollector-3:) Seq 5-179437655:
 Received:  { Ans: , MgmtId: 90520742010332, via: 5, Ver: v1, Flags: 10, {
 GetStorageStatsAnswer } }
 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-90:) Seq
 2-586154315: Executing request
 DEBUG [cloud.api.ApiServlet] (catalina-exec-18:) ===START===
  192.168.0.196 -- GET
  
 command=createVMSnapshotvirtualmachineid=ddf3a9b5-73f5-4b16-85b7-b110130ebf81snapshotmemory=truename=snap001description=snap001response=jsonsessionkey=NSFhm8fl1Fp8K0U2s0Dn5xY5zhc%3D_=1395227086935
 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-18:) submit async
 job-522 = [ e2605931-6f40-46ea-8811-f769783ea45c ], details: AsyncJobVO
 {id:522, userId: 2, accountId: 2, sessionKey: null, instanceType: None,
 instanceId: 22, cmd:
 org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd,
 cmdOriginator: null, cmdInfo:
 {sessionkey:NSFhm8fl1Fp8K0U2s0Dn5xY5zhc\u003d,virtualmachineid:ddf3a9b5-73f5-4b16-85b7-b110130ebf81,cmdEventType:VMSNAPSHOT.CREATE,ctxUserId:2,snapshotmemory:true,httpmethod:GET,response:json,id:22,description:snap001,name:snap001,_:1395227086935,ctxAccountId:2,ctxStartEventId:2395},
 cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0,
 processStatus: 0, resultCode: 0, result: null, initMsid: 90520742010332,
 completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-23:job-522 = [
 e2605931-6f40-46ea-8811-f769783ea45c ]) Executing
 org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd for
 job-522 = [ e2605931-6f40-46ea-8811-f769783ea45c ]
 DEBUG [cloud.api.ApiServlet] (catalina-exec-18:) ===END===  192.168.0.196
 -- GET
  
 command=createVMSnapshotvirtualmachineid=ddf3a9b5-73f5-4b16-85b7-b110130ebf81snapshotmemory=truename=snap001description=snap001response=jsonsessionkey=NSFhm8fl1Fp8K0U2s0Dn5xY5zhc%3D_=1395227086935
 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:) ===START===
  192.168.0.196 -- GET
  
 command=listZonesid=659ef764-c49d-4e01-bb71-1e13e6ef570eresponse=jsonsessionkey=NSFhm8fl1Fp8K0U2s0Dn5xY5zhc%3D_=1395227087375
 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:) ===END===  192.168.0.196
 -- GET
  
 command=listZonesid=659ef764-c49d-4e01-bb71-1e13e6ef570eresponse=jsonsessionkey=NSFhm8fl1Fp8K0U2s0Dn5xY5zhc%3D_=1395227087375
 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-90:) Seq
 2-586154315: Response Received:
 DEBUG [agent.transport.Request] (StatsCollector-3:) Seq 2-586154315:
 Received:  { Ans: , MgmtId: 90520742010332, via: 2, Ver: v1, Flags: 10, {
 GetStorageStatsAnswer } }
 DEBUG [cloud.api.ApiServlet] (catalina-exec-21:) ===START===
  192.168.0.196 -- GET
  
 command=listVirtualMachinesid=ddf3a9b5-73f5-4b16-85b7-b110130ebf81response=jsonsessionkey=NSFhm8fl1Fp8K0U2s0Dn5xY5zhc%3D_=1395227087425
 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-490:) Seq
 9-941424686

Xenserver 6.2.0 CreateSnapshot weird error log

2014-03-19 Thread Yitao Jiang
Hi, stackers

now i found a weird log happend in xenserver message log when creating a
snapshot through cloudstack 4.2.1 web ui.
And the task failed.
Below are cloudstack log and log of xenserver

management/catalina.out
=
DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-3:) SeqA
3-30863: Processing Seq 3-30863:  { Cmd , MgmtId: -1, via: 3, Ver: v1,
Flags: 11,
[{com.cloud.agent.api.ConsoleProxyLoadReportCommand:{_proxyVmId:2,_loadInfo:{\n
 \connections\: []\n},wait:0}}] }
DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-3:) SeqA
3-30863: Sending Seq 3-30863:  { Ans: , MgmtId: 90520742010332, via: 3,
Ver: v1, Flags: 100010,
[{com.cloud.agent.api.AgentControlAnswer:{result:true,wait:0}}] }
DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:) Resetting hosts
suitable for reconnect
DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:) Completed
resetting hosts suitable for reconnect
DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:) Acquiring hosts
for clusters already owned by this management server
DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:) Completed
acquiring hosts for clusters already owned by this management server
DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:) Acquiring hosts
for clusters not owned by any management server
DEBUG [host.dao.HostDaoImpl] (ClusteredAgentManager Timer:) Completed
acquiring hosts for clusters not owned by any management server
DEBUG [cloud.server.StatsCollector] (StatsCollector-3:) StorageCollector is
running...
DEBUG [agent.transport.Request] (StatsCollector-3:) Seq 5-179437655:
Received:  { Ans: , MgmtId: 90520742010332, via: 5, Ver: v1, Flags: 10, {
GetStorageStatsAnswer } }
DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-90:) Seq 2-586154315:
Executing request
DEBUG [cloud.api.ApiServlet] (catalina-exec-18:) ===START===  192.168.0.196
-- GET
 
command=createVMSnapshotvirtualmachineid=ddf3a9b5-73f5-4b16-85b7-b110130ebf81snapshotmemory=truename=snap001description=snap001response=jsonsessionkey=NSFhm8fl1Fp8K0U2s0Dn5xY5zhc%3D_=1395227086935
DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-18:) submit async
job-522 = [ e2605931-6f40-46ea-8811-f769783ea45c ], details: AsyncJobVO
{id:522, userId: 2, accountId: 2, sessionKey: null, instanceType: None,
instanceId: 22, cmd:
org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd,
cmdOriginator: null, cmdInfo:
{sessionkey:NSFhm8fl1Fp8K0U2s0Dn5xY5zhc\u003d,virtualmachineid:ddf3a9b5-73f5-4b16-85b7-b110130ebf81,cmdEventType:VMSNAPSHOT.CREATE,ctxUserId:2,snapshotmemory:true,httpmethod:GET,response:json,id:22,description:snap001,name:snap001,_:1395227086935,ctxAccountId:2,ctxStartEventId:2395},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0,
processStatus: 0, resultCode: 0, result: null, initMsid: 90520742010332,
completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-23:job-522 = [
e2605931-6f40-46ea-8811-f769783ea45c ]) Executing
org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd for
job-522 = [ e2605931-6f40-46ea-8811-f769783ea45c ]
DEBUG [cloud.api.ApiServlet] (catalina-exec-18:) ===END===  192.168.0.196
-- GET
 
command=createVMSnapshotvirtualmachineid=ddf3a9b5-73f5-4b16-85b7-b110130ebf81snapshotmemory=truename=snap001description=snap001response=jsonsessionkey=NSFhm8fl1Fp8K0U2s0Dn5xY5zhc%3D_=1395227086935
DEBUG [cloud.api.ApiServlet] (catalina-exec-22:) ===START===  192.168.0.196
-- GET
 
command=listZonesid=659ef764-c49d-4e01-bb71-1e13e6ef570eresponse=jsonsessionkey=NSFhm8fl1Fp8K0U2s0Dn5xY5zhc%3D_=1395227087375
DEBUG [cloud.api.ApiServlet] (catalina-exec-22:) ===END===  192.168.0.196
-- GET
 
command=listZonesid=659ef764-c49d-4e01-bb71-1e13e6ef570eresponse=jsonsessionkey=NSFhm8fl1Fp8K0U2s0Dn5xY5zhc%3D_=1395227087375
DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-90:) Seq 2-586154315:
Response Received:
DEBUG [agent.transport.Request] (StatsCollector-3:) Seq 2-586154315:
Received:  { Ans: , MgmtId: 90520742010332, via: 2, Ver: v1, Flags: 10, {
GetStorageStatsAnswer } }
DEBUG [cloud.api.ApiServlet] (catalina-exec-21:) ===START===  192.168.0.196
-- GET
 
command=listVirtualMachinesid=ddf3a9b5-73f5-4b16-85b7-b110130ebf81response=jsonsessionkey=NSFhm8fl1Fp8K0U2s0Dn5xY5zhc%3D_=1395227087425
DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-490:) Seq 9-941424686:
Executing request
DEBUG [cloud.api.ApiServlet] (catalina-exec-21:) ===END===  192.168.0.196
-- GET
 
command=listVirtualMachinesid=ddf3a9b5-73f5-4b16-85b7-b110130ebf81response=jsonsessionkey=NSFhm8fl1Fp8K0U2s0Dn5xY5zhc%3D_=1395227087425
DEBUG [cloud.api.ApiServlet] (catalina-exec-13:) ===START===  192.168.0.196
-- GET
 
command=listOsTypesresponse=jsonsessionkey=NSFhm8fl1Fp8K0U2s0Dn5xY5zhc%3D_=1395227087498
 DEBUG [cloud.api.ApiServlet] (catalina-exec-23:) ===START===
 192.168.0.196 -- GET
 

QoS of VIF not working

2014-03-18 Thread Yitao Jiang
Hi,

In CirtixResourceBase.java(
https://github.com/apache/cloudstack/blob/4.2.1/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java)
of createVif method , i see that the network rate value will be multiplied
by 128 .
 if (nic.getNetworkRateMbps() != null
 nic.getNetworkRateMbps().intValue() != -1) {
 vifr.qosAlgorithmType = ratelimit;
vifr.qosAlgorithmParams = new HashMapString, String();
 // convert mbs to kilobyte per second
vifr.qosAlgorithmParams.put(kbps,
 Integer.toString(nic.getNetworkRateMbps() * 128));
 }
and when i create a service_offering with 1Mb/s QoS, the vm's networking
will be limited in 128Kb/s.
All works fine.

But what i wanna do is when a service_offering with 1Mb/s then the vm will
be limited in 1Kb/s,so I change the coded like that
vifr.qosAlgorithmParams.put(kbps,
Integer.toString(nic.getNetworkRateMbps()));
without multiplied by 128.

But acctualy the vm still limit in 128Kb/s.

Did i miss anyting?

My environments is :
CS 4.2.1
Xenserver 6.2.0

Thanks,

Yitao


Re: QoS of VIF not working

2014-03-18 Thread Yitao Jiang
Ok, just a minute

Thanks,

Yitao


2014-03-18 15:49 GMT+08:00 Rajesh Battala rajesh.batt...@citrix.com:

 HI Yitao,
 Can you please raise a bug for the same with your findings.

 Thanks
 Rajesh Battala

 -Original Message-
 From: Yitao Jiang [mailto:willier...@gmail.com]
 Sent: Tuesday, March 18, 2014 1:15 PM
 To: dev@cloudstack.apache.org
 Subject: QoS of VIF not working

 Hi,

 In CirtixResourceBase.java(

 https://github.com/apache/cloudstack/blob/4.2.1/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
 )
 of createVif method , i see that the network rate value will be multiplied
 by 128 .
  if (nic.getNetworkRateMbps() != null
  nic.getNetworkRateMbps().intValue() != -1) {  vifr.qosAlgorithmType =
 ratelimit; vifr.qosAlgorithmParams = new HashMapString, String();  //
 convert mbs to kilobyte per second vifr.qosAlgorithmParams.put(kbps,
  Integer.toString(nic.getNetworkRateMbps() * 128));  } and when i create a
 service_offering with 1Mb/s QoS, the vm's networking will be limited in
 128Kb/s.
 All works fine.

 But what i wanna do is when a service_offering with 1Mb/s then the vm will
 be limited in 1Kb/s,so I change the coded like that
 vifr.qosAlgorithmParams.put(kbps,
 Integer.toString(nic.getNetworkRateMbps()));
 without multiplied by 128.

 But acctualy the vm still limit in 128Kb/s.

 Did i miss anyting?

 My environments is :
 CS 4.2.1
 Xenserver 6.2.0

 Thanks,

 Yitao



Re: QoS of VIF not working

2014-03-18 Thread Yitao Jiang
Sorry,guys it's my mistake.i set up two mgmt server and forget to sync
codes to another.
On Mar 18, 2014 3:44 PM, Yitao Jiang willier...@gmail.com wrote:

 Hi,

 In CirtixResourceBase.java(
 https://github.com/apache/cloudstack/blob/4.2.1/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java)
 of createVif method , i see that the network rate value will be multiplied
 by 128 .
  if (nic.getNetworkRateMbps() != null
  nic.getNetworkRateMbps().intValue() != -1) {
  vifr.qosAlgorithmType = ratelimit;
 vifr.qosAlgorithmParams = new HashMapString, String();
  // convert mbs to kilobyte per second
 vifr.qosAlgorithmParams.put(kbps,
  Integer.toString(nic.getNetworkRateMbps() * 128));
  }
 and when i create a service_offering with 1Mb/s QoS, the vm's networking
 will be limited in 128Kb/s.
 All works fine.

 But what i wanna do is when a service_offering with 1Mb/s then the vm will
 be limited in 1Kb/s,so I change the coded like that
 vifr.qosAlgorithmParams.put(kbps,
 Integer.toString(nic.getNetworkRateMbps()));
 without multiplied by 128.

 But acctualy the vm still limit in 128Kb/s.

 Did i miss anyting?

 My environments is :
 CS 4.2.1
 Xenserver 6.2.0

 Thanks,

 Yitao



RE: How writing a new api of Pause VirtualMachine

2014-03-12 Thread Yitao Jiang
=XGVvGrHvnEXbcAWa0DFjn%2Fq2eQQ%3D_=1394674930344​.


​Did i miss any procedures of adding api ?


​
​

​
On Mar 12, 2014 6:44 PM, Stephen Turner stephen.tur...@citrix.com wrote:

 Not answering your question, but note that XenServer has two different
 concepts: pause/unpause and suspend/resume. Normally you want suspend,
 which suspends to disk; with pause, the VM will continue using memory. In
 fact, the XenServer UI (XenCenter) doesn't even expose pause.

 --
 Stephen Turner


 -Original Message-
 From: Yitao Jiang [mailto:willier...@gmail.com]
 Sent: 12 March 2014 04:55
 To: dev@cloudstack.apache.org
 Subject: How writing a new api of Pause VirtualMachine

 Hi,
   I wanna pause a vm and resume it in cloudstack4.2.1 with xenserver 6.2
 hypervisor, but CS did not implement this feature, so i wondered if you
 experienced guys can do something for this.Or give me some useful
 informations about how doing this.

 Thanks,

 Yitao



How writing a new api of Pause VirtualMachine

2014-03-11 Thread Yitao Jiang
Hi,
  I wanna pause a vm and resume it in cloudstack4.2.1 with xenserver 6.2
hypervisor,
but CS did not implement this feature, so i wondered if you experienced
guys can do
something for this.Or give me some useful informations about how doing
this.

Thanks,

Yitao


Re: CloudStack-setup-management

2014-02-26 Thread Yitao Jiang
​Can you paste logs file here ?​

Thanks,

Yitao


2014-02-27 8:02 GMT+08:00 María Noelia Gil marianoelia@um.es:

 Hi, I installed the CloudStack-setup-management package, after I installed
 the database and have made ​​the necessary settings, but I can not access
 http://localhost:8080/client.

 Any solution?

 thanks


Re: Difference between Guest Network and Isolated Network under Advanced Networking

2014-02-12 Thread Yitao Jiang
Guest network is same as public ip, which vm's traffic go through switch
directly.​​
Isolated Network is a virtual network, all traffic go through VRouter.
And if you assigned tag on Physical Network, if so you should set same tag
on n/w offering.
The
​effective​ way is compare your new n/w offering with existed n/w offering
DefaultIsolatedNetworkOffering
.

Thanks,

Yitao


2014-02-13 10:40 GMT+08:00 Sachchidanand Vaidya vaidy...@juniper.net:

 Hi,
 Under Networks Tab in UI for Admin user, Cloudstack provides 2
 options to create networks
 1) Add guest network 2) Add Isolated Network.
  - What is the difference between these 2 networks.

 Also, I created and Enabled a new Network Offering. But when I
 create an Isolated Network,
 I don't see the newly created Network offering in the drop-down menu.
 Are there additional steps
to be followed to make new n/w offering visible during Virtual Network
 creation.

 Thanks,
 Sachin




Re: [PROPOSAL] Introduce API returning you an answer from CloudStack storage/host allocators whethere there is enough resources for vm deployment

2014-02-03 Thread Yitao Jiang
Great idea.i supposed an api could return the remained resources, and then
deciding which host,both storage and compute, to deploy vm.

Koushik Das koushik@citrix.com于2014年2月3日星期一写道:
 As I understand this is a best-effort approach. Even if the proposed API
returns YES, deployment may still fail. I personally feel that it is better
to improve the deployVM API itself to return accurate error message rather
than having multiple API calls. If the deployvm call call fails, it will
clearly indicate reason for failure so appropriate action can be taken.

 -Koushik

 On 03-Feb-2014, at 12:35 PM, Rajani Karuturi rajani.karut...@citrix.com
wrote:

 I agree with Santhosh. Returning appropriate error codes might be enough.

 Thanks,
 ~Rajani



 On 02-Feb-2014, at 11:17 pm, Santhosh Edukulla 
santhosh.eduku...@citrix.com wrote:

 Just a note:

 Instead of making two separate api calls one to check and then for
deploy, may be it can be part of deploy only and check these conditions for
resources\any other information and return appropriate codes? This check
can be called firsthand as part of deploy\other commands applicable and
return with codes before proceeding further with steps of deploy mentioned.

 Thanks!
 Santhosh
 
 From: Daan Hoogland [daan.hoogl...@gmail.com]
 Sent: Saturday, February 01, 2014 11:24 AM
 To: dev
 Subject: Re: [PROPOSAL] Introduce API returning you an answer from
CloudStack storage/host allocators whethere there is enough resources for
vm deployment

 I like the idea.  Would the api query the db or the bakends (i.e. hosts,
 storage,  etc)?

 mobile bilingual spell checker used
 Op 1 feb. 2014 17:13 schreef abhisek basu abhisekb...@msn.com:

 Great idea, this would certainly reduce vm deployment failures.

 VR including RVR if needs to be created, should get included in this
check.

 Also, can we include ways to check if a VM can be launched in a certain
 cluster? The idea is to allow users / admins to  be able to launch vm
in a
 certain cluster, but that might be the next functionality.

 Sent from my iPhone

 On 1 Feb 2014, at 8:50 pm, Ryan Lei ryan...@cht.com.tw wrote:

 I believe it's a nice idea. A lot of us have experienced the
 annoying InsufficientCapacityException in Deploying Virtual Machines,
but
 we can't tell exactly why just by reading the logs.

 If this new API could help us debug this VM deployment process to
 determine
 exactly which resource is lacking, or probably other internal reasons
 that
 cause this InsufficientCapacityException, it would be very helpful!



---
 Yu-Heng (Ryan) Lei, Associate Researcher
 Cloud Computing Dept, Chunghwa Telecom Labs
 ryan...@cht.com.tw or ryanlei750...@gmail.com



 On Sat, Feb 1, 2014 at 8:26 AM, Alena Prokharchyk 
 alena.prokharc...@citrix.com wrote:

 Currently there is no way to know if there is enough resources for vm
 deployment, before actual deployVm call is made. The sequence is the
 following:

 1) Deploy Vm is called
 2) DB record is created for the Vm
 3) Storage/Host allocators determine whethere there are enough
resources
 for vm to be deployed, and return deploy destination to the caller
 stack.
 4) If allocator returns valid deploy destination, VM gets actually
 created/started on the backend. If allocators don't return the
 destination,
 the DB record created on step 2) gets destroyed, and
ResourceAllocation
 exception is thrown back to the API caller.


-- 

Thanks,

Yitao


Re: Anyone else having trouble starting up a VM in 4.3?

2014-01-19 Thread Yitao Jiang
Putting your logs here will be more helpful.

Thanks,

Yitao


2014/1/20 Mike Tutkowski mike.tutkow...@solidfire.com

 Hi,

 I rebased on top of 4.3 yesterday (previous rebase on top of 4.3 was just a
 few days earlier) and now I get an Insufficient Space exception when
 trying to start up a VM.

 Anyone else having this trouble?

 I didn't dig into this too deeply, though...perhaps there was a schema
 change and I'll need to re-create my environment for this to work. I just
 sort of doubted a schema change happened this late in the 4.3 release, so
 thought it might be something else.

 Thanks

 --
 *Mike Tutkowski*
 *Senior CloudStack Developer, SolidFire Inc.*
 e: mike.tutkow...@solidfire.com
 o: 303.746.7302
 Advancing the way the world uses the
 cloudhttp://solidfire.com/solution/overview/?video=play
 *™*



Issue in creating template from volume in vmware hypervisor

2014-01-16 Thread Yitao Jiang
Hi, guys,

In production environment, i set up one zone with one pod and two clusters,
one for xenserver and one for vmware.
In xen cluster have two xenservers 6.1.0 , and one EXI 5.0.0.Each
hypervisor have it's fc-san shared storage, and ssvm, cpvm all runs in
xenserver.
All works well except when creating template from vmware instance , but
it's ok on xenserver.
What  weird is if i have two pods, i can make template from vmware instance.
Is there any difference between two different deployment methods ?

Thanks,

Yitao


Re: Issue in creating template from volume in vmware hypervisor

2014-01-16 Thread Yitao Jiang
Sorry, below are the log when creating a template from volume

DEBUG [cloud.api.ApiServlet] (catalina-exec-24:) ===START===  10.1.21.110
-- GET
command=createTemplateresponse=jsonsessionkey=PNVhAvI3UFBE8S9IvNGiTkVwWIE%3DvolumeId=83a10514-ee39-4311-8737-08c2e4067b61name=vmconverttmpldisplayText=vmconverttmplosTypeId=6716dbce-79a1-11e3-b1ad-0758a53412c0isPublic=truepasswordEnabled=falseisfeatured=true_=1389868635523

DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-24:) submit async
job-527, details: AsyncJobVO {id:527, userId: 2, accountId: 2, sessionKey:
null, instanceType: Template, instanceId: 233, cmd:
org.apache.cloudstack.api.command.user.template.CreateTemplateCmd,
cmdOriginator: null, cmdInfo:
{sessionkey:PNVhAvI3UFBE8S9IvNGiTkVwWIE\u003d,volumeId:83a10514-ee39-4311-8737-08c2e4067b61,ctxUserId:2,osTypeId:6716dbce-79a1-11e3-b1ad-0758a53412c0,isPublic:true,isfeatured:true,response:json,id:233,displayText:vmconverttmpl,passwordEnabled:false,name:vmconverttmpl,_:1389868635523,ctxAccountId:2,ctxStartEventId:1915},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0,
processStatus: 0, resultCode: 0, result: null, initMsid: 203178712092966,
completeMsid: null, lastUpdated: null, lastPolled: null, created: null}

DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-62:job-527) Executing
org.apache.cloudstack.api.command.user.template.CreateTemplateCmd for
job-527
DEBUG [cloud.api.ApiServlet] (catalina-exec-24:) ===END===  10.1.21.110 --
GET
command=createTemplateresponse=jsonsessionkey=PNVhAvI3UFBE8S9IvNGiTkVwWIE%3DvolumeId=83a10514-ee39-4311-8737-08c2e4067b61name=vmconverttmpldisplayText=vmconverttmplosTypeId=6716dbce-79a1-11e3-b1ad-0758a53412c0isPublic=truepasswordEnabled=falseisfeatured=true_=1389868635523

DEBUG [agent.transport.Request] (Job-Executor-62:job-527) Seq 4-981860715:
Sending  { Cmd , MgmtId: 203178712092966, via: 4, Ver: v1, Flags: 100011,
[{CreatePrivateTemplateFromVolumeCommand:{_vmName:i-2-92-VM,_volumePath:ROOT-92-98,_userSpecifiedName:vmconverttmpl,_uniqueName:d40a66ff-d25d-40a1-b2ac-a388e04d55a7,_templateId:233,_accountId:2,_primaryPool:{id:201,uuid:7ababa7e-463a-3a77-b162-7bcd8064f02e,host:VMFS
datastore:
/ZJGYJSDC/VMWareHBAStorage,path:/ZJGYJSDC/VMWareHBAStorage,port:0,type:VMFS},_secondaryStorageUrl:nfs://
10.1.14.1/opt/exports/secondary,primaryStoragePoolNameLabel:7ababa7e-463a-3a77-b162-7bcd8064f02e,wait:10800}}]
}

DEBUG [agent.transport.Request] (AgentManager-Handler-14:) Seq 4-981860715:
Processing:  { Ans: , MgmtId: 203178712092966, via: 4, Ver: v1, Flags: 10,
[{UnsupportedAnswer:{result:false,details:Unsupported command
issued:com.cloud.agent.api.CreatePrivateTemplateFromVolumeCommand.  Are you
sure you got the right type of server?,wait:0}}] }

DEBUG [agent.transport.Request] (Job-Executor-62:job-527) Seq 4-981860715:
Received:  { Ans: , MgmtId: 203178712092966, via: 4, Ver: v1, Flags: 10, {
UnsupportedAnswer } }
WARN  [agent.manager.AgentManagerImpl] (Job-Executor-62:job-527)
Unsupported Command: Unsupported command
issued:com.cloud.agent.api.CreatePrivateTemplateFromVolumeCommand.  Are you
sure you got the right type of server?

ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-62:job-527)
Unexpected exception while executing
org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
java.lang.ClassCastException: com.cloud.agent.api.UnsupportedAnswer cannot
be cast to com.cloud.agent.api.storage.CreatePrivateTemplateAnswer
 at
com.cloud.vm.UserVmManagerImpl.createPrivateTemplate(UserVmManagerImpl.java:2252)
 at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
 at
com.cloud.vm.UserVmManagerImpl.createPrivateTemplate(UserVmManagerImpl.java:256)
 at
org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:258)
 at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:163)
 at
com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:439)
 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)
DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-62:job-527) Complete
async job-527, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error
text: com.cloud.agent.api.UnsupportedAnswer cannot be cast to
com.cloud.agent.api.storage.CreatePrivateTemplateAnswer

Thanks,

Yitao


2014/1/17 Yitao Jiang willier...@gmail.com

 Hi, guys,

 In production environment, i set up one zone with one pod and two
 clusters, one for xenserver and one for vmware.
 In xen cluster have two xenservers 6.1.0 , and one EXI

Why i cannot set vpn on Source NAT IP ?

2014-01-14 Thread Yitao Jiang
Hi,

I set up a guest network, which tags are business, in advanced network of
acs 4.1.0.
Then  i create a new network service offering taged business'', with
StaticNat, Dhcp, PortForwarding, UserData, SourceNat, Lb, Dns, Vpn,
Firewall services.

But i did not make conserve mode on ,so when creating a vm using this
business network, the public ip of this isolated network cannot set vpn,
so i allocated a new public ip, and this allocated public ip  can offer
vpn. However, if i make conserve mode on on the network service offering, i
can set the vpn on the source nat public ip?

What i curious is, is there any differences of above two public ips, one is
source nat public ip , and another is  allocated and associated with VR?

Thanks,

Yitao


Locallization issue

2013-12-24 Thread Yitao Jiang
Hi,

After login into the mgmt server, the alert panel not works well.When vm
create failed, the db store this alert, which type is 7. But in the panel ,
it shows it's vlan type.
Through the codes , it found that it was caused by
scripts/sharedFunctions.js#403

 toAlertType: function(alertCode) {
395 switch (alertCode) {
396 case 0 : return _l('label.memory');
397 case 1 : return _l('label.cpu');
398 case 2 : return _l('label.storage');
399 case 3 : return _l('label.primary.storage');
400 case 4 : return _l('label.public.ips');
401 case 5 : return _l('label.management.ips');
402 case 6 : return _l('label.secondary.storage');
403 case 7 : return _l('label.vlan');
404 case 8 : return _l('label.direct.ips');
405 case 9 : return _l('label.local.storage');
406
407 // These are old values -- can be removed in the future
408 case 10 : return Routing Host;
409 case 11 : return Storage;
410 case 12 : return Usage Server;
411 case 13 : return Management Server;
412 case 14 : return Domain Router;
413 case 15 : return Console Proxy;
414 case 16 : return User VM;
415 case 17 : return VLAN;
416 case 18 : return Secondary Storage VM;
417 }

so i changed   *label.vlan ** to **label.user.vm* , accordingly add
the* label.user.vm=User
VM *to resource file *client/WEB-INF/classes/resources/messages.properties.*
After restart mgmt service, the alert panel still shows* vlan *type.

My question is did i miss something in configuration locallization?

Thanks,

Yitao


Re: Locallization issue

2013-12-24 Thread Yitao Jiang
In alert panel after login , it shows *label.user.vm *after modification,
not it's value. I changed two files, messages.properties and
messages_zh_CN.properties,
and still exists this problem.

Thanks,

Yitao


2013/12/24 Yitao Jiang willier...@gmail.com

 Hi,

 After login into the mgmt server, the alert panel not works well.When vm
 create failed, the db store this alert, which type is 7. But in the panel ,
 it shows it's vlan type.
  Through the codes , it found that it was caused by
 scripts/sharedFunctions.js#403

  toAlertType: function(alertCode) {
 395 switch (alertCode) {
 396 case 0 : return _l('label.memory');
 397 case 1 : return _l('label.cpu');
 398 case 2 : return _l('label.storage');
 399 case 3 : return _l('label.primary.storage');
 400 case 4 : return _l('label.public.ips');
 401 case 5 : return _l('label.management.ips');
 402 case 6 : return _l('label.secondary.storage');
 403 case 7 : return _l('label.vlan');
 404 case 8 : return _l('label.direct.ips');
 405 case 9 : return _l('label.local.storage');
 406
 407 // These are old values -- can be removed in the future
 408 case 10 : return Routing Host;
  409 case 11 : return Storage;
 410 case 12 : return Usage Server;
 411 case 13 : return Management Server;
 412 case 14 : return Domain Router;
 413 case 15 : return Console Proxy;
 414 case 16 : return User VM;
 415 case 17 : return VLAN;
 416 case 18 : return Secondary Storage VM;
 417 }

 so i changed   *label.vlan ** to **label.user.vm* , accordingly add the* 
 label.user.vm=User
 VM *to resource file
 *client/WEB-INF/classes/resources/messages.properties.*
 After restart mgmt service, the alert panel still shows* vlan *type.

 My question is did i miss something in configuration locallization?

 Thanks,

 Yitao



Re: Locallization issue

2013-12-24 Thread Yitao Jiang
Sorry, guys.
i got what i missed.After insert 'label.user.vm': 'fmt:message
key=label.user.vm /' into client/dictionary.jsp file , all works well.
But , did it suppose to be a bug ?

Thanks,

Yitao


2013/12/24 Yitao Jiang willier...@gmail.com

 In alert panel after login , it shows *label.user.vm *after
 modification, not it's value. I changed two files, messages.properties
 and messages_zh_CN.properties, and still exists this problem.

 Thanks,

 Yitao


 2013/12/24 Yitao Jiang willier...@gmail.com

 Hi,

 After login into the mgmt server, the alert panel not works well.When vm
 create failed, the db store this alert, which type is 7. But in the panel ,
 it shows it's vlan type.
  Through the codes , it found that it was caused by
 scripts/sharedFunctions.js#403

  toAlertType: function(alertCode) {
 395 switch (alertCode) {
 396 case 0 : return _l('label.memory');
 397 case 1 : return _l('label.cpu');
 398 case 2 : return _l('label.storage');
 399 case 3 : return _l('label.primary.storage');
 400 case 4 : return _l('label.public.ips');
 401 case 5 : return _l('label.management.ips');
 402 case 6 : return _l('label.secondary.storage');
 403 case 7 : return _l('label.vlan');
 404 case 8 : return _l('label.direct.ips');
 405 case 9 : return _l('label.local.storage');
 406
 407 // These are old values -- can be removed in the future
 408 case 10 : return Routing Host;
  409 case 11 : return Storage;
 410 case 12 : return Usage Server;
 411 case 13 : return Management Server;
 412 case 14 : return Domain Router;
 413 case 15 : return Console Proxy;
 414 case 16 : return User VM;
 415 case 17 : return VLAN;
 416 case 18 : return Secondary Storage VM;
 417 }

 so i changed   *label.vlan ** to **label.user.vm* , accordingly add the* 
 label.user.vm=User
 VM *to resource file
 *client/WEB-INF/classes/resources/messages.properties.*
 After restart mgmt service, the alert panel still shows* vlan *type.

 My question is did i miss something in configuration locallization?

 Thanks,

 Yitao





How Getting states in StateMachine2 and StateMachine

2013-12-23 Thread Yitao Jiang
Hi, guys

Is there any references about StateMachine, since now i am working on
digging the mechanisms of event and alert. I found the code of
statemachine(utils\src\com\cloud\utils\fsm\StateMachine2.java) it's really
confused me.

Thanks,

Yitao


Re: Help In Launch instance Schedule policy

2013-11-27 Thread Yitao Jiang
Hi ,

I work with 4.1.0.And now i find out how it working. The two classes only
override the needed methods, and other logics are handled by method in
FirstFit class. The plan method of FirstFit class call different method
according algorithms configured by global configuration.



Thanks,

Yitao


2013/11/27 Prachi Damle prachi.da...@citrix.com

 Hi Yitao,

 Which version of CloudStack are you working with? That will determine the
 configuration needed.

 The UserDispersing and UserConcentrated extend the FirstFit and just
 override the methods that decide the order of clusters to be considered for
 searching the resources, based on their respective heuristics.

 Prachi

  On Nov 26, 2013, at 10:04 PM, Yitao Jiang willier...@gmail.com
 wrote:
 
  Hi, Prachi,
 
  I followed the directions of above link , and configure
  vm.allocation.algorithm
  to userconcentratedpod_random. But it seems does't work.
  Through the codes about the deployment plan, i found that the algorithms
 of
  UserDispersingPlanner
  and UserConcentratedPodPlanner all extends FirstFitPlanner, but neither
  implement the method of
  plan, which actually works for deciding where to deploy a vm, so no
 matter
  what algorithms i used,
  it all use the algorithm of firstfit algorithm, cause it implement the
 plan
  method.
  Is this a bug or developer should implement this method, or did i miss
  something in the global configuration ?
 
 
 
  2013/11/23 Prachi Damle prachi.da...@citrix.com
 
  Hi Yitao,
 
  CloudStack scheduling policies are implemented by the DeploymentPlanner
  and HostAllocator/StoragePoolAllocator components.
  If you want to take a look at the source code of these components, this
  will tell you where to look:
 
 https://cwiki.apache.org/confluence/display/CLOUDSTACK/VM+Deployment+Planning+and+Resource+Allocation
 
  These components implement the Adapter  interface of CloudStack - so you
  can provide your own implementation and plug it in to be used for VM
  deployment. Let me know if you face any questions on this.
 
  Thanks,
  Prachi
  -Original Message-
  From: Yitao Jiang [mailto:willier...@gmail.com]
  Sent: Thursday, November 21, 2013 10:11 PM
  To: dev@cloudstack.apache.org
  Subject: Help In Launch instance Schedule policy
 
  Hi,
 
  I was looking for some help in launching instance using some schedule
  policies.
  I know that Openstack allow developers write their own policy .So I
 guess
  cloudstack support maybe that .Since i am just started developing it ,
 i'll
  be really appreciate someone can tell me where i can write it  using
 some
  policy, such as according to the weight of each host, or RoundRobin.
  --
 
  Best regards,
 
  Yitao Jiang
 
 
 
  --
 
  Best regards,
 
  Yitao Jiang



Re: Help In Launch instance Schedule policy

2013-11-26 Thread Yitao Jiang
Hi, Prachi,

I followed the directions of above link , and configure
vm.allocation.algorithm
to userconcentratedpod_random. But it seems does't work.
Through the codes about the deployment plan, i found that the algorithms of
UserDispersingPlanner
and UserConcentratedPodPlanner all extends FirstFitPlanner, but neither
implement the method of
plan, which actually works for deciding where to deploy a vm, so no matter
what algorithms i used,
it all use the algorithm of firstfit algorithm, cause it implement the plan
method.
Is this a bug or developer should implement this method, or did i miss
something in the global configuration ?



2013/11/23 Prachi Damle prachi.da...@citrix.com

 Hi Yitao,

 CloudStack scheduling policies are implemented by the DeploymentPlanner
 and HostAllocator/StoragePoolAllocator components.
 If you want to take a look at the source code of these components, this
 will tell you where to look:
 https://cwiki.apache.org/confluence/display/CLOUDSTACK/VM+Deployment+Planning+and+Resource+Allocation

 These components implement the Adapter  interface of CloudStack - so you
 can provide your own implementation and plug it in to be used for VM
 deployment. Let me know if you face any questions on this.

 Thanks,
 Prachi
 -Original Message-
 From: Yitao Jiang [mailto:willier...@gmail.com]
 Sent: Thursday, November 21, 2013 10:11 PM
 To: dev@cloudstack.apache.org
 Subject: Help In Launch instance Schedule policy

 Hi,

 I was looking for some help in launching instance using some schedule
 policies.
 I know that Openstack allow developers write their own policy .So I guess
 cloudstack support maybe that .Since i am just started developing it , i'll
 be really appreciate someone can tell me where i can write it  using some
 policy, such as according to the weight of each host, or RoundRobin.
 --

 Best regards,

 Yitao Jiang




-- 

Best regards,

Yitao Jiang


Re: Help In Launch instance Schedule policy

2013-11-23 Thread Yitao Jiang
Hi Prachi, that is exactly what I looking for. 

Thank you.

On 2013-11-23, at 4:13, Prachi Damle prachi.da...@citrix.com wrote:

 Hi Yitao,
 
 CloudStack scheduling policies are implemented by the DeploymentPlanner and 
 HostAllocator/StoragePoolAllocator components.
 If you want to take a look at the source code of these components, this will 
 tell you where to look: 
 https://cwiki.apache.org/confluence/display/CLOUDSTACK/VM+Deployment+Planning+and+Resource+Allocation
 
 These components implement the Adapter  interface of CloudStack - so you can 
 provide your own implementation and plug it in to be used for VM deployment. 
 Let me know if you face any questions on this.
 
 Thanks,
 Prachi
 -Original Message-
 From: Yitao Jiang [mailto:willier...@gmail.com] 
 Sent: Thursday, November 21, 2013 10:11 PM
 To: dev@cloudstack.apache.org
 Subject: Help In Launch instance Schedule policy
 
 Hi,
 
 I was looking for some help in launching instance using some schedule 
 policies.
 I know that Openstack allow developers write their own policy .So I guess 
 cloudstack support maybe that .Since i am just started developing it , i'll 
 be really appreciate someone can tell me where i can write it  using some 
 policy, such as according to the weight of each host, or RoundRobin.
 -- 
 
 Best regards,
 
 Yitao Jiang


Help In Launch instance Schedule policy

2013-11-21 Thread Yitao Jiang
Hi,

I was looking for some help in launching instance using some schedule
policies.
I know that Openstack allow developers write their own policy .So I guess
cloudstack support maybe that .Since i am just started developing it , i'll
be really appreciate someone can tell me where i can write it  using some
policy, such as according to the weight of each host, or RoundRobin.
-- 

Best regards,

Yitao Jiang