Re: Review Request 16566: CLOUDSTACK-5551: Search not working for Configuration parameters in (Account/zone/cluster/storage) settings page

2014-01-02 Thread Harikrishna Patnala

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

(Updated Jan. 2, 2014, 9:47 a.m.)


Review request for cloudstack and Koushik Das.


Bugs: CLOUDSTACK-5551
https://issues.apache.org/jira/browse/CLOUDSTACK-5551


Repository: cloudstack-git


Description
---

CLOUDSTACK-5551: Search not working for Configuration parameters in 
(Account/zone/cluster/storage) settings page

Added filters while listing scoped configuration parameters.
Fixed: Some parameters are missing from UI settings tab because of missing 
scope entry in configuration table.


Diffs (updated)
-

  framework/config/src/org/apache/cloudstack/framework/config/ConfigDepot.java 
22452b9 
  
framework/config/src/org/apache/cloudstack/framework/config/impl/ConfigDepotImpl.java
 305d286 
  server/src/com/cloud/server/ConfigurationServerImpl.java 4020926 
  server/src/com/cloud/server/ManagementServerImpl.java e98c97a 
  server/src/com/cloud/vm/UserVmManager.java 1592910 

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


Testing
---


Thanks,

Harikrishna Patnala



Re: Review Request 16566: CLOUDSTACK-5551: Search not working for Configuration parameters in (Account/zone/cluster/storage) settings page

2014-01-02 Thread ASF Subversion and Git Services

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


Commit bae5be7f4edad6954e5c3ccef5b70803aa8df141 in branch refs/heads/4.3 from 
Harikrishna Patnala
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=bae5be7 ]

CLOUDSTACK-5551: Search not working for Configuration parameters in 
(Account/zone/cluster/storage) settings page

Added filters while listing scoped configuration parameters.
Fixed: Some parameters are missing from UI settings tab because of missing 
scope entry in configuration table.


- ASF Subversion and Git Services


On Jan. 2, 2014, 9:47 a.m., Harikrishna Patnala wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/16566/
> ---
> 
> (Updated Jan. 2, 2014, 9:47 a.m.)
> 
> 
> Review request for cloudstack and Koushik Das.
> 
> 
> Bugs: CLOUDSTACK-5551
> https://issues.apache.org/jira/browse/CLOUDSTACK-5551
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> CLOUDSTACK-5551: Search not working for Configuration parameters in 
> (Account/zone/cluster/storage) settings page
> 
> Added filters while listing scoped configuration parameters.
> Fixed: Some parameters are missing from UI settings tab because of missing 
> scope entry in configuration table.
> 
> 
> Diffs
> -
> 
>   
> framework/config/src/org/apache/cloudstack/framework/config/ConfigDepot.java 
> 22452b9 
>   
> framework/config/src/org/apache/cloudstack/framework/config/impl/ConfigDepotImpl.java
>  305d286 
>   server/src/com/cloud/server/ConfigurationServerImpl.java 4020926 
>   server/src/com/cloud/server/ManagementServerImpl.java e98c97a 
>   server/src/com/cloud/vm/UserVmManager.java 1592910 
> 
> Diff: https://reviews.apache.org/r/16566/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Harikrishna Patnala
> 
>



Re: Review Request 16566: CLOUDSTACK-5551: Search not working for Configuration parameters in (Account/zone/cluster/storage) settings page

2014-01-02 Thread Harikrishna Patnala

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

(Updated Jan. 2, 2014, 10:20 a.m.)


Review request for cloudstack and Koushik Das.


Changes
---

Patch updated to apply on master


Bugs: CLOUDSTACK-5551
https://issues.apache.org/jira/browse/CLOUDSTACK-5551


Repository: cloudstack-git


Description
---

CLOUDSTACK-5551: Search not working for Configuration parameters in 
(Account/zone/cluster/storage) settings page

Added filters while listing scoped configuration parameters.
Fixed: Some parameters are missing from UI settings tab because of missing 
scope entry in configuration table.


Diffs (updated)
-

  framework/config/src/org/apache/cloudstack/framework/config/ConfigDepot.java 
8592745 
  
framework/config/src/org/apache/cloudstack/framework/config/impl/ConfigDepotImpl.java
 15933de 
  server/src/com/cloud/server/ConfigurationServerImpl.java 6cddc71 
  server/src/com/cloud/server/ManagementServerImpl.java de07a9d 
  server/src/com/cloud/vm/UserVmManager.java 6043491 

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


Testing
---


Thanks,

Harikrishna Patnala



Re: Review Request 16566: CLOUDSTACK-5551: Search not working for Configuration parameters in (Account/zone/cluster/storage) settings page

2014-01-02 Thread Koushik Das

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

Ship it!


Ship It!

- Koushik Das


On Jan. 2, 2014, 10:20 a.m., Harikrishna Patnala wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/16566/
> ---
> 
> (Updated Jan. 2, 2014, 10:20 a.m.)
> 
> 
> Review request for cloudstack and Koushik Das.
> 
> 
> Bugs: CLOUDSTACK-5551
> https://issues.apache.org/jira/browse/CLOUDSTACK-5551
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> CLOUDSTACK-5551: Search not working for Configuration parameters in 
> (Account/zone/cluster/storage) settings page
> 
> Added filters while listing scoped configuration parameters.
> Fixed: Some parameters are missing from UI settings tab because of missing 
> scope entry in configuration table.
> 
> 
> Diffs
> -
> 
>   
> framework/config/src/org/apache/cloudstack/framework/config/ConfigDepot.java 
> 8592745 
>   
> framework/config/src/org/apache/cloudstack/framework/config/impl/ConfigDepotImpl.java
>  15933de 
>   server/src/com/cloud/server/ConfigurationServerImpl.java 6cddc71 
>   server/src/com/cloud/server/ManagementServerImpl.java de07a9d 
>   server/src/com/cloud/vm/UserVmManager.java 6043491 
> 
> Diff: https://reviews.apache.org/r/16566/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Harikrishna Patnala
> 
>



Re: Review Request 16566: CLOUDSTACK-5551: Search not working for Configuration parameters in (Account/zone/cluster/storage) settings page

2014-01-02 Thread Koushik Das

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


Patch doesn't apply on master.

- Koushik Das


On Jan. 2, 2014, 10:20 a.m., Harikrishna Patnala wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/16566/
> ---
> 
> (Updated Jan. 2, 2014, 10:20 a.m.)
> 
> 
> Review request for cloudstack and Koushik Das.
> 
> 
> Bugs: CLOUDSTACK-5551
> https://issues.apache.org/jira/browse/CLOUDSTACK-5551
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> CLOUDSTACK-5551: Search not working for Configuration parameters in 
> (Account/zone/cluster/storage) settings page
> 
> Added filters while listing scoped configuration parameters.
> Fixed: Some parameters are missing from UI settings tab because of missing 
> scope entry in configuration table.
> 
> 
> Diffs
> -
> 
>   
> framework/config/src/org/apache/cloudstack/framework/config/ConfigDepot.java 
> 8592745 
>   
> framework/config/src/org/apache/cloudstack/framework/config/impl/ConfigDepotImpl.java
>  15933de 
>   server/src/com/cloud/server/ConfigurationServerImpl.java 6cddc71 
>   server/src/com/cloud/server/ManagementServerImpl.java de07a9d 
>   server/src/com/cloud/vm/UserVmManager.java 6043491 
> 
> Diff: https://reviews.apache.org/r/16566/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Harikrishna Patnala
> 
>



Re: Error while building

2014-01-02 Thread Dumindu Buddhika
Hey daan problem was solved :).
Thank you for helping me. The problems was because my source was in a
partition called "TV&Movie" (named in windows). I think java was
misinterpreting that name to "TV%26Movie" when I changed the source
location to my home folder that problem was solved.
Thanks again for helping me :)

Dumindu Buddhika,
Undergraduate,
Department of Computer Science and Engineering,
University of Moratuwa,
Sri Lanka.
Mobile:+94715764749


On Thu, Jan 2, 2014 at 12:59 PM, Dumindu Buddhika <
dumindukarunathil...@gmail.com> wrote:

> here are the files in the above directory.
> as it seems the required files are available in the code. but build gives
> that error anyway.
>
>
> Thanks.
>
> bad_format_cert.crt  root_chain.crt  rsa_random_pkey.key
> dsa_self_signed.crt  rsa_ca_signed2.crt  rsa_self_signed.crt
> dsa_self_signed.key  rsa_ca_signed2.key  rsa_self_signed.key
> expired_cert.crt rsa_ca_signed.crt   rsa_self_signed_with_pwd.crt
> non_x509_pem.crt rsa_ca_signed.key   rsa_self_signed_with_pwd.key
>
>
> Dumindu Buddhika,
> Undergraduate,
> Department of Computer Science and Engineering,
> University of Moratuwa,
> Sri Lanka.
> Mobile:+94715764749
>
>
> On Tue, Dec 31, 2013 at 8:27 PM, Daan Hoogland wrote:
>
>> in my env:
>>
>> $ ls server/target/test-classes/certs/
>> bad_format_cert.crt   rsa_ca_signed2.crt
>> dsa_self_signed.crt   rsa_ca_signed2.key
>> dsa_self_signed.key   rsa_random_pkey.key
>> expired_cert.crt  rsa_self_signed.crt
>> non_x509_pem.crt  rsa_self_signed.key
>> root_chain.crtrsa_self_signed_with_pwd.crt
>> rsa_ca_signed.crt rsa_self_signed_with_pwd.key
>> rsa_ca_signed.key
>>
>> so I think you have a problem with either your environment (tools
>> installed?) or your system (diskspace?) or your checkout/clone didn't
>> fully succeed..??
>>
>> I did
>> $ git clone https://git-wip-us.apache.org/repos/asf/cloudstack.git
>>
>> and then
>> $ mvn clean test
>>
>> and it build without hesitation
>>
>> good hunting,
>> Daan
>>
>> On Tue, Dec 31, 2013 at 3:25 PM, Dumindu Buddhika
>>  wrote:
>> > Thanks for the feedback.
>> > Here is the report containing the test error(report file you pointed
>> out).
>> > it says some file is missing.
>> > Please let me know the cause for the error if you can help. :)
>> >
>> > Thank you
>> >
>> >
>> ---
>> > Test set: org.apache.cloudstack.network.lb.CertServiceTest
>> >
>> ---
>> > Tests run: 15, Failures: 0, Errors: 12, Skipped: 0, Time elapsed: 1.6
>> sec
>> > <<< FAILURE!
>> >
>> runUploadSslCertWithCAChain(org.apache.cloudstack.network.lb.CertServiceTest)
>> >  Time elapsed: 0.324 sec  <<< ERROR!
>> > java.io.FileNotFoundException: File
>> >
>> '/media/TV%26Movie/aca/cloudstack/server/target/test-classes/certs/rsa_ca_signed.crt'
>> > does not exist
>> > at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:137)
>> > at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1102)
>> > at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1120)
>> > at
>> >
>> org.apache.cloudstack.network.lb.CertServiceTest.runUploadSslCertWithCAChain(CertServiceTest.java:104)
>> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> > at
>> >
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> > at
>> >
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> > at java.lang.reflect.Method.invoke(Method.java:616)
>> > at
>> >
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
>> > at
>> >
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>> > at
>> >
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
>> > at
>> >
>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>> > at
>> >
>> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>> > at
>> >
>> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
>> > at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
>> > at
>> >
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
>> > at
>> >
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
>> > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
>> > at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
>> > at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
>> > at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
>> > at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
>> > at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
>> > at
>> >
>> org.apache.maven.surefire.junit4.JU

Review Request 16568: CLOUDSTACK-5633: Fixed network cleanup issue

2014-01-02 Thread Gaurav Aradhye

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

Review request for cloudstack and Girish Shilamkar.


Bugs: CLOUDSTACK-5633
https://issues.apache.org/jira/browse/CLOUDSTACK-5633


Repository: cloudstack-git


Description
---

Network has been added twice in the cleanup list which leads to failure.

Changes:
1) Remove the extra entry of network in cleanup list.
2) Add Domain to cleanup list (was missing) instead of service offering 
belonging to domain (which will be automatically removed when domain is removed)


Diffs
-

  test/integration/component/test_project_resources.py 1838269 

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


Testing
---

Tested locally.

Log:
test_03_network_create (test_project_resources_fixed.TestNetwork)
Test create network in project ... ok
test_01_service_offerings (test_project_resources_fixed.TestOfferings)
Test service offerings in a project ... skipped 'skip'
test_02_project_disk_offerings (test_project_resources_fixed.TestOfferings)
Test project disk offerings ... skipped 'skip'
test_07_associate_public_ip (test_project_resources_fixed.TestPublicIpAddress)
Test associate public IP within the project ... skipped 'skip'
test_08_security_group (test_project_resources_fixed.TestSecurityGroup)
Test security groups in project ... skipped 'skip'
test_06_create_snapshots_in_project (test_project_resources_fixed.TestSnapshots)
Test create snapshots in project ... skipped 'skip'
test_04_public_template_use_in_project 
(test_project_resources_fixed.TestTemplates)
Test Templates creation in projects ... skipped 'skip'
test_05_use_private_template_in_project 
(test_project_resources_fixed.TestTemplates)
Test use of private template in a project ... skipped 'skip'

--
Ran 8 tests in 452.545s

OK (skipped=7)


Thanks,

Gaurav Aradhye



Re: Review Request 16566: CLOUDSTACK-5551: Search not working for Configuration parameters in (Account/zone/cluster/storage) settings page

2014-01-02 Thread ASF Subversion and Git Services

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


Commit fd0fabd3e24adb6cea4b7ae2fe771f0422b3cd12 in branch refs/heads/master 
from Harikrishna Patnala
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=fd0fabd ]

CLOUDSTACK-5551: Search not working for Configuration parameters in 
(Account/zone/cluster/storage) settings page

Added filters while listing scoped configuration parameters.
Fixed: Some parameters are missing from UI settings tab because of missing 
scope entry in configuration table.

Signed-off-by: Koushik Das 


- ASF Subversion and Git Services


On Jan. 2, 2014, 10:20 a.m., Harikrishna Patnala wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/16566/
> ---
> 
> (Updated Jan. 2, 2014, 10:20 a.m.)
> 
> 
> Review request for cloudstack and Koushik Das.
> 
> 
> Bugs: CLOUDSTACK-5551
> https://issues.apache.org/jira/browse/CLOUDSTACK-5551
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> CLOUDSTACK-5551: Search not working for Configuration parameters in 
> (Account/zone/cluster/storage) settings page
> 
> Added filters while listing scoped configuration parameters.
> Fixed: Some parameters are missing from UI settings tab because of missing 
> scope entry in configuration table.
> 
> 
> Diffs
> -
> 
>   
> framework/config/src/org/apache/cloudstack/framework/config/ConfigDepot.java 
> 8592745 
>   
> framework/config/src/org/apache/cloudstack/framework/config/impl/ConfigDepotImpl.java
>  15933de 
>   server/src/com/cloud/server/ConfigurationServerImpl.java 6cddc71 
>   server/src/com/cloud/server/ManagementServerImpl.java de07a9d 
>   server/src/com/cloud/vm/UserVmManager.java 6043491 
> 
> Diff: https://reviews.apache.org/r/16566/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Harikrishna Patnala
> 
>



Re: Review Request 16385: Fix for CloudStack JIRA 4406

2014-01-02 Thread Mandar Barve


> On Dec. 23, 2013, 5:58 p.m., Nitin Mehta wrote:
> > api/src/org/apache/cloudstack/api/BaseListTemplateOrIsoPermissionsCmd.java, 
> > line 53
> > 
> >
> > You shouldn't have to override for every cmd. By default its false and 
> > the cmds having sensitive information can have methods returning true. Also 
> > they do not need to be set in execute. This is static information, doesn't 
> > change per command so why this needs to be set ?
> 
> Mandar Barve wrote:
> Nitin,
> You are right. This was discussed in the earlier discussion thread. 
> You should really have to modify only commands that carry sensitive 
> information. The problem with that approach as stated earlier is API 
> developer can forget to declare command/response sensitivity by implementing 
> a method that sets the flags, returns true etc. The wrapper abstract method 
> was introduced essentially to ensure new APIs as they get introduced will 
> give compiler error if this wrapper is not implemented enforcing the 
> developer to declare such sensitivity upfront.
> Hope that addresses your concern.
> 
> Thanks,
> Mandar
> 
> Nitin Mehta wrote:
> Thanks Mandar. I see your point and was thinking on the same lines as 
> well. I appreciate your thinking for future API devs. But I have the 
> following concerns
> 1. I probably think that this information should be static for the Cmd 
> class and doesnt have to be set on every execute invocation
> 2. For few commands having sensitive information we are writing 
> boilerplate code in all the api's, this is not en elegant way of enforcing 
> every API developer to look into this. I would rather want this to be dealt 
> through an annotation (if it doesnt exist lets create one in the public 
> @interface APICommand and keep the default value to true that it contains 
> sensitive information)

Nitin,
 I see us going back to PROPOSAL discussion which is fine but IMO its 
happening little late. 

 I am new to this process of development in CloudStack and would want to 
take this opportunity to understand how this thing works. As I understood it I 
tried to:
- reproduce and understand the issue, come up with a solution, 
- ran a PoC making sure the proposed solution will work, will scale etc. 
- Put down a proposal providing multiple solution approaches discussing 
pros/cons and shared with the team inviting comments. 
- Addressed all the concerns related to the proposal until I saw no more 
concerns raised over this.
- went through an entire exercise of manually changing each command file 
carefully going through API doc with the proposed change.
 
  I truly appreciate all the comments and also understand sometimes important 
things may need to be addressed even if they are late. Is there any norm in the 
community to close a "PROPOSAL/DISCUSS" phase? Are we supposed to get "VOTE" on 
the proposed solution before moving to implementation? This didn't look like 
the case for every discussion from my reading of wiki.

 Now coming to your comments on the PROPOSAL. You are suggesting making 
declarative changes (static)to API Commands e.g. to APICommand annotation or a 
new annotation. Something like this can surely make the change look more 
elegant in the sense the change itself will potentially be limited to one/two 
lines per file (ensuring all annotations for all commands are changed to the 
new one) and won't need a call from execute. The checking code will need to 
load the annotation to check the flag status in the annotation meaning a 
reflective code. Daan had earlier proposed using reflection with string match 
but also had raised security concerns over using reflection. Leaving that 
aside, to ensure every API does its job of declaring sensitivity upfront we 
should really be able to enforce it at compile time like mentioned before. I 
don't see a way to enforce annotation implementation by all sub classes at 
compile time. IF such method doesn't exist then we will be leaving use of this 
annotat
 ion to the mercy of the API developer who can forget to do so. In such case 
your default true values can come into play but then essentially losing the 
whole purpose where a command that is not sensitive will still need to go 
through a cleanString call.

Assuming we apply this annotation to all known API commands to date close 
to 437 files will need to change and that is truly a boiler plate change. If we 
rely on using default "false" e.g. and modify only sensitive classes then also 
it can come to around 50 files or little more I believe with a hole left open 
where newly added commands can go without annotation with unintended results as 
mentioned above.

 In my solution the abstract method is addressing these issues and yes is a 
one time boiler plate change but will scale fine.

The question is do we want to bite this bullet?

Thanks,
Mandar


- Mandar

Usage records

2014-01-02 Thread Tamas Monos
Dear Cloudstack developers,

I am wondering what would be the impact on CloudStack if I run the following 
SQL statement on the usage database:

#delete from cloud_usage where start_date like "2012-%" AND end_date like 
"2012-%";

I am planning to remove lots of records that are no longer needed. Just really 
want to understand the impact of it.
As far as I believe if I will not ask for 2012 usage record anymore there is no 
impact at all.

Regards,

Tamas


Re: Usage records

2014-01-02 Thread Wei ZHOU
no impact, I think.
and usage_network table as well.


2014/1/2 Tamas Monos 

> Dear Cloudstack developers,
>
> I am wondering what would be the impact on CloudStack if I run the
> following SQL statement on the usage database:
>
> #delete from cloud_usage where start_date like "2012-%" AND end_date like
> "2012-%";
>
> I am planning to remove lots of records that are no longer needed. Just
> really want to understand the impact of it.
> As far as I believe if I will not ask for 2012 usage record anymore there
> is no impact at all.
>
> Regards,
>
> Tamas
>


RE: Usage records

2014-01-02 Thread Tamas Monos
Hi,

In the usage_network table I only see "event_time_millis" no start/end.
Can I assume that field is the timestamp?

Thanks,

Tamas

-Original Message-
From: Wei ZHOU [mailto:ustcweiz...@gmail.com] 
Sent: 02 January 2014 12:29
To: dev@cloudstack.apache.org
Subject: Re: Usage records

no impact, I think.
and usage_network table as well.


2014/1/2 Tamas Monos 

> Dear Cloudstack developers,
>
> I am wondering what would be the impact on CloudStack if I run the 
> following SQL statement on the usage database:
>
> #delete from cloud_usage where start_date like "2012-%" AND end_date 
> like "2012-%";
>
> I am planning to remove lots of records that are no longer needed. 
> Just really want to understand the impact of it.
> As far as I believe if I will not ask for 2012 usage record anymore 
> there is no impact at all.
>
> Regards,
>
> Tamas
>


Re: Usage records

2014-01-02 Thread Wei ZHOU
yes. You can delete old records (please keep the latest records).



2014/1/2 Tamas Monos 

> Hi,
>
> In the usage_network table I only see "event_time_millis" no start/end.
> Can I assume that field is the timestamp?
>
> Thanks,
>
> Tamas
>
> -Original Message-
> From: Wei ZHOU [mailto:ustcweiz...@gmail.com]
> Sent: 02 January 2014 12:29
> To: dev@cloudstack.apache.org
> Subject: Re: Usage records
>
> no impact, I think.
> and usage_network table as well.
>
>
> 2014/1/2 Tamas Monos 
>
> > Dear Cloudstack developers,
> >
> > I am wondering what would be the impact on CloudStack if I run the
> > following SQL statement on the usage database:
> >
> > #delete from cloud_usage where start_date like "2012-%" AND end_date
> > like "2012-%";
> >
> > I am planning to remove lots of records that are no longer needed.
> > Just really want to understand the impact of it.
> > As far as I believe if I will not ask for 2012 usage record anymore
> > there is no impact at all.
> >
> > Regards,
> >
> > Tamas
> >
>


Re: git commit: updated refs/heads/master to c024a93

2014-01-02 Thread Wei ZHOU
Hugo,

Thanks for your commit to fix my mistake.

I checked the source codes just now, it looks
plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/OvsVifDriver.java
also need to be changed.
And, these commits also need to be cherry-picked to 4.2 branch, right?

-Wei


2014/1/2 

> Updated Branches:
>   refs/heads/master 50c2119a8 -> c024a9382
>
>
> Commit 3a999e7 changed the return values for the Script.execute function,
> this introduced a bug in the openvswitch bridge detection code.
>
>
> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
> Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c024a938
> Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c024a938
> Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c024a938
>
> Branch: refs/heads/master
> Commit: c024a9382689604d7738a9424d680bc9b3ff6793
> Parents: 50c2119
> Author: Hugo Trippaers 
> Authored: Thu Jan 2 11:37:16 2014 +0100
> Committer: Hugo Trippaers 
> Committed: Thu Jan 2 13:40:06 2014 +0100
>
> --
>  .../kvm/resource/LibvirtComputingResource.java  | 138 +--
>  1 file changed, 68 insertions(+), 70 deletions(-)
> --
>
>
>
> http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c024a938/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
> --
> diff --git
> a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
> b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
> index b3deb55..6b13ccb 100755
> ---
> a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
> +++
> b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
> @@ -356,7 +356,7 @@ public class LibvirtComputingResource extends
> ServerResourceBase implements Serv
>  }
>
>  protected static final MessageFormat SnapshotXML = new
> MessageFormat("   " + "   {0}" + "
>  "
> -+ "{1}" + "" + "
>  ");
> ++ "{1}" + "" + "
>  ");
>
>  protected HypervisorType _hypervisorType;
>  protected String _hypervisorURI;
> @@ -745,7 +745,7 @@ public class LibvirtComputingResource extends
> ServerResourceBase implements Serv
>  /* Does node support HVM guest? If not, exit */
>  if (!IsHVMEnabled(conn)) {
>  throw new ConfigurationException("NO HVM support on this
> machine, please make sure: " + "1. VT/SVM is supported by your CPU, or is
> enabled in BIOS. "
> -+ "2. kvm modules are loaded (kvm,
> kvm_amd|kvm_intel)");
> ++ "2. kvm modules are loaded (kvm,
> kvm_amd|kvm_intel)");
>  }
>  }
>
> @@ -765,7 +765,7 @@ public class LibvirtComputingResource extends
> ServerResourceBase implements Serv
>
>  if (_hypervisorLibvirtVersion < (9 * 1000 + 10)) {
>  s_logger.warn("LibVirt version 0.9.10 required for guest
> cpu mode, but version " + prettyVersion(_hypervisorLibvirtVersion) +
> -" detected, so it will be disabled");
> +" detected, so it will be disabled");
>  _guestCpuMode = "";
>  _guestCpuModel = "";
>  }
> @@ -796,13 +796,13 @@ public class LibvirtComputingResource extends
> ServerResourceBase implements Serv
>  }
>
>  switch (_bridgeType) {
> -case OPENVSWITCH:
> -getOvsPifs();
> -break;
> -case NATIVE:
> -default:
> -getPifs();
> -break;
> +case OPENVSWITCH:
> +getOvsPifs();
> +break;
> +case NATIVE:
> +default:
> +getPifs();
> +break;
>  }
>
>  if (_pifs.get("private") == null) {
> @@ -1054,7 +1054,7 @@ public class LibvirtComputingResource extends
> ServerResourceBase implements Serv
>  String fname = interfaces[i].getName();
>  s_logger.debug("matchPifFileInDirectory: file name '" + fname
> + "'");
>  if (fname.startsWith("eth") || fname.startsWith("bond") ||
> fname.startsWith("vlan") || fname.startsWith("vx") ||
> fname.startsWith("em") ||
> -fname.matches("^p\\d+p\\d+.*")) {
> +fname.matches("^p\\d+p\\d+.*")) {
>  return fname;
>  }
>  }
> @@ -1099,7 +1099,7 @@ public class LibvirtComputingResource extends
> ServerResourceBase implements Serv
>  command.add("-c");
>  command.add("ovs-vsctl br-exists " + networkName);
>  String result = command.execute(null);
> -if ("Ok".equals(result)) {

Re: [DISCUSS][PROPOSAL]root admin api to deploy default system vm

2014-01-02 Thread Saurav Lahiri
Daan,
Appreciate your feedback.

To clarify, yes the plans based on an earlier suggestion by chiradeep is to
go ahead
and provide a logsearch service which will be available to be used
optionally.
The service by itself would not require any changes to the cloudstack core
and
could be made available through a bunch of python scripts in addition to
the required
packages.

Post the previous discussion I believed that there was no objection against
using the
system vm template. But if there are concerns around this then we can keep
it open to
any linux template or the default centOS template.

I understand that hosting templates with all the packages prebuilt into
would not be
an option considering that cloudstack does not host templates (other than
the
default and systevm). Do let me know if thats not the case and
download.cloud.com can
indeed host different types of templates.

Thanks
Saurav




On Tue, Dec 31, 2013 at 3:26 PM, Daan Hoogland wrote:

> Saurav,
>
> I do appreciate the cause you are championing but is this to be part
> of the cloudstack core? shouldn't this functionality be an add-on that
> can be optionally installed (using it's own template)?
>
> regards,
>
> On Mon, Dec 30, 2013 at 8:38 AM, Saurav Lahiri
>  wrote:
> > Hi,
> > I am currently looking into cloudstack-3471 , wiki link beolw.
> > (
> >
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/API+to+extract+the+log+statements+by+jobid
> > ).
> >
> > As part of it I was was planning on deploying and using default system
> vms
> > to host
> > the logstash+elasticsearch indexing/searching layer. After a bit of
> > investigation it
> > appears that in cloudstack currently there is no way to deploy and start
> > default
> > system vms. Is that correct. If thats the case I am proposing a root
> admin
> > API to
> >  deploy a default system vm. The idea is that this system vm can be used
> to
> > host
> >  additional add on services by installing additional tools/packages as
> > required.
> >  For eg: for the logsearchservice , the api should first deploy and start
> > default
> > system vm , then additional configuration scripts will install and
> > configure the
> > (logstash and elasticsearch). This would be convenient for
> admininstrators
> > and
> > they can start querying cloudstack logs by jobid without requiring to
> > download
> > additional templates or worry about other dependencies like java. . The
> > existing
> > mechanism of using ssh port 3922 and link local ip address for
> > communication
> > with the system vm would still stand.
> >
> > Would greatly appreciate feedback/suggestions on this proposal.
> >
> > Thanks
> > Saurav
>
>


Re: git commit: updated refs/heads/master to c024a93

2014-01-02 Thread Hugo Trippaers
Hey Wei,

Thanks for checking, just pushed the fix for OvsVifDriver as well. I didn’t 
check the 4.2 branch yet for this bug, did you?

Cheers,

Hugo

On 2 jan. 2014, at 14:10, Wei ZHOU  wrote:

> Hugo,
> 
> Thanks for your commit to fix my mistake.
> 
> I checked the source codes just now, it looks
> plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/OvsVifDriver.java
> also need to be changed.
> And, these commits also need to be cherry-picked to 4.2 branch, right?
> 
> -Wei
> 
> 
> 2014/1/2 
> 
>> Updated Branches:
>>  refs/heads/master 50c2119a8 -> c024a9382
>> 
>> 
>> Commit 3a999e7 changed the return values for the Script.execute function,
>> this introduced a bug in the openvswitch bridge detection code.
>> 
>> 
>> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
>> Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c024a938
>> Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c024a938
>> Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c024a938
>> 
>> Branch: refs/heads/master
>> Commit: c024a9382689604d7738a9424d680bc9b3ff6793
>> Parents: 50c2119
>> Author: Hugo Trippaers 
>> Authored: Thu Jan 2 11:37:16 2014 +0100
>> Committer: Hugo Trippaers 
>> Committed: Thu Jan 2 13:40:06 2014 +0100
>> 
>> --
>> .../kvm/resource/LibvirtComputingResource.java  | 138 +--
>> 1 file changed, 68 insertions(+), 70 deletions(-)
>> --
>> 
>> 
>> 
>> http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c024a938/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
>> --
>> diff --git
>> a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
>> b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
>> index b3deb55..6b13ccb 100755
>> ---
>> a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
>> +++
>> b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
>> @@ -356,7 +356,7 @@ public class LibvirtComputingResource extends
>> ServerResourceBase implements Serv
>> }
>> 
>> protected static final MessageFormat SnapshotXML = new
>> MessageFormat("   " + "   {0}" + "
>> "
>> -+ "{1}" + "" + "
>> ");
>> ++ "{1}" + "" + "
>> ");
>> 
>> protected HypervisorType _hypervisorType;
>> protected String _hypervisorURI;
>> @@ -745,7 +745,7 @@ public class LibvirtComputingResource extends
>> ServerResourceBase implements Serv
>> /* Does node support HVM guest? If not, exit */
>> if (!IsHVMEnabled(conn)) {
>> throw new ConfigurationException("NO HVM support on this
>> machine, please make sure: " + "1. VT/SVM is supported by your CPU, or is
>> enabled in BIOS. "
>> -+ "2. kvm modules are loaded (kvm,
>> kvm_amd|kvm_intel)");
>> ++ "2. kvm modules are loaded (kvm,
>> kvm_amd|kvm_intel)");
>> }
>> }
>> 
>> @@ -765,7 +765,7 @@ public class LibvirtComputingResource extends
>> ServerResourceBase implements Serv
>> 
>> if (_hypervisorLibvirtVersion < (9 * 1000 + 10)) {
>> s_logger.warn("LibVirt version 0.9.10 required for guest
>> cpu mode, but version " + prettyVersion(_hypervisorLibvirtVersion) +
>> -" detected, so it will be disabled");
>> +" detected, so it will be disabled");
>> _guestCpuMode = "";
>> _guestCpuModel = "";
>> }
>> @@ -796,13 +796,13 @@ public class LibvirtComputingResource extends
>> ServerResourceBase implements Serv
>> }
>> 
>> switch (_bridgeType) {
>> -case OPENVSWITCH:
>> -getOvsPifs();
>> -break;
>> -case NATIVE:
>> -default:
>> -getPifs();
>> -break;
>> +case OPENVSWITCH:
>> +getOvsPifs();
>> +break;
>> +case NATIVE:
>> +default:
>> +getPifs();
>> +break;
>> }
>> 
>> if (_pifs.get("private") == null) {
>> @@ -1054,7 +1054,7 @@ public class LibvirtComputingResource extends
>> ServerResourceBase implements Serv
>> String fname = interfaces[i].getName();
>> s_logger.debug("matchPifFileInDirectory: file name '" + fname
>> + "'");
>> if (fname.startsWith("eth") || fname.startsWith("bond") ||
>> fname.startsWith("vlan") || fname.startsWith("vx") ||
>> fname.startsWith("em") ||
>> -fname.matches("^p\\d+p\\d+.*")) {
>> +fname.matches("^p\\d+p\\d+.*")) {
>> return fnam

Re: git commit: updated refs/heads/master to c024a93

2014-01-02 Thread Wei ZHOU
yes. We need to change "Ok" to "0".


2014/1/2 Hugo Trippaers 

> Hey Wei,
>
> Thanks for checking, just pushed the fix for OvsVifDriver as well. I
> didn’t check the 4.2 branch yet for this bug, did you?
>
> Cheers,
>
> Hugo
>
> On 2 jan. 2014, at 14:10, Wei ZHOU  wrote:
>
> > Hugo,
> >
> > Thanks for your commit to fix my mistake.
> >
> > I checked the source codes just now, it looks
> >
> plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/OvsVifDriver.java
> > also need to be changed.
> > And, these commits also need to be cherry-picked to 4.2 branch, right?
> >
> > -Wei
> >
> >
> > 2014/1/2 
> >
> >> Updated Branches:
> >>  refs/heads/master 50c2119a8 -> c024a9382
> >>
> >>
> >> Commit 3a999e7 changed the return values for the Script.execute
> function,
> >> this introduced a bug in the openvswitch bridge detection code.
> >>
> >>
> >> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
> >> Commit:
> http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c024a938
> >> Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c024a938
> >> Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c024a938
> >>
> >> Branch: refs/heads/master
> >> Commit: c024a9382689604d7738a9424d680bc9b3ff6793
> >> Parents: 50c2119
> >> Author: Hugo Trippaers 
> >> Authored: Thu Jan 2 11:37:16 2014 +0100
> >> Committer: Hugo Trippaers 
> >> Committed: Thu Jan 2 13:40:06 2014 +0100
> >>
> >> --
> >> .../kvm/resource/LibvirtComputingResource.java  | 138
> +--
> >> 1 file changed, 68 insertions(+), 70 deletions(-)
> >> --
> >>
> >>
> >>
> >>
> http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c024a938/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
> >> --
> >> diff --git
> >>
> a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
> >>
> b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
> >> index b3deb55..6b13ccb 100755
> >> ---
> >>
> a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
> >> +++
> >>
> b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
> >> @@ -356,7 +356,7 @@ public class LibvirtComputingResource extends
> >> ServerResourceBase implements Serv
> >> }
> >>
> >> protected static final MessageFormat SnapshotXML = new
> >> MessageFormat("   " + "   {0}" + "
> >> "
> >> -+ "{1}" + "" + "
> >> ");
> >> ++ "{1}" + "" + "
> >> ");
> >>
> >> protected HypervisorType _hypervisorType;
> >> protected String _hypervisorURI;
> >> @@ -745,7 +745,7 @@ public class LibvirtComputingResource extends
> >> ServerResourceBase implements Serv
> >> /* Does node support HVM guest? If not, exit */
> >> if (!IsHVMEnabled(conn)) {
> >> throw new ConfigurationException("NO HVM support on this
> >> machine, please make sure: " + "1. VT/SVM is supported by your CPU, or
> is
> >> enabled in BIOS. "
> >> -+ "2. kvm modules are loaded (kvm,
> >> kvm_amd|kvm_intel)");
> >> ++ "2. kvm modules are loaded (kvm,
> >> kvm_amd|kvm_intel)");
> >> }
> >> }
> >>
> >> @@ -765,7 +765,7 @@ public class LibvirtComputingResource extends
> >> ServerResourceBase implements Serv
> >>
> >> if (_hypervisorLibvirtVersion < (9 * 1000 + 10)) {
> >> s_logger.warn("LibVirt version 0.9.10 required for guest
> >> cpu mode, but version " + prettyVersion(_hypervisorLibvirtVersion) +
> >> -" detected, so it will be disabled");
> >> +" detected, so it will be disabled");
> >> _guestCpuMode = "";
> >> _guestCpuModel = "";
> >> }
> >> @@ -796,13 +796,13 @@ public class LibvirtComputingResource extends
> >> ServerResourceBase implements Serv
> >> }
> >>
> >> switch (_bridgeType) {
> >> -case OPENVSWITCH:
> >> -getOvsPifs();
> >> -break;
> >> -case NATIVE:
> >> -default:
> >> -getPifs();
> >> -break;
> >> +case OPENVSWITCH:
> >> +getOvsPifs();
> >> +break;
> >> +case NATIVE:
> >> +default:
> >> +getPifs();
> >> +break;
> >> }
> >>
> >> if (_pifs.get("private") == null) {
> >> @@ -1054,7 +1054,7 @@ public class LibvirtComputingResource extends
> >> ServerResourceBase implements Serv
> >> String fname = interfaces[i].getName();
> >> s_logger.debug("matchPifFileInDirectory: file name '" +
> fnam

Hyper-V agent

2014-01-02 Thread Paul Angus
Happy New Year Everyone,

Is there somewhere I can download the hyper-v cloudagent (AgentShell.exe) 
rather than needing to build a windows development environment to build it.  + 
what's the longer term plan? I can't see Microsoft house sysadmins being 
willing to build their own agents in order to use CloudStack...



Regards

Paul Angus
Senior Consultant / Cloud Architect

[cid:image002.png@01CE1071.C6CC9C10]

S: +44 20 3603 0540 | M: +447711418784 | 
T: @CloudyAngus
paul.an...@shapeblue.com | 
www.shapeblue.com | 
Twitter:@shapeblue
ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS

Need Enterprise Grade Support for Apache CloudStack?
Our CloudStack Infrastructure 
Support offers the 
best 24/7 SLA for CloudStack Environments.

Apache CloudStack Bootcamp training courses

**NEW!** CloudStack 4.2 training
08/09 January 2014, London
13-17 January 2014, GLOBAL. Instructor led, 
On-line
20-24 January 2014, GLOBAL. Instructor led, 
On-line

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 is a registered trademark.


Review Request 16570: CLOUDSTACK-5185: Fixed test script related to cleanup in test_egress_fw_rules.py

2014-01-02 Thread Gaurav Aradhye

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

Review request for cloudstack and Girish Shilamkar.


Bugs: CLOUDSTACK-5185
https://issues.apache.org/jira/browse/CLOUDSTACK-5185


Repository: cloudstack-git


Description
---

Whenever VM deployment fails, cleanup fails with attribute error 
"virtual_machine not present".
Also, when VM is deployed in error state, it is expunged automatically and 
deleting that VM fails with "vm id not found".

Fixed above issues.


Diffs
-

  test/integration/component/test_egress_fw_rules.py 87bf5df 

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


Testing
---

Tested locally.


Thanks,

Gaurav Aradhye



About CloudStack PaaS

2014-01-02 Thread Nguyen Anh Tu
Happy new year 2014 guys,

I started looking around open source PaaS solutions and found some:
CloudFoundy, AppScale, OpenShift, Tsuru... I have some questions:

Do CloudStack have any plan for PaaS building?

if not, which PaaS solution CloudStack work closest?

I'm trying AppScale. It is pretty good. Easy to deploy.

Thanks,

--Tuna


Re: untagged as public vlan tag (4.3)

2014-01-02 Thread Will Stevens
Sorry, this bug is already open for this:
https://issues.apache.org/jira/browse/CLOUDSTACK-5502


On Thu, Jan 2, 2014 at 11:37 AM, Will Stevens  wrote:

> Should this be working still?
>
> *My devcloud config has this (and it has forever):*
> "ipranges": [
> {
> "startip": "192.168.80.100",
> "endip": "192.168.80.199",
> "netmask": "255.255.255.0",
> "vlan": "untagged",
> "gateway": "192.168.80.2"
> }
> ],
>
>
> *When I deploy via devcloud I get the following error:*
> [DEBUG] Executing command line: python
> ../marvin/marvin/deployDataCenter.py -i devcloud.cfg
> Traceback (most recent call last):
>   File "../marvin/marvin/deployDataCenter.py", line 572, in 
> deploy.deploy()
>   File "../marvin/marvin/deployDataCenter.py", line 556, in deploy
> self.createZones(self.config.zones)
>   File "../marvin/marvin/deployDataCenter.py", line 428, in createZones
> zoneId)
>   File "../marvin/marvin/deployDataCenter.py", line 167, in
> createVlanIpRanges
> self.apiClient.createVlanIpRange(vlanipcmd)
>   File
> "/mnt/hgfs/palo_alto/cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
> line 871, in createVlanIpRange
> response = self.connection.marvinRequest(command,
> response_type=response, method=method)
>   File
> "/mnt/hgfs/palo_alto/cloudstack/tools/marvin/marvin/cloudstackConnection.py",
> line 272, in marvinRequest
> response = jsonHelper.getResultObj(response.json(), response_type)
>   File "/mnt/hgfs/palo_alto/cloudstack/tools/marvin/marvin/jsonHelper.py",
> line 148, in getResultObj
> raise cloudstackException.cloudstackAPIException(respname, errMsg)
> cloudstackException.cloudstackAPIException: Execute cmd: createvlaniprange
> failed, due to: errorCode: 431, errorText:Vlan id is required when add ip
> range to the public network
>


Re: untagged as public vlan tag (4.3)

2014-01-02 Thread Will Stevens
I am experiencing this bug using Xen, so it may or may not be related to
the KVM bug...


On Thu, Jan 2, 2014 at 11:39 AM, Will Stevens  wrote:

> Sorry, this bug is already open for this:
> https://issues.apache.org/jira/browse/CLOUDSTACK-5502
>
>
> On Thu, Jan 2, 2014 at 11:37 AM, Will Stevens wrote:
>
>> Should this be working still?
>>
>> *My devcloud config has this (and it has forever):*
>> "ipranges": [
>> {
>> "startip": "192.168.80.100",
>> "endip": "192.168.80.199",
>> "netmask": "255.255.255.0",
>> "vlan": "untagged",
>> "gateway": "192.168.80.2"
>> }
>> ],
>>
>>
>> *When I deploy via devcloud I get the following error:*
>> [DEBUG] Executing command line: python
>> ../marvin/marvin/deployDataCenter.py -i devcloud.cfg
>> Traceback (most recent call last):
>>   File "../marvin/marvin/deployDataCenter.py", line 572, in 
>> deploy.deploy()
>>   File "../marvin/marvin/deployDataCenter.py", line 556, in deploy
>> self.createZones(self.config.zones)
>>   File "../marvin/marvin/deployDataCenter.py", line 428, in createZones
>> zoneId)
>>   File "../marvin/marvin/deployDataCenter.py", line 167, in
>> createVlanIpRanges
>> self.apiClient.createVlanIpRange(vlanipcmd)
>>   File
>> "/mnt/hgfs/palo_alto/cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
>> line 871, in createVlanIpRange
>> response = self.connection.marvinRequest(command,
>> response_type=response, method=method)
>>   File
>> "/mnt/hgfs/palo_alto/cloudstack/tools/marvin/marvin/cloudstackConnection.py",
>> line 272, in marvinRequest
>> response = jsonHelper.getResultObj(response.json(), response_type)
>>   File
>> "/mnt/hgfs/palo_alto/cloudstack/tools/marvin/marvin/jsonHelper.py", line
>> 148, in getResultObj
>> raise cloudstackException.cloudstackAPIException(respname, errMsg)
>> cloudstackException.cloudstackAPIException: Execute cmd:
>> createvlaniprange failed, due to: errorCode: 431, errorText:Vlan id is
>> required when add ip range to the public network
>>
>
>


RE: Hyper-V agent

2014-01-02 Thread Donal Lafferty
I agree that we need a distro for the agent.

Based on what KVM does, what is the pattern for distributing non-Java agents?

DL


From: Paul Angus [mailto:paul.an...@shapeblue.com]
Sent: 02 January 2014 15:12
To: Donal Lafferty; dev@cloudstack.apache.org; Anshul Gangwar
Subject: Hyper-V agent

Happy New Year Everyone,

Is there somewhere I can download the hyper-v cloudagent (AgentShell.exe) 
rather than needing to build a windows development environment to build it.  + 
what's the longer term plan? I can't see Microsoft house sysadmins being 
willing to build their own agents in order to use CloudStack...



Regards

Paul Angus
Senior Consultant / Cloud Architect

[cid:image002.png@01CE1071.C6CC9C10]

S: +44 20 3603 0540 | M: +447711418784 | 
T: @CloudyAngus
paul.an...@shapeblue.com | 
www.shapeblue.com | 
Twitter:@shapeblue
ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS

Need Enterprise Grade Support for Apache CloudStack?
Our CloudStack Infrastructure 
Support offers the 
best 24/7 SLA for CloudStack Environments.

Apache CloudStack Bootcamp training courses

**NEW!** CloudStack 4.2 training
08/09 January 2014, London
13-17 January 2014, GLOBAL. Instructor led, 
On-line
20-24 January 2014, GLOBAL. Instructor led, 
On-line

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 is a registered trademark.


untagged as public vlan tag (4.3)

2014-01-02 Thread Will Stevens
Should this be working still?

*My devcloud config has this (and it has forever):*
"ipranges": [
{
"startip": "192.168.80.100",
"endip": "192.168.80.199",
"netmask": "255.255.255.0",
"vlan": "untagged",
"gateway": "192.168.80.2"
}
],


*When I deploy via devcloud I get the following error:*
[DEBUG] Executing command line: python ../marvin/marvin/deployDataCenter.py
-i devcloud.cfg
Traceback (most recent call last):
  File "../marvin/marvin/deployDataCenter.py", line 572, in 
deploy.deploy()
  File "../marvin/marvin/deployDataCenter.py", line 556, in deploy
self.createZones(self.config.zones)
  File "../marvin/marvin/deployDataCenter.py", line 428, in createZones
zoneId)
  File "../marvin/marvin/deployDataCenter.py", line 167, in
createVlanIpRanges
self.apiClient.createVlanIpRange(vlanipcmd)
  File
"/mnt/hgfs/palo_alto/cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
line 871, in createVlanIpRange
response = self.connection.marvinRequest(command,
response_type=response, method=method)
  File
"/mnt/hgfs/palo_alto/cloudstack/tools/marvin/marvin/cloudstackConnection.py",
line 272, in marvinRequest
response = jsonHelper.getResultObj(response.json(), response_type)
  File "/mnt/hgfs/palo_alto/cloudstack/tools/marvin/marvin/jsonHelper.py",
line 148, in getResultObj
raise cloudstackException.cloudstackAPIException(respname, errMsg)
cloudstackException.cloudstackAPIException: Execute cmd: createvlaniprange
failed, due to: errorCode: 431, errorText:Vlan id is required when add ip
range to the public network


Re: untagged as public vlan tag (4.3)

2014-01-02 Thread Marcus Sorensen
No, it's definitely the commit mentioned in CLOUDSTACK-5502. Not
hypervisor specific.

On Thu, Jan 2, 2014 at 9:41 AM, Will Stevens  wrote:
> I am experiencing this bug using Xen, so it may or may not be related to
> the KVM bug...
>
>
> On Thu, Jan 2, 2014 at 11:39 AM, Will Stevens  wrote:
>
>> Sorry, this bug is already open for this:
>> https://issues.apache.org/jira/browse/CLOUDSTACK-5502
>>
>>
>> On Thu, Jan 2, 2014 at 11:37 AM, Will Stevens wrote:
>>
>>> Should this be working still?
>>>
>>> *My devcloud config has this (and it has forever):*
>>> "ipranges": [
>>> {
>>> "startip": "192.168.80.100",
>>> "endip": "192.168.80.199",
>>> "netmask": "255.255.255.0",
>>> "vlan": "untagged",
>>> "gateway": "192.168.80.2"
>>> }
>>> ],
>>>
>>>
>>> *When I deploy via devcloud I get the following error:*
>>> [DEBUG] Executing command line: python
>>> ../marvin/marvin/deployDataCenter.py -i devcloud.cfg
>>> Traceback (most recent call last):
>>>   File "../marvin/marvin/deployDataCenter.py", line 572, in 
>>> deploy.deploy()
>>>   File "../marvin/marvin/deployDataCenter.py", line 556, in deploy
>>> self.createZones(self.config.zones)
>>>   File "../marvin/marvin/deployDataCenter.py", line 428, in createZones
>>> zoneId)
>>>   File "../marvin/marvin/deployDataCenter.py", line 167, in
>>> createVlanIpRanges
>>> self.apiClient.createVlanIpRange(vlanipcmd)
>>>   File
>>> "/mnt/hgfs/palo_alto/cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
>>> line 871, in createVlanIpRange
>>> response = self.connection.marvinRequest(command,
>>> response_type=response, method=method)
>>>   File
>>> "/mnt/hgfs/palo_alto/cloudstack/tools/marvin/marvin/cloudstackConnection.py",
>>> line 272, in marvinRequest
>>> response = jsonHelper.getResultObj(response.json(), response_type)
>>>   File
>>> "/mnt/hgfs/palo_alto/cloudstack/tools/marvin/marvin/jsonHelper.py", line
>>> 148, in getResultObj
>>> raise cloudstackException.cloudstackAPIException(respname, errMsg)
>>> cloudstackException.cloudstackAPIException: Execute cmd:
>>> createvlaniprange failed, due to: errorCode: 431, errorText:Vlan id is
>>> required when add ip range to the public network
>>>
>>
>>


Re: untagged as public vlan tag (4.3)

2014-01-02 Thread Will Stevens
Thank you for your help pointing me in the right direction on this one.

Just a note.  Interestingly, I was able to get it to deploy using the
following in my devcloud.cfg (as per hints in that bug).

"ipranges": [
{
"startip": "192.168.80.100",
"endip": "192.168.80.199",
"netmask": "255.255.255.0",
"vlan": "",
"gateway": "192.168.80.2"
}
],

I am not sure if it is going to work as if it is untagged (or work at all
in practice), but it deployed.  Figured it is relevant if this is blocking
other people deploying and testing unrelated functionality.


On Thu, Jan 2, 2014 at 11:51 AM, Marcus Sorensen wrote:

> No, it's definitely the commit mentioned in CLOUDSTACK-5502. Not
> hypervisor specific.
>
> On Thu, Jan 2, 2014 at 9:41 AM, Will Stevens 
> wrote:
> > I am experiencing this bug using Xen, so it may or may not be related to
> > the KVM bug...
> >
> >
> > On Thu, Jan 2, 2014 at 11:39 AM, Will Stevens 
> wrote:
> >
> >> Sorry, this bug is already open for this:
> >> https://issues.apache.org/jira/browse/CLOUDSTACK-5502
> >>
> >>
> >> On Thu, Jan 2, 2014 at 11:37 AM, Will Stevens  >wrote:
> >>
> >>> Should this be working still?
> >>>
> >>> *My devcloud config has this (and it has forever):*
> >>> "ipranges": [
> >>> {
> >>> "startip": "192.168.80.100",
> >>> "endip": "192.168.80.199",
> >>> "netmask": "255.255.255.0",
> >>> "vlan": "untagged",
> >>> "gateway": "192.168.80.2"
> >>> }
> >>> ],
> >>>
> >>>
> >>> *When I deploy via devcloud I get the following error:*
> >>> [DEBUG] Executing command line: python
> >>> ../marvin/marvin/deployDataCenter.py -i devcloud.cfg
> >>> Traceback (most recent call last):
> >>>   File "../marvin/marvin/deployDataCenter.py", line 572, in 
> >>> deploy.deploy()
> >>>   File "../marvin/marvin/deployDataCenter.py", line 556, in deploy
> >>> self.createZones(self.config.zones)
> >>>   File "../marvin/marvin/deployDataCenter.py", line 428, in createZones
> >>> zoneId)
> >>>   File "../marvin/marvin/deployDataCenter.py", line 167, in
> >>> createVlanIpRanges
> >>> self.apiClient.createVlanIpRange(vlanipcmd)
> >>>   File
> >>>
> "/mnt/hgfs/palo_alto/cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
> >>> line 871, in createVlanIpRange
> >>> response = self.connection.marvinRequest(command,
> >>> response_type=response, method=method)
> >>>   File
> >>>
> "/mnt/hgfs/palo_alto/cloudstack/tools/marvin/marvin/cloudstackConnection.py",
> >>> line 272, in marvinRequest
> >>> response = jsonHelper.getResultObj(response.json(), response_type)
> >>>   File
> >>> "/mnt/hgfs/palo_alto/cloudstack/tools/marvin/marvin/jsonHelper.py",
> line
> >>> 148, in getResultObj
> >>> raise cloudstackException.cloudstackAPIException(respname, errMsg)
> >>> cloudstackException.cloudstackAPIException: Execute cmd:
> >>> createvlaniprange failed, due to: errorCode: 431, errorText:Vlan id is
> >>> required when add ip range to the public network
> >>>
> >>
> >>
>


Re: untagged as public vlan tag (4.3)

2014-01-02 Thread Marcus Sorensen
It may work for Xen, it still breaks KVM as the agent code watches for
Vlan.UNTAGGED

On Thu, Jan 2, 2014 at 10:01 AM, Will Stevens  wrote:
> Thank you for your help pointing me in the right direction on this one.
>
> Just a note.  Interestingly, I was able to get it to deploy using the
> following in my devcloud.cfg (as per hints in that bug).
>
> "ipranges": [
> {
> "startip": "192.168.80.100",
> "endip": "192.168.80.199",
> "netmask": "255.255.255.0",
> "vlan": "",
> "gateway": "192.168.80.2"
> }
> ],
>
> I am not sure if it is going to work as if it is untagged (or work at all
> in practice), but it deployed.  Figured it is relevant if this is blocking
> other people deploying and testing unrelated functionality.
>
>
> On Thu, Jan 2, 2014 at 11:51 AM, Marcus Sorensen wrote:
>
>> No, it's definitely the commit mentioned in CLOUDSTACK-5502. Not
>> hypervisor specific.
>>
>> On Thu, Jan 2, 2014 at 9:41 AM, Will Stevens 
>> wrote:
>> > I am experiencing this bug using Xen, so it may or may not be related to
>> > the KVM bug...
>> >
>> >
>> > On Thu, Jan 2, 2014 at 11:39 AM, Will Stevens 
>> wrote:
>> >
>> >> Sorry, this bug is already open for this:
>> >> https://issues.apache.org/jira/browse/CLOUDSTACK-5502
>> >>
>> >>
>> >> On Thu, Jan 2, 2014 at 11:37 AM, Will Stevens > >wrote:
>> >>
>> >>> Should this be working still?
>> >>>
>> >>> *My devcloud config has this (and it has forever):*
>> >>> "ipranges": [
>> >>> {
>> >>> "startip": "192.168.80.100",
>> >>> "endip": "192.168.80.199",
>> >>> "netmask": "255.255.255.0",
>> >>> "vlan": "untagged",
>> >>> "gateway": "192.168.80.2"
>> >>> }
>> >>> ],
>> >>>
>> >>>
>> >>> *When I deploy via devcloud I get the following error:*
>> >>> [DEBUG] Executing command line: python
>> >>> ../marvin/marvin/deployDataCenter.py -i devcloud.cfg
>> >>> Traceback (most recent call last):
>> >>>   File "../marvin/marvin/deployDataCenter.py", line 572, in 
>> >>> deploy.deploy()
>> >>>   File "../marvin/marvin/deployDataCenter.py", line 556, in deploy
>> >>> self.createZones(self.config.zones)
>> >>>   File "../marvin/marvin/deployDataCenter.py", line 428, in createZones
>> >>> zoneId)
>> >>>   File "../marvin/marvin/deployDataCenter.py", line 167, in
>> >>> createVlanIpRanges
>> >>> self.apiClient.createVlanIpRange(vlanipcmd)
>> >>>   File
>> >>>
>> "/mnt/hgfs/palo_alto/cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
>> >>> line 871, in createVlanIpRange
>> >>> response = self.connection.marvinRequest(command,
>> >>> response_type=response, method=method)
>> >>>   File
>> >>>
>> "/mnt/hgfs/palo_alto/cloudstack/tools/marvin/marvin/cloudstackConnection.py",
>> >>> line 272, in marvinRequest
>> >>> response = jsonHelper.getResultObj(response.json(), response_type)
>> >>>   File
>> >>> "/mnt/hgfs/palo_alto/cloudstack/tools/marvin/marvin/jsonHelper.py",
>> line
>> >>> 148, in getResultObj
>> >>> raise cloudstackException.cloudstackAPIException(respname, errMsg)
>> >>> cloudstackException.cloudstackAPIException: Execute cmd:
>> >>> createvlaniprange failed, due to: errorCode: 431, errorText:Vlan id is
>> >>> required when add ip range to the public network
>> >>>
>> >>
>> >>
>>


RE: TLSv1 vs TLS vs SSL use throughout CS

2014-01-02 Thread Demetrius Tsitrelis
It might also be good to be able to globally specify other characteristics of 
the SSL/TLS configuration - for example, the list of supported ciphers.

-Original Message-
From: Demetrius Tsitrelis [mailto:demetrius.tsitre...@citrix.com] 
Sent: Tuesday, December 24, 2013 10:11 AM
To: dev@cloudstack.apache.org
Subject: RE: TLSv1 vs TLS vs SSL use throughout CS

If all of the servers and clients support the latest TLS version (1.2) then 
that is the preferred option.  

If not, perhaps we could configure fallback behavior with a list of acceptable 
SSL/TLS versions?  So, if the admin lists TLS 1.2 and TLS 1.1 as acceptable 
then 1.2 would be tried first and then 1.1; if the last one failed then the 
connection would fail.  How about that?

The SSLContext.getInstance() method also takes a parameter for the security 
provider and in one case below someone has named a specific one - SunJSSE.  It 
might be good to allow an admin to configure the provider as well so that 
providers with other characteristics (FIPS, etc.) could be easily chosen.

-Original Message-
From: Chiradeep Vittal [mailto:chiradeep.vit...@citrix.com]
Sent: Monday, December 23, 2013 3:00 PM
To: dev@cloudstack.apache.org
Subject: Re: TLSv1 vs TLS vs SSL use throughout CS

Why not set it to the highest secure protocol level always?

On 12/20/13 12:56 PM, "Demetrius Tsitrelis"  wrote:

>
>
>I was looking at the SSL code in CloudStack and noticed that there are 
>about a dozen calls to the
>SSLContext.getInstance() method.  Some of them use the  "SSL" protocol 
>while
>others use "TLS" or "TLSv1".   So I'm wondering if it makes sense to
>expose a configuration setting which specifies an organization's 
>minimum secure protocol level and then use that in all of CloudStack.
>Is there a need to maintain distinct protocol configurations for each 
>SSL/TLS connection? Here's the usage list today:
>
> 
>plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerCon
>nectionPool.java:90:javax.net.ssl.SSLContext sc =
>javax.net.ssl.SSLContext.getInstance("TLS");
>
>plugins/network-elements/nicira-nvp/src/com/cloud/network/nicira/NiciraNvp
>Api.java:555:SSLContext sc =
>SSLContext.getInstance("SSL");
>
>plugins/network-elements/palo-alto/src/com/cloud/network/utils/HttpClientW
>rapper.java:42:SSLContext ctx =
>SSLContext.getInstance("TLS");
>
>plugins/storage/volume/solidfire/src/org/apache/cloudstack/storage/datasto
>re/util/SolidFireUtil.java:703:SSLContext sslContext =
>SSLContext.getInstance("SSL");
>
> 
>services/console-proxy/server/src/com/cloud/consoleproxy/ConsoleProxySecur
>eServerFactoryImpl.java:71:sslContext =
>SSLContext.getInstance("TLS");
>
>services/console-proxy/server/src/com/cloud/consoleproxy/ConsoleProxySecur
>eServerFactoryImpl.java:94:sslContext =
>SSLContext.getInstance("TLS");
>
>services/console-proxy/server/src/com/cloud/consoleproxy/util/RawHTTP.java
>:236:sslContext =
>SSLContext.getInstance("SSL", "SunJSSE");
>
>services/console-proxy-rdp/rdpconsole/src/main/java/streamer/SocketWrapper
>.java:130:SSLContext sslContext =
>SSLContext.getInstance("TLSv1");
>
> utils/src/com/cloud/utils/nio/Link.java:430:sslContext =
>SSLContext.getInstance("TLS");
>
>utils/src/org/apache/commons/httpclient/contrib/ssl/EasySSLProtocolSocketF
>actory.java:114:SSLContext context =
>SSLContext.getInstance("SSL");
>
> vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareClient.java:102:
>  javax.net.ssl.SSLContext sc =
>javax.net.ssl.SSLContext.getInstance("SSL");
>
>vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContext.java:80:
> javax.net.ssl.SSLContext sc =
>javax.net.ssl.SSLContext.getInstance("SSL");
>
> 



Re: TLSv1 vs TLS vs SSL use throughout CS

2014-01-02 Thread Chiradeep Vittal
Sounds like a good idea.

On 1/2/14 9:51 AM, "Demetrius Tsitrelis" 
wrote:

>It might also be good to be able to globally specify other
>characteristics of the SSL/TLS configuration - for example, the list of
>supported ciphers.
>
>-Original Message-
>From: Demetrius Tsitrelis [mailto:demetrius.tsitre...@citrix.com]
>Sent: Tuesday, December 24, 2013 10:11 AM
>To: dev@cloudstack.apache.org
>Subject: RE: TLSv1 vs TLS vs SSL use throughout CS
>
>If all of the servers and clients support the latest TLS version (1.2)
>then that is the preferred option.
>
>If not, perhaps we could configure fallback behavior with a list of
>acceptable SSL/TLS versions?  So, if the admin lists TLS 1.2 and TLS 1.1
>as acceptable then 1.2 would be tried first and then 1.1; if the last one
>failed then the connection would fail.  How about that?
>
>The SSLContext.getInstance() method also takes a parameter for the
>security provider and in one case below someone has named a specific one
>- SunJSSE.  It might be good to allow an admin to configure the provider
>as well so that providers with other characteristics (FIPS, etc.) could
>be easily chosen.
>
>-Original Message-
>From: Chiradeep Vittal [mailto:chiradeep.vit...@citrix.com]
>Sent: Monday, December 23, 2013 3:00 PM
>To: dev@cloudstack.apache.org
>Subject: Re: TLSv1 vs TLS vs SSL use throughout CS
>
>Why not set it to the highest secure protocol level always?
>
>On 12/20/13 12:56 PM, "Demetrius Tsitrelis"  wrote:
>
>>
>>
>>I was looking at the SSL code in CloudStack and noticed that there are
>>about a dozen calls to the
>>SSLContext.getInstance() method.  Some of them use the  "SSL" protocol
>>while
>>others use "TLS" or "TLSv1".   So I'm wondering if it makes sense to
>>expose a configuration setting which specifies an organization's
>>minimum secure protocol level and then use that in all of CloudStack.
>>Is there a need to maintain distinct protocol configurations for each
>>SSL/TLS connection? Here's the usage list today:
>>
>> 
>>plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerCo
>>n
>>nectionPool.java:90:javax.net.ssl.SSLContext sc =
>>javax.net.ssl.SSLContext.getInstance("TLS");
>>
>>plugins/network-elements/nicira-nvp/src/com/cloud/network/nicira/NiciraNv
>>p
>>Api.java:555:SSLContext sc =
>>SSLContext.getInstance("SSL");
>>
>>plugins/network-elements/palo-alto/src/com/cloud/network/utils/HttpClient
>>W
>>rapper.java:42:SSLContext ctx =
>>SSLContext.getInstance("TLS");
>>
>>plugins/storage/volume/solidfire/src/org/apache/cloudstack/storage/datast
>>o
>>re/util/SolidFireUtil.java:703:SSLContext sslContext =
>>SSLContext.getInstance("SSL");
>>
>> 
>>services/console-proxy/server/src/com/cloud/consoleproxy/ConsoleProxySecu
>>r
>>eServerFactoryImpl.java:71:sslContext =
>>SSLContext.getInstance("TLS");
>>
>>services/console-proxy/server/src/com/cloud/consoleproxy/ConsoleProxySecu
>>r
>>eServerFactoryImpl.java:94:sslContext =
>>SSLContext.getInstance("TLS");
>>
>>services/console-proxy/server/src/com/cloud/consoleproxy/util/RawHTTP.jav
>>a
>>:236:sslContext =
>>SSLContext.getInstance("SSL", "SunJSSE");
>>
>>services/console-proxy-rdp/rdpconsole/src/main/java/streamer/SocketWrappe
>>r
>>.java:130:SSLContext sslContext =
>>SSLContext.getInstance("TLSv1");
>>
>> utils/src/com/cloud/utils/nio/Link.java:430:sslContext =
>>SSLContext.getInstance("TLS");
>>
>>utils/src/org/apache/commons/httpclient/contrib/ssl/EasySSLProtocolSocket
>>F
>>actory.java:114:SSLContext context =
>>SSLContext.getInstance("SSL");
>>
>> vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareClient.java:102:
>>  javax.net.ssl.SSLContext sc =
>>javax.net.ssl.SSLContext.getInstance("SSL");
>>
>>vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContext.java:80:
>> javax.net.ssl.SSLContext sc =
>>javax.net.ssl.SSLContext.getInstance("SSL");
>>
>>
>



Re: About CloudStack PaaS

2014-01-02 Thread Nux!

On 02.01.2014 16:00, Nguyen Anh Tu wrote:

Happy new year 2014 guys,

I started looking around open source PaaS solutions and found some:
CloudFoundy, AppScale, OpenShift, Tsuru... I have some questions:

Do CloudStack have any plan for PaaS building?

if not, which PaaS solution CloudStack work closest?

I'm trying AppScale. It is pretty good. Easy to deploy.


AFAIK the closest thing to PAAS that ACS has coming in some future 
release is support for Docker.

/imho

HTH
Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Problems creating a Basic Zone

2014-01-02 Thread Mike Tutkowski
Hi,

Has anyone else tried to create a Basic Zone recently?

This is not working for me for at least two reasons:

1) A NullPointerException in NetUtils.java.

2) Once I hack NetUtils.java so it no longer throws a NPE, the Basic Zone
is created, but no system VMs start. I see message like, "console proxy is
not in the correct state to be started."

Any thoughts on this? This is with a XenServer host.

Thanks

-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud
*™*


RE: Problems creating a Basic Zone

2014-01-02 Thread Rayees Namathponnan
Yes, I have seen this issue in automation setup; below defect created 

https://issues.apache.org/jira/browse/CLOUDSTACK-5722

Regards,
Rayees

-Original Message-
From: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com] 
Sent: Thursday, January 02, 2014 10:22 AM
To: dev@cloudstack.apache.org
Subject: Problems creating a Basic Zone

Hi,

Has anyone else tried to create a Basic Zone recently?

This is not working for me for at least two reasons:

1) A NullPointerException in NetUtils.java.

2) Once I hack NetUtils.java so it no longer throws a NPE, the Basic Zone is 
created, but no system VMs start. I see message like, "console proxy is not in 
the correct state to be started."

Any thoughts on this? This is with a XenServer host.

Thanks

--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud
*(tm)*


Re: Problems creating a Basic Zone

2014-01-02 Thread Mike Tutkowski
OK, thanks!

By the way, any thoughts on how to get those system VMs up and running?

I'm going to try with KVM and see if that platform works.


On Thu, Jan 2, 2014 at 11:34 AM, Rayees Namathponnan <
rayees.namathpon...@citrix.com> wrote:

> Yes, I have seen this issue in automation setup; below defect created
>
> https://issues.apache.org/jira/browse/CLOUDSTACK-5722
>
> Regards,
> Rayees
>
> -Original Message-
> From: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com]
> Sent: Thursday, January 02, 2014 10:22 AM
> To: dev@cloudstack.apache.org
> Subject: Problems creating a Basic Zone
>
> Hi,
>
> Has anyone else tried to create a Basic Zone recently?
>
> This is not working for me for at least two reasons:
>
> 1) A NullPointerException in NetUtils.java.
>
> 2) Once I hack NetUtils.java so it no longer throws a NPE, the Basic Zone
> is created, but no system VMs start. I see message like, "console proxy is
> not in the correct state to be started."
>
> Any thoughts on this? This is with a XenServer host.
>
> Thanks
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkow...@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud
> *(tm)*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud
*™*


RE: Problems creating a Basic Zone

2014-01-02 Thread Rayees Namathponnan
Is it because of below check-in ? 

https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitdiff;h=9ec137e75b39a7a462a1160ab3186e4afd156500

Daan - can you please have look on this ? 

Regards,
Rayees 

-Original Message-
From: Rayees Namathponnan 
Sent: Thursday, January 02, 2014 10:35 AM
To: dev@cloudstack.apache.org
Subject: RE: Problems creating a Basic Zone

Yes, I have seen this issue in automation setup; below defect created 

https://issues.apache.org/jira/browse/CLOUDSTACK-5722

Regards,
Rayees

-Original Message-
From: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com] 
Sent: Thursday, January 02, 2014 10:22 AM
To: dev@cloudstack.apache.org
Subject: Problems creating a Basic Zone

Hi,

Has anyone else tried to create a Basic Zone recently?

This is not working for me for at least two reasons:

1) A NullPointerException in NetUtils.java.

2) Once I hack NetUtils.java so it no longer throws a NPE, the Basic Zone is 
created, but no system VMs start. I see message like, "console proxy is not in 
the correct state to be started."

Any thoughts on this? This is with a XenServer host.

Thanks

--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud
*(tm)*


RE: Problems creating a Basic Zone

2014-01-02 Thread Noelle Wang
Hello,
Who can/should I contact to remove an e-mail address from your forwarding or
distribution list?  

Noelle Wang

-Original Message-
From: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com] 
Sent: Thursday, January 02, 2014 10:22 AM
To: dev@cloudstack.apache.org
Subject: Problems creating a Basic Zone

Hi,

Has anyone else tried to create a Basic Zone recently?

This is not working for me for at least two reasons:

1) A NullPointerException in NetUtils.java.

2) Once I hack NetUtils.java so it no longer throws a NPE, the Basic Zone
is created, but no system VMs start. I see message like, "console proxy is
not in the correct state to be started."

Any thoughts on this? This is with a XenServer host.

Thanks

-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud
*T*



RE: Problems creating a Basic Zone

2014-01-02 Thread Rayees Namathponnan
Here the details 

http://cloudstack.apache.org/mailing-lists.html

Regards,
Rayees 

-Original Message-
From: Noelle Wang [mailto:noe...@backbonetechnology.com] 
Sent: Thursday, January 02, 2014 10:29 AM
To: dev@cloudstack.apache.org
Subject: RE: Problems creating a Basic Zone

Hello,
Who can/should I contact to remove an e-mail address from your forwarding or 
distribution list?  

Noelle Wang

-Original Message-
From: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com]
Sent: Thursday, January 02, 2014 10:22 AM
To: dev@cloudstack.apache.org
Subject: Problems creating a Basic Zone

Hi,

Has anyone else tried to create a Basic Zone recently?

This is not working for me for at least two reasons:

1) A NullPointerException in NetUtils.java.

2) Once I hack NetUtils.java so it no longer throws a NPE, the Basic Zone is 
created, but no system VMs start. I see message like, "console proxy is not in 
the correct state to be started."

Any thoughts on this? This is with a XenServer host.

Thanks

--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud
*T*



Re: Problems creating a Basic Zone

2014-01-02 Thread Mike Tutkowski
I think this should help you, Noelle:

http://cloudstack.apache.org/mailing-lists.html


On Thu, Jan 2, 2014 at 11:29 AM, Noelle Wang
wrote:

> Hello,
> Who can/should I contact to remove an e-mail address from your forwarding
> or
> distribution list?
>
> Noelle Wang
>
> -Original Message-
> From: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com]
> Sent: Thursday, January 02, 2014 10:22 AM
> To: dev@cloudstack.apache.org
> Subject: Problems creating a Basic Zone
>
> Hi,
>
> Has anyone else tried to create a Basic Zone recently?
>
> This is not working for me for at least two reasons:
>
> 1) A NullPointerException in NetUtils.java.
>
> 2) Once I hack NetUtils.java so it no longer throws a NPE, the Basic Zone
> is created, but no system VMs start. I see message like, "console proxy is
> not in the correct state to be started."
>
> Any thoughts on this? This is with a XenServer host.
>
> Thanks
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkow...@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud
> *T*
>
>


-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud
*™*


Re: Problems creating a Basic Zone

2014-01-02 Thread Mike Tutkowski
I get the same errors with KVM and am unable to start system VMs.

I wonder if we are still planning on hitting our deadline next week for a
release candidate? It has been quite difficult testing over the past week
or so as several issues have been introduced.


On Thu, Jan 2, 2014 at 12:16 PM, Rayees Namathponnan <
rayees.namathpon...@citrix.com> wrote:

> Here the details
>
> http://cloudstack.apache.org/mailing-lists.html
>
> Regards,
> Rayees
>
> -Original Message-
> From: Noelle Wang [mailto:noe...@backbonetechnology.com]
> Sent: Thursday, January 02, 2014 10:29 AM
> To: dev@cloudstack.apache.org
> Subject: RE: Problems creating a Basic Zone
>
> Hello,
> Who can/should I contact to remove an e-mail address from your forwarding
> or distribution list?
>
> Noelle Wang
>
> -Original Message-
> From: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com]
> Sent: Thursday, January 02, 2014 10:22 AM
> To: dev@cloudstack.apache.org
> Subject: Problems creating a Basic Zone
>
> Hi,
>
> Has anyone else tried to create a Basic Zone recently?
>
> This is not working for me for at least two reasons:
>
> 1) A NullPointerException in NetUtils.java.
>
> 2) Once I hack NetUtils.java so it no longer throws a NPE, the Basic Zone
> is created, but no system VMs start. I see message like, "console proxy is
> not in the correct state to be started."
>
> Any thoughts on this? This is with a XenServer host.
>
> Thanks
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkow...@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud
> *T*
>
>


-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud
*™*


Re: networks and isolation/broadcast

2014-01-02 Thread Daan Hoogland
hey guys,

have been sick in bed all day, sorry to react slowly. I saw your
explanation Marcus and I should check for the case that only one of
the two is null and return false.
I will update and if you haven't already I will put in a fix.

regards,
Daan

On Thu, Jan 2, 2014 at 8:55 AM, Marcus Sorensen  wrote:
> There are some other issues near that commit as well. A fix for
> CLOUDSTACK-5502 that makes 'untagged' invalid needs to be backed out.
>
>
>
> On Thu, Jan 2, 2014 at 12:14 AM, Mike Tutkowski
>  wrote:
>> Yeah, this does appear to be a bug.
>>
>> I re-ran the attempted creation of my CloudStack cloud with a different
>> XenServer host and was left in the same state (NPE).
>>
>> I plan to try this with KVM tomorrow (er, later today, I guess).
>>
>>
>> On Wed, Jan 1, 2014 at 11:10 PM, Mike Tutkowski <
>> mike.tutkow...@solidfire.com> wrote:
>>
>>> Looks like Daan added the method:
>>>
>>>
>>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blobdiff;f=utils/src/com/cloud/utils/net/NetUtils.java;h=a315b935495469648a0a82a25c39c9c53f0226f6;hp=11a483c3f7e420056dce7893a86946de5c40e244;hb=94abbb1367bc817bae98f369e78679f0ddb7727f;hpb=6897984970df1455fa1ee0490157758ccfb68cff
>>>
>>>
>>> On Wed, Jan 1, 2014 at 10:33 PM, Mike Tutkowski <
>>> mike.tutkow...@solidfire.com> wrote:
>>>
 OK, thanks!


 On Wed, Jan 1, 2014 at 10:32 PM, Marcus Sorensen 
 wrote:

> git blame will show you the commit and committer.
>
> On Wed, Jan 1, 2014 at 10:19 PM, Mike Tutkowski
>  wrote:
> > Yeah, but I wasn't sure of the coder's intend and if your replacement
> code
> > meet their expectations, so I didn't change it. I was hoping someone
> would
> > claim the code and chime in. :)
> >
> >
> > On Wed, Jan 1, 2014 at 10:16 PM, Marcus Sorensen  >wrote:
> >
> >> Yeah, it would be clearer if they were checked separately:
> >>
> >> if (one == null || one.isEmpty()) {
> >> return true;
> >> } else if ( other == null || other.isEmpty()) [
> >> return true;
> >> }
> >>
> >> or something like that.
> >>
> >> On Wed, Jan 1, 2014 at 10:00 PM, Mike Tutkowski
> >>  wrote:
> >> > I should say this check doesn't have to catch it...it might, but it
> >> doesn't
> >> > have to (depends on the value of one).
> >> >
> >> >
> >> > On Wed, Jan 1, 2014 at 9:59 PM, Mike Tutkowski <
> >> mike.tutkow...@solidfire.com
> >> >> wrote:
> >> >
> >> >> Yeah, in my case I'm just setting up a basic zone with a XenServer
> host.
> >> >>
> >> >> The code in NetUtils checks for null or "" on the variable in
> question
> >> >> that's passed in. However, in a certain case, null for that
> variable can
> >> >> slip by and lead to a NPE.
> >> >>
> >> >> if ((one == null || one.equals(""))
> >> >>
> >> >> &&
> >> >>
> >> >> (other == null || other.equals("")))
> >> >>
> >> >> {
> >> >>
> >> >> return true;
> >> >>
> >> >> }
> >> >>
> >> >> if other == null, this will not catch it and it can throw a NPE
> later.
> >> >>
> >> >>
> >> >> On Wed, Jan 1, 2014 at 9:51 PM, Marcus Sorensen <
> shadow...@gmail.com
> >> >wrote:
> >> >>
> >> >>> You can do "git blame (file)" and it will show you each line and
> the
> >> >>> commit. You can also do a git log on the file.  The issue may not
> be as
> >> >>> obvious as that, though, there may be something totally unrelated
> >> causing
> >> >>> that object to end up null in this code. Or it may be specific to
> your
> >> >>> setup, some obscure bug nobody else is hitting.
> >> >>> On Jan 1, 2014 4:22 PM, "Mike Tutkowski" <
> mike.tutkow...@solidfire.com
> >> >
> >> >>> wrote:
> >> >>>
> >> >>> > This is in 4.3.
> >> >>> >
> >> >>> > I know the file is NetUtils, but I'm not sure in Git how to
> look at
> >> the
> >> >>> > history of a particular file like I could do in SVN.
> >> >>> >
> >> >>> >
> >> >>> > On Wed, Jan 1, 2014 at 3:55 PM, Marcus Sorensen <
> shadow...@gmail.com
> >> >
> >> >>> > wrote:
> >> >>> >
> >> >>> > > Which branch? I see these in master, you can check out the
> commit
> >> just
> >> >>> > > before these and see if it helps:
> >> >>> > >
> >> >>> > > commit b477e4e830597100f0c0171dd8e56f4033bd07aa
> >> >>> > > Author: Daan Hoogland 
> >> >>> > > Date:   Tue Dec 31 12:52:51 2013 +0100
> >> >>> > >
> >> >>> > > some xtra cases
> >> >>> > >
> >> >>> > > commit 2cf356e047e26977c1d294fafc57e986c04fc5f4
> >> >>> > > Author: Daan Hoogland 
> >> >>> > > Date:   Tue Dec 31 12:25:17 2013 +0100
> >> >>> > >
> >> >>> > > isSameIsolationId
> >> >>> > >
> >> >>> > > commit 04570eefed

Re: networks and isolation/broadcast

2014-01-02 Thread Mike Tutkowski
Cool...sounds good

Does anyone have any thoughts on the system VM issue (with them not
starting on Xen or KVM)?

Console proxy is not in correct state to be started: Stopped


On Thu, Jan 2, 2014 at 12:35 PM, Daan Hoogland wrote:

> hey guys,
>
> have been sick in bed all day, sorry to react slowly. I saw your
> explanation Marcus and I should check for the case that only one of
> the two is null and return false.
> I will update and if you haven't already I will put in a fix.
>
> regards,
> Daan
>
> On Thu, Jan 2, 2014 at 8:55 AM, Marcus Sorensen 
> wrote:
> > There are some other issues near that commit as well. A fix for
> > CLOUDSTACK-5502 that makes 'untagged' invalid needs to be backed out.
> >
> >
> >
> > On Thu, Jan 2, 2014 at 12:14 AM, Mike Tutkowski
> >  wrote:
> >> Yeah, this does appear to be a bug.
> >>
> >> I re-ran the attempted creation of my CloudStack cloud with a different
> >> XenServer host and was left in the same state (NPE).
> >>
> >> I plan to try this with KVM tomorrow (er, later today, I guess).
> >>
> >>
> >> On Wed, Jan 1, 2014 at 11:10 PM, Mike Tutkowski <
> >> mike.tutkow...@solidfire.com> wrote:
> >>
> >>> Looks like Daan added the method:
> >>>
> >>>
> >>>
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blobdiff;f=utils/src/com/cloud/utils/net/NetUtils.java;h=a315b935495469648a0a82a25c39c9c53f0226f6;hp=11a483c3f7e420056dce7893a86946de5c40e244;hb=94abbb1367bc817bae98f369e78679f0ddb7727f;hpb=6897984970df1455fa1ee0490157758ccfb68cff
> >>>
> >>>
> >>> On Wed, Jan 1, 2014 at 10:33 PM, Mike Tutkowski <
> >>> mike.tutkow...@solidfire.com> wrote:
> >>>
>  OK, thanks!
> 
> 
>  On Wed, Jan 1, 2014 at 10:32 PM, Marcus Sorensen  >wrote:
> 
> > git blame will show you the commit and committer.
> >
> > On Wed, Jan 1, 2014 at 10:19 PM, Mike Tutkowski
> >  wrote:
> > > Yeah, but I wasn't sure of the coder's intend and if your
> replacement
> > code
> > > meet their expectations, so I didn't change it. I was hoping
> someone
> > would
> > > claim the code and chime in. :)
> > >
> > >
> > > On Wed, Jan 1, 2014 at 10:16 PM, Marcus Sorensen <
> shadow...@gmail.com
> > >wrote:
> > >
> > >> Yeah, it would be clearer if they were checked separately:
> > >>
> > >> if (one == null || one.isEmpty()) {
> > >> return true;
> > >> } else if ( other == null || other.isEmpty()) [
> > >> return true;
> > >> }
> > >>
> > >> or something like that.
> > >>
> > >> On Wed, Jan 1, 2014 at 10:00 PM, Mike Tutkowski
> > >>  wrote:
> > >> > I should say this check doesn't have to catch it...it might,
> but it
> > >> doesn't
> > >> > have to (depends on the value of one).
> > >> >
> > >> >
> > >> > On Wed, Jan 1, 2014 at 9:59 PM, Mike Tutkowski <
> > >> mike.tutkow...@solidfire.com
> > >> >> wrote:
> > >> >
> > >> >> Yeah, in my case I'm just setting up a basic zone with a
> XenServer
> > host.
> > >> >>
> > >> >> The code in NetUtils checks for null or "" on the variable in
> > question
> > >> >> that's passed in. However, in a certain case, null for that
> > variable can
> > >> >> slip by and lead to a NPE.
> > >> >>
> > >> >> if ((one == null || one.equals(""))
> > >> >>
> > >> >> &&
> > >> >>
> > >> >> (other == null || other.equals("")))
> > >> >>
> > >> >> {
> > >> >>
> > >> >> return true;
> > >> >>
> > >> >> }
> > >> >>
> > >> >> if other == null, this will not catch it and it can throw a NPE
> > later.
> > >> >>
> > >> >>
> > >> >> On Wed, Jan 1, 2014 at 9:51 PM, Marcus Sorensen <
> > shadow...@gmail.com
> > >> >wrote:
> > >> >>
> > >> >>> You can do "git blame (file)" and it will show you each line
> and
> > the
> > >> >>> commit. You can also do a git log on the file.  The issue may
> not
> > be as
> > >> >>> obvious as that, though, there may be something totally
> unrelated
> > >> causing
> > >> >>> that object to end up null in this code. Or it may be
> specific to
> > your
> > >> >>> setup, some obscure bug nobody else is hitting.
> > >> >>> On Jan 1, 2014 4:22 PM, "Mike Tutkowski" <
> > mike.tutkow...@solidfire.com
> > >> >
> > >> >>> wrote:
> > >> >>>
> > >> >>> > This is in 4.3.
> > >> >>> >
> > >> >>> > I know the file is NetUtils, but I'm not sure in Git how to
> > look at
> > >> the
> > >> >>> > history of a particular file like I could do in SVN.
> > >> >>> >
> > >> >>> >
> > >> >>> > On Wed, Jan 1, 2014 at 3:55 PM, Marcus Sorensen <
> > shadow...@gmail.com
> > >> >
> > >> >>> > wrote:
> > >> >>> >
> > >> >>> > > Which branch? I see these in master, you can check out the
> > commit
> > >> just
> > >> >>> > > befor

Re: networks and isolation/broadcast

2014-01-02 Thread Mike Tutkowski
I did notice one issue, but I don't think it's the cause because after
correcting it the system VMs still do not start.

In the wizard, I said I wanted to use local storage; however, I see the
system.vm.use.local.storage property was still false after my cloud was
created. I changed it to true and re-started the CS MS, but now I get an
exception and still no system VMs start:

ERROR [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-9:ctx-5a124def)
Unexpected exception
java.lang.NullPointerException
at
com.google.gson.JsonPrimitive.isPrimitiveOrString(JsonPrimitive.java:316)
at com.google.gson.JsonPrimitive.setValue(JsonPrimitive.java:97)
at com.google.gson.JsonPrimitive.(JsonPrimitive.java:67)
at
org.apache.cloudstack.framework.jobs.impl.JobSerializerHelper$ThrowableTypeAdapter.serialize(JobSerializerHelper.java:195)
at
org.apache.cloudstack.framework.jobs.impl.JobSerializerHelper$ThrowableTypeAdapter.serialize(JobSerializerHelper.java:158)
at
com.google.gson.JsonSerializationVisitor.findAndInvokeCustomSerializer(JsonSerializationVisitor.java:184)
at
com.google.gson.JsonSerializationVisitor.visitFieldUsingCustomHandler(JsonSerializationVisitor.java:204)
at
com.google.gson.ReflectingFieldNavigator.visitFieldsReflectively(ReflectingFieldNavigator.java:63)
at com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:120)
at
com.google.gson.JsonSerializationContextDefault.serialize(JsonSerializationContextDefault.java:62)
at
com.google.gson.JsonSerializationContextDefault.serialize(JsonSerializationContextDefault.java:53)
at com.google.gson.Gson.toJsonTree(Gson.java:220)
at com.google.gson.Gson.toJson(Gson.java:260)
at com.google.gson.Gson.toJson(Gson.java:240)
at
org.apache.cloudstack.framework.jobs.impl.JobSerializerHelper.toSerializedString(JobSerializerHelper.java:65)
at com.cloud.vm.VmWorkJobDispatcher.runJob(VmWorkJobDispatcher.java:105)
at
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:522)
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$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)



On Thu, Jan 2, 2014 at 12:40 PM, Mike Tutkowski <
mike.tutkow...@solidfire.com> wrote:

> Cool...sounds good
>
> Does anyone have any thoughts on the system VM issue (with them not
> starting on Xen or KVM)?
>
> Console proxy is not in correct state to be started: Stopped
>
>
> On Thu, Jan 2, 2014 at 12:35 PM, Daan Hoogland wrote:
>
>> hey guys,
>>
>> have been sick in bed all day, sorry to react slowly. I saw your
>> explanation Marcus and I should check for the case that only one of
>> the two is null and return false.
>> I will update and if you haven't already I will put in a fix.
>>
>> regards,
>> Daan
>>
>> On Thu, Jan 2, 2014 at 8:55 AM, Marcus Sorensen 
>> wrote:
>> > There are some other issues near that commit as well. A fix for
>> > CLOUDSTACK-5502 that makes 'untagged' invalid needs to be backed out.
>> >
>> >
>> >
>> > On Thu, Jan 2, 2014 at 12:14 AM, Mike Tutkowski
>> >  wrote:
>> >> Yeah, this does appear to be a bug.
>> >>
>> >> I re-ran the attempted creation of my CloudStack cloud with a different
>> >> XenServer host and was left in the same state (NPE).
>> >>
>> >> I plan to try this with KVM tomorrow (er, later today, I guess).
>> >>
>> >>
>> >> On Wed, Jan 1, 2014 at 11:10 PM, Mike Tutkowski <
>> >> mike.tutkow...@solidfire.com> wrote:
>> >>
>> >>> Looks like Daan added the method:
>> >>>
>> >>>
>> >>>
>> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blobdiff;f=utils/src/com/cloud/utils/net/NetUtils.java;h=a315b935495469648a0a82a25c39c9c53f0226f6;hp=11a483c3f7e420056dce7893a86946de5c40e244;hb=94abbb1367bc817bae98f369e78679f0ddb7727f;hpb=6897984970df1455fa1ee0490157758ccfb68cff
>> >>>
>> >>>
>> >>> On Wed, Jan 1, 2014 at 10:33 PM, Mike Tutkowski <
>> >>> mike.tutkow...@solidfire.com> wrote:
>> >>>
>>  OK, thanks!
>> 
>> 
>>  On Wed, Jan 1, 2014 at 10:32 PM, Marcus Sorensen <
>> shadow...@gmail.com>wrote:
>> 
>> > git blame will show you the commit and committer.

Re: networks and isolation/broadcast

2014-01-02 Thread Mike Tutkowski
I'm not that familiar with this part of the codebase, but the code in the
"Stopped" if block looks incorrect when it assigns to proxy instead of
doing a return.

Thoughts?

@Override

public ConsoleProxyVO startProxy(long proxyVmId) {

try {

ConsoleProxyVO proxy = _consoleProxyDao.findById(proxyVmId);

if (proxy.getState() == VirtualMachine.State.Running) {

return proxy;

}


String restart = _configDao.getValue(Config.ConsoleProxyRestart
.key());

if (restart != null && restart.equalsIgnoreCase("false")) {

return null;

}


if (proxy.getState() == VirtualMachine.State.Stopped) {

_itMgr.advanceStart(proxy.getUuid(), null, null);

proxy = _consoleProxyDao.findById(proxy.getId());

}


// For VMs that are in Stopping, Starting, Migrating state, let
client to wait by returning null

// as sooner or later, Starting/Migrating state will be
transited to Running and Stopping will be transited

// to

// Stopped to allow

// Starting of it

s_logger.warn("Console proxy is not in correct state to be
started: " + proxy.getState());

return null;

} catch (StorageUnavailableException e) {

s_logger.warn("Exception while trying to start console proxy",
e);

return null;

} catch (InsufficientCapacityException e) {

s_logger.warn("Exception while trying to start console proxy",
e);

return null;

} catch (ResourceUnavailableException e) {

s_logger.warn("Exception while trying to start console proxy",
e);

return null;

} catch (ConcurrentOperationException e) {

s_logger.warn("Runtime Exception while trying to start console
proxy", e);

return null;

} catch (CloudRuntimeException e) {

s_logger.warn("Runtime Exception while trying to start console
proxy", e);

return null;

} catch (OperationTimedoutException e) {

s_logger.warn("Runtime Exception while trying to start console
proxy", e);

return null;

}

}


On Thu, Jan 2, 2014 at 12:48 PM, Mike Tutkowski <
mike.tutkow...@solidfire.com> wrote:

> I did notice one issue, but I don't think it's the cause because after
> correcting it the system VMs still do not start.
>
> In the wizard, I said I wanted to use local storage; however, I see the
> system.vm.use.local.storage property was still false after my cloud was
> created. I changed it to true and re-started the CS MS, but now I get an
> exception and still no system VMs start:
>
> ERROR [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-9:ctx-5a124def)
> Unexpected exception
> java.lang.NullPointerException
> at
> com.google.gson.JsonPrimitive.isPrimitiveOrString(JsonPrimitive.java:316)
> at com.google.gson.JsonPrimitive.setValue(JsonPrimitive.java:97)
> at com.google.gson.JsonPrimitive.(JsonPrimitive.java:67)
> at
> org.apache.cloudstack.framework.jobs.impl.JobSerializerHelper$ThrowableTypeAdapter.serialize(JobSerializerHelper.java:195)
> at
> org.apache.cloudstack.framework.jobs.impl.JobSerializerHelper$ThrowableTypeAdapter.serialize(JobSerializerHelper.java:158)
> at
> com.google.gson.JsonSerializationVisitor.findAndInvokeCustomSerializer(JsonSerializationVisitor.java:184)
> at
> com.google.gson.JsonSerializationVisitor.visitFieldUsingCustomHandler(JsonSerializationVisitor.java:204)
> at
> com.google.gson.ReflectingFieldNavigator.visitFieldsReflectively(ReflectingFieldNavigator.java:63)
> at com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:120)
> at
> com.google.gson.JsonSerializationContextDefault.serialize(JsonSerializationContextDefault.java:62)
> at
> com.google.gson.JsonSerializationContextDefault.serialize(JsonSerializationContextDefault.java:53)
> at com.google.gson.Gson.toJsonTree(Gson.java:220)
> at com.google.gson.Gson.toJson(Gson.java:260)
> at com.google.gson.Gson.toJson(Gson.java:240)
> at
> org.apache.cloudstack.framework.jobs.impl.JobSerializerHelper.toSerializedString(JobSerializerHelper.java:65)
> at
> com.cloud.vm.VmWorkJobDispatcher.runJob(VmWorkJobDispatcher.java:105)
> at
> org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:522)
> 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

Re: networks and isolation/broadcast

2014-01-02 Thread Daan Hoogland
I pushed an extra check to 4.3

I'm not sure what you mean with your last post Mike.

if (proxy.getState() == VirtualMachine.State.Stopped) {
_itMgr.advanceStart(proxy.getUuid(), null, null);
proxy = _consoleProxyDao.findById(proxy.getId());
}
maybe you are right but after the above the proxy is Starting I
suppose so according to
  // For VMs that are in Stopping, Starting, Migrating state,
let client to wait by returning null
null should be returned.

no?
Daan


On Thu, Jan 2, 2014 at 9:09 PM, Mike Tutkowski
 wrote:
> I'm not that familiar with this part of the codebase, but the code in the
> "Stopped" if block looks incorrect when it assigns to proxy instead of
> doing a return.
>
> Thoughts?
>
> @Override
>
> public ConsoleProxyVO startProxy(long proxyVmId) {
>
> try {
>
> ConsoleProxyVO proxy = _consoleProxyDao.findById(proxyVmId);
>
> if (proxy.getState() == VirtualMachine.State.Running) {
>
> return proxy;
>
> }
>
>
> String restart = _configDao.getValue(Config.ConsoleProxyRestart
> .key());
>
> if (restart != null && restart.equalsIgnoreCase("false")) {
>
> return null;
>
> }
>
>
> if (proxy.getState() == VirtualMachine.State.Stopped) {
>
> _itMgr.advanceStart(proxy.getUuid(), null, null);
>
> proxy = _consoleProxyDao.findById(proxy.getId());
>
> }
>
>
> // For VMs that are in Stopping, Starting, Migrating state, let
> client to wait by returning null
>
> // as sooner or later, Starting/Migrating state will be
> transited to Running and Stopping will be transited
>
> // to
>
> // Stopped to allow
>
> // Starting of it
>
> s_logger.warn("Console proxy is not in correct state to be
> started: " + proxy.getState());
>
> return null;
>
> } catch (StorageUnavailableException e) {
>
> s_logger.warn("Exception while trying to start console proxy",
> e);
>
> return null;
>
> } catch (InsufficientCapacityException e) {
>
> s_logger.warn("Exception while trying to start console proxy",
> e);
>
> return null;
>
> } catch (ResourceUnavailableException e) {
>
> s_logger.warn("Exception while trying to start console proxy",
> e);
>
> return null;
>
> } catch (ConcurrentOperationException e) {
>
> s_logger.warn("Runtime Exception while trying to start console
> proxy", e);
>
> return null;
>
> } catch (CloudRuntimeException e) {
>
> s_logger.warn("Runtime Exception while trying to start console
> proxy", e);
>
> return null;
>
> } catch (OperationTimedoutException e) {
>
> s_logger.warn("Runtime Exception while trying to start console
> proxy", e);
>
> return null;
>
> }
>
> }
>
>
> On Thu, Jan 2, 2014 at 12:48 PM, Mike Tutkowski <
> mike.tutkow...@solidfire.com> wrote:
>
>> I did notice one issue, but I don't think it's the cause because after
>> correcting it the system VMs still do not start.
>>
>> In the wizard, I said I wanted to use local storage; however, I see the
>> system.vm.use.local.storage property was still false after my cloud was
>> created. I changed it to true and re-started the CS MS, but now I get an
>> exception and still no system VMs start:
>>
>> ERROR [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-9:ctx-5a124def)
>> Unexpected exception
>> java.lang.NullPointerException
>> at
>> com.google.gson.JsonPrimitive.isPrimitiveOrString(JsonPrimitive.java:316)
>> at com.google.gson.JsonPrimitive.setValue(JsonPrimitive.java:97)
>> at com.google.gson.JsonPrimitive.(JsonPrimitive.java:67)
>> at
>> org.apache.cloudstack.framework.jobs.impl.JobSerializerHelper$ThrowableTypeAdapter.serialize(JobSerializerHelper.java:195)
>> at
>> org.apache.cloudstack.framework.jobs.impl.JobSerializerHelper$ThrowableTypeAdapter.serialize(JobSerializerHelper.java:158)
>> at
>> com.google.gson.JsonSerializationVisitor.findAndInvokeCustomSerializer(JsonSerializationVisitor.java:184)
>> at
>> com.google.gson.JsonSerializationVisitor.visitFieldUsingCustomHandler(JsonSerializationVisitor.java:204)
>> at
>> com.google.gson.ReflectingFieldNavigator.visitFieldsReflectively(ReflectingFieldNavigator.java:63)
>> at com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:120)
>> at
>> com.google.gson.JsonSerializationContextDefault.serialize(JsonSerializationContextDefault.java:62)
>> at
>> com.google.gson.JsonSerializationContextDefault.serialize(JsonSerializationContextDefault.java:53)
>> at com.google.gson.Gson.toJsonTree(Gson.java:220)
>> at com.google.gson.Gson.toJson(Gson.java:260)
>> at com.google.gson.Gson.toJson(Gson.java:240)
>> at
>> org.apac

Re: networks and isolation/broadcast

2014-01-02 Thread Mike Tutkowski
Yeah, I'm not sure what's supposed to happen there.

I guess it's supposed to enter the Starting state and then when it gets
into the Running state is when we stop returning null (so I suppose it's
OK).

I'm just trying to figure how why my system VMs don't start. :)


On Thu, Jan 2, 2014 at 1:36 PM, Daan Hoogland wrote:

> I pushed an extra check to 4.3
>
> I'm not sure what you mean with your last post Mike.
>
> if (proxy.getState() == VirtualMachine.State.Stopped) {
> _itMgr.advanceStart(proxy.getUuid(), null, null);
> proxy = _consoleProxyDao.findById(proxy.getId());
> }
> maybe you are right but after the above the proxy is Starting I
> suppose so according to
>   // For VMs that are in Stopping, Starting, Migrating state,
> let client to wait by returning null
> null should be returned.
>
> no?
> Daan
>
>
> On Thu, Jan 2, 2014 at 9:09 PM, Mike Tutkowski
>  wrote:
> > I'm not that familiar with this part of the codebase, but the code in the
> > "Stopped" if block looks incorrect when it assigns to proxy instead of
> > doing a return.
> >
> > Thoughts?
> >
> > @Override
> >
> > public ConsoleProxyVO startProxy(long proxyVmId) {
> >
> > try {
> >
> > ConsoleProxyVO proxy = _consoleProxyDao.findById(proxyVmId);
> >
> > if (proxy.getState() == VirtualMachine.State.Running) {
> >
> > return proxy;
> >
> > }
> >
> >
> > String restart =
> _configDao.getValue(Config.ConsoleProxyRestart
> > .key());
> >
> > if (restart != null && restart.equalsIgnoreCase("false")) {
> >
> > return null;
> >
> > }
> >
> >
> > if (proxy.getState() == VirtualMachine.State.Stopped) {
> >
> > _itMgr.advanceStart(proxy.getUuid(), null, null);
> >
> > proxy = _consoleProxyDao.findById(proxy.getId());
> >
> > }
> >
> >
> > // For VMs that are in Stopping, Starting, Migrating state,
> let
> > client to wait by returning null
> >
> > // as sooner or later, Starting/Migrating state will be
> > transited to Running and Stopping will be transited
> >
> > // to
> >
> > // Stopped to allow
> >
> > // Starting of it
> >
> > s_logger.warn("Console proxy is not in correct state to be
> > started: " + proxy.getState());
> >
> > return null;
> >
> > } catch (StorageUnavailableException e) {
> >
> > s_logger.warn("Exception while trying to start console
> proxy",
> > e);
> >
> > return null;
> >
> > } catch (InsufficientCapacityException e) {
> >
> > s_logger.warn("Exception while trying to start console
> proxy",
> > e);
> >
> > return null;
> >
> > } catch (ResourceUnavailableException e) {
> >
> > s_logger.warn("Exception while trying to start console
> proxy",
> > e);
> >
> > return null;
> >
> > } catch (ConcurrentOperationException e) {
> >
> > s_logger.warn("Runtime Exception while trying to start
> console
> > proxy", e);
> >
> > return null;
> >
> > } catch (CloudRuntimeException e) {
> >
> > s_logger.warn("Runtime Exception while trying to start
> console
> > proxy", e);
> >
> > return null;
> >
> > } catch (OperationTimedoutException e) {
> >
> > s_logger.warn("Runtime Exception while trying to start
> console
> > proxy", e);
> >
> > return null;
> >
> > }
> >
> > }
> >
> >
> > On Thu, Jan 2, 2014 at 12:48 PM, Mike Tutkowski <
> > mike.tutkow...@solidfire.com> wrote:
> >
> >> I did notice one issue, but I don't think it's the cause because after
> >> correcting it the system VMs still do not start.
> >>
> >> In the wizard, I said I wanted to use local storage; however, I see the
> >> system.vm.use.local.storage property was still false after my cloud was
> >> created. I changed it to true and re-started the CS MS, but now I get an
> >> exception and still no system VMs start:
> >>
> >> ERROR [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-9:ctx-5a124def)
> >> Unexpected exception
> >> java.lang.NullPointerException
> >> at
> >>
> com.google.gson.JsonPrimitive.isPrimitiveOrString(JsonPrimitive.java:316)
> >> at com.google.gson.JsonPrimitive.setValue(JsonPrimitive.java:97)
> >> at com.google.gson.JsonPrimitive.(JsonPrimitive.java:67)
> >> at
> >>
> org.apache.cloudstack.framework.jobs.impl.JobSerializerHelper$ThrowableTypeAdapter.serialize(JobSerializerHelper.java:195)
> >> at
> >>
> org.apache.cloudstack.framework.jobs.impl.JobSerializerHelper$ThrowableTypeAdapter.serialize(JobSerializerHelper.java:158)
> >> at
> >>
> com.google.gson.JsonSerializationVisitor.findAndInvokeCustomSerializer(JsonSerializationVisitor.java:184)
> >> at
> >>
> com.google.gson.JsonSerializationVisitor.visitFieldUsin

Email Address Change

2014-01-02 Thread Musayev, Ilya
Hi All,

Please note that I will no longer be responding from WeMD email address.

If would like to reach me, please email me via ilya(at)apache(dot)org

I'll be changing the email address on mailing lists shortly.

Looking forward to amazing 2014 for ACS community!

Thanks
ilya


Build failed in Jenkins: build-master » Apache CloudStack #330

2014-01-02 Thread jenkins
See 


--
maven31-agent.jar already up to date
maven31-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
<===[JENKINS REMOTING CAPACITY]===>channel started
   log4j:WARN No appenders could be found for logger 
(org.apache.commons.beanutils.converters.BooleanConverter).
log4j:WARN Please initialize the log4j system properly.
Executing Maven:  -B -f 

 -Psystemvm clean test
[INFO] Scanning for projects...
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] Apache CloudStack
[INFO] Apache CloudStack Maven Conventions Parent
[INFO] Apache CloudStack Framework - Managed Context
[INFO] Apache CloudStack Utils
[INFO] Apache CloudStack Framework
[INFO] Apache CloudStack Framework - Event Notification
[INFO] Apache CloudStack Framework - Configuration
[INFO] Apache CloudStack API
[INFO] Apache CloudStack Framework - REST
[INFO] Apache CloudStack Framework - IPC
[INFO] Apache CloudStack Cloud Engine
[INFO] Apache CloudStack Cloud Engine API
[INFO] Apache CloudStack Core
[INFO] Apache CloudStack Agents
[INFO] Apache CloudStack Framework - Clustering
[INFO] Apache CloudStack Framework - Jobs
[INFO] Apache CloudStack Cloud Engine Schema Component
[INFO] Apache CloudStack Framework - Event Notification
[INFO] Apache CloudStack Cloud Engine Internal Components API
[INFO] Apache CloudStack Server
[INFO] Apache CloudStack Usage Server
[INFO] Apache XenSource XAPI
[INFO] Apache CloudStack Cloud Engine Orchestration Component
[INFO] Apache CloudStack Cloud Services
[INFO] Apache CloudStack Secondary Storage Service
[INFO] Apache CloudStack Engine Storage Component
[INFO] Apache CloudStack Engine Storage Volume Component
[INFO] Apache CloudStack Engine Storage Image Component
[INFO] Apache CloudStack Engine Storage Data Motion Component
[INFO] Apache CloudStack Engine Storage Cache Component
[INFO] Apache CloudStack Engine Storage Snapshot Component
[INFO] Apache CloudStack Cloud Engine API
[INFO] Apache CloudStack Cloud Engine Service
[INFO] Apache CloudStack Plugin POM
[INFO] Apache CloudStack Plugin - API Rate Limit
[INFO] Apache CloudStack Plugin - API Discovery
[INFO] Apache CloudStack Plugin - ACL Static Role Based
[INFO] Apache CloudStack Plugin - Host Anti-Affinity Processor
[INFO] Apache CloudStack Plugin - Explicit Dedication Processor
[INFO] Apache CloudStack Plugin - User Concentrated Pod Deployment Planner
[INFO] Apache CloudStack Plugin - User Dispersing Deployment Planner
[INFO] Apache CloudStack Plugin - Implicit Dedication Planner
[INFO] Apache CloudStack Plugin - Skip Heurestics Planner
[INFO] Apache CloudStack Plugin - Host Allocator Random
[INFO] Apache CloudStack Plugin - Dedicated Resources
[INFO] Apache CloudStack Plugin - Hypervisor OracleVM
[INFO] Apache CloudStack Plugin - Open vSwitch
[INFO] Apache CloudStack Plugin - Hypervisor Xen
[INFO] Apache CloudStack Plugin - Hypervisor KVM
[INFO] Apache CloudStack Plugin - RabbitMQ Event Bus
[INFO] Apache CloudStack Plugin - Hypervisor Baremetal
[INFO] Apache CloudStack Plugin - Hypervisor UCS
[INFO] Apache CloudStack Plugin - Hypervisor Hyper-V
[INFO] Apache CloudStack Plugin - Network Elastic Load Balancer
[INFO] Apache CloudStack Plugin - Network Internal Load Balancer
[INFO] Apache CloudStack Plugin - Network Juniper Contrail
[INFO] Apache CloudStack Plugin - Palo Alto
[INFO] Apache CloudStack Plugin - Network Nicira NVP
[INFO] Apache CloudStack Plugin - BigSwitch Virtual Network Segment
[INFO] Apache CloudStack Plugin - Midokura Midonet
[INFO] Apache Cloudstack Plugin - Stratosphere SSP
[INFO] Apache CloudStack Plugin - Storage Allocator Random
[INFO] Apache CloudStack Plugin - User Authenticator LDAP
[INFO] Apache CloudStack Plugin - User Authenticator MD5
[INFO] Apache CloudStack Plugin - User Authenticator Plain Text
[INFO] Apache CloudStack Plugin - User Authenticator SHA256 Salted
[INFO] Apache CloudStack Plugin - Dns Notifier Example
[INFO] Apache CloudStack Plugin - Storage Image S3
[INFO] Apache CloudStack Plugin - Storage Image Swift provider
[INFO] Apache CloudStack Plugin - Storage Image default provider
[INFO] Apache CloudStack Plugin - Storage Image sample provider
[INFO] Apache CloudStack Plugin - Storage Volume SolidFire Provider
[INFO] Apache CloudStack Plugin - Storage Volume default provider
[INFO] Apache CloudStack Plugin - Storage Volume sample provider
[INFO] Apache CloudStack Plugin - SNMP Alerts
[INFO] Apache CloudStack Plugin - Syslog Alerts
[INFO] Apache CloudStack Plugin - Network VXLAN
[INFO] Apache CloudStack Framework - Spring Life Cycle
[INFO] cloud-framework-spring-module
[INFO] Apache CloudStack Test
[INFO] Apache CloudStack Console Proxy
[INFO] Apache CloudStack Console Proxy - Server
[INFO] Apache Cl

Build failed in Jenkins: build-master #330

2014-01-02 Thread jenkins
See 

Changes:

[sheng.yang] CLOUDSTACK-5723: Add timeout for SSL handshake

--
[...truncated 68 lines...]
[INFO] Apache CloudStack Plugin - Dedicated Resources
[INFO] Apache CloudStack Plugin - Hypervisor OracleVM
[INFO] Apache CloudStack Plugin - Open vSwitch
[INFO] Apache CloudStack Plugin - Hypervisor Xen
[INFO] Apache CloudStack Plugin - Hypervisor KVM
[INFO] Apache CloudStack Plugin - RabbitMQ Event Bus
[INFO] Apache CloudStack Plugin - Hypervisor Baremetal
[INFO] Apache CloudStack Plugin - Hypervisor UCS
[INFO] Apache CloudStack Plugin - Hypervisor Hyper-V
[INFO] Apache CloudStack Plugin - Network Elastic Load Balancer
[INFO] Apache CloudStack Plugin - Network Internal Load Balancer
[INFO] Apache CloudStack Plugin - Network Juniper Contrail
[INFO] Apache CloudStack Plugin - Palo Alto
[INFO] Apache CloudStack Plugin - Network Nicira NVP
[INFO] Apache CloudStack Plugin - BigSwitch Virtual Network Segment
[INFO] Apache CloudStack Plugin - Midokura Midonet
[INFO] Apache Cloudstack Plugin - Stratosphere SSP
[INFO] Apache CloudStack Plugin - Storage Allocator Random
[INFO] Apache CloudStack Plugin - User Authenticator LDAP
[INFO] Apache CloudStack Plugin - User Authenticator MD5
[INFO] Apache CloudStack Plugin - User Authenticator Plain Text
[INFO] Apache CloudStack Plugin - User Authenticator SHA256 Salted
[INFO] Apache CloudStack Plugin - Dns Notifier Example
[INFO] Apache CloudStack Plugin - Storage Image S3
[INFO] Apache CloudStack Plugin - Storage Image Swift provider
[INFO] Apache CloudStack Plugin - Storage Image default provider
[INFO] Apache CloudStack Plugin - Storage Image sample provider
[INFO] Apache CloudStack Plugin - Storage Volume SolidFire Provider
[INFO] Apache CloudStack Plugin - Storage Volume default provider
[INFO] Apache CloudStack Plugin - Storage Volume sample provider
[INFO] Apache CloudStack Plugin - SNMP Alerts
[INFO] Apache CloudStack Plugin - Syslog Alerts
[INFO] Apache CloudStack Plugin - Network VXLAN
[INFO] Apache CloudStack Framework - Spring Life Cycle
[INFO] cloud-framework-spring-module
[INFO] Apache CloudStack Test
[INFO] Apache CloudStack Console Proxy
[INFO] Apache CloudStack Console Proxy - Server
[INFO] Apache CloudStack System VM
[INFO] Apache CloudStack Client UI
[INFO] Apache CloudStack Console Proxy - RDP Client
[INFO] Apache CloudStack Framework - QuickCloud
[INFO] 
[INFO] 
[INFO] Building Apache CloudStack 4.4.0-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ cloudstack ---
[INFO] Deleting  
(includes = [**/*], excludes = [])
[INFO] Deleting  (includes 
= [target, dist], excludes = [])
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.11:check (default) @ cloudstack ---
[INFO] Starting audit...
:491:21:
 Line contains a tab character.
:493:21:
 Line contains a tab character.
:495:21:
 Line contains a tab character.
Audit done.

[INFO] 
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache CloudStack . FAILURE [1:13.718s]
[INFO] Apache CloudStack Maven Conventions Parent  SKIPPED
[INFO] Apache CloudStack Framework - Managed Context . SKIPPED
[INFO] Apache CloudStack Utils ... SKIPPED
[INFO] Apache CloudStack Framework ... SKIPPED
[INFO] Apache CloudStack Framework - Event Notification .. SKIPPED
[INFO] Apache CloudStack Framework - Configuration ... SKIPPED
[INFO] Apache CloudStack API . SKIPPED
[INFO] Apache CloudStack Framework - REST  SKIPPED
[INFO] Apache CloudStack Framework - IPC . SKIPPED
[INFO] Apache CloudStack Cloud Engine  SKIPPED
[INFO] Apache CloudStack Cloud Engine API  SKIPPED
[INFO] Apache CloudStack Core  SKIPPED
[INFO] Apache CloudStack Agents .. SKIPPED
[INFO] Apache CloudStack Framework - Clustering .. SKIPPED
[INFO] Apache CloudStack Framework - Jobs  SKIPPED
[INFO] Apache CloudStack Cloud Engine Schema Component ... SKIPPED
[INFO] Apache CloudStack Framework - Event Notification .. SKIPPED
[INFO] Apache CloudStack Cloud Engine Internal Components API  SKIPPED
[INFO] Apache CloudStack Server ...

RE: [VOTE] 3rd round of voting for ASF 4.2.1 RC

2014-01-02 Thread Animesh Chaturvedi


-Original Message-
From: Nux! [mailto:n...@li.nux.ro] 
Sent: Wednesday, January 01, 2014 3:48 AM
To: Edison Su
Cc: dev@cloudstack.apache.org
Subject: RE: [VOTE] 3rd round of voting for ASF 4.2.1 RC

On 31.12.2013 23:47, Edison Su wrote:
>> -Original Message-
>> From: Nux! [mailto:n...@li.nux.ro]
>> Sent: Monday, December 23, 2013 6:35 AM
>> To: dev@cloudstack.apache.org
>> Subject: Re: [VOTE] 3rd round of voting for ASF 4.2.1 RC
>> 
>> On 23.12.2013 05:42, Abhinandan Prateek wrote:
>>> It gives me immense pleasure to inform that the vote to label this 
>>> ASF
>>> 4.2.1 RC as the GA release has been passed with following stats:
>> 
>> Can someone check KVM volume snapshots before declaring this GA? It's 
>> been consistently broken for me in 4.2.1-SNAPSHOT with NFS as well as 
>> GlusterFS shared mount point.
>> It was working in 4.2.0 afaicr.
> 
> In the ACS release(since 4.0), KVM snapshot only works when CLVM is 
> used as primary storage, otherwise, taking snapshot in KVM will fail, 
> as there is no formal way to backup snapshot from primary storage to 
> secondary storage.

In https://issues.apache.org/jira/browse/CLOUDSTACK-5393 some people clearly 
used this feature with NFS, you must be referring to something else. Maybe "VM 
snapshots"?


 [Animesh] Nux, as Edison mentioned KVM Snapshot are not supported in ACS. We 
use customized qemu internally which allows us to take snapshots but cannot be 
redistributed in ACS

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


RE: [VOTE] 3rd round of voting for ASF 4.2.1 RC

2014-01-02 Thread Animesh Chaturvedi


-Original Message-
From: Animesh Chaturvedi 
Sent: Thursday, January 02, 2014 2:11 PM
To: dev@cloudstack.apache.org; Edison Su
Subject: RE: [VOTE] 3rd round of voting for ASF 4.2.1 RC



-Original Message-
From: Nux! [mailto:n...@li.nux.ro]
Sent: Wednesday, January 01, 2014 3:48 AM
To: Edison Su
Cc: dev@cloudstack.apache.org
Subject: RE: [VOTE] 3rd round of voting for ASF 4.2.1 RC

On 31.12.2013 23:47, Edison Su wrote:
>> -Original Message-
>> From: Nux! [mailto:n...@li.nux.ro]
>> Sent: Monday, December 23, 2013 6:35 AM
>> To: dev@cloudstack.apache.org
>> Subject: Re: [VOTE] 3rd round of voting for ASF 4.2.1 RC
>> 
>> On 23.12.2013 05:42, Abhinandan Prateek wrote:
>>> It gives me immense pleasure to inform that the vote to label this 
>>> ASF
>>> 4.2.1 RC as the GA release has been passed with following stats:
>> 
>> Can someone check KVM volume snapshots before declaring this GA? It's 
>> been consistently broken for me in 4.2.1-SNAPSHOT with NFS as well as 
>> GlusterFS shared mount point.
>> It was working in 4.2.0 afaicr.
> 
> In the ACS release(since 4.0), KVM snapshot only works when CLVM is 
> used as primary storage, otherwise, taking snapshot in KVM will fail, 
> as there is no formal way to backup snapshot from primary storage to 
> secondary storage.

In https://issues.apache.org/jira/browse/CLOUDSTACK-5393 some people clearly 
used this feature with NFS, you must be referring to something else. Maybe "VM 
snapshots"?


 [Animesh] Nux, as Edison mentioned KVM Snapshot are not supported in ACS. We 
use customized qemu internally which allows us to take snapshots but cannot be 
redistributed in ACS
[Animesh] because of license incompatibility

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Nexenta iSCSI Storage driver

2014-01-02 Thread Victor Rodionov
Hello,

I'm working on Nexenta iSCSI storage driver for cloudstack, what you think
about this guys?

Thanks,
Victor Rodionov


Jenkins build is back to normal : build-master #331

2014-01-02 Thread jenkins
See 



Jenkins build is back to normal : build-master » Apache CloudStack #331

2014-01-02 Thread jenkins
See 




RE: [VOTE] 3rd round of voting for ASF 4.2.1 RC

2014-01-02 Thread Nux!

On 02.01.2014 22:12, Animesh Chaturvedi wrote:

 [Animesh] Nux, as Edison mentioned KVM Snapshot are not supported in
ACS. We use customized qemu internally which allows us to take
snapshots but cannot be redistributed in ACS
[Animesh] because of license incompatibility


I know[1], my issue is not with "VM snapshots", it's with "volumes 
snapshots" in the Storage section.


[1] - BTW for KVM live snapshots to work in EL6, one can simply rebuild 
the stock SRPM with "rhev" option, I think, I have to test this a bit 
more. See e.g.

http://comments.gmane.org/gmane.comp.emulators.ovirt.user/13381



--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


RE: [VOTE] 3rd round of voting for ASF 4.2.1 RC

2014-01-02 Thread Animesh Chaturvedi


-Original Message-
From: Nux! [mailto:n...@li.nux.ro] 
Sent: Thursday, January 02, 2014 2:56 PM
To: dev@cloudstack.apache.org
Subject: RE: [VOTE] 3rd round of voting for ASF 4.2.1 RC

On 02.01.2014 22:12, Animesh Chaturvedi wrote:
>  [Animesh] Nux, as Edison mentioned KVM Snapshot are not supported in 
> ACS. We use customized qemu internally which allows us to take 
> snapshots but cannot be redistributed in ACS [Animesh] because of 
> license incompatibility

I know[1], my issue is not with "VM snapshots", it's with "volumes snapshots" 
in the Storage section.

[1] - BTW for KVM live snapshots to work in EL6, one can simply rebuild the 
stock SRPM with "rhev" option, I think, I have to test this a bit more. See e.g.
http://comments.gmane.org/gmane.comp.emulators.ovirt.user/13381


[Animesh] VM Snapshot is not supported for KVM at this time. I am also 
referring to Volume Snapshot.  KVM Snapshots are not supported for a long time. 
Here is an old email from Edison calling it out [2] during 4.0 time

[2] http://markmail.org/thread/c6edaeeiulfkm6or
--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


ACS 4.2: list networks returns empty, if a VN is created without net mask

2014-01-02 Thread Vinod Nair
Hi Saksham 

The issue here is if we specify the gateway without specifying the net-mask , 
the networks table gets updated with the VN name , but in db  both gateway cidr 
are empty .  list network bails out because if this.


> list zones
count = 1
zone:
name = default
id = 9b5dd877-1fb1-4499-8fec-2baea16ce973
allocationstate = Enabled
dhcpprovider = VirtualRouter
dns1 = 10.84.5.100
dns2 =
domain = ROOT
guestcidraddress = 10.1.0.0/24
internaldns1 = 10.84.5.100
internaldns2 =
ip6dns1 =
ip6dns2 =
localstorageenabled = False
networktype = Advanced
securitygroupsenabled = False
zonetoken = 63b953cc-1dbf-3a03-8aea-ce96319173cc


mysql> select id,name,cidr,gateway  from networks;
+-+--++-+
| id  | name | cidr   | gateway |
+-+--++-+
| 200 | NULL | NULL   | NULL|
| 201 | NULL | NULL   | NULL|
| 202 | NULL | 169.254.0.0/16 | 169.254.0.1 |
| 203 | NULL | NULL   | NULL|
| 204 | VN1  | 10.1.1.0/24| 10.1.1.254  |
| 205 | VN2  | NULL   | NULL|
+-+--++-+



Thanks
Vinod
-Original Message-
From: Saksham Srivastava [mailto:saksham.srivast...@citrix.com] 
Sent: Monday, December 30, 2013 10:21 PM
To: dev@cloudstack.apache.org
Subject: RE: ACS4.2 db goes for a toss if no netmask is specified while 
creating a virtual Network

In general, if you do not specify a  gateway and netmask, the values will be 
taken from the zone level settings.
Check listZones to see your configuration.

Thanks,
Saksham

-Original Message-
From: Vinod Nair [mailto:vinodn...@juniper.net] 
Sent: Tuesday, December 31, 2013 6:29 AM
To: dev@cloudstack.apache.org
Subject: RE: ACS4.2 db goes for a toss if no netmask is specified while 
creating a virtual Network

Hi 

Root cause is that ACS is allowing to create a VN without a net mask value, 
Whereas list networks command is checking for if cidr value is present or not 
for a network while iterating all networks. If it finds a network without cidr 
it throws Exception and  returns empty

Thanks
Vinod

-Original Message-
From: Vinod Nair [mailto:vinodn...@juniper.net] 
Sent: Monday, December 30, 2013 11:26 AM
To: dev@cloudstack.apache.org
Subject: ACS4.2 db goes for a toss if no netmask is specified while creating a 
virtual Network

Hi

I have ACS4.2 , If I try creating a virtual network without specifying  a 
netmask, the database goes for a toss..  only way to recover is to delete  the 
entry from the  database manually  or set the CIDR manually as it is set as 
NULL. Is there a fix available for this issue.



# cloudmonkey
? Apache CloudStack ?? cloudmonkey 5.0.0. Type help or ? to list commands.

> list networks
: None


select * from networks where id=207;
+-+--+--+--+--+---+---+-+--+--+-+-++--+-+-+---++--+--+---++--++--++--+-+-+---++-+--+--+-++
| id  | name | uuid | display_text | 
traffic_type | broadcast_domain_type | broadcast_uri | gateway | cidr | mode | 
network_offering_id | physical_network_id | data_center_id | guru_name| 
state   | related | domain_id | account_id | dns1 | dns2 | guru_data | 
set_fields | acl_type | network_domain | reservation_id   | 
guest_type | restart_required | created | removed | 
specify_ip_ranges | vpc_id | ip6_gateway | ip6_cidr | network_cidr | 
display_network | network_acl_id |
+-+--+--+--+--+---+---+-+--+--+-+-++--+-+-+---++--+--+---++--++--++--+-+-+---++-+--+--+-++
| 207 | Vn1  | d1e6ae13-d750-4682-948c-c6545d6c9ace | vn1  | Guest  
  | Lswitch   | NULL  | NULL| NULL | Dhcp | 
 15 | 200 |  1 | ContrailGuru | Implemented |   
  207 | 1 |  2 | NULL | NULL | NULL  |  0 | Account 
 | NULL   | e7f881be-c9d8-4ff1-8fce-26d207426b45 | Isolated   | 
   0 | 2013-12-30 16:10:46 | NULL| 0 |   NULL | NULL
| NULL | NULL | 

Re: Nexenta iSCSI Storage driver

2014-01-02 Thread Marcus Sorensen
I think most of the iscsi stuff has been worked out by the solidfire
plugin, the only part to implement is communication with the Nexenta
API (if there is one) to create volumes on the storage on-demand.

On Thu, Jan 2, 2014 at 3:25 PM, Victor Rodionov  wrote:
> Hello,
>
> I'm working on Nexenta iSCSI storage driver for cloudstack, what you think
> about this guys?
>
> Thanks,
> Victor Rodionov


Re: Nexenta iSCSI Storage driver

2014-01-02 Thread Victor Rodionov
BTW, do I need to implement 2 drivers if I want support for iSCSI and NFS
protocol?


2014/1/2 Marcus Sorensen 

> I think most of the iscsi stuff has been worked out by the solidfire
> plugin, the only part to implement is communication with the Nexenta
> API (if there is one) to create volumes on the storage on-demand.
>
> On Thu, Jan 2, 2014 at 3:25 PM, Victor Rodionov 
> wrote:
> > Hello,
> >
> > I'm working on Nexenta iSCSI storage driver for cloudstack, what you
> think
> > about this guys?
> >
> > Thanks,
> > Victor Rodionov
>


RE: Regarding contribution to CloudStack project

2014-01-02 Thread Radhika Puthiyetath
Hey Abhinav,

You can start here at 
https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+101

It has the basic to start with CloudStack. You can also refer to 
http://www.slideshare.net/RadhikaNair/cloud-stack-forbeginners

Please let us know if you have any queries.

-Radhika


-Original Message-
From: Chandan Purushothama [mailto:chandan.purushoth...@citrix.com] 
Sent: Saturday, December 28, 2013 5:38 AM
To: dev@cloudstack.apache.org; CloudStack-Users; 
users-subscr...@cloudstack.apache.org; issues-subscr...@cloudstack.apache.org
Subject: RE: Regarding contribution to CloudStack project

Hello Abhinav,

There is a wiki page on CloudStack. I refer to it for information on 
CloudStack. Kindly refer to the wiki at 
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Home,

Thank you,
Chandan.

-Original Message-
From: jitendra shelar [mailto:jitendra.shelar...@gmail.com]
Sent: Thursday, December 26, 2013 10:06 AM
To: dev@cloudstack.apache.org; CloudStack-Users; 
users-subscr...@cloudstack.apache.org; issues-subscr...@cloudstack.apache.org
Subject: Re: Regarding contribution to CloudStack project

Hi Abhinav,

Nice that you have taken interest in cloudstack.
It is really excellent.

Free ebook is available at below link.
http://it-ebooks.info/book/2930/

Thanks,
Jitendra


On Thu, Dec 26, 2013 at 5:33 PM, Mike Tutkowski < mike.tutkow...@solidfire.com> 
wrote:

> There is this book on Amazon (I read it when I started working on 
> CloudStack, but - as Wido says - CloudStack development moves fast, so 
> not all details in this book are still accurate, but the high-level 
> areas generally still apply):
>
>
> http://www.amazon.com/Apache-CloudStack-Cloud-Computing-Sabharwal/dp/1
> 782160108
>
>
> On Thu, Dec 26, 2013 at 7:09 AM, Wido den Hollander 
> wrote:
>
> > Hi Abhinav!
> >
> > On 12/23/2013 05:27 PM, Abhinav Koppula wrote:
> >
> >> Hi all,
> >>
> >> I am Abhinav Koppula, a senior undergraduate student pursuing my
> Bachelors
> >> in India. I am interested in contributing towards the Apache 
> >> CloudStack project. I would be really glad if anyone could guide me 
> >> on how I can
> get
> >> started.
> >> Also, I wanted to know if there are any pre-requisites(in terms of 
> >> computer science concepts) which I need to cover before starting 
> >> off.
> >>
> >>
> > Well, we don't require anything. You can start contributing right 
> > away if you want to.
> >
> >  I am skilled in Java but however I do not have prior experience of
> working
> >> on cloud computing platforms. What books/resources should I refer 
> >> which would help me in understanding the code-base easily?
> >>
> >>
> > There are no real books on CloudStack and how to code for it. This 
> > is impossible to write at this moment since a lot changes in CloudStack.
> >
> > I recommend you start with cloning the source and you start to 
> > understand the code.
> >
> > Are there any particular things you want to work on? If so, we can 
> > point you in to the right direction to where to look.
> >
> > Wido
> >
> >  Thanks,
> >> Abhinav Koppula
> >>
> >>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkow...@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud
> *(tm)*
>


Re: Review Request 16568: CLOUDSTACK-5633: Fixed network cleanup issue

2014-01-02 Thread ASF Subversion and Git Services

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


Commit 4251a09ef7ef0df42ffc9ac3f9614c4a5a9bd115 in branch refs/heads/master 
from Gaurav Aradhye
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=4251a09 ]

CLOUDSTACK-5633: Fixed network cleanup issue


- ASF Subversion and Git Services


On Jan. 2, 2014, 10:52 a.m., Gaurav Aradhye wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/16568/
> ---
> 
> (Updated Jan. 2, 2014, 10:52 a.m.)
> 
> 
> Review request for cloudstack and Girish Shilamkar.
> 
> 
> Bugs: CLOUDSTACK-5633
> https://issues.apache.org/jira/browse/CLOUDSTACK-5633
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> Network has been added twice in the cleanup list which leads to failure.
> 
> Changes:
> 1) Remove the extra entry of network in cleanup list.
> 2) Add Domain to cleanup list (was missing) instead of service offering 
> belonging to domain (which will be automatically removed when domain is 
> removed)
> 
> 
> Diffs
> -
> 
>   test/integration/component/test_project_resources.py 1838269 
> 
> Diff: https://reviews.apache.org/r/16568/diff/
> 
> 
> Testing
> ---
> 
> Tested locally.
> 
> Log:
> test_03_network_create (test_project_resources_fixed.TestNetwork)
> Test create network in project ... ok
> test_01_service_offerings (test_project_resources_fixed.TestOfferings)
> Test service offerings in a project ... skipped 'skip'
> test_02_project_disk_offerings (test_project_resources_fixed.TestOfferings)
> Test project disk offerings ... skipped 'skip'
> test_07_associate_public_ip (test_project_resources_fixed.TestPublicIpAddress)
> Test associate public IP within the project ... skipped 'skip'
> test_08_security_group (test_project_resources_fixed.TestSecurityGroup)
> Test security groups in project ... skipped 'skip'
> test_06_create_snapshots_in_project 
> (test_project_resources_fixed.TestSnapshots)
> Test create snapshots in project ... skipped 'skip'
> test_04_public_template_use_in_project 
> (test_project_resources_fixed.TestTemplates)
> Test Templates creation in projects ... skipped 'skip'
> test_05_use_private_template_in_project 
> (test_project_resources_fixed.TestTemplates)
> Test use of private template in a project ... skipped 'skip'
> 
> --
> Ran 8 tests in 452.545s
> 
> OK (skipped=7)
> 
> 
> Thanks,
> 
> Gaurav Aradhye
> 
>



Re: Review Request 16568: CLOUDSTACK-5633: Fixed network cleanup issue

2014-01-02 Thread Girish Shilamkar

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

Ship it!


Committed to 4.3 and master.

- Girish Shilamkar


On Jan. 2, 2014, 10:52 a.m., Gaurav Aradhye wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/16568/
> ---
> 
> (Updated Jan. 2, 2014, 10:52 a.m.)
> 
> 
> Review request for cloudstack and Girish Shilamkar.
> 
> 
> Bugs: CLOUDSTACK-5633
> https://issues.apache.org/jira/browse/CLOUDSTACK-5633
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> Network has been added twice in the cleanup list which leads to failure.
> 
> Changes:
> 1) Remove the extra entry of network in cleanup list.
> 2) Add Domain to cleanup list (was missing) instead of service offering 
> belonging to domain (which will be automatically removed when domain is 
> removed)
> 
> 
> Diffs
> -
> 
>   test/integration/component/test_project_resources.py 1838269 
> 
> Diff: https://reviews.apache.org/r/16568/diff/
> 
> 
> Testing
> ---
> 
> Tested locally.
> 
> Log:
> test_03_network_create (test_project_resources_fixed.TestNetwork)
> Test create network in project ... ok
> test_01_service_offerings (test_project_resources_fixed.TestOfferings)
> Test service offerings in a project ... skipped 'skip'
> test_02_project_disk_offerings (test_project_resources_fixed.TestOfferings)
> Test project disk offerings ... skipped 'skip'
> test_07_associate_public_ip (test_project_resources_fixed.TestPublicIpAddress)
> Test associate public IP within the project ... skipped 'skip'
> test_08_security_group (test_project_resources_fixed.TestSecurityGroup)
> Test security groups in project ... skipped 'skip'
> test_06_create_snapshots_in_project 
> (test_project_resources_fixed.TestSnapshots)
> Test create snapshots in project ... skipped 'skip'
> test_04_public_template_use_in_project 
> (test_project_resources_fixed.TestTemplates)
> Test Templates creation in projects ... skipped 'skip'
> test_05_use_private_template_in_project 
> (test_project_resources_fixed.TestTemplates)
> Test use of private template in a project ... skipped 'skip'
> 
> --
> Ran 8 tests in 452.545s
> 
> OK (skipped=7)
> 
> 
> Thanks,
> 
> Gaurav Aradhye
> 
>



Re: Review Request 16568: CLOUDSTACK-5633: Fixed network cleanup issue

2014-01-02 Thread ASF Subversion and Git Services

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


Commit 8fb02e35ef86ffc6300b5cae72e70e279db49a7b in branch refs/heads/4.3 from 
Gaurav Aradhye
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=8fb02e3 ]

CLOUDSTACK-5633: Fixed network cleanup issue


- ASF Subversion and Git Services


On Jan. 2, 2014, 10:52 a.m., Gaurav Aradhye wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/16568/
> ---
> 
> (Updated Jan. 2, 2014, 10:52 a.m.)
> 
> 
> Review request for cloudstack and Girish Shilamkar.
> 
> 
> Bugs: CLOUDSTACK-5633
> https://issues.apache.org/jira/browse/CLOUDSTACK-5633
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> Network has been added twice in the cleanup list which leads to failure.
> 
> Changes:
> 1) Remove the extra entry of network in cleanup list.
> 2) Add Domain to cleanup list (was missing) instead of service offering 
> belonging to domain (which will be automatically removed when domain is 
> removed)
> 
> 
> Diffs
> -
> 
>   test/integration/component/test_project_resources.py 1838269 
> 
> Diff: https://reviews.apache.org/r/16568/diff/
> 
> 
> Testing
> ---
> 
> Tested locally.
> 
> Log:
> test_03_network_create (test_project_resources_fixed.TestNetwork)
> Test create network in project ... ok
> test_01_service_offerings (test_project_resources_fixed.TestOfferings)
> Test service offerings in a project ... skipped 'skip'
> test_02_project_disk_offerings (test_project_resources_fixed.TestOfferings)
> Test project disk offerings ... skipped 'skip'
> test_07_associate_public_ip (test_project_resources_fixed.TestPublicIpAddress)
> Test associate public IP within the project ... skipped 'skip'
> test_08_security_group (test_project_resources_fixed.TestSecurityGroup)
> Test security groups in project ... skipped 'skip'
> test_06_create_snapshots_in_project 
> (test_project_resources_fixed.TestSnapshots)
> Test create snapshots in project ... skipped 'skip'
> test_04_public_template_use_in_project 
> (test_project_resources_fixed.TestTemplates)
> Test Templates creation in projects ... skipped 'skip'
> test_05_use_private_template_in_project 
> (test_project_resources_fixed.TestTemplates)
> Test use of private template in a project ... skipped 'skip'
> 
> --
> Ran 8 tests in 452.545s
> 
> OK (skipped=7)
> 
> 
> Thanks,
> 
> Gaurav Aradhye
> 
>



Re: Review Request 16570: CLOUDSTACK-5185: Fixed test script related to cleanup in test_egress_fw_rules.py

2014-01-02 Thread ASF Subversion and Git Services

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


Commit 914bd1230ce5536bff27a6b354aa347989069381 in branch refs/heads/4.3 from 
Gaurav Aradhye
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=914bd12 ]

CLOUDSTACK-5185: Fixed test script related to cleanup in test_egress_fw_rules.py


- ASF Subversion and Git Services


On Jan. 2, 2014, 3:36 p.m., Gaurav Aradhye wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/16570/
> ---
> 
> (Updated Jan. 2, 2014, 3:36 p.m.)
> 
> 
> Review request for cloudstack and Girish Shilamkar.
> 
> 
> Bugs: CLOUDSTACK-5185
> https://issues.apache.org/jira/browse/CLOUDSTACK-5185
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> Whenever VM deployment fails, cleanup fails with attribute error 
> "virtual_machine not present".
> Also, when VM is deployed in error state, it is expunged automatically and 
> deleting that VM fails with "vm id not found".
> 
> Fixed above issues.
> 
> 
> Diffs
> -
> 
>   test/integration/component/test_egress_fw_rules.py 87bf5df 
> 
> Diff: https://reviews.apache.org/r/16570/diff/
> 
> 
> Testing
> ---
> 
> Tested locally.
> 
> 
> Thanks,
> 
> Gaurav Aradhye
> 
>



Re: Review Request 16570: CLOUDSTACK-5185: Fixed test script related to cleanup in test_egress_fw_rules.py

2014-01-02 Thread Girish Shilamkar

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

Ship it!


Committed to 4.3 and master

- Girish Shilamkar


On Jan. 2, 2014, 3:36 p.m., Gaurav Aradhye wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/16570/
> ---
> 
> (Updated Jan. 2, 2014, 3:36 p.m.)
> 
> 
> Review request for cloudstack and Girish Shilamkar.
> 
> 
> Bugs: CLOUDSTACK-5185
> https://issues.apache.org/jira/browse/CLOUDSTACK-5185
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> Whenever VM deployment fails, cleanup fails with attribute error 
> "virtual_machine not present".
> Also, when VM is deployed in error state, it is expunged automatically and 
> deleting that VM fails with "vm id not found".
> 
> Fixed above issues.
> 
> 
> Diffs
> -
> 
>   test/integration/component/test_egress_fw_rules.py 87bf5df 
> 
> Diff: https://reviews.apache.org/r/16570/diff/
> 
> 
> Testing
> ---
> 
> Tested locally.
> 
> 
> Thanks,
> 
> Gaurav Aradhye
> 
>



Re: Review Request 16570: CLOUDSTACK-5185: Fixed test script related to cleanup in test_egress_fw_rules.py

2014-01-02 Thread ASF Subversion and Git Services

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


Commit 17b696e053bff399670f36748a1784ae92bfe0c6 in branch refs/heads/master 
from Gaurav Aradhye
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=17b696e ]

CLOUDSTACK-5185: Fixed test script related to cleanup in test_egress_fw_rules.py


- ASF Subversion and Git Services


On Jan. 2, 2014, 3:36 p.m., Gaurav Aradhye wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/16570/
> ---
> 
> (Updated Jan. 2, 2014, 3:36 p.m.)
> 
> 
> Review request for cloudstack and Girish Shilamkar.
> 
> 
> Bugs: CLOUDSTACK-5185
> https://issues.apache.org/jira/browse/CLOUDSTACK-5185
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> Whenever VM deployment fails, cleanup fails with attribute error 
> "virtual_machine not present".
> Also, when VM is deployed in error state, it is expunged automatically and 
> deleting that VM fails with "vm id not found".
> 
> Fixed above issues.
> 
> 
> Diffs
> -
> 
>   test/integration/component/test_egress_fw_rules.py 87bf5df 
> 
> Diff: https://reviews.apache.org/r/16570/diff/
> 
> 
> Testing
> ---
> 
> Tested locally.
> 
> 
> Thanks,
> 
> Gaurav Aradhye
> 
>



Re: Nexenta iSCSI Storage driver

2014-01-02 Thread Mike Tutkowski
One driver for both protocols should suffice.


On Thu, Jan 2, 2014 at 5:48 PM, Victor Rodionov wrote:

> BTW, do I need to implement 2 drivers if I want support for iSCSI and NFS
> protocol?
>
>
> 2014/1/2 Marcus Sorensen 
>
> > I think most of the iscsi stuff has been worked out by the solidfire
> > plugin, the only part to implement is communication with the Nexenta
> > API (if there is one) to create volumes on the storage on-demand.
> >
> > On Thu, Jan 2, 2014 at 3:25 PM, Victor Rodionov 
> > wrote:
> > > Hello,
> > >
> > > I'm working on Nexenta iSCSI storage driver for cloudstack, what you
> > think
> > > about this guys?
> > >
> > > Thanks,
> > > Victor Rodionov
> >
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud
*™*


Re: Nexenta iSCSI Storage driver

2014-01-02 Thread Marcus Sorensen
I'm not sure what would need to be done for NFS, CloudStack already
supports it as primary and secondary storage for most hypervisors.

On Thu, Jan 2, 2014 at 10:58 PM, Mike Tutkowski
 wrote:
> One driver for both protocols should suffice.
>
>
> On Thu, Jan 2, 2014 at 5:48 PM, Victor Rodionov wrote:
>
>> BTW, do I need to implement 2 drivers if I want support for iSCSI and NFS
>> protocol?
>>
>>
>> 2014/1/2 Marcus Sorensen 
>>
>> > I think most of the iscsi stuff has been worked out by the solidfire
>> > plugin, the only part to implement is communication with the Nexenta
>> > API (if there is one) to create volumes on the storage on-demand.
>> >
>> > On Thu, Jan 2, 2014 at 3:25 PM, Victor Rodionov 
>> > wrote:
>> > > Hello,
>> > >
>> > > I'm working on Nexenta iSCSI storage driver for cloudstack, what you
>> > think
>> > > about this guys?
>> > >
>> > > Thanks,
>> > > Victor Rodionov
>> >
>>
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkow...@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud
> *™*


Re: Nexenta iSCSI Storage driver

2014-01-02 Thread Mike Tutkowski
Maybe snapshots and such...like what the NetApp guys are doing.


On Thu, Jan 2, 2014 at 11:25 PM, Marcus Sorensen wrote:

> I'm not sure what would need to be done for NFS, CloudStack already
> supports it as primary and secondary storage for most hypervisors.
>
> On Thu, Jan 2, 2014 at 10:58 PM, Mike Tutkowski
>  wrote:
> > One driver for both protocols should suffice.
> >
> >
> > On Thu, Jan 2, 2014 at 5:48 PM, Victor Rodionov  >wrote:
> >
> >> BTW, do I need to implement 2 drivers if I want support for iSCSI and
> NFS
> >> protocol?
> >>
> >>
> >> 2014/1/2 Marcus Sorensen 
> >>
> >> > I think most of the iscsi stuff has been worked out by the solidfire
> >> > plugin, the only part to implement is communication with the Nexenta
> >> > API (if there is one) to create volumes on the storage on-demand.
> >> >
> >> > On Thu, Jan 2, 2014 at 3:25 PM, Victor Rodionov  >
> >> > wrote:
> >> > > Hello,
> >> > >
> >> > > I'm working on Nexenta iSCSI storage driver for cloudstack, what you
> >> > think
> >> > > about this guys?
> >> > >
> >> > > Thanks,
> >> > > Victor Rodionov
> >> >
> >>
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkow...@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the
> > cloud
> > *™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud
*™*


RE: [VOTE] 3rd round of voting for ASF 4.2.1 RC

2014-01-02 Thread Nux!

On 02.01.2014 23:41, Animesh Chaturvedi wrote:

-Original Message-
From: Nux! [mailto:n...@li.nux.ro]
Sent: Thursday, January 02, 2014 2:56 PM
To: dev@cloudstack.apache.org
Subject: RE: [VOTE] 3rd round of voting for ASF 4.2.1 RC

On 02.01.2014 22:12, Animesh Chaturvedi wrote:

 [Animesh] Nux, as Edison mentioned KVM Snapshot are not supported in
ACS. We use customized qemu internally which allows us to take
snapshots but cannot be redistributed in ACS [Animesh] because of
license incompatibility


I know[1], my issue is not with "VM snapshots", it's with "volumes
snapshots" in the Storage section.

[1] - BTW for KVM live snapshots to work in EL6, one can simply
rebuild the stock SRPM with "rhev" option, I think, I have to test
this a bit more. See e.g.
http://comments.gmane.org/gmane.comp.emulators.ovirt.user/13381


[Animesh] VM Snapshot is not supported for KVM at this time. I am
also referring to Volume Snapshot.  KVM Snapshots are not supported
for a long time. Here is an old email from Edison calling it out [2]
during 4.0 time

[2] http://markmail.org/thread/c6edaeeiulfkm6or


Guys, this is really confusing!
First of all I could swear I had this feature working on me previously 
on a similar setup, second of all why has your colleague Sadhu said this 
is working[1]?
Also Andrei Mikhailovsky claims in this same thread the feature is 
working, though he is facing other issues (launching new VMs from volume 
backups/snapshots).


What are my options now? When is KVM volume snapshot/backup expected to 
work? This is basic functionality that customers will expect.


[1] - 
https://issues.apache.org/jira/browse/CLOUDSTACK-5393?focusedCommentId=13859469&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13859469


--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro