Re: Review Request: Fix for CLOUDSTACK-2085 VM weight on xen remain same as before vmscaleup

2013-05-06 Thread Abhinandan Prateek

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


Rename the plugin file to all lowercase and resubmit. 

- Abhinandan Prateek


On May 2, 2013, 11:30 a.m., Harikrishna Patnala wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10903/
> ---
> 
> (Updated May 2, 2013, 11:30 a.m.)
> 
> 
> Review request for cloudstack and Abhinandan Prateek.
> 
> 
> Description
> ---
> 
> CLOUDSTACK-2085: VM weight on xen remain same as before vmscaleup ;because 
> "Add-To-VCPUs-Params-Live.sh" is not getting copied on xs host 
> Fixed by updating the patch files that has
>  entries to copy scipts on xenserver. Here we added
>  Add-To-VCPUs-Params-Live.sh
> 
> Added a check on Host params whether host restricts Dynamic memory 
> control(DMC) to able to allow scale up VM.
> If DMC is not enabled then static max and min are set to SO.
> 
> 
> This addresses bug CLOUDSTACK-2085.
> 
> 
> Diffs
> -
> 
>   
> plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
>  46ae35a 
>   
> plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer56FP1Resource.java
>  96a90a6 
>   
> plugins/hypervisors/xen/test/com/cloud/hypervisor/xen/resource/CitrixResourceBaseTest.java
>  7392cb1 
>   scripts/vm/hypervisor/xenserver/xcpserver/patch b7961bb 
>   scripts/vm/hypervisor/xenserver/xenserver56/patch 36dba3d 
>   scripts/vm/hypervisor/xenserver/xenserver56fp1/patch d20e60f 
>   scripts/vm/hypervisor/xenserver/xenserver60/patch c9125f4 
> 
> Diff: https://reviews.apache.org/r/10903/diff/
> 
> 
> Testing
> ---
> 
> Tested: tried scaling up a vm and checked on xenserver for the new values. 
> 
> 
> Thanks,
> 
> Harikrishna Patnala
> 
>



Re: New Committer: Clayton Weise

2013-05-06 Thread Prasanna Santhanam
Congratulations! 

On Tue, Apr 30, 2013 at 12:53:24PM -0400, Chip Childers wrote:
> The Project Management Committee (PMC) for Apache CloudStack
> has asked Clayton Weise to become a committer and we are pleased to 
> announce that he has accepted.
> 
> Clayton is exceptionally active on the #cloudstack IRC channel, helping
> users with all sorts of questions and support topics.  He's also been
> active on the user list in a similar capacity.
> 
> Being a committer allows many contributors to contribute more
> autonomously. For developers, it makes it easier to submit changes and
> eliminates the need to have contributions reviewed via the patch
> submission process. Whether contributions are development-related or
> otherwise, it is a recognition of a contributor's participation in the
> project and commitment to the project and the Apache Way.
> 
> Please join me in congratulating Clayton!
> 
> --Chip Childers
> on behalf of the CloudStack PMC

-- 
Prasanna.,


Powered by BigRock.com



Re: [MERGE] Dedicate guest vlan ranges to account

2013-05-06 Thread Prasanna Santhanam
+1 - tests look good.

On Thu, May 02, 2013 at 12:28:09PM +, Hugo Trippaers wrote:
> Looks good to me
> 
> +1 to merge
> 
> Cheers,
> 
> Hugo
> 
> > -Original Message-
> > From: Likitha Shetty [mailto:likitha.she...@citrix.com]
> > Sent: Thursday, May 02, 2013 12:28 PM
> > To: dev@cloudstack.apache.org
> > Subject: RE: [MERGE] Dedicate guest vlan ranges to account
> > 
> > Updated branch dedicate-guest-vlan-ranges_2 with the suggested changes.
> > 
> > Thanks,
> > Likitha
> > 
> > >-Original Message-
> > >From: Likitha Shetty [mailto:likitha.she...@citrix.com]
> > >Sent: Thursday, May 02, 2013 10:58 AM
> > >To: dev@cloudstack.apache.org
> > >Subject: RE: [MERGE] Dedicate guest vlan ranges to account
> > >
> > >Thanks for taking a look Hugo.
> > >I will update the branch with the fixes.
> > >
> > >Thanks,
> > >Likitha
> > >
> > >>-Original Message-
> > >>From: Hugo Trippaers [mailto:htrippa...@schubergphilis.com]
> > >>Sent: Wednesday, May 01, 2013 5:07 PM
> > >>To: dev@cloudstack.apache.org
> > >>Subject: RE: [MERGE] Dedicate guest vlan ranges to account
> > >>
> > >>Likitha,
> > >>
> > >>Couple of remarks on the merge request:
> > >>
> > >>I think the calls you added to the system should fail with an
> > >>informative error message if the physical network does not have the
> > >>isolation type VLAN, as your code is only usable in networks with VLAN
> > >>style
> > >isolation.
> > >>
> > >>Can you double check your formatting and line endings of the new files?
> > >>For example DedicateGuestVlanRangeCmd.java seems to have windows
> > style
> > >>line endings.
> > >>
> > >> I also noticed some files with changed permissions (from 644 to 755)
> > >>(in one case without any changes in the file itself).  Can you fix
> > >>that? Permissions should be 644 for java code.
> > >>
> > >>Cheers,
> > >>
> > >>Hugo
> > >>
> > >>> -Original Message-
> > >>> From: Likitha Shetty [mailto:likitha.she...@citrix.com]
> > >>> Sent: Wednesday, May 01, 2013 12:39 PM
> > >>> To: dev@cloudstack.apache.org
> > >>> Subject: [MERGE] Dedicate guest vlan ranges to account
> > >>>
> > >>> Hi all,
> > >>>
> > >>> I would like to merge the feature Dedicate Guest VLAN range to master.
> > >>>
> > >>> Jira ticket - https://issues.apache.org/jira/browse/CLOUDSTACK-704
> > >>> FS - https://cwiki.apache.org/confluence/display/CLOUDSTACK/FS-
> > >>> +Dedicate+Guest+VLANs+per+tenant
> > >>> Branch - dedicate-guest-vlan-ranges_2 (was developed in branch
> > >>> dedicate-
> > >>> guest-vlan-ranges) Unit tests -  Unit tests for the new API's can be
> > >>> found at
> > >>> server/test/com/cloud/network/DedicateGuestVlanRangesTest.java
> > >>> Integration tests - Python tests can be found be found at
> > >>> test/integration/smoke/test_guest_vlan_range.py
> > >>> Rebased the branch with master - Commit id:
> > >>> 807ad0a39ab272a4af2de3156b0b367570acccea
> > >>> RAT - RAT build is successful and no new dependencies introduced
> > >>>
> > >>> Thanks,
> > >>> Likitha

-- 
Prasanna.,


Powered by BigRock.com



RE: [ACS41][DISCUSS] Options for us to deal with the 2.x to 4.x

2013-05-06 Thread Shashi Dahal
Hi Chip, 

You are correct. 
4.1 is the only release after 2.2.14 that has support for Advance Networking 
with Security Groups. 
Option 2  to require an upgrade to anything else will break the production 
platform, so it not an option at all. 

Cheers,
Shashi



-Original Message-
From: Chip Childers [mailto:chip.child...@sungard.com] 
Sent: Friday, 3 May, 2013 5:34 PM
To: 
Subject: Re: [ACS41][DISCUSS] Options for us to deal with the 2.x to 4.x

And actually, for option 2 I think it's worse than I said.  I'd argue that 
these issues are probably blocking upgrades to the 3.x line anyway.

On Fri, May 3, 2013 at 11:13 AM, Chip Childers  
wrote:
> upgrade problems
> Reply-To:
>
> OK - So we are being inundated with 2.x to 4.1 upgrade problems.
>
> I see two options:
>
> 1) Someone(s) step up to fully test this upgrade path, and resolve 
> issues that are known (plus those that are found while testing).  We 
> would wait to release 4.1 until this is all set.
>
> 2) We drop support for this upgrade path and require an incremental 
> upgrade to the last 3.x version before you can do 4.1.
>
> I want option 1, but it requires someone to step up and drive it to 
> closure.  I know that many of the people that might be in the best 
> place to help drive this to closure are off and working on brandy-new 
> features, but isn't (a) upgrade something we consider critical and (b) 
> getting the current feature release target more important?
>
> -chip


RE: [ACS42]Resize Volume is allowed to ROOT Admin only?

2013-05-06 Thread Sailaja Mada
Thanks Marcus & Rajesh. 

Created the UI bug to enable resize volume for non admin users @ 
https://issues.apache.org/jira/browse/CLOUDSTACK-2337 

Thanks,
Sailaja.M

-Original Message-
From: Marcus Sorensen [mailto:shadow...@gmail.com] 
Sent: Monday, May 06, 2013 11:18 AM
To: dev@cloudstack.apache.org
Cc: Sailaja Mada
Subject: Re: [ACS42]Resize Volume is allowed to ROOT Admin only?

On #1, looking through the API, I don't really see any 'update' or other calls 
besides create-type calls that provide account or and domainid parameters. 
Calls that act upon existing resources don't seem to provide these parameters.

On #2, this may be an oversight on the UI additions. The API permissions should 
be on all levels. I believe the permissions used to be handled by 
commands.properties.in, and the resize api call still has permissions there to 
match the other volume commands (attach, detach, create delete), all set to 
'15', which should mean that it shows up on every permission level:

1 = ADMIN, 2 = RESOURCE_DOMAIN_ADMIN, 4 = DOMAIN_ADMIN, 8 = USER

If that's not the case, then maybe someone can help us out.  I know some of 
this moved around in the API refactor and something may have gotten lost. This 
should be a quick fix if that's the case, but my initial hunch is that it's 
just a UI bug.


On Sun, May 5, 2013 at 11:16 PM, Sailaja Mada  wrote:
> Hi,
>
> This is regarding Resize Volume API. Is this allowed to ROOT Admin only?
>
> My observations :
>
>
> 1.   API does not have parameters as account/domain ID.  @ 
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Resize+Data+Volumes
>
> 2.   UI- Resize option for data volumes is enabled only with ROOT admin 
> login
>
> Thanks,
> Sailaja.M


RE: [ACS42]Resize Volume is allowed to ROOT Admin only?

2013-05-06 Thread Pranav Saxena
UI bug has been fixed and the actual reasoning behind this bug is stated in the 
JIRA ticket. 

Thanks,
Pranav

-Original Message-
From: Sailaja Mada [mailto:sailaja.m...@citrix.com] 
Sent: Monday, May 06, 2013 1:46 PM
To: Marcus Sorensen; dev@cloudstack.apache.org
Subject: RE: [ACS42]Resize Volume is allowed to ROOT Admin only?

Thanks Marcus & Rajesh. 

Created the UI bug to enable resize volume for non admin users @ 
https://issues.apache.org/jira/browse/CLOUDSTACK-2337 

Thanks,
Sailaja.M

-Original Message-
From: Marcus Sorensen [mailto:shadow...@gmail.com] 
Sent: Monday, May 06, 2013 11:18 AM
To: dev@cloudstack.apache.org
Cc: Sailaja Mada
Subject: Re: [ACS42]Resize Volume is allowed to ROOT Admin only?

On #1, looking through the API, I don't really see any 'update' or other calls 
besides create-type calls that provide account or and domainid parameters. 
Calls that act upon existing resources don't seem to provide these parameters.

On #2, this may be an oversight on the UI additions. The API permissions should 
be on all levels. I believe the permissions used to be handled by 
commands.properties.in, and the resize api call still has permissions there to 
match the other volume commands (attach, detach, create delete), all set to 
'15', which should mean that it shows up on every permission level:

1 = ADMIN, 2 = RESOURCE_DOMAIN_ADMIN, 4 = DOMAIN_ADMIN, 8 = USER

If that's not the case, then maybe someone can help us out.  I know some of 
this moved around in the API refactor and something may have gotten lost. This 
should be a quick fix if that's the case, but my initial hunch is that it's 
just a UI bug.


On Sun, May 5, 2013 at 11:16 PM, Sailaja Mada  wrote:
> Hi,
>
> This is regarding Resize Volume API. Is this allowed to ROOT Admin only?
>
> My observations :
>
>
> 1.   API does not have parameters as account/domain ID.  @ 
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Resize+Data+Volumes
>
> 2.   UI- Resize option for data volumes is enabled only with ROOT admin 
> login
>
> Thanks,
> Sailaja.M


Re: Review Request: fix regions related test script to conform with library changes relating to account object

2013-05-06 Thread SrikanteswaraRao Talluri

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

Ship it!


Ship It!

- SrikanteswaraRao Talluri


On May 4, 2013, 1:29 a.m., sangeetha hariharan wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10941/
> ---
> 
> (Updated May 4, 2013, 1:29 a.m.)
> 
> 
> Review request for cloudstack, Prasanna Santhanam and Girish Shilamkar.
> 
> 
> Description
> ---
> 
> Modify account.account.* to account.* 
> 
> 
> This addresses bug 2329.
> 
> 
> Diffs
> -
> 
>   test/integration/component/test_regions.py PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/10941/diff/
> 
> 
> Testing
> ---
> 
> Able to execute test_regions.py . Earlier there were syntax errors.
> 
> 
> Thanks,
> 
> sangeetha hariharan
> 
>



RE: [MERGE] Dedicate guest vlan ranges to account

2013-05-06 Thread Likitha Shetty
Thanks for reviewing.
Merged in to master - c8d843241e144288300c1912a25b201e010bb7a0.

Thank you,
Likitha

>-Original Message-
>From: Prasanna Santhanam [mailto:t...@apache.org]
>Sent: Monday, May 06, 2013 12:52 PM
>To: dev@cloudstack.apache.org
>Subject: Re: [MERGE] Dedicate guest vlan ranges to account
>
>+1 - tests look good.
>
>On Thu, May 02, 2013 at 12:28:09PM +, Hugo Trippaers wrote:
>> Looks good to me
>>
>> +1 to merge
>>
>> Cheers,
>>
>> Hugo
>>
>> > -Original Message-
>> > From: Likitha Shetty [mailto:likitha.she...@citrix.com]
>> > Sent: Thursday, May 02, 2013 12:28 PM
>> > To: dev@cloudstack.apache.org
>> > Subject: RE: [MERGE] Dedicate guest vlan ranges to account
>> >
>> > Updated branch dedicate-guest-vlan-ranges_2 with the suggested changes.
>> >
>> > Thanks,
>> > Likitha
>> >
>> > >-Original Message-
>> > >From: Likitha Shetty [mailto:likitha.she...@citrix.com]
>> > >Sent: Thursday, May 02, 2013 10:58 AM
>> > >To: dev@cloudstack.apache.org
>> > >Subject: RE: [MERGE] Dedicate guest vlan ranges to account
>> > >
>> > >Thanks for taking a look Hugo.
>> > >I will update the branch with the fixes.
>> > >
>> > >Thanks,
>> > >Likitha
>> > >
>> > >>-Original Message-
>> > >>From: Hugo Trippaers [mailto:htrippa...@schubergphilis.com]
>> > >>Sent: Wednesday, May 01, 2013 5:07 PM
>> > >>To: dev@cloudstack.apache.org
>> > >>Subject: RE: [MERGE] Dedicate guest vlan ranges to account
>> > >>
>> > >>Likitha,
>> > >>
>> > >>Couple of remarks on the merge request:
>> > >>
>> > >>I think the calls you added to the system should fail with an
>> > >>informative error message if the physical network does not have
>> > >>the isolation type VLAN, as your code is only usable in networks
>> > >>with VLAN style
>> > >isolation.
>> > >>
>> > >>Can you double check your formatting and line endings of the new files?
>> > >>For example DedicateGuestVlanRangeCmd.java seems to have windows
>> > style
>> > >>line endings.
>> > >>
>> > >> I also noticed some files with changed permissions (from 644 to
>> > >>755) (in one case without any changes in the file itself).  Can
>> > >>you fix that? Permissions should be 644 for java code.
>> > >>
>> > >>Cheers,
>> > >>
>> > >>Hugo
>> > >>
>> > >>> -Original Message-
>> > >>> From: Likitha Shetty [mailto:likitha.she...@citrix.com]
>> > >>> Sent: Wednesday, May 01, 2013 12:39 PM
>> > >>> To: dev@cloudstack.apache.org
>> > >>> Subject: [MERGE] Dedicate guest vlan ranges to account
>> > >>>
>> > >>> Hi all,
>> > >>>
>> > >>> I would like to merge the feature Dedicate Guest VLAN range to master.
>> > >>>
>> > >>> Jira ticket -
>> > >>> https://issues.apache.org/jira/browse/CLOUDSTACK-704
>> > >>> FS - https://cwiki.apache.org/confluence/display/CLOUDSTACK/FS-
>> > >>> +Dedicate+Guest+VLANs+per+tenant
>> > >>> Branch - dedicate-guest-vlan-ranges_2 (was developed in branch
>> > >>> dedicate-
>> > >>> guest-vlan-ranges) Unit tests -  Unit tests for the new API's
>> > >>> can be found at
>> > >>> server/test/com/cloud/network/DedicateGuestVlanRangesTest.java
>> > >>> Integration tests - Python tests can be found be found at
>> > >>> test/integration/smoke/test_guest_vlan_range.py
>> > >>> Rebased the branch with master - Commit id:
>> > >>> 807ad0a39ab272a4af2de3156b0b367570acccea
>> > >>> RAT - RAT build is successful and no new dependencies introduced
>> > >>>
>> > >>> Thanks,
>> > >>> Likitha
>
>--
>Prasanna.,
>
>
>Powered by BigRock.com



RE: Review Request: CLOUDSTACK-702: Tests for Multiple IP Ranges

2013-05-06 Thread Sanjeev Neelarapu
Prasanna,

This request has two patches: revision1 and revision2
In my local branch(which is up-to-date with master) I applied revision1 first 
and then revision2. 
I think you are trying to apply revision2 which has only differences from 
revision1.
Can you try applying revision1 first and 2 later?

Thanks,
Sanjeev


-Original Message-
From: Prasanna Santhanam [mailto:nore...@reviews.apache.org] On Behalf Of 
Prasanna Santhanam
Sent: Monday, May 06, 2013 12:19 PM
To: Prasanna Santhanam; Srikanteswararao Talluri
Cc: cloudstack; Sanjeev Neelarapu
Subject: Re: Review Request: CLOUDSTACK-702: Tests for Multiple IP Ranges


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


This looks fine but I'm unable to apply your patch onto master. Can you 
resubmit please? Thanks

~/workspace/cloudstack/incubator-cloudstack(branch:master) » git am -s 
patch/0001-CLOUDSTACK-702-Test-for-Multiple-IP-Ranges-R3.patch  
  tsp@cloud-2
Applying: CLOUDSTACK-702: Test for Multiple IP Ranges-R3 1.Add non-contiguous 
guest IP range in new CIDR 2.Add overlapped guest IP range in existing CIDR
fatal: corrupt patch at line 187
Patch failed at 0001 CLOUDSTACK-702: Test for Multiple IP Ranges-R3 1.Add 
non-contiguous guest IP range in new CIDR 2.Add overlapped guest IP range in 
existing CIDR When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip".
To restore the original branch and stop patching run "git am --abort".


- Prasanna Santhanam


On May 2, 2013, 12:04 p.m., sanjeev n wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10861/
> ---
> 
> (Updated May 2, 2013, 12:04 p.m.)
> 
> 
> Review request for cloudstack, Prasanna Santhanam and SrikanteswaraRao 
> Talluri.
> 
> 
> Description
> ---
> 
> CLOUDSTACK-702: Tests for Multiple IP Ranges
> 
> 1. Deleting IP Range from the existing CIDR.
> 
> 
> This addresses bug CLOUDSTACK-702.
> 
> 
> Diffs
> -
> 
>   test/integration/component/test_multiple_ip_ranges.py 489e7ca
> 
> Diff: https://reviews.apache.org/r/10861/diff/
> 
> 
> Testing
> ---
> 
> Tested with fixed IP addresses since code has not been implemented(To make 
> sure no syntax errors).
> 
> 
> Thanks,
> 
> sanjeev n
> 
>



Re: Review Request: fix bug CLOUDSTACK-2160: add a huge size guest network will cause out of memory

2013-05-06 Thread Hongtu Zang


> On May 6, 2013, 6:03 a.m., Prasanna Santhanam wrote:
> > Does this also fix CLOUDSTACK-1309?

No, I think it will not work in some issue.

If we have too much ips in a subnet(Class A or B), stack will check everyone 
and add free ips to a set. It will cause OOM when the set is too big.
So I changed it, the list has 255 members as most now.
But if we have several big wide subnet, and most ips in the subnet are already 
used, the stack will also check all ips to find out which are not used.
It won't cause OOM but it will take too long time also.


- Hongtu


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


On April 24, 2013, 4:20 a.m., Hongtu Zang wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10750/
> ---
> 
> (Updated April 24, 2013, 4:20 a.m.)
> 
> 
> Review request for cloudstack, Likitha Shetty, Prasanna Santhanam, and mice 
> xia.
> 
> 
> Description
> ---
> 
> fix bug CLOUDSTACK-2160: add a huge size guest network will cause out of 
> memory
> 
> modify NetUtils.java getAllIpsFromCidr, it will returns no more than 255 
> unused ips.
> 
> 
> This addresses bug CLOUDSTACK-2160.
> 
> 
> Diffs
> -
> 
>   server/src/com/cloud/network/NetworkModelImpl.java c5930d9 
>   server/src/com/cloud/network/NetworkServiceImpl.java ac2ac45 
>   utils/src/com/cloud/utils/net/NetUtils.java 5988dd5 
> 
> Diff: https://reviews.apache.org/r/10750/diff/
> 
> 
> Testing
> ---
> 
> create a new network with netmask 255.0.0.0 and it won't cause out of memory
> 
> 
> Thanks,
> 
> Hongtu Zang
> 
>



Re: Review Request: CLOUDSTACK-702: Tests for Multiple IP Ranges

2013-05-06 Thread Prasanna Santhanam

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

Ship it!


commit 834c11af1c40d305cf5b2c44f48d192863aa26cb
Author: sanjeevneelarapu 
Date:   Tue Apr 30 20:09:46 2013 +0530

CLOUDSTACK-702: Tests for Multiple IP Ranges

1.Deleting IP Range from the existing CIDR
2.Add non-contiguous guest IP range in new CIDR
3.Add overlapped guest IP range in existing CIDR

Signed-off-by: sanjeevneelarapu 
Signed-off-by: Prasanna Santhanam 


- Prasanna Santhanam


On May 2, 2013, 12:04 p.m., sanjeev n wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10861/
> ---
> 
> (Updated May 2, 2013, 12:04 p.m.)
> 
> 
> Review request for cloudstack, Prasanna Santhanam and SrikanteswaraRao 
> Talluri.
> 
> 
> Description
> ---
> 
> CLOUDSTACK-702: Tests for Multiple IP Ranges
> 
> 1. Deleting IP Range from the existing CIDR.
> 
> 
> This addresses bug CLOUDSTACK-702.
> 
> 
> Diffs
> -
> 
>   test/integration/component/test_multiple_ip_ranges.py 489e7ca 
> 
> Diff: https://reviews.apache.org/r/10861/diff/
> 
> 
> Testing
> ---
> 
> Tested with fixed IP addresses since code has not been implemented(To make 
> sure no syntax errors).
> 
> 
> Thanks,
> 
> sanjeev n
> 
>



Re: Review Request: CLOUDSTACK-702: Tests for Multiple IP Ranges

2013-05-06 Thread ASF Subversion and Git Services

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


Commit 70c936bb852cac885ab20ffc7276515215c08026 in branch refs/heads/master 
from Prasanna Santhanam 
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=70c936bb ]

CLOUDSTACK-702: Tests for Multiple IP Ranges

1.Deleting IP Range from the existing CIDR
2.Add non-contiguous guest IP range in new CIDR
3.Add overlapped guest IP range in existing CIDR

Signed-off-by: sanjeevneelarapu 
Signed-off-by: Prasanna Santhanam 


- ASF Subversion and Git Services


On May 2, 2013, 12:04 p.m., sanjeev n wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10861/
> ---
> 
> (Updated May 2, 2013, 12:04 p.m.)
> 
> 
> Review request for cloudstack, Prasanna Santhanam and SrikanteswaraRao 
> Talluri.
> 
> 
> Description
> ---
> 
> CLOUDSTACK-702: Tests for Multiple IP Ranges
> 
> 1. Deleting IP Range from the existing CIDR.
> 
> 
> This addresses bug CLOUDSTACK-702.
> 
> 
> Diffs
> -
> 
>   test/integration/component/test_multiple_ip_ranges.py 489e7ca 
> 
> Diff: https://reviews.apache.org/r/10861/diff/
> 
> 
> Testing
> ---
> 
> Tested with fixed IP addresses since code has not been implemented(To make 
> sure no syntax errors).
> 
> 
> Thanks,
> 
> sanjeev n
> 
>



Re: Review Request: fix test scripts to conform with library changes

2013-05-06 Thread Prasanna Santhanam

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

Ship it!


commit f0749ce62552bdd9c92b371d7c34e2c9bb5a8a28
Author: Talluri 
Date:   Fri May 3 23:11:56 2013 +0530

CLOUDSTACK-2323: fix test scripts to conform with library changes

Signed-off-by: Prasanna Santhanam 



- Prasanna Santhanam


On May 3, 2013, 12:21 p.m., SrikanteswaraRao Talluri wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10915/
> ---
> 
> (Updated May 3, 2013, 12:21 p.m.)
> 
> 
> Review request for cloudstack and Prasanna Santhanam.
> 
> 
> Description
> ---
> 
> Modified account.account.* to account.*
> Modified ipaddress.ipaddress to ipaddress in all the scripts to conform with 
> library changes in base.py 
> 
> 
> This addresses bug CLOUDSTACK-2323.
> 
> 
> Diffs
> -
> 
>   test/integration/component/test_accounts.py 459cfb3 
>   test/integration/component/test_blocker_bugs.py bfd1c13 
>   test/integration/component/test_egress_rules.py 7972aa5 
>   test/integration/component/test_eip_elb.py c1ad505 
>   test/integration/component/test_multiple_ip_ranges.py 489e7ca 
>   test/integration/component/test_network_offering.py 8b12525 
>   test/integration/component/test_project_configs.py f1469f2 
>   test/integration/component/test_project_limits.py ab13238 
>   test/integration/component/test_project_resources.py 191ceb5 
>   test/integration/component/test_project_usage.py 03c42fd 
>   test/integration/component/test_projects.py 95df5bf 
>   test/integration/component/test_resource_limits.py 641825b 
>   test/integration/component/test_routers.py 452c034 
>   test/integration/component/test_security_groups.py 7459d2a 
>   test/integration/component/test_snapshots.py 5567917 
>   test/integration/component/test_storage_motion.py b893b8b 
>   test/integration/component/test_templates.py a743bf7 
>   test/integration/component/test_usage.py 39228ba 
>   test/integration/component/test_vm_passwdenabled.py e3bcf67 
>   test/integration/component/test_volumes.py f50113b 
>   test/integration/component/test_vpn_users.py e18c538 
>   test/integration/smoke/test_iso.py 0b7d276 
>   test/integration/smoke/test_network.py df89eaa 
>   test/integration/smoke/test_nic.py ad30122 
>   test/integration/smoke/test_routers.py 7785576 
>   test/integration/smoke/test_scale_vm.py 64fe4dc 
>   test/integration/smoke/test_templates.py a648098 
>   test/integration/smoke/test_volumes.py 750f985 
> 
> Diff: https://reviews.apache.org/r/10915/diff/
> 
> 
> Testing
> ---
> 
> Tested smoke scripts and component scripts testing is in progress
> 
> 
> Thanks,
> 
> SrikanteswaraRao Talluri
> 
>



Re: Review Request: CLOUDSTACK-2188: Parsing error with Download Monitor while checking the health of downloaded templates

2013-05-06 Thread ASF Subversion and Git Services

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


Commit e56d2a401c40b4208d062c0a0ce1ec01df73dd08 in branch refs/heads/master 
from Sateesh Chodapuneedi 
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=e56d2a4 ]

CLOUDSTACK-2188 : Parsing error with Download Monitor while checking the health 
of downloaded templates

Signed-off-by: Sateesh Chodapuneedi 


- ASF Subversion and Git Services


On May 3, 2013, 11:30 a.m., Sanjay Tripathi wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10901/
> ---
> 
> (Updated May 3, 2013, 11:30 a.m.)
> 
> 
> Review request for cloudstack, Devdeep Singh and Sateesh Chodapuneedi.
> 
> 
> Description
> ---
> 
> CLOUDSTACK-2188 : Parsing error with Download Monitor while checking the 
> health of downloaded templates.
> 
> 
> This addresses bug CLOUDSTACK-2188.
> 
> 
> Diffs
> -
> 
>   server/src/com/cloud/storage/download/DownloadMonitorImpl.java 5d7a210 
> 
> Diff: https://reviews.apache.org/r/10901/diff/
> 
> 
> Testing
> ---
> 
> Tested on my local CloudStack setup.
> 
> 
> Thanks,
> 
> Sanjay Tripathi
> 
>



Re: Review Request: CLOUDSTACK-2188: Parsing error with Download Monitor while checking the health of downloaded templates

2013-05-06 Thread Sateesh Chodapuneedi

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

Ship it!


Commit e56d2a401c40b4208d062c0a0ce1ec01df73dd08 

- Sateesh Chodapuneedi


On May 3, 2013, 11:30 a.m., Sanjay Tripathi wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10901/
> ---
> 
> (Updated May 3, 2013, 11:30 a.m.)
> 
> 
> Review request for cloudstack, Devdeep Singh and Sateesh Chodapuneedi.
> 
> 
> Description
> ---
> 
> CLOUDSTACK-2188 : Parsing error with Download Monitor while checking the 
> health of downloaded templates.
> 
> 
> This addresses bug CLOUDSTACK-2188.
> 
> 
> Diffs
> -
> 
>   server/src/com/cloud/storage/download/DownloadMonitorImpl.java 5d7a210 
> 
> Diff: https://reviews.apache.org/r/10901/diff/
> 
> 
> Testing
> ---
> 
> Tested on my local CloudStack setup.
> 
> 
> Thanks,
> 
> Sanjay Tripathi
> 
>



Review Request: CLOUDSTACK-702: Tests for Multiple IP Ranges support

2013-05-06 Thread sanjeev n

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

Review request for cloudstack, Prasanna Santhanam and SrikanteswaraRao Talluri.


Description
---

Tests for Multiple IP Ranges
1. Add ip range overlapped with two exiting ip ranges in the existing cidr


This addresses bug CLOUDSTACK-702.


Diffs
-

  test/integration/component/test_multiple_ip_ranges.py 29942bd 

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


Testing
---

Yes


Thanks,

sanjeev n



Re: Review Request: Fix for CLOUDSTACK-2085 VM weight on xen remain same as before vmscaleup

2013-05-06 Thread Harikrishna Patnala

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

(Updated May 6, 2013, 10:01 a.m.)


Review request for cloudstack and Abhinandan Prateek.


Changes
---

updated patch


Description
---

CLOUDSTACK-2085: VM weight on xen remain same as before vmscaleup ;because 
"Add-To-VCPUs-Params-Live.sh" is not getting copied on xs host 
Fixed by updating the patch files that has
 entries to copy scipts on xenserver. Here we added
 Add-To-VCPUs-Params-Live.sh

Added a check on Host params whether host restricts Dynamic memory control(DMC) 
to able to allow scale up VM.
If DMC is not enabled then static max and min are set to SO.


This addresses bug CLOUDSTACK-2085.


Diffs (updated)
-

  
plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
 46ae35a 
  
plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer56FP1Resource.java
 96a90a6 
  
plugins/hypervisors/xen/test/com/cloud/hypervisor/xen/resource/CitrixResourceBaseTest.java
 7392cb1 
  scripts/vm/hypervisor/xenserver/Add-To-VCPUs-Params-Live.sh 0fadcd8 
  scripts/vm/hypervisor/xenserver/add_to_vcpus_params_live.sh PRE-CREATION 
  scripts/vm/hypervisor/xenserver/vmops 30b5300 
  scripts/vm/hypervisor/xenserver/xcpserver/patch b7961bb 
  scripts/vm/hypervisor/xenserver/xenserver56/patch 36dba3d 
  scripts/vm/hypervisor/xenserver/xenserver56fp1/patch d20e60f 
  scripts/vm/hypervisor/xenserver/xenserver60/patch c9125f4 

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


Testing
---

Tested: tried scaling up a vm and checked on xenserver for the new values. 


Thanks,

Harikrishna Patnala



Re: Review Request: CLOUDSTACK-2188: Parsing error with Download Monitor while checking the health of downloaded templates

2013-05-06 Thread ASF Subversion and Git Services

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


Commit e56d2a401c40b4208d062c0a0ce1ec01df73dd08 in branch 
refs/heads/vmware-datamodel from Sateesh Chodapuneedi 
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=e56d2a4 ]

CLOUDSTACK-2188 : Parsing error with Download Monitor while checking the health 
of downloaded templates

Signed-off-by: Sateesh Chodapuneedi 


- ASF Subversion and Git Services


On May 3, 2013, 11:30 a.m., Sanjay Tripathi wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10901/
> ---
> 
> (Updated May 3, 2013, 11:30 a.m.)
> 
> 
> Review request for cloudstack, Devdeep Singh and Sateesh Chodapuneedi.
> 
> 
> Description
> ---
> 
> CLOUDSTACK-2188 : Parsing error with Download Monitor while checking the 
> health of downloaded templates.
> 
> 
> This addresses bug CLOUDSTACK-2188.
> 
> 
> Diffs
> -
> 
>   server/src/com/cloud/storage/download/DownloadMonitorImpl.java 5d7a210 
> 
> Diff: https://reviews.apache.org/r/10901/diff/
> 
> 
> Testing
> ---
> 
> Tested on my local CloudStack setup.
> 
> 
> Thanks,
> 
> Sanjay Tripathi
> 
>



Re: [GSOC] LDAP User provisioning: Design document feedback

2013-05-06 Thread Abhinandan Prateek
I am unable to see the proposal in melange website. Am I missing something
?

-abhi

On 04/05/13 6:56 PM, "Sebastien Goasguen"  wrote:

>Ian thanks a lot for your proposal and submission.
>
>This project has been proposed by Abhinandan Prateek, so I am copying him
>in this email so he can comment.
>
>@Abhi, you need to access the google melange site and find Ian's proposal
>
>-Sebastien
>
>On May 3, 2013, at 12:40 PM, Ian Duffy  wrote:
>
>> Hi,
>> 
>> Sorry just noticed that the attachment appeared to have got stripped,
>>here
>> is the contents of the PDF. Alternatively I have uploaded it here:
>> http://ianduffy.ie/Cloudstack-LDAP.pdf
>> 
>> *Apache Cloudstack Google Summer of Code Project: LDAP user
>>provisioning*
>> 
>> 
>> Need to automate the way the LDAP users are provisioned into cloud
>>stack.
>> This will mean better integration with a LDAP server, ability to import
>> users and a way to define how the LDAP user maps to the cloudstack
>>users.
>> 
>> 
>> Abstract
>> 
>> 
>> 
>> The aim of this project is to provide an easier mechanism to provision
>> users from LDAP into cloudstack.  Currently cloudstack provides
>> authentication LDAP authentication.  In this authentication users must
>>be
>> first setup in cloudstack.  Once the user is setup in cloudstack they
>>can
>> authenticate using their ldap username and password.
>> 
>> 
>> 
>> This feature aims to extend the current functionality to make user setup
>> align with LDAP group.
>> 
>> 
>> Deliverables
>> 
>> ñ  Service that retrieves a list of ldap users from the configured group
>> 
>> ñ  Extension of cloudstack UI  ³Add User² screen to offer user list from
>> LDAP
>> 
>> ñ  Add service for saving new user with details from LDAP
>> 
>> ñ  BDD unit and acceptance automated testing
>> 
>> ñ  Document change details
>> 
>> 
>> Quantifiable results
>> 
>> 
>>  Given  A need to add new user to cloudstack and LDAP is setup
>> 
>> When
>> 
>> You open the ³Add User² screen
>> 
>> Then
>> 
>> A table of users appears for the current list of users (not already
>>created
>> on cloudstack) from the LDAP group displaying their a checkbox,
>>username,
>> name and email address. The timezone dropdown will still be available
>> beside each user.
>> Given  A need to add new user to cloudstack and LDAP is not setup
>> 
>> When
>> 
>> You open the ³Add User² screen
>> 
>> Then
>> 
>> The current add user screen and functionality is provided
>> Given  A need to add new user to cloudstack and LDAP is setup
>> 
>> When
>> 
>> You open the ³Add User² screen and mandatory information is missing
>> 
>> Then
>> 
>> These fields will be editable to enable you populate the name or email
>> address
>> 
>> 
>>  Given  A need to add new user to cloudstack, LDAP is setup but user is
>>in
>> the ldap query group
>> 
>> When
>> 
>> You open the ³Add User² screen
>> 
>> Then
>> 
>> There is a list of LDAP users displayed but your current user is
>>present in
>> the list
>> Given  A need to add new user to cloudstack, LDAP is setup but user
>>is
>> not in the query group
>> 
>> When
>> 
>> You open the ³Add User² screen
>> 
>> Then
>> 
>> There is a list of LDAP users displayed but your current user is not in
>>the
>> list
>> Given  You need to add group of new users to cloudstack
>> 
>> When
>> 
>> You open the ³Add User² screen, select the users and hit save
>> 
>> Then
>> 
>> The list of new users are saved to the database
>> 
>> 
>>  Given  You need to add group of new users to cloudstack
>> 
>> When
>> 
>> You open the ³Add User² screen, select the users and hit save
>> 
>> Then
>> 
>> The list of new users are saved to the database
>> 
>> 
>>  Given  You have created a new LDAP user on cloudstack
>> 
>> When
>> 
>> The user authenticates against cloudstack with the right credentials
>> 
>> Then
>> 
>> They are authorised in cloudstack
>>   Given  A user wants to edit an LDAP user
>> 
>> When
>> 
>> They open the Edit User screen
>> 
>> Then
>> 
>> The password fields are disabled and cannot be changed
>>The design document   *Ldap User List Service*
>> 
>> 
>> 
>> *name*:  ldapUserList
>> 
>> *responseObject*: LDAPUserResponse {username, email, name}
>> 
>> *parameter*: listType:enum {NEW, EXISTING, ALL} (Default to ALL if no
>> option provided)
>> 
>> 
>> 
>> Create a new API service call for retreiving the list of users from
>>LDAP.
>> This will call a new ConfigurationService which will retrieve the list
>>of
>> users using the configured search base and the query filter.   The list
>>may
>> be filtered in the ConfigurationService based on listType parameter.
>> 
>> 
>> 
>> *Ldap Available Service*
>> 
>> 
>> 
>> *name*:  ldapAvailable
>> 
>> *responseObject*: LDAPAvailableResponse {available:boolean}
>> 
>> 
>> 
>> Create a new API service call verifying LDAP is setup correctly
>>verifying
>> the following configuration elements are all set:
>> 
>> ñ ldap.hostname
>> 
>> ñ ldap.port
>> 
>> ñ ldap.usessl
>> 
>> ñ ldap.queryfilter
>> 
>> ñ 

Re: [MERGE] CS-2163

2013-05-06 Thread Murali Reddy
On 03/05/13 7:47 PM, "Chip Childers"  wrote:

>On Fri, May 03, 2013 at 04:11:21AM +, Murali Reddy wrote:
>>
>> 
>> I would like to see this as, meta-data that has semantic meaning to
>> CloudStack vs meta-data that's purely user meta-data that has no meaning
>> to CloudStack and its plug-ins. 'Tags' falls in second category.
>
>Aren't tags used quite a bit for placement functions?

I got confused as well, actually host tags [1] is different from AWS like
tags [2]. In this case I can see host tags as meta-data (of hosts) that
has semantic meaning (for deployment planner) to CloudStack. Adding
key/value pair meta-data to virtual entities within CS is easy way to
extend the properties of CS objects.

>
>> From e.g.
>> use-case Nitin has put in FS, I do see valid case where a
>>plug-in/feature
>> of CloudStack or external systems like to book keep information of an
>> entity. We already have a pattern of storing such meta data of entities
>> (user_vm_details, cluster_details etc) in the details table which is
>> basically a key-value pair. IMO, I see no harm if we can generalise it.
>
>I agree with generalizing it, absolutely.
>
>I think my question is:  Are we talking about CS internals only?  Or are
>we talking about a truly generalized system that can contain metadata
>for the system, the admins and the users?  When I read the functional
>spec, 
>it seems confusing as to which of these are being focused on, and if not
>all of them are we getting ourselves into another situation where the
>data authorization model is limited to some specific use case and not
>flexible enough to extend in other ways?

Agree. There could be use cases for both services that are cloud provider
managed (admin) vs self-service that need to access/store meta-data. We
need to keep design to be flexible. Also current proposal to add new API
for each of the action (add/update/remove) and corresponding entity
(AddNicDetail, UpdateVolumeDetail etc) looks too redundant. IMO, we can
just have create/delete/List/Update meta data API's with resource type and
id. We can keep API's both user and admin accessible.

>
>One other FS question:
>
>I see this: "DeployVM/UpdateVM/ - Add flag whether to display the VM to
>end user".  What's the definition of "end user" in this scenario?  Are
>account admins end users?  How about domain admins?  Is root admin the
>only one that can see these things?
>
>It seems that the implementation is limited in scope yet again to a
>boolean flag.  Similar to the question of metadata scope, why would this
>not be designed to be a more robust data authorization model?
>
>It seems like this whole feature should be approached as:
>
>1 - Define a data structure (possibly extending tags) that allows for
>flexible key/value pairs being attached to virtual entities within CS.
>
>2 - Build an ACL model that's actually able to handle different ACL
>requirements for that metadata AS WELL AS for the foundational virtual
>resources.
>
>Perhaps I'm over complicating things, but this FS was only first created
>on April 25 and I think that these concerns need to be discussed /
>debated.
>
>-chip

[1] http://s.apache.org/bG2
[2] http://s.apache.org/16q





Re: [MERGE] CS-2163

2013-05-06 Thread Prasanna Santhanam
On Mon, May 06, 2013 at 11:39:49AM +, Murali Reddy wrote:
> On 03/05/13 7:47 PM, "Chip Childers"  wrote:
> 
> >On Fri, May 03, 2013 at 04:11:21AM +, Murali Reddy wrote:
> >>
> >> 
> >> I would like to see this as, meta-data that has semantic meaning to
> >> CloudStack vs meta-data that's purely user meta-data that has no meaning
> >> to CloudStack and its plug-ins. 'Tags' falls in second category.
> >
> >Aren't tags used quite a bit for placement functions?
> 
> I got confused as well, actually host tags [1] is different from AWS like
> tags [2]. In this case I can see host tags as meta-data (of hosts) that
> has semantic meaning (for deployment planner) to CloudStack. Adding
> key/value pair meta-data to virtual entities within CS is easy way to
> extend the properties of CS objects.

Those two are unrelated features - host tags and resource tags. We
call too many things tags IMO.  The tags I meant were Resource Tags,
these you will see in the UI against every resource that takes
key,value pair meta-data. Alena developed this feature IIRC.

> 
> >
> >> From e.g.
> >> use-case Nitin has put in FS, I do see valid case where a
> >>plug-in/feature
> >> of CloudStack or external systems like to book keep information of an
> >> entity. We already have a pattern of storing such meta data of entities
> >> (user_vm_details, cluster_details etc) in the details table which is
> >> basically a key-value pair. IMO, I see no harm if we can generalise it.
> >
> >I agree with generalizing it, absolutely.
> >
> >I think my question is:  Are we talking about CS internals only?  Or are
> >we talking about a truly generalized system that can contain metadata
> >for the system, the admins and the users?  When I read the functional
> >spec, 
> >it seems confusing as to which of these are being focused on, and if not
> >all of them are we getting ourselves into another situation where the
> >data authorization model is limited to some specific use case and not
> >flexible enough to extend in other ways?
> 
> Agree. There could be use cases for both services that are cloud provider
> managed (admin) vs self-service that need to access/store meta-data. We
> need to keep design to be flexible. Also current proposal to add new API
> for each of the action (add/update/remove) and corresponding entity
> (AddNicDetail, UpdateVolumeDetail etc) looks too redundant. IMO, we can
> just have create/delete/List/Update meta data API's with resource type and
> id. We can keep API's both user and admin accessible.

Like createTags, listTags, deleteTags?

-- 
Prasanna.,


Powered by BigRock.com



Re: [MERGE] CS-2163

2013-05-06 Thread Prasanna Santhanam
On Mon, May 06, 2013 at 11:39:49AM +, Murali Reddy wrote:
> On 03/05/13 7:47 PM, "Chip Childers"  wrote:
> 
> >On Fri, May 03, 2013 at 04:11:21AM +, Murali Reddy wrote:
> >>
> >> 
> >> I would like to see this as, meta-data that has semantic meaning to
> >> CloudStack vs meta-data that's purely user meta-data that has no meaning
> >> to CloudStack and its plug-ins. 'Tags' falls in second category.
> >
> >Aren't tags used quite a bit for placement functions?
> 

To be clear - host tags cause affinity towards hosts that bear the
same tag. This tagging can be done for storage pools too.

Resource Tags are simply meta-data to which a user can attribute
meaning outside of CloudStack's knowledge and function.

-- 
Prasanna.,


Powered by BigRock.com



UserDao takes too long to init

2013-05-06 Thread Prasanna Santhanam
Anyone seeing this on latest master? The server startup hangs for a
whole minute and a half at this point

2013-05-06 17:26:15,416 INFO  [utils.component.ComponentContext] (Timer-2:null) 
Configuring com.cloud.user.dao.UserDaoImpl_EnhancerByCloudStack_2d02edd8 

2013-05-06 17:27:31,192 INFO  [utils.db.GenericDaoBase] (Timer-2:null) Cache 
created: [ name = UserDaoImpl_EnhancerByCloudStack_2d02edd8 status = 
STATUS_ALIVE eternal = false overflowToDisk = false maxElementsInMemory = 5000 
maxElementsOnDisk = 0 memoryStoreEvictionPolicy = LRU timeToLiveSeconds = 300 
timeToIdleSeconds = 300 diskPersistent = false diskExpiryThreadIntervalSeconds 
= 120 cacheEventListeners:  hitCount = 0 memoryStoreHitCount = 0 
diskStoreHitCount = 0 missCountNotFound = 0 missCountExpired = 0 ]

2013-05-06 17:27:31,192 INFO  [utils.component.ComponentContext] (Timer-2:null) 
Configuring com.cloud.user.dao.SSHKeyPairDaoImpl_EnhancerByCloudStack_43e5c002

Any ideas?

-- 
Prasanna.,


Powered by BigRock.com



Re: [MERGE] CS-2163

2013-05-06 Thread Murali Reddy
On 06/05/13 5:18 PM, "Prasanna Santhanam"  wrote:

>> 
>> Agree. There could be use cases for both services that are cloud
>>provider
>> managed (admin) vs self-service that need to access/store meta-data. We
>> need to keep design to be flexible. Also current proposal to add new API
>> for each of the action (add/update/remove) and corresponding entity
>> (AddNicDetail, UpdateVolumeDetail etc) looks too redundant. IMO, we can
>> just have create/delete/List/Update meta data API's with resource type
>>and
>> id. We can keep API's both user and admin accessible.
>
>Like createTags, listTags, deleteTags?

>From the design of API perspective, yes. But as I mentioned earlier, I
would like think resource meta-data as separate from the 'tags'.

>
>-- 
>Prasanna.,
>
>
>Powered by BigRock.com
>
>




Re: [MERGE] CS-2163

2013-05-06 Thread Abhinandan Prateek
On 06/05/13 5:20 PM, "Prasanna Santhanam"  wrote:

>On Mon, May 06, 2013 at 11:39:49AM +, Murali Reddy wrote:
>> On 03/05/13 7:47 PM, "Chip Childers"  wrote:
>> 
>> >On Fri, May 03, 2013 at 04:11:21AM +, Murali Reddy wrote:
>> >>
>> >> 
>> >> I would like to see this as, meta-data that has semantic meaning to
>> >> CloudStack vs meta-data that's purely user meta-data that has no
>>meaning
>> >> to CloudStack and its plug-ins. 'Tags' falls in second category.
>> >
>> >Aren't tags used quite a bit for placement functions?
>> 
>
>To be clear - host tags cause affinity towards hosts that bear the
>same tag. This tagging can be done for storage pools too.


The current proposal is to associate similar data to resources so that
cloudstack can interpret it. e.g. the do not display flag affects whether
the VM can be returned to the end user or not. The do not display flag
will be used to not display the shadow Vms as in a DR solution.


>
>Resource Tags are simply meta-data to which a user can attribute
>meaning outside of CloudStack's knowledge and function.
>
>-- 
>Prasanna.,
>
>
>Powered by BigRock.com
>




Re: [PROPOSAL] VMSync improvement to better co-operate with external managers for features like HA/DRS and FT

2013-05-06 Thread Murali Reddy

Great to see long-standing problem being addressed. I get how revamped
job's framework that can handle both internal and external jobs with
ability to serialize the operations on a VM will help in VmSync. But I
could not understand how a message bus that helps in coordinate activities
with in management server, will be used to solve the vmsync issues. Can
you please elobrate how you intend to use message bus.

On 04/05/13 8:06 AM, "Kelven Yang"  wrote:

>I would like to propose an improvement effort on VMSync. This is to help
>build better interaction with external virtualization manager (i.e.,
>vCenter) for features like native HA, DRS and FT.
>
>https://cwiki.apache.org/confluence/display/CLOUDSTACK/FS+-+VMSync+improve
>ment
>
>Since it is a low-level change and hard to describe it in short, only
>high-level principals are detailed in FS.
>
>Please review the first draft of FS and provide your comments and
>feedback.
>
>Kelven
>




Re: [ACS42] Unassigned fearures and improvements

2013-05-06 Thread Dharmesh Kakadia
I can give a try to 212, as new to codebase. I looks easy for starters like
me, but correct me if it requires deep understanding of code.

Thanks,
Dharmesh


On Sun, May 5, 2013 at 3:04 AM, Sebastien Goasguen  wrote:

> I picked 1525…easy enough.
>
> On May 3, 2013, at 7:28 PM, Animesh Chaturvedi <
> animesh.chaturv...@citrix.com> wrote:
>
> >
> > The following features and improvements are set to 4.2.0 for their fix
> version but are currently unassigned and open.  If someone wants to take
> them up, now's the time to assign them to yourself . I will  move unclaimed
> item to future on 5/7
> >
> > Key   Summary Reporter
> > CLOUDSTACK-67 ResizingXxYton
> > CLOUDSTACK-1147   cloud-setup-* should be removed Wido den Hollander
> > CLOUDSTACK-1781   GSoC: Create a cloud in a box using DevCloud
>  sebastien goasguen
> > CLOUDSTACK-1782   GSoC: Improve CloudStack support in apache whirr
> and incubator-provisioner to created hadoop clusters   sebastien goasguen
> > CLOUDSTACK-1942   allow choosing IP when calling associateIpAddress
>   Marcus Sorensen
> > CLOUDSTACK-1952   Provide a DSL framework for cloudstack Marvin
> Prasanna Santhanam
> > CLOUDSTACK-129introduce listIsolationMethods API  Murali
> Reddy
> > CLOUDSTACK-212Switch java package structure from com.cloud to
> org.apache  Chip Childers
> > CLOUDSTACK-1097   Increase the max length of resource tag value
> Mice Xia
> > CLOUDSTACK-1525   Add section on how to ssh in to system VMs
>  Jessica Tomechak
> > CLOUDSTACK-1580   Make the color for Notifications configurable
> Mike Tutkowski
> >
> >
> > Thanks!
> >
> > Animesh
>
>


Re: [ACS42] Unassigned fearures and improvements

2013-05-06 Thread David Nalley
On Mon, May 6, 2013 at 8:21 AM, Dharmesh Kakadia  wrote:
> I can give a try to 212, as new to codebase. I looks easy for starters like
> me, but correct me if it requires deep understanding of code.
>
> Thanks,
> Dharmesh
>

Sounds like a great place to jump in. I bumped up your permissions in
Jira, so feel free to assign this bug to yourself. Don't hesitate to
ask questions if you have them.

--David


Review Request: CLOUDSTACK-2189 volume is stuck in resizing state

2013-05-06 Thread Rajesh Battala

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

Review request for cloudstack, Devdeep Singh and edison su.


Description
---

After resize operation, the state of the volume is resizing only.
The issue is, VolumeServiceImpl is calling the wrong call back for the resize 
volume operation.
Fixed the issue by calling the right callback which will change the state 
transition from resizing to Ready.


This addresses bug CLOUDSTACK-2189.


Diffs
-

  
engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java
 b39502b 

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


Testing
---

Unittests are success.
Created a volume of 5 GB, verified the state in the db and in the kvm. 
Resized the volume to 20GB, volume attached to the kvm instance had increased 
to 20GB, resizevolume logs shows the volume is increased.
DB is now having the state change from Resizing to Ready.

The testing output is pasted on the bug comment


Thanks,

Rajesh Battala



[GSOC] Update

2013-05-06 Thread Sebastien Goasguen
Hi, a quick update on the google summer of code.

At this time the ASF is going through the process of requesting "student slots" 
to Google.
We (as ASF) will rank the proposals.

Once we know the number of slots given to the ASF we will know which ones from 
the seven submitted to the CloudStack project have been accepted.

All ASF mentors have access to the proposals and will participate in the 
ranking.

Best of luck to everyone and thank you for your proposals,

-Sebastien

2013-05 Board Report for Apache CloudStack

2013-05-06 Thread Chip Childers
The following report will be submitted to the ASF board in a few
minutes.

---

DESCRIPTION

Apache CloudStack is open source software designed to deploy and manage
large networks of virtual machines, as a highly available, highly
scalable Infrastructure as a Service (IaaS) cloud computing platform.

RELEASES
* 4.0.2 was released on April 24, 2013
** CVE-2013-2756 and CVE-2013-2758 were addressed in the 4.0.2 release
* The community is still finalizing our 4.1.0 release.

CURRENT ACTIVITY

* The 4.1.0 release has been slower in getting finalized, due to upgrade
  bugs from older (2.x) versions of the software. Issues with the
  upgrade path is actually helping to inspire some new contributors to
  engage with the project.
* New features continuing to merge into master for an eventual 4.2.0
  release, and a schedule has been set for that release.
* There has been an increase in commits, merge requests and patch
  requests that include the test automation requested by the community.
* The community is working on plans for the upcoming CloudStack
  Collaboration Conference (June).
* Seven GSOC proposals have been seen on the dev@ list, and we are
  working to help the proposers in refining their understanding of the
  projects.
* The project has created a security@ list for use in coordinating
  security vulnerabilities and is working to refine it's security report
  handling processes.

COMMUNITY

Including the following additions, CloudStack has 61 committers and 21
PMC members.

New Committers in April:
* Bruno Demion
* Go Chiba
* Clayton Weise
* {color:#22}Isaac Chiang{color}
* {color:#22}Phong Nguyen{color}

New PMC Members in April:
* Prasanna Santhanam

The Apache CloudStack project remains a high volume community:
* dev@ 609 subs / ~2600 msgs in Apr
* users@ 782 subs / ~800 msgs in Apr
* issues@ 109 subs / ~2400 msgs in Apr
* commits@ 166 subs / ~3300 msgs in Apr
* marketing@ 85 subs / ~260 msg in Apr
* users-cn@ ~300 subs / ~260 msgs in Apr

ISSUES

No issues for the board at this time.


Re: [ACS42] Unassigned fearures and improvements

2013-05-06 Thread Dharmesh Kakadia
Hi Devid,

Thanks. I am trying to figure out what is wrong with my setup. Once I am
done with it, will start to refactor for 212. Hope pretty soon. :)

Thanks,
Dharmesh


On Mon, May 6, 2013 at 6:14 PM, David Nalley  wrote:

> On Mon, May 6, 2013 at 8:21 AM, Dharmesh Kakadia 
> wrote:
> > I can give a try to 212, as new to codebase. I looks easy for starters
> like
> > me, but correct me if it requires deep understanding of code.
> >
> > Thanks,
> > Dharmesh
> >
>
> Sounds like a great place to jump in. I bumped up your permissions in
> Jira, so feel free to assign this bug to yourself. Don't hesitate to
> ask questions if you have them.
>
> --David
>


Advance Zone Setup

2013-05-06 Thread Sean Truman
I have an Juniper SRX that I am planning on using (right now I have Juniper
SSG, its being replaced with the SRX).

My management CIDR is 10.91.17.0/24 and is routable to the internet.
My Guest CIDR is 10.91.26.0/24 VLAN 600
My public is as following: 119.254.89.192/29

Right now, I don't want CS to assign the public as I am going to do port
forwarding to my guest network.

But when I define my public and guest networks in my zone, the System VM's
are taking up 2 of my available 4 IP's for my public. What is the best way
to implement until I get the SRX configured and replace my SSG?  Should I
just use part of my management CIDR for my public?

v/r
Sean


Re: [GSOC] LDAP User provisioning: Design document feedback

2013-05-06 Thread Ian Duffy
Hi Abhinandan,

It should be there. I have it marked as public so the following link should
work as well:

https://google-melange.appspot.com/gsoc/proposal/review/google/gsoc2013/imduffy15/1

Thanks!
Ian

On 6 May 2013 12:32, Abhinandan Prateek  wrote:

> I am unable to see the proposal in melange website. Am I missing something
> ?
>
> -abhi
>
> On 04/05/13 6:56 PM, "Sebastien Goasguen"  wrote:
>
> >Ian thanks a lot for your proposal and submission.
> >
> >This project has been proposed by Abhinandan Prateek, so I am copying him
> >in this email so he can comment.
> >
> >@Abhi, you need to access the google melange site and find Ian's proposal
> >
> >-Sebastien
> >
> >On May 3, 2013, at 12:40 PM, Ian Duffy  wrote:
> >
> >> Hi,
> >>
> >> Sorry just noticed that the attachment appeared to have got stripped,
> >>here
> >> is the contents of the PDF. Alternatively I have uploaded it here:
> >> http://ianduffy.ie/Cloudstack-LDAP.pdf
> >>
> >> *Apache Cloudstack Google Summer of Code Project: LDAP user
> >>provisioning*
> >>
> >>
> >> Need to automate the way the LDAP users are provisioned into cloud
> >>stack.
> >> This will mean better integration with a LDAP server, ability to import
> >> users and a way to define how the LDAP user maps to the cloudstack
> >>users.
> >>
> >>
> >> Abstract
> >>
> >>
> >>
> >> The aim of this project is to provide an easier mechanism to provision
> >> users from LDAP into cloudstack.  Currently cloudstack provides
> >> authentication LDAP authentication.  In this authentication users must
> >>be
> >> first setup in cloudstack.  Once the user is setup in cloudstack they
> >>can
> >> authenticate using their ldap username and password.
> >>
> >>
> >>
> >> This feature aims to extend the current functionality to make user setup
> >> align with LDAP group.
> >>
> >>
> >> Deliverables
> >>
> >> ñ  Service that retrieves a list of ldap users from the configured group
> >>
> >> ñ  Extension of cloudstack UI  ³Add User² screen to offer user list from
> >> LDAP
> >>
> >> ñ  Add service for saving new user with details from LDAP
> >>
> >> ñ  BDD unit and acceptance automated testing
> >>
> >> ñ  Document change details
> >>
> >>
> >> Quantifiable results
> >>
> >>
> >>  Given  A need to add new user to cloudstack and LDAP is setup
> >>
> >> When
> >>
> >> You open the ³Add User² screen
> >>
> >> Then
> >>
> >> A table of users appears for the current list of users (not already
> >>created
> >> on cloudstack) from the LDAP group displaying their a checkbox,
> >>username,
> >> name and email address. The timezone dropdown will still be available
> >> beside each user.
> >> Given  A need to add new user to cloudstack and LDAP is not setup
> >>
> >> When
> >>
> >> You open the ³Add User² screen
> >>
> >> Then
> >>
> >> The current add user screen and functionality is provided
> >> Given  A need to add new user to cloudstack and LDAP is setup
> >>
> >> When
> >>
> >> You open the ³Add User² screen and mandatory information is missing
> >>
> >> Then
> >>
> >> These fields will be editable to enable you populate the name or email
> >> address
> >>
> >>
> >>  Given  A need to add new user to cloudstack, LDAP is setup but user is
> >>in
> >> the ldap query group
> >>
> >> When
> >>
> >> You open the ³Add User² screen
> >>
> >> Then
> >>
> >> There is a list of LDAP users displayed but your current user is
> >>present in
> >> the list
> >> Given  A need to add new user to cloudstack, LDAP is setup but user
> >>is
> >> not in the query group
> >>
> >> When
> >>
> >> You open the ³Add User² screen
> >>
> >> Then
> >>
> >> There is a list of LDAP users displayed but your current user is not in
> >>the
> >> list
> >> Given  You need to add group of new users to cloudstack
> >>
> >> When
> >>
> >> You open the ³Add User² screen, select the users and hit save
> >>
> >> Then
> >>
> >> The list of new users are saved to the database
> >>
> >>
> >>  Given  You need to add group of new users to cloudstack
> >>
> >> When
> >>
> >> You open the ³Add User² screen, select the users and hit save
> >>
> >> Then
> >>
> >> The list of new users are saved to the database
> >>
> >>
> >>  Given  You have created a new LDAP user on cloudstack
> >>
> >> When
> >>
> >> The user authenticates against cloudstack with the right credentials
> >>
> >> Then
> >>
> >> They are authorised in cloudstack
> >>   Given  A user wants to edit an LDAP user
> >>
> >> When
> >>
> >> They open the Edit User screen
> >>
> >> Then
> >>
> >> The password fields are disabled and cannot be changed
> >>The design document   *Ldap User List Service*
> >>
> >>
> >>
> >> *name*:  ldapUserList
> >>
> >> *responseObject*: LDAPUserResponse {username, email, name}
> >>
> >> *parameter*: listType:enum {NEW, EXISTING, ALL} (Default to ALL if no
> >> option provided)
> >>
> >>
> >>
> >> Create a new API service call for retreiving the list of users from
> >>LDAP.
> >> This will call a new ConfigurationService which will retrieve 

Re: [GSOC] LDAP User provisioning: Design document feedback

2013-05-06 Thread Abhinandan Prateek
Hi Ian,

  The issue has been promptly resolved and now I have access to it.
Will follow up with more details on your proposal.

Thank you,
-abhi


On 06/05/13 7:28 PM, "Ian Duffy"  wrote:

>Hi Abhinandan,
>
>It should be there. I have it marked as public so the following link
>should
>work as well:
>
>https://google-melange.appspot.com/gsoc/proposal/review/google/gsoc2013/im
>duffy15/1
>
>Thanks!
>Ian
>
>On 6 May 2013 12:32, Abhinandan Prateek  wrote:
>
>> I am unable to see the proposal in melange website. Am I missing
>>something
>> ?
>>
>> -abhi
>>
>> On 04/05/13 6:56 PM, "Sebastien Goasguen"  wrote:
>>
>> >Ian thanks a lot for your proposal and submission.
>> >
>> >This project has been proposed by Abhinandan Prateek, so I am copying
>>him
>> >in this email so he can comment.
>> >
>> >@Abhi, you need to access the google melange site and find Ian's
>>proposal
>> >
>> >-Sebastien
>> >
>> >On May 3, 2013, at 12:40 PM, Ian Duffy  wrote:
>> >
>> >> Hi,
>> >>
>> >> Sorry just noticed that the attachment appeared to have got stripped,
>> >>here
>> >> is the contents of the PDF. Alternatively I have uploaded it here:
>> >> http://ianduffy.ie/Cloudstack-LDAP.pdf
>> >>
>> >> *Apache Cloudstack Google Summer of Code Project: LDAP user
>> >>provisioning*
>> >>
>> >>
>> >> Need to automate the way the LDAP users are provisioned into cloud
>> >>stack.
>> >> This will mean better integration with a LDAP server, ability to
>>import
>> >> users and a way to define how the LDAP user maps to the cloudstack
>> >>users.
>> >>
>> >>
>> >> Abstract
>> >>
>> >>
>> >>
>> >> The aim of this project is to provide an easier mechanism to
>>provision
>> >> users from LDAP into cloudstack.  Currently cloudstack provides
>> >> authentication LDAP authentication.  In this authentication users
>>must
>> >>be
>> >> first setup in cloudstack.  Once the user is setup in cloudstack they
>> >>can
>> >> authenticate using their ldap username and password.
>> >>
>> >>
>> >>
>> >> This feature aims to extend the current functionality to make user
>>setup
>> >> align with LDAP group.
>> >>
>> >>
>> >> Deliverables
>> >>
>> >> ñ  Service that retrieves a list of ldap users from the configured
>>group
>> >>
>> >> ñ  Extension of cloudstack UI  ³Add User² screen to offer user list
>>from
>> >> LDAP
>> >>
>> >> ñ  Add service for saving new user with details from LDAP
>> >>
>> >> ñ  BDD unit and acceptance automated testing
>> >>
>> >> ñ  Document change details
>> >>
>> >>
>> >> Quantifiable results
>> >>
>> >>
>> >>  Given  A need to add new user to cloudstack and LDAP is setup
>> >>
>> >> When
>> >>
>> >> You open the ³Add User² screen
>> >>
>> >> Then
>> >>
>> >> A table of users appears for the current list of users (not already
>> >>created
>> >> on cloudstack) from the LDAP group displaying their a checkbox,
>> >>username,
>> >> name and email address. The timezone dropdown will still be available
>> >> beside each user.
>> >> Given  A need to add new user to cloudstack and LDAP is not setup
>> >>
>> >> When
>> >>
>> >> You open the ³Add User² screen
>> >>
>> >> Then
>> >>
>> >> The current add user screen and functionality is provided
>> >> Given  A need to add new user to cloudstack and LDAP is setup
>> >>
>> >> When
>> >>
>> >> You open the ³Add User² screen and mandatory information is missing
>> >>
>> >> Then
>> >>
>> >> These fields will be editable to enable you populate the name or
>>email
>> >> address
>> >>
>> >>
>> >>  Given  A need to add new user to cloudstack, LDAP is setup but user
>>is
>> >>in
>> >> the ldap query group
>> >>
>> >> When
>> >>
>> >> You open the ³Add User² screen
>> >>
>> >> Then
>> >>
>> >> There is a list of LDAP users displayed but your current user is
>> >>present in
>> >> the list
>> >> Given  A need to add new user to cloudstack, LDAP is setup but
>>user
>> >>is
>> >> not in the query group
>> >>
>> >> When
>> >>
>> >> You open the ³Add User² screen
>> >>
>> >> Then
>> >>
>> >> There is a list of LDAP users displayed but your current user is not
>>in
>> >>the
>> >> list
>> >> Given  You need to add group of new users to cloudstack
>> >>
>> >> When
>> >>
>> >> You open the ³Add User² screen, select the users and hit save
>> >>
>> >> Then
>> >>
>> >> The list of new users are saved to the database
>> >>
>> >>
>> >>  Given  You need to add group of new users to cloudstack
>> >>
>> >> When
>> >>
>> >> You open the ³Add User² screen, select the users and hit save
>> >>
>> >> Then
>> >>
>> >> The list of new users are saved to the database
>> >>
>> >>
>> >>  Given  You have created a new LDAP user on cloudstack
>> >>
>> >> When
>> >>
>> >> The user authenticates against cloudstack with the right credentials
>> >>
>> >> Then
>> >>
>> >> They are authorised in cloudstack
>> >>   Given  A user wants to edit an LDAP user
>> >>
>> >> When
>> >>
>> >> They open the Edit User screen
>> >>
>> >> Then
>> >>
>> >> The password fields are disabled and cannot be changed
>> >>The design document  

Re: [GSOC] LDAP User provisioning: Design document feedback

2013-05-06 Thread Sebastien Goasguen
Ian, we figured it out.

Abhi is able to see it.

thanks


On May 6, 2013, at 9:58 AM, Ian Duffy  wrote:

> Hi Abhinandan,
> 
> It should be there. I have it marked as public so the following link should
> work as well:
> 
> https://google-melange.appspot.com/gsoc/proposal/review/google/gsoc2013/imduffy15/1
> 
> Thanks!
> Ian
> 
> On 6 May 2013 12:32, Abhinandan Prateek  wrote:
> 
>> I am unable to see the proposal in melange website. Am I missing something
>> ?
>> 
>> -abhi
>> 
>> On 04/05/13 6:56 PM, "Sebastien Goasguen"  wrote:
>> 
>>> Ian thanks a lot for your proposal and submission.
>>> 
>>> This project has been proposed by Abhinandan Prateek, so I am copying him
>>> in this email so he can comment.
>>> 
>>> @Abhi, you need to access the google melange site and find Ian's proposal
>>> 
>>> -Sebastien
>>> 
>>> On May 3, 2013, at 12:40 PM, Ian Duffy  wrote:
>>> 
 Hi,
 
 Sorry just noticed that the attachment appeared to have got stripped,
 here
 is the contents of the PDF. Alternatively I have uploaded it here:
 http://ianduffy.ie/Cloudstack-LDAP.pdf
 
 *Apache Cloudstack Google Summer of Code Project: LDAP user
 provisioning*
 
 
 Need to automate the way the LDAP users are provisioned into cloud
 stack.
 This will mean better integration with a LDAP server, ability to import
 users and a way to define how the LDAP user maps to the cloudstack
 users.
 
 
 Abstract
 
 
 
 The aim of this project is to provide an easier mechanism to provision
 users from LDAP into cloudstack.  Currently cloudstack provides
 authentication LDAP authentication.  In this authentication users must
 be
 first setup in cloudstack.  Once the user is setup in cloudstack they
 can
 authenticate using their ldap username and password.
 
 
 
 This feature aims to extend the current functionality to make user setup
 align with LDAP group.
 
 
 Deliverables
 
 ñ  Service that retrieves a list of ldap users from the configured group
 
 ñ  Extension of cloudstack UI  ³Add User² screen to offer user list from
 LDAP
 
 ñ  Add service for saving new user with details from LDAP
 
 ñ  BDD unit and acceptance automated testing
 
 ñ  Document change details
 
 
 Quantifiable results
 
 
 Given  A need to add new user to cloudstack and LDAP is setup
 
 When
 
 You open the ³Add User² screen
 
 Then
 
 A table of users appears for the current list of users (not already
 created
 on cloudstack) from the LDAP group displaying their a checkbox,
 username,
 name and email address. The timezone dropdown will still be available
 beside each user.
Given  A need to add new user to cloudstack and LDAP is not setup
 
 When
 
 You open the ³Add User² screen
 
 Then
 
 The current add user screen and functionality is provided
Given  A need to add new user to cloudstack and LDAP is setup
 
 When
 
 You open the ³Add User² screen and mandatory information is missing
 
 Then
 
 These fields will be editable to enable you populate the name or email
 address
 
 
 Given  A need to add new user to cloudstack, LDAP is setup but user is
 in
 the ldap query group
 
 When
 
 You open the ³Add User² screen
 
 Then
 
 There is a list of LDAP users displayed but your current user is
 present in
 the list
Given  A need to add new user to cloudstack, LDAP is setup but user
 is
 not in the query group
 
 When
 
 You open the ³Add User² screen
 
 Then
 
 There is a list of LDAP users displayed but your current user is not in
 the
 list
Given  You need to add group of new users to cloudstack
 
 When
 
 You open the ³Add User² screen, select the users and hit save
 
 Then
 
 The list of new users are saved to the database
 
 
 Given  You need to add group of new users to cloudstack
 
 When
 
 You open the ³Add User² screen, select the users and hit save
 
 Then
 
 The list of new users are saved to the database
 
 
 Given  You have created a new LDAP user on cloudstack
 
 When
 
 The user authenticates against cloudstack with the right credentials
 
 Then
 
 They are authorised in cloudstack
  Given  A user wants to edit an LDAP user
 
 When
 
 They open the Edit User screen
 
 Then
 
 The password fields are disabled and cannot be changed
   The design document   *Ldap User List Service*
 
 
 
 *name*:  ldapUserList
 
 *responseObject*: LDAPUserResponse {username, email, name}
 
 *parameter*: listType:enum {NEW, E

master kvm setup

2013-05-06 Thread Abhinandan Prateek
Hi

I am facing some issue with kvm setup. My systemvms are not comming up.

The script patchviasocket.pl failed to connect to the kvm guest agent and so 
the cloud_early_config fails to configure the network interfaces of the ssvm.
I was using the  ssvm template from jenkins.

-abhi


Re: Release Verification Tool - if you're interested

2013-05-06 Thread Chip Childers
On Sat, May 04, 2013 at 01:33:38PM +0100, Noah Slater wrote:
> Wow. This is a great idea!
> 
> On CouchDB we have couchdb-admin.git and we keep stuff like this in that
> repos. Might we want to consider something similar? (We also use it to keep
> email templates in, etc.)
> 
> https://git-wip-us.apache.org/repos/asf?p=couchdb-admin.git

Actually, perhaps we do.  We currently have some "release tooling"
sitting in tools/build within the main repo.  Time to break that out?

The tool I published on github, although the example is for CloudStack,
was meant to be a thing that different projects can use.  I realize that
it's not much more than what a shell script can do, but I found it
useful to get a clear picture of what steps work vs fail.

> 
> On 23 April 2013 14:36, Chip Childers  wrote:
> 
> > Hi all,
> >
> > Going through the process of validating the RC's (and several validation
> > rounds before announcing an RC), I got tired of manually following the
> > steps in our release testing process [1].
> >
> > Some of the steps do require that you manually work with the release,
> > however many of the up-front steps are easily scripted.  I put together
> > a generic framework for defining and running a set of release
> > verification instructions yesterday, including the definition of the
> > CloudStack release verification steps as the example configuration [2].
> >
> > Feel free to use it if you think it would help you (especially the RM's
> > that may have to re-spin an RC over and over to ensure that it's right).
> >
> > -chip
> >
> > [1]
> >
> > https://cwiki.apache.org/confluence/display/CLOUDSTACK/Release+test+procedure
> >
> > [2] https://github.com/chipchilders/cloudstack-release-verification-tool
> >
> 
> 
> 
> -- 
> NS


Any reason HA can not be used with baremetal?

2013-05-06 Thread Jessica Tomechak
Does it matter whether Offer HA is checked when creating a compute offering
for use with a bare metal deployment? My understanding of HA is that it
will restart a VM on another host in the same zone if the VM crashes. In
the case of bare metal, instead of a VM, we have a baremetal instance, one
per machine. Would checking Offer HA mean that if a bare metal host
crashes, another baremetal instance would be created on a different host in
the zone? Has anyone tried / tested this scenario?

Jessica T.


RE: [GSOC] LDAP User provisioning: Design document feedback

2013-05-06 Thread Musayev, Ilya
Ian,

If you are implementing this logic, it would be awesome.

Keep in mind besides LDAP, these is also somewhat LDAP compatible Miscrosoft 
AD, please test against it as well.

Whenever you have a code, you need to test, I can gladly help.

Regards
ilya

> -Original Message-
> From: Ian Duffy [mailto:i...@ianduffy.ie]
> Sent: Friday, May 03, 2013 12:41 PM
> To: dev@cloudstack.apache.org
> Subject: Re: [GSOC] LDAP User provisioning: Design document feedback
> 
> Hi,
> 
> Sorry just noticed that the attachment appeared to have got stripped, here is
> the contents of the PDF. Alternatively I have uploaded it here:
> http://ianduffy.ie/Cloudstack-LDAP.pdf
> 
> *Apache Cloudstack Google Summer of Code Project: LDAP user
> provisioning*
> 
> 
> Need to automate the way the LDAP users are provisioned into cloud stack.
> This will mean better integration with a LDAP server, ability to import users
> and a way to define how the LDAP user maps to the cloudstack users.
> 
> 
> Abstract
> 
> 
> 
> The aim of this project is to provide an easier mechanism to provision users
> from LDAP into cloudstack.  Currently cloudstack provides authentication
> LDAP authentication.  In this authentication users must be first setup in
> cloudstack.  Once the user is setup in cloudstack they can authenticate using
> their ldap username and password.
> 
> 
> 
> This feature aims to extend the current functionality to make user setup align
> with LDAP group.
> 
> 
> Deliverables
> 
> ñ  Service that retrieves a list of ldap users from the configured group
> 
> ñ  Extension of cloudstack UI  “Add User” screen to offer user list from LDAP
> 
> ñ  Add service for saving new user with details from LDAP
> 
> ñ  BDD unit and acceptance automated testing
> 
> ñ  Document change details
> 
> 
> Quantifiable results
> 
> 
>   Given  A need to add new user to cloudstack and LDAP is setup
> 
> When
> 
> You open the “Add User” screen
> 
> Then
> 
> A table of users appears for the current list of users (not already created on
> cloudstack) from the LDAP group displaying their a checkbox, username,
> name and email address. The timezone dropdown will still be available
> beside each user.
>  Given  A need to add new user to cloudstack and LDAP is not setup
> 
> When
> 
> You open the “Add User” screen
> 
> Then
> 
> The current add user screen and functionality is provided
>  Given  A need to add new user to cloudstack and LDAP is setup
> 
> When
> 
> You open the “Add User” screen and mandatory information is missing
> 
> Then
> 
> These fields will be editable to enable you populate the name or email
> address
> 
> 
>   Given  A need to add new user to cloudstack, LDAP is setup but user is in 
> the
> ldap query group
> 
> When
> 
> You open the “Add User” screen
> 
> Then
> 
> There is a list of LDAP users displayed but your current user is present in 
> the
> list
>  Given  A need to add new user to cloudstack, LDAP is setup but user is 
> not
> in the query group
> 
> When
> 
> You open the “Add User” screen
> 
> Then
> 
> There is a list of LDAP users displayed but your current user is not in the 
> list
>  Given  You need to add group of new users to cloudstack
> 
> When
> 
> You open the “Add User” screen, select the users and hit save
> 
> Then
> 
> The list of new users are saved to the database
> 
> 
>   Given  You need to add group of new users to cloudstack
> 
> When
> 
> You open the “Add User” screen, select the users and hit save
> 
> Then
> 
> The list of new users are saved to the database
> 
> 
>   Given  You have created a new LDAP user on cloudstack
> 
> When
> 
> The user authenticates against cloudstack with the right credentials
> 
> Then
> 
> They are authorised in cloudstack
>Given  A user wants to edit an LDAP user
> 
> When
> 
> They open the Edit User screen
> 
> Then
> 
> The password fields are disabled and cannot be changed
> The design document   *Ldap User List Service*
> 
> 
> 
> *name*:  ldapUserList
> 
> *responseObject*: LDAPUserResponse {username, email, name}
> 
> *parameter*: listType:enum {NEW, EXISTING, ALL} (Default to ALL if no
> option provided)
> 
> 
> 
> Create a new API service call for retreiving the list of users from LDAP.
> This will call a new ConfigurationService which will retrieve the list of
> users using the configured search base and the query filter.   The list may
> be filtered in the ConfigurationService based on listType parameter.
> 
> 
> 
> *Ldap Available Service*
> 
> 
> 
> *name*:  ldapAvailable
> 
> *responseObject*: LDAPAvailableResponse {available:boolean}
> 
> 
> 
> Create a new API service call verifying LDAP is setup correctly verifying the
> following configuration elements are all set:
> 
> ñ ldap.hostname
> 
> ñ ldap.port
> 
> ñ ldap.usessl
> 
> ñ ldap.queryfilter
> 
> ñ ldap.searchbase
> 
> ñ ldap.dn
> 
> ñ ldap.password
> 
> 
> 
> The verification that all of these are set will return an available boolean 
> true.
> If required th

Re: master kvm setup

2013-05-06 Thread Marcus Sorensen
I've so far only seen the socket fail if 1) you have apparmor enabled
(which the current docs say to disable both this and selinux), or 2) you're
using an old system vm, in which case the socket works but the system vm
can't read it via cloud_early_config.

If you can track down why it's failing to connect to the agent socket that
would be helpful, is it a permissions issue or something? Can you connect
to the socket manually, does it exist?


On Mon, May 6, 2013 at 8:09 AM, Abhinandan Prateek <
abhinandan.prat...@citrix.com> wrote:

> Hi
>
> I am facing some issue with kvm setup. My systemvms are not comming up.
>
> The script patchviasocket.pl failed to connect to the kvm guest agent and
> so the cloud_early_config fails to configure the network interfaces of the
> ssvm.
> I was using the  ssvm template from jenkins.
>
> -abhi
>


Re: Review Request: CLOUDSTACK-869-nTier-Apps-2.0_Support-NetScalar-as-external-LB-provider

2013-05-06 Thread Murali Reddy

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



plugins/network-elements/netscaler/src/com/cloud/network/element/NetscalerElement.java


implement and shutdown need to be implemented? how would VLAN be configured 
on NetScaler with out implementing network?



plugins/network-elements/netscaler/src/com/cloud/network/element/NetscalerElement.java


remove the TODO's, if there is no  need for method implementation and just 
return true



server/src/com/cloud/network/NetworkServiceImpl.java


same should hold for other external devices as well. so please put generic 
comment (with out netscaler)


- Murali Reddy


On April 30, 2013, 3:28 a.m., Rajesh Battala wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10858/
> ---
> 
> (Updated April 30, 2013, 3:28 a.m.)
> 
> 
> Review request for cloudstack, Kishan Kavala, Murali Reddy, Alena 
> Prokharchyk, Vijay Venkatachalam, and Ram Ganesh.
> 
> 
> Description
> ---
> 
> This feature will introduce Netscaler as external LB provider in VPC.
> As of now only 1 tier is support for external LB.
> A new VPC offering will be created "Default VPC Offering with NS" with all 
> the services provided by VPCVR and LB service with NetScaler.
> Existing NetscalerElement is used and implements VpcProvider.
> In VpcManager, Netscaler is added as one of the supported providers.
> Netscaler will be dedicated to the vpc.
> 
> 
> Diffs
> -
> 
>   api/src/com/cloud/network/vpc/VpcOffering.java 3961d0a 
>   
> plugins/network-elements/netscaler/src/com/cloud/network/element/NetscalerElement.java
>  2bbdb04 
>   server/src/com/cloud/network/NetworkServiceImpl.java 2dcb47d 
>   server/src/com/cloud/network/guru/ExternalGuestNetworkGuru.java b1606db 
>   server/src/com/cloud/network/vpc/VpcManagerImpl.java 224a680 
>   server/test/com/cloud/vpc/ChildTestConfiguration.java PRE-CREATION 
>   server/test/com/cloud/vpc/VpcManagerTest.java PRE-CREATION 
>   
> server/test/org/apache/cloudstack/networkoffering/CreateNetworkOfferingTest.java
>  cbb6c00 
>   server/test/resources/VpcContext.xml PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/10858/diff/
> 
> 
> Testing
> ---
> 
> Manual Testing:
> ==
> 1. Creation of Vpc with the default offering with NS is created successfully. 
> ( Enable Netscaler provider in network service providers)
> 2. Deletion of Vpc with the default offering with NS is deleted successfully.
> 3. Creation of new Vpc Network Offering with Netscaler as LB provider with 
> dedicated mode is created successfully.
> 4. Creation of new Vpc Network Offering with Netscaler as LB provider with 
> shared mode should throw exception.
> 5. Creation of tier (webtier) with the created Vpcnetscaler offering is 
> created successfully.
> 6. Verified Only one tier with netscaler as LB provider can be created. 
> 7. Verified deploying Instance in the tier is successful.
> 8. Verified a new nic got created with gateway ip from the tier cidr.
> 9. Verified deployed instance should get the ip from the specified tier cidr 
> range.
> 10. Acquire public ip in the vpc.
> 11. Verified creation on LB rule, is selecting only free dedicated Netscaler 
> device and necessary configuration is created and LB rule is created on NS
> 12. Deletion of LB rule is successful.
> 13. Modification of LB rule is successful
> 14. Creation of LB Health Check of TCP type is successful.
> 15. Deletion of LB Health Check of TCP type is successful.
> 16. Creation of LB Health Check of HTTP type is successful.
> 17. Deletion of LB Health Check of HTTP type is successful.
> 18. IpAssoc command is executed successful on Netscaler.
> 19. Deletion of tier will delete the tier and config on netscaler is cleared
> 20. Deletion of tier will mark the netscaler to be in free mode.
> 
> 
> Unit Test:
> ===
> Created VpcManger tests and added few tests to createNetworkOfferingTest
> 
> 
> Thanks,
> 
> Rajesh Battala
> 
>



Re: Any reason HA can not be used with baremetal?

2013-05-06 Thread Ahmad Emneina
I dont think there is a meaningful way to determine the host state in a
bare metal instance without writing a guest specific client/agent. IPMI
when queried will just let you know the chassis' power state, which isnt
very useful. To my knowledge HA and bare metal dont work together at the
moment.


On Mon, May 6, 2013 at 7:38 AM, Jessica Tomechak  wrote:

> Does it matter whether Offer HA is checked when creating a compute offering
> for use with a bare metal deployment? My understanding of HA is that it
> will restart a VM on another host in the same zone if the VM crashes. In
> the case of bare metal, instead of a VM, we have a baremetal instance, one
> per machine. Would checking Offer HA mean that if a bare metal host
> crashes, another baremetal instance would be created on a different host in
> the zone? Has anyone tried / tested this scenario?
>
> Jessica T.
>


Our community by the numbers

2013-05-06 Thread Sebastien Goasguen
Hi,

Some of you maybe interested by these numbers on our community:

http://buildacloud.org/blog/258-update-on-apache-cloudstack-community-analysis.html

Feel free to tweet it as well and if you have suggestions on how to make this 
report more valuable, let me know.

-Sebastien

Re: Review Request: CLOUDSTACK-1820 - Automation: Need to add automation for AWS Style region feature

2013-05-06 Thread Prasanna Santhanam

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


I will get back to you soon with a review.

- Prasanna Santhanam


On May 4, 2013, 4:13 a.m., sangeetha hariharan wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10936/
> ---
> 
> (Updated May 4, 2013, 4:13 a.m.)
> 
> 
> Review request for cloudstack, Prasanna Santhanam and Girish Shilamkar.
> 
> 
> Description
> ---
> 
> Added Test cases to test APIs relating to Regions feature.
> 
> 
> This addresses bug CLOUDSTACK-1820.
> 
> 
> Diffs
> -
> 
>   test/integration/component/test_regions.py PRE-CREATION 
>   tools/marvin/marvin/integration/lib/base.py bebf2b5 
> 
> Diff: https://reviews.apache.org/r/10936/diff/
> 
> 
> Testing
> ---
> 
> Executed the scripts  against a CloudStack set up and made sure they executed 
> successfully.
> 
> 
> Thanks,
> 
> sangeetha hariharan
> 
>



[DISCUSS] We have a videographer. What videos do we want to make?

2013-05-06 Thread Jessica Tomechak
We are lucky to have Gregg Witkin, who created video for CloudStack last
summer [1][2], available to once again work with the CloudStack community
to create more video content this summer.

Gregg will be available June 17 - August 9. Before the 17th, it would be
great for us to discuss and decide what we'd like him to work on.

There are some ideas at the wiki link below [3]. Please feel free to add
more, or comment on which you think would be most useful. Of course,
there's also a tracking bug [4].

btw, there is a lot about Gregg on the internet. Just do a search on his
name and you'll uncover plenty of interesting info. He's a high school
media teacher, robotics coach, lead educator for Adobe Youth Voices, and
more.

[1] http://www.youtube.com/watch?v=oJ4b8HFmFTc
[2] http://www.youtube.com/watch?v=KATuxn5pimY
[3] https://cwiki.apache.org/confluence/display/CLOUDSTACK/Video+Plan
[4] https://issues.apache.org/jira/browse/CLOUDSTACK-1922

Jessica T.


System VM's hanging

2013-05-06 Thread Sean Truman
All,

My system VM's are hanging at GRUB loading stage2.. using KVM as hypervisor
any idea why this is happening?

v/r
Sean


Re: [DISCUSS] We have a videographer. What videos do we want to make?

2013-05-06 Thread Chip Childers
On Mon, May 06, 2013 at 09:13:31AM -0700, Jessica Tomechak wrote:
> We are lucky to have Gregg Witkin, who created video for CloudStack last
> summer [1][2], available to once again work with the CloudStack community
> to create more video content this summer.
> 
> Gregg will be available June 17 - August 9. Before the 17th, it would be
> great for us to discuss and decide what we'd like him to work on.
> 
> There are some ideas at the wiki link below [3]. Please feel free to add
> more, or comment on which you think would be most useful. Of course,
> there's also a tracking bug [4].
> 
> btw, there is a lot about Gregg on the internet. Just do a search on his
> name and you'll uncover plenty of interesting info. He's a high school
> media teacher, robotics coach, lead educator for Adobe Youth Voices, and
> more.
> 
> [1] http://www.youtube.com/watch?v=oJ4b8HFmFTc
> [2] http://www.youtube.com/watch?v=KATuxn5pimY
> [3] https://cwiki.apache.org/confluence/display/CLOUDSTACK/Video+Plan
> [4] https://issues.apache.org/jira/browse/CLOUDSTACK-1922
> 
> Jessica T.

This may be better discussed on the market...@cloudstack.apache.org
list.  Can you re-send there?

Of course discussions here are good too...


Re: Any reason HA can not be used with baremetal?

2013-05-06 Thread David Nalley
On Mon, May 6, 2013 at 10:38 AM, Jessica Tomechak
 wrote:
> Does it matter whether Offer HA is checked when creating a compute offering
> for use with a bare metal deployment? My understanding of HA is that it
> will restart a VM on another host in the same zone if the VM crashes. In
> the case of bare metal, instead of a VM, we have a baremetal instance, one
> per machine. Would checking Offer HA mean that if a bare metal host
> crashes, another baremetal instance would be created on a different host in
> the zone? Has anyone tried / tested this scenario?
>
> Jessica T.


No assumption of shared storage - as a matter of fact, I think the
assumption is the opposite.

--David


RE: System VM's hanging

2013-05-06 Thread Musayev, Ilya
Sean,

Specifically what versions of SVM are you running? Do you see a splash screen 
and when you press enter or wait for time out - for this issue to occur?

0) if splash screen is seen and you can make changes to boot linux, remove the 
"quiet" flag from initrd line to see if you can get more meaningful errors

1) I would suggest to change the storage controllers to see if it makes any 
difference.

2) I've seen in past " GRUB loading stage2" error would occur when grub.conf 
reference initrd or kernel version that no longer exists (filename mismatch). 
Go into the edit mode, remove the version in front of initrd and vmlinuz and 
try to use auto-completion (TAB-TAB) to complete the filename and boot again.

3) If nothing helps,  I would have tried to boot it into a single user mode 
with linux rescue disk and reinstall grub - just to confirm if its grub related 
or something else.

Let me know how it goes,

Regards
ilya



> -Original Message-
> From: Sean Truman [mailto:stru...@gmail.com]
> Sent: Monday, May 06, 2013 12:16 PM
> To: dev@cloudstack.apache.org
> Subject: System VM's hanging
> 
> All,
> 
> My system VM's are hanging at GRUB loading stage2.. using KVM as
> hypervisor any idea why this is happening?
> 
> v/r
> Sean



[ACS41] Outstanding issues to resolve

2013-05-06 Thread Chip Childers
Once again, here's the list of issues for 4.1.0 that need to be
addressed before I try to re-spin an RC:

CLOUDSTACK-528  Failed to create secondary storage  Unassigned  Tamas Monos
CLOUDSTACK-2309 Upgrade from 2.2.14 to 4.1.0 : network static routes deleted on 
SSVMUnassigned  Nicolas Lamirault
CLOUDSTACK-2319 2.2.14 to 4.1.0 upgrade: unable to add egress rules Wei Zhou
Shashi Dahal
CLOUDSTACK-1907 Can't create system VM on XCP1.6 hypervisor Unassigned  Nikita 
Gubenko
CLOUDSTACK-2218 [web.context.ContextLoader] (main:null) Context initialization 
failed   Unassigned  terryye
CLOUDSTACK-2318 upgrade from 2.2.14 -> 4.1.0 : unable to start an existing 
running vm after stopping it manuallyUnassigned  Shashi Dahal
CLOUDSTACK-2322 2.2.14 to 4.1.0 upgrade: unable to add a new VM Wei Zhou
Shashi Dahal

As of right now, only 2322 and 2319 are assigned (Thanks for jumping on them 
Wei!).

Assistance getting through this list, as well as any other upgrade problems 
that 
are found, would be very much appreciated.

-chip


Re: [DISCUSS] We have a videographer. What videos do we want to make?

2013-05-06 Thread Jessica Tomechak
On Mon, May 6, 2013 at 9:17 AM, Chip Childers wrote:

> On Mon, May 06, 2013 at 09:13:31AM -0700, Jessica Tomechak wrote:
> > We are lucky to have Gregg Witkin, who created video for CloudStack last
> > summer [1][2], available to once again work with the CloudStack community
> > to create more video content this summer.
> >
> > Gregg will be available June 17 - August 9. Before the 17th, it would be
> > great for us to discuss and decide what we'd like him to work on.
> >
> > There are some ideas at the wiki link below [3]. Please feel free to add
> > more, or comment on which you think would be most useful. Of course,
> > there's also a tracking bug [4].
> >
> > btw, there is a lot about Gregg on the internet. Just do a search on his
> > name and you'll uncover plenty of interesting info. He's a high school
> > media teacher, robotics coach, lead educator for Adobe Youth Voices, and
> > more.
> >
> > [1] http://www.youtube.com/watch?v=oJ4b8HFmFTc
> > [2] http://www.youtube.com/watch?v=KATuxn5pimY
> > [3] https://cwiki.apache.org/confluence/display/CLOUDSTACK/Video+Plan
> > [4] https://issues.apache.org/jira/browse/CLOUDSTACK-1922
> >
> > Jessica T.
>
> This may be better discussed on the market...@cloudstack.apache.org
> list.  Can you re-send there?
>
> Of course discussions here are good too...
>

+cc more lists! Thanks for the reminder, Chip.


Review Request: Cloudstack-702 Multiple Ip ranges in different subnets

2013-05-06 Thread bharat kumar

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

Review request for cloudstack, Abhinandan Prateek and Koushik Das.


Description
---

Cloudstack-702. Multiple ip ranges in different subnets. 

This feature enables adding of guest ip ranges (public ips)  form different 
subnets.

In order to provide the dhcp service to a different subnet we create an ipalias 
on the router. This allows the router to listen to the dhcp request from the 
guest vms and respond accordingly. Every time a vm is deployed in the new 
subnet we configure an ip alias on the router. Cloudstack uses dnsmasq to 
provide dhcp service. We need to configure the dnsmasq to issue ips on the new 
subnets. Added a new class dnsmasqconfigurator which generates the dnsmasq 
confg file, this file replaces the old config in the router. 

The details of the alias ips are stored in db in the nic_ip_alias table. Every 
time a new subnet is added one of the ip from the subnet is used to configure 
the ip alias. 

I have pushed the code to github 
https://github.com/bvbharatk/cloud-stack/commit/052ebe7fc7dea5ece99cadc23b306c5f8d6e0ea9
 , also rebased the code with master. 
I need to test the code for advanced sg enabled network using kvm.

The code dose not include any unit tests as of now. will add them asap.


This addresses bug Cloudstack-702.
https://issues.apache.org/jira/browse/Cloudstack-702


Diffs
-


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


Testing
---

Tested this with xenserver in basic zone.


Thanks,

bharat kumar



Re: System VM's hanging

2013-05-06 Thread Sean Truman
I am not seeing any splash screen, I see the Seabios screens and then the
PIX boot line, then GRUB loading stage2.. and the KVM process eats 100% of
one of the cores for about 5 minutes, then the management server tries to
restart.  I am using CS 4.0.2

0) acton-systemvm-02062012.qcow2.bz2
1) I will try this, I ran qemu-img check on all the image files and they
all are fine (I did a virsh dumpxml s-1-vm and looked at the disk it was
referencing), I have also reinstalled SystemVM as per installation
directions.
2)  I cannot even get it to let me get to a point where it will let me edit
grub boot parameters.
3)  Like I said above the System VM doesn't even show me a splash screen.

I have reinstalled management and system templates and am trying it again.
 I will also try to run the system VM's by command line and see if it works
from command line. I had everything working with basic networking, as soon
as I switch it over to advance networking (using VLAN) is when this started
happening.

v/r
Sean


On Mon, May 6, 2013 at 11:36 AM, Musayev, Ilya  wrote:

> Sean,
>
> Specifically what versions of SVM are you running? Do you see a splash
> screen and when you press enter or wait for time out - for this issue to
> occur?
>
> 0) if splash screen is seen and you can make changes to boot linux, remove
> the "quiet" flag from initrd line to see if you can get more meaningful
> errors
>
> 1) I would suggest to change the storage controllers to see if it makes
> any difference.
>
> 2) I've seen in past " GRUB loading stage2" error would occur when
> grub.conf reference initrd or kernel version that no longer exists
> (filename mismatch). Go into the edit mode, remove the version in front of
> initrd and vmlinuz and try to use auto-completion (TAB-TAB) to complete the
> filename and boot again.
>
> 3) If nothing helps,  I would have tried to boot it into a single user
> mode with linux rescue disk and reinstall grub - just to confirm if its
> grub related or something else.
>
> Let me know how it goes,
>
> Regards
> ilya
>
>
>
> > -Original Message-
> > From: Sean Truman [mailto:stru...@gmail.com]
> > Sent: Monday, May 06, 2013 12:16 PM
> > To: dev@cloudstack.apache.org
> > Subject: System VM's hanging
> >
> > All,
> >
> > My system VM's are hanging at GRUB loading stage2.. using KVM as
> > hypervisor any idea why this is happening?
> >
> > v/r
> > Sean
>
>


Re: [PROPOSAL] VMSync improvement to better co-operate with external managers for features like HA/DRS and FT

2013-05-06 Thread Kelven Yang


On 5/5/13 7:31 PM, "Mice Xia"  wrote:

>+1 for this, currently VMsync/HA/external state change have conflicts
>occasionally, serializing VM operations can solve concurrency related
>issues.
>So fullsync and deltasync will be deprecated and a new unified sync
>framework will be introduced?

Yes, full sync at host level will be deprecated, host connect-status will
not be determined by the completion of setting up a full-sync start point,
this can help speed up system startup time in a large setup.

Kelven

>
>-Mice
>
>-Original Message-
>From: Kelven Yang [mailto:kelven.y...@citrix.com]
>Sent: Saturday, May 04, 2013 10:37 AM
>To: dev@cloudstack.apache.org
>Subject: [PROPOSAL] VMSync improvement to better co-operate with external
>managers for features like HA/DRS and FT
>
>I would like to propose an improvement effort on VMSync. This is to help
>build better interaction with external virtualization manager (i.e.,
>vCenter) for features like native HA, DRS and FT.
>
>https://cwiki.apache.org/confluence/display/CLOUDSTACK/FS+-+VMSync+improve
>ment
>
>Since it is a low-level change and hard to describe it in short, only
>high-level principals are detailed in FS.
>
>Please review the first draft of FS and provide your comments and
>feedback.
>
>Kelven



Re: [PROPOSAL] VMSync improvement to better co-operate with external managers for features like HA/DRS and FT

2013-05-06 Thread Kelven Yang


On 5/6/13 5:11 AM, "Murali Reddy"  wrote:

>
>Great to see long-standing problem being addressed. I get how revamped
>job's framework that can handle both internal and external jobs with
>ability to serialize the operations on a VM will help in VmSync. But I
>could not understand how a message bus that helps in coordinate activities
>with in management server, will be used to solve the vmsync issues. Can
>you please elobrate how you intend to use message bus.

Message bus currently is used for related jobs/components to pass
information through a loosely coupled fashion within management server,
this is a replacement to a direct-coupled pattern for such purpose, for
example, the listener interface, subscribers have to explicitly refer the
publishers for interested events.

Message bus provides an indirect association between publishers and
subscribers based on hierachical topics.

>
>On 04/05/13 8:06 AM, "Kelven Yang"  wrote:
>
>>I would like to propose an improvement effort on VMSync. This is to help
>>build better interaction with external virtualization manager (i.e.,
>>vCenter) for features like native HA, DRS and FT.
>>
>>https://cwiki.apache.org/confluence/display/CLOUDSTACK/FS+-+VMSync+improv
>>e
>>ment
>>
>>Since it is a low-level change and hard to describe it in short, only
>>high-level principals are detailed in FS.
>>
>>Please review the first draft of FS and provide your comments and
>>feedback.
>>
>>Kelven
>>
>
>



[TIPS] On making eclipse work more efficient...

2013-05-06 Thread Alex Huang
Hi All,

I updated the wiki page on the eclipse environment [1].  The main change is how 
to get rid of the multiple copies of .java and .class files in the Open 
Resources dialogue box.  Previously I suggested using working sets to help with 
this problem but eclipse seems to be quite slow when opening working sets so I 
found a much better and permanent solution by filtering the resources of the 
parent projects in CloudStack.  

Take a look.  Hope it's helpful to you.

--Alex
[1] 
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Using+Eclipse+With+CloudStack


RE: [PROPOSAL] VMSync improvement to better co-operate with external managers for features like HA/DRS and FT

2013-05-06 Thread Musayev, Ilya
Hi Kelven,

> 2) Serialize VM operations
> Currently, state transition handling always happens at in-place context, for 
> example, when management server receives hypervisor VM state report, the 
> handling of the report is processed within the context, even if there may be 
> another thread that is handling user  request on the same VM. Although we try 
> to coordinate by checking the state of the VM, by simplify failing it with 
> concurrent-access exception.  
> In the new design, we will try to serialize activities to the same VM through 
> job facility, since there always be one active operation is in executing, the 
> state transition logic can be simplified. Take the VM migrating case, as it 
> involves with two hosts, in previous model,  with VM state report from 
> different hosts, we have to handle it carefully as the host report may come 
> at un-predicted order.  

It is my understanding that by serializing the operations - we fix the issue 
with concurrent tasks for the same object. How would this affect the end user 
performance, assuming 10 users execute 10 tasks on 10 different VMs, would they 
all go in the queue and wait for their turn? 

Thanks
ilya


> -Original Message-
> From: Kelven Yang [mailto:kelven.y...@citrix.com]
> Sent: Friday, May 03, 2013 10:37 PM
> To: dev@cloudstack.apache.org
> Subject: [PROPOSAL] VMSync improvement to better co-operate with
> external managers for features like HA/DRS and FT
> 
> I would like to propose an improvement effort on VMSync. This is to help
> build better interaction with external virtualization manager (i.e., vCenter)
> for features like native HA, DRS and FT.
> 
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/FS+-
> +VMSync+improvement
> 
> Since it is a low-level change and hard to describe it in short, only 
> high-level
> principals are detailed in FS.
> 
> Please review the first draft of FS and provide your comments and feedback.
> 
> Kelven



RE: System VM's hanging

2013-05-06 Thread Musayev, Ilya
Sean,

Please see response in line.

> I am not seeing any splash screen, I see the Seabios screens and then the PIX
> boot line, then GRUB loading stage2.. and the KVM process eats 100% of one
> of the cores for about 5 minutes, then the management server tries to
> restart.  I am using CS 4.0.2
> 
> 0) acton-systemvm-02062012.qcow2.bz2
This image has been used countless times by many folks, perhaps something is 
unique in your environment that could cause this problem?

> 1) I will try this, I ran qemu-img check on all the image files and they all 
> are
> fine (I did a virsh dumpxml s-1-vm and looked at the disk it was referencing),
> I have also reinstalled SystemVM as per installation directions.
> 2)  I cannot even get it to let me get to a point where it will let me edit 
> grub
> boot parameters.


> 3)  Like I said above the System VM doesn't even show me a splash screen.
You don't need grub to function in this case, since you are booting off linux 
rescue cd to repair grub.

> 
> I have reinstalled management and system templates and am trying it again.
>  I will also try to run the system VM's by command line and see if it works
> from command line. I had everything working with basic networking, as soon
> as I switch it over to advance networking (using VLAN) is when this started
> happening.
The issue between switching from basic to advanced and router VM makes no 
sense. The only thing that would change is the metadata details vm will use to 
boot with, but that comes after GRUB. 

> 
> v/r
> Sean
> 
> 
> On Mon, May 6, 2013 at 11:36 AM, Musayev, Ilya 
> wrote:
> 
> > Sean,
> >
> > Specifically what versions of SVM are you running? Do you see a splash
> > screen and when you press enter or wait for time out - for this issue
> > to occur?
> >
> > 0) if splash screen is seen and you can make changes to boot linux,
> > remove the "quiet" flag from initrd line to see if you can get more
> > meaningful errors
> >
> > 1) I would suggest to change the storage controllers to see if it
> > makes any difference.
> >
> > 2) I've seen in past " GRUB loading stage2" error would occur when
> > grub.conf reference initrd or kernel version that no longer exists
> > (filename mismatch). Go into the edit mode, remove the version in
> > front of initrd and vmlinuz and try to use auto-completion (TAB-TAB)
> > to complete the filename and boot again.
> >
> > 3) If nothing helps,  I would have tried to boot it into a single user
> > mode with linux rescue disk and reinstall grub - just to confirm if
> > its grub related or something else.
> >
> > Let me know how it goes,
> >
> > Regards
> > ilya
> >
> >
> >
> > > -Original Message-
> > > From: Sean Truman [mailto:stru...@gmail.com]
> > > Sent: Monday, May 06, 2013 12:16 PM
> > > To: dev@cloudstack.apache.org
> > > Subject: System VM's hanging
> > >
> > > All,
> > >
> > > My system VM's are hanging at GRUB loading stage2.. using KVM as
> > > hypervisor any idea why this is happening?
> > >
> > > v/r
> > > Sean
> >
> >



Re: [PROPOSAL] VMSync improvement to better co-operate with external managers for features like HA/DRS and FT

2013-05-06 Thread Kelven Yang


On 5/6/13 10:16 AM, "Musayev, Ilya"  wrote:

>Hi Kelven,
>
>> 2) Serialize VM operations
>> Currently, state transition handling always happens at in-place
>>context, for example, when management server receives hypervisor VM
>>state report, the handling of the report is processed within the
>>context, even if there may be another thread that is handling user
>>request on the same VM. Although we try to coordinate by checking the
>>state of the VM, by simplify failing it with concurrent-access
>>exception.  
>> In the new design, we will try to serialize activities to the same VM
>>through job facility, since there always be one active operation is in
>>executing, the state transition logic can be simplified. Take the VM
>>migrating case, as it involves with two hosts, in previous model,  with
>>VM state report from different hosts, we have to handle it carefully as
>>the host report may come at un-predicted order.
>
>It is my understanding that by serializing the operations - we fix the
>issue with concurrent tasks for the same object. How would this affect
>the end user performance, assuming 10 users execute 10 tasks on 10
>different VMs, would they all go in the queue and wait for their turn?

There is another aspect of job control, which is system concurrency
control. Serialization of processing logic has little relation to end-user
performance, as the serialization is not due to that system wants to
artificially enforce that, but more due to the logic itself (i.e, you
can't do start/stop at the same time), waiting on a serialization to
finish on one object does not mean that you can't do other operation on a
different object. The reason we want to consolidate system internal
activities and external activities into single place of control is exact
for the purpose to improve system concurrency management as well.

AsyncJobMonitor class is added for system concurrency monitoring, it
monitors system concurrency level through message bus facility and we
should now be able to tell what exactly "system busy" means by looking at
the percentage of activity jobs in executing among all available threads
in pool.


>
>Thanks
>ilya
>
>
>> -Original Message-
>> From: Kelven Yang [mailto:kelven.y...@citrix.com]
>> Sent: Friday, May 03, 2013 10:37 PM
>> To: dev@cloudstack.apache.org
>> Subject: [PROPOSAL] VMSync improvement to better co-operate with
>> external managers for features like HA/DRS and FT
>> 
>> I would like to propose an improvement effort on VMSync. This is to help
>> build better interaction with external virtualization manager (i.e.,
>>vCenter)
>> for features like native HA, DRS and FT.
>> 
>> https://cwiki.apache.org/confluence/display/CLOUDSTACK/FS+-
>> +VMSync+improvement
>> 
>> Since it is a low-level change and hard to describe it in short, only
>>high-level
>> principals are detailed in FS.
>> 
>> Please review the first draft of FS and provide your comments and
>>feedback.
>> 
>> Kelven
>



Re: [TIPS] On making eclipse work more efficient...

2013-05-06 Thread Mike Tutkowski
This is great, Alex - thanks!

I wonder if you meant cloud-services (not cloudstack-services), though?


On Mon, May 6, 2013 at 11:17 AM, Alex Huang  wrote:

> Hi All,
>
> I updated the wiki page on the eclipse environment [1].  The main change
> is how to get rid of the multiple copies of .java and .class files in the
> Open Resources dialogue box.  Previously I suggested using working sets to
> help with this problem but eclipse seems to be quite slow when opening
> working sets so I found a much better and permanent solution by filtering
> the resources of the parent projects in CloudStack.
>
> Take a look.  Hope it's helpful to you.
>
> --Alex
> [1]
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Using+Eclipse+With+CloudStack
>



-- 
*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: [DISCUSS] Authorship of translations

2013-05-06 Thread Chiradeep Vittal
+1 to the THANKS file.

On 5/4/13 6:58 AM, "Noah Slater"  wrote:

>(Copied from elsewhere...)
>
>I've been involved in similar discussions about what to do with pull
>requests on GitHub, etc. I think the general consensus was that as long as
>there is a reasonable indication that the work was being contributed to
>the
>project, then we are okay to include it. i.e. If somebody submits a PR to
>the CloudStack mirror, then we can include that if we want to, without
>doing any other checks. But if we spot a PR on a Citrix GitHub repository,
>that we could apply to CloudStack, we need to contact the original author,
>to make sure we have permission. The key being that we must establish
>reasonable intent. And I think we have that in the scenario you describe.
>
>In fact, we used to have a checkbox in JIRA that you used to have to tick
>to indicate when you were uploading that indicated were giving permission
>for the project to include your work. We removed that checkbox a while
>ago. I believe we took that action, because there was consensus that
>attaching a patch established intent.
>
>As for authorship. From a legal/policy perspective, author information
>should be kept out of source files. There are various reasons for this.
>But
>the gist is that it can give the impression that individual people "own"
>the various bits of code. And obviously, this can discourage
>participation.
>This is why all Apache source files state copyright as "The Apache
>Software
>Foundation", meaning "the lot of us", i.e. shared.
>
>Now, I can appreciate that PO files might be a bit different. I took a
>look
>at a few of them, and I don't see a problem from a policy perspective,
>especially if these is standard meta-data, or helps the translation
>effort.
>Now understanding how translations take place, I would ask: might having
>the last translator name in there discourage other translators from
>participating? As you mention, these files are machine generated, so my
>guess is: no.
>
>So, I think all that remains is a stylistic question. How do we want to
>attribute the hard work and dedication of our translation team? I know
>that
>with code, this is often done with an Author tag in Git, or in the
>comment,
>or what have you. But there are other options. What about a THANKSfile?
>
>On Apache CouchDB, our THANKS file is actually maintained in two ways. For
>anything that does not come in with an Author tag in Git, we put it in the
>file manually. For anything in Git, we actually automate that.
>
>See:
>
>https://git-wip-us.apache.org/repos/asf?p=couchdb.git;a=blob_plain;f=boots
>trap;hb=HEAD
>
>Grep for "THANKS" to see the code that updates the file. This is done when
>we are preparing a release artefact. Which might not work for us on
>CloudStack, as, presently, our release artefacts are pristine copies of
>our
>Git repository. But we might consider making a script that updates THANKS,
>and then checking in the changes.
>
>
>On 27 April 2013 01:00, David Nalley  wrote:
>
>> Why don't we ask them their preference (keeping dev@ in the loop as
>>well)
>>
>> --David
>>
>> On Fri, Apr 26, 2013 at 3:39 PM, Sebastien Goasguen 
>> wrote:
>> >
>> > On Apr 26, 2013, at 11:22 AM, David Nalley  wrote:
>> >
>>  As such - I do not see a material difference in how the projects
>>that
>>  are already using translate.a.o and how we function.
>> 
>> >>>
>> >>> Do we bring it up to legal-discuss ? I am happy to do so.
>> >>>
>> >>
>> >> What question would we ask?
>> >> I see two possible questions, let me know if that isn't the case.
>> >>
>> >> If the question is 'Is accepting contributions from a plethora of
>> >> contributors to a project specific instance an acceptable way of
>>doing
>> >> business' I think the  answer is obvious that translate.a.o does
>> >> exactly that mechanism and there seem to be no issues from a process
>> >> standpoint.
>> >>
>> >> If the question is 'Can the Transifex Apache CloudStack l10n projects
>> >> serve as an official contribution point' - I personally am
>>comfortable
>> >> saying that the message is currently clear that we treat them as
>> >> official. I also don't see a problem with doing so. Is this a point
>>of
>> >> contention with anyone else? Is there a problem there that I am not
>> >> seeing?
>> >>
>> >> Is there another question?
>> >
>> > I am fine with your statements and have no questions for
>>legal-discuss.
>> >
>> > I was merely bringing it up in the open to make sure people knew about
>> it.
>> >
>> > The only issue left IMHO is how we ack the authors of translations in
>> git ?
>> >
>> > -sebastien
>> >
>>
>
>
>
>-- 
>NS



Re: System VM's hanging

2013-05-06 Thread Sean Truman
I figured it out, I was using shared mount points because I was trying to
use NFS over RDMA (Infiniband, it doesn't support locking :( ).  I switched
the primary over to NFS over Infiniband but using IPoIB (Ethernet instead
of RDMA).  Now the System VM's are booting correctly. Thanks for your help.

v/r
Sean


On Mon, May 6, 2013 at 12:25 PM, Musayev, Ilya  wrote:

> Sean,
>
> Please see response in line.
>
> > I am not seeing any splash screen, I see the Seabios screens and then
> the PIX
> > boot line, then GRUB loading stage2.. and the KVM process eats 100% of
> one
> > of the cores for about 5 minutes, then the management server tries to
> > restart.  I am using CS 4.0.2
> >
> > 0) acton-systemvm-02062012.qcow2.bz2
> This image has been used countless times by many folks, perhaps something
> is unique in your environment that could cause this problem?
>
> > 1) I will try this, I ran qemu-img check on all the image files and they
> all are
> > fine (I did a virsh dumpxml s-1-vm and looked at the disk it was
> referencing),
> > I have also reinstalled SystemVM as per installation directions.
> > 2)  I cannot even get it to let me get to a point where it will let me
> edit grub
> > boot parameters.
>
>
> > 3)  Like I said above the System VM doesn't even show me a splash screen.
> You don't need grub to function in this case, since you are booting off
> linux rescue cd to repair grub.
>
> >
> > I have reinstalled management and system templates and am trying it
> again.
> >  I will also try to run the system VM's by command line and see if it
> works
> > from command line. I had everything working with basic networking, as
> soon
> > as I switch it over to advance networking (using VLAN) is when this
> started
> > happening.
> The issue between switching from basic to advanced and router VM makes no
> sense. The only thing that would change is the metadata details vm will use
> to boot with, but that comes after GRUB.
>
> >
> > v/r
> > Sean
> >
> >
> > On Mon, May 6, 2013 at 11:36 AM, Musayev, Ilya 
> > wrote:
> >
> > > Sean,
> > >
> > > Specifically what versions of SVM are you running? Do you see a splash
> > > screen and when you press enter or wait for time out - for this issue
> > > to occur?
> > >
> > > 0) if splash screen is seen and you can make changes to boot linux,
> > > remove the "quiet" flag from initrd line to see if you can get more
> > > meaningful errors
> > >
> > > 1) I would suggest to change the storage controllers to see if it
> > > makes any difference.
> > >
> > > 2) I've seen in past " GRUB loading stage2" error would occur when
> > > grub.conf reference initrd or kernel version that no longer exists
> > > (filename mismatch). Go into the edit mode, remove the version in
> > > front of initrd and vmlinuz and try to use auto-completion (TAB-TAB)
> > > to complete the filename and boot again.
> > >
> > > 3) If nothing helps,  I would have tried to boot it into a single user
> > > mode with linux rescue disk and reinstall grub - just to confirm if
> > > its grub related or something else.
> > >
> > > Let me know how it goes,
> > >
> > > Regards
> > > ilya
> > >
> > >
> > >
> > > > -Original Message-
> > > > From: Sean Truman [mailto:stru...@gmail.com]
> > > > Sent: Monday, May 06, 2013 12:16 PM
> > > > To: dev@cloudstack.apache.org
> > > > Subject: System VM's hanging
> > > >
> > > > All,
> > > >
> > > > My system VM's are hanging at GRUB loading stage2.. using KVM as
> > > > hypervisor any idea why this is happening?
> > > >
> > > > v/r
> > > > Sean
> > >
> > >
>
>


Trouble with deployDataCenter.py

2013-05-06 Thread Mike Tutkowski
Hi,

I just updated to the latest today and ran deployDataCenter.py to build a
DevCloud2 environment.

The script is having trouble. Any thoughts on this? Has this worked
recently for anyone else?

Thanks!

mtutkowski-LT:devcloud mtutkowski$ python
../marvin/marvin/deployDataCenter.py -i devcloud.cfg
Traceback (most recent call last):
  File "../marvin/marvin/deployDataCenter.py", line 476, in 
deploy.deploy()
  File "../marvin/marvin/deployDataCenter.py", line 459, in deploy
self.loadCfg()
  File "../marvin/marvin/deployDataCenter.py", line 410, in loadCfg
apiKey, securityKey = self.registerApiKey()
  File "../marvin/marvin/deployDataCenter.py", line 349, in registerApiKey
listuserRes = self.testClient.getApiClient().listUsers(listuser)
  File
"/Users/mtutkowski/Documents/CloudStack/src/incubator-cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
line 433, in listUsers
response = self.connection.marvin_request(command, data=postdata,
response_type=response)
TypeError: marvin_request() got an unexpected keyword argument 'data'

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


Review Request: (CLOUDSTACK-2322) update network.gateway to fix deployVm error on SharedNetwork after ipv6 support

2013-05-06 Thread Wei Zhou

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

Review request for cloudstack.


Description
---

The allocateDirectIp in NetworkManagerImpl.java changes after ipv6 support.
Two sentences were added before assignPublicIP.
(1) if (network.getGateway() != null)
(2) if (network.getIp6Gateway() != null) {
However, for Shared Network, both fields are null in table `cloud`.`networks`.
Some fields in table `cloud`.`networks` need to be updated.


This addresses bug CLOUDSTACK-2322.


Diffs
-

  setup/db/db/schema-40to410.sql fe53d36 

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


Testing
---

Testing ok.


Thanks,

Wei Zhou



Re: Review Request: CLOUDSTACK-957: Localization -- Add UK keyboard support

2013-05-06 Thread Fang Wang

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

Ship it!


Ship it!

- Fang Wang


On April 29, 2013, 9:09 a.m., Sanjay Tripathi wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10836/
> ---
> 
> (Updated April 29, 2013, 9:09 a.m.)
> 
> 
> Review request for cloudstack, Devdeep Singh, Fang Wang, and Animesh 
> Chaturvedi.
> 
> 
> Description
> ---
> 
> CLOUDSTACK-957: Localization -- Add UK keyboard support.
> 
> - Added the support of UK keyboard by:
>  - Initialising the UK keyboard from the existing US keyboard mapping.
>  - Adding/Overriding the special keys support of UK keys which differ 
> from US keyboard.
> - Also moved the JP keys initialisation to ajaxkeys.js file.
> 
> 
> This addresses bug CLOUDSTACK-957.
> 
> 
> Diffs
> -
> 
>   services/console-proxy/server/css/ajaxviewer.css 5ea552b 
>   services/console-proxy/server/js/ajaxkeys.js 2ecf5b5 
>   services/console-proxy/server/js/ajaxviewer.js e95615d 
>   
> services/console-proxy/server/src/com/cloud/consoleproxy/ConsoleProxyClientBase.java
>  289bdab 
> 
> Diff: https://reviews.apache.org/r/10836/diff/
> 
> 
> Testing
> ---
> 
> Tests:
> 
> 1) Setup CS environment and deploy a VM (Windows7 preferred, as I have tested 
> on this).
> 2) Go to VM detailView and open VM console view.
> 3) Change input method for keyboard to UK language.
> 4) Go to top of console-window and click on "keyboard" option to select UK 
> language.
> 5) Start using UK keyboard (Make sure the input method of client keyboard is 
> UK (from where the user is pressing the keys)).
> 
> Tested on my local CloudStack setup by following above mentioned steps.
> 
> 
> Thanks,
> 
> Sanjay Tripathi
> 
>



Review Request: (CLOUDSTACK-2319) fix "unable to add egress rules" in SecurityGroup

2013-05-06 Thread Wei Zhou

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

Review request for cloudstack.


Description
---

This patch changes:
(1) CloudStack UI (egress rule in Security Group)
(2) findByUuidIncludingRemoved(uuid) return security_group_rule.id (find by 
security_group_rule.uuid) instead of security_group.id (find by 
security_group.uuid)


This addresses bug CLOUDSTACK-2319.


Diffs
-

  api/src/com/cloud/network/security/SecurityGroupRules.java d255e46 
  core/src/com/cloud/network/security/SecurityGroupRulesVO.java 82060ef 
  server/src/com/cloud/network/security/dao/SecurityGroupRulesDaoImpl.java 
f08ca05 
  ui/scripts/network.js 1bc4eba 

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


Testing
---

Testing ok.


Thanks,

Wei Zhou



Re: [DISCUSS] Authorship of translations

2013-05-06 Thread Sebastien Goasguen
+1 as well, it's easy to do.

I will do it if no-one objects in the next 72 hours.

On May 6, 2013, at 1:36 PM, Chiradeep Vittal  
wrote:

> +1 to the THANKS file.
> 
> On 5/4/13 6:58 AM, "Noah Slater"  wrote:
> 
>> (Copied from elsewhere...)
>> 
>> I've been involved in similar discussions about what to do with pull
>> requests on GitHub, etc. I think the general consensus was that as long as
>> there is a reasonable indication that the work was being contributed to
>> the
>> project, then we are okay to include it. i.e. If somebody submits a PR to
>> the CloudStack mirror, then we can include that if we want to, without
>> doing any other checks. But if we spot a PR on a Citrix GitHub repository,
>> that we could apply to CloudStack, we need to contact the original author,
>> to make sure we have permission. The key being that we must establish
>> reasonable intent. And I think we have that in the scenario you describe.
>> 
>> In fact, we used to have a checkbox in JIRA that you used to have to tick
>> to indicate when you were uploading that indicated were giving permission
>> for the project to include your work. We removed that checkbox a while
>> ago. I believe we took that action, because there was consensus that
>> attaching a patch established intent.
>> 
>> As for authorship. From a legal/policy perspective, author information
>> should be kept out of source files. There are various reasons for this.
>> But
>> the gist is that it can give the impression that individual people "own"
>> the various bits of code. And obviously, this can discourage
>> participation.
>> This is why all Apache source files state copyright as "The Apache
>> Software
>> Foundation", meaning "the lot of us", i.e. shared.
>> 
>> Now, I can appreciate that PO files might be a bit different. I took a
>> look
>> at a few of them, and I don't see a problem from a policy perspective,
>> especially if these is standard meta-data, or helps the translation
>> effort.
>> Now understanding how translations take place, I would ask: might having
>> the last translator name in there discourage other translators from
>> participating? As you mention, these files are machine generated, so my
>> guess is: no.
>> 
>> So, I think all that remains is a stylistic question. How do we want to
>> attribute the hard work and dedication of our translation team? I know
>> that
>> with code, this is often done with an Author tag in Git, or in the
>> comment,
>> or what have you. But there are other options. What about a THANKSfile?
>> 
>> On Apache CouchDB, our THANKS file is actually maintained in two ways. For
>> anything that does not come in with an Author tag in Git, we put it in the
>> file manually. For anything in Git, we actually automate that.
>> 
>> See:
>> 
>> https://git-wip-us.apache.org/repos/asf?p=couchdb.git;a=blob_plain;f=boots
>> trap;hb=HEAD
>> 
>> Grep for "THANKS" to see the code that updates the file. This is done when
>> we are preparing a release artefact. Which might not work for us on
>> CloudStack, as, presently, our release artefacts are pristine copies of
>> our
>> Git repository. But we might consider making a script that updates THANKS,
>> and then checking in the changes.
>> 
>> 
>> On 27 April 2013 01:00, David Nalley  wrote:
>> 
>>> Why don't we ask them their preference (keeping dev@ in the loop as
>>> well)
>>> 
>>> --David
>>> 
>>> On Fri, Apr 26, 2013 at 3:39 PM, Sebastien Goasguen 
>>> wrote:
 
 On Apr 26, 2013, at 11:22 AM, David Nalley  wrote:
 
>>> As such - I do not see a material difference in how the projects
>>> that
>>> are already using translate.a.o and how we function.
>>> 
>> 
>> Do we bring it up to legal-discuss ? I am happy to do so.
>> 
> 
> What question would we ask?
> I see two possible questions, let me know if that isn't the case.
> 
> If the question is 'Is accepting contributions from a plethora of
> contributors to a project specific instance an acceptable way of
>>> doing
> business' I think the  answer is obvious that translate.a.o does
> exactly that mechanism and there seem to be no issues from a process
> standpoint.
> 
> If the question is 'Can the Transifex Apache CloudStack l10n projects
> serve as an official contribution point' - I personally am
>>> comfortable
> saying that the message is currently clear that we treat them as
> official. I also don't see a problem with doing so. Is this a point
>>> of
> contention with anyone else? Is there a problem there that I am not
> seeing?
> 
> Is there another question?
 
 I am fine with your statements and have no questions for
>>> legal-discuss.
 
 I was merely bringing it up in the open to make sure people knew about
>>> it.
 
 The only issue left IMHO is how we ack the authors of translations in
>>> git ?
 
 -sebastien
 
>>> 
>> 
>> 
>> 
>> -- 
>> NS
> 



RE: [PROPOSAL] [CLOUDSTACK-2056] DeploymentPlanner choice via ServiceOffering

2013-05-06 Thread Prachi Damle
I have updated the FS with some more details regarding the design of this 
feature, 
https://cwiki.apache.org/confluence/display/CLOUDSTACK/DeploymentPlanner+choice+via+ServiceOffering

Please provide any comments.
Thanks,
Prachi

-Original Message-
From: Prachi Damle [mailto:prachi.da...@citrix.com] 
Sent: Thursday, April 18, 2013 4:50 PM
To: dev@cloudstack.apache.org
Subject: RE: [PROPOSAL] [CLOUDSTACK-2056] DeploymentPlanner choice via 
ServiceOffering

I think currently how the data disks are allocated is still governed by the 
same flag vm.allocation.algorithm - as are the hosts - and it will stay the 
same right now.

Thanks,
Prachi
-Original Message-
From: Nitin Mehta [mailto:nitin.me...@citrix.com]
Sent: Wednesday, April 17, 2013 11:55 PM
To: dev@cloudstack.apache.org
Subject: Re: [PROPOSAL] [CLOUDSTACK-2056] DeploymentPlanner choice via 
ServiceOffering

Prachi thanks for your responses. Makes it pretty clear.
Do we also put this in the disk offering as well for governing how the Data 
disks will be allocated ?

Hari's FS is @
https://cwiki.apache.org/confluence/display/CLOUDSTACK/FS+for+Granular+Glob
al+Configuration+Parameters. Just search for vm.allocation

Thanks,
-Nitin

On 18/04/13 12:16 AM, "Prachi Damle"  wrote:

>Hi Nitin,
>
>Thanks for the feedback. I have added comments inline.
>
>-Prachi
>
>-Original Message-
>From: Nitin Mehta [mailto:nitin.me...@citrix.com]
>Sent: Wednesday, April 17, 2013 1:42 AM
>To: dev@cloudstack.apache.org
>Subject: Re: [PROPOSAL] [CLOUDSTACK-2056] DeploymentPlanner choice via 
>ServiceOffering
>
>Thanks for sharing this with the community Prachi. I read the wiki and 
>had a few questions.
>
>Is there a requirement doc for this ? I wanted to understand the use 
>cases for this.
>>>This is more of refactoring proposal in order to give more 
>>>flexibility to the admin  around deployment decisions.
>>>The typical use-case will be when Admin wants to facilitate 
>>>dispersion of VMs only for some accounts that need it while for any 
>>>other accounts that do not care where their VMs land,  keep the 
>>>deployment random/firstfit.
>>>Since currently planning choice is governed by the global config 
>>>vm.allocation.algorithms, Admin cannot make use of the varied 
>>>deployment heuristics per account needs.
>>>In the above case, if admin sets this config to 'userdispersion' then 
>>>the UserDispersingPlanner gets selected for the entire CS deployment, 
>>>across all accounts.
>
>>>Exposing the choice in ServiceOffering, also lets Admin take care of 
>>>applying any custom pricing for say user-dispersion or 
>>>user-concentrated Vs random/firstfit
>
>Since all the attributes are visible in service offering to the end 
>user what is it we are trying to do here ? Give the flexibility to the 
>end user ? Ideally it should give more flexibility to the admin right ?
>>> Right, Flexibility to the admin. This is not for end-user usage.
>
>You talked about the vm.allocation.algorithms but talking about the 
>planners so I am little confused what is that we are trying to do here.
>>> This is the config that selects the planner currently. If we 
>>>refactor the planner choice to ServiceOffering, we do not need this 
>>>variable for choosing a planner We might have to keep this config 
>>>around in order to provide the choice for host/pool allocation.
>
>I see that Hari also proposed changing vm allocation config to zone level.
>Is that required any more with this change ?
>>>I think so, at least not needed to choose a planner since we bring 
>>>the planner choice to ServiceOffering level rather than Zone.
>>>Can you please point me to that Proposal? Thanks!
>
>I didn't understand "in a CS deployment multiple planners will have to 
>co-exist." bit can you please elaborate with an example here ?
>>> After exposing the planners in Svc Offering, some offerings might 
>>>choose 'FirstFitPlanner', while some other might choose 
>>>'UserDispersingPlanner'.
>>>Thus all planners can get used in the same CS deployment - since the 
>>>choice will no longer be global. All such planners will apply 
>>>heuristics to the same set of resources - hence they might conflict.
>
>Thanks,
>-Nitin
>
>On 17/04/13 5:10 AM, "Prachi Damle"  wrote:
>
>>I would like to propose a new feature - DeploymentPlanner choice via 
>>ServiceOffering
>>
>>Jira ticket created:
>>https://issues.apache.org/jira/browse/CLOUDSTACK-2056
>>
>>This is to expose the choice of Deployment Planner via Service 
>>Offering and let Admin use a mix of Planners in a CS deployment.
>>
>>The initial draft of the FS is here
>>https://cwiki.apache.org/confluence/display/CLOUDSTACK/DeploymentPlann
>>e
>>r+c
>>hoice+via+ServiceOffering
>>
>>Please review and comment.
>>
>>Thanks,
>>Prachi
>



Re: [DISCUSS] Authorship of translations

2013-05-06 Thread Chip Childers
On Mon, May 06, 2013 at 02:45:13PM -0400, Sebastien Goasguen wrote:
> +1 as well, it's easy to do.
> 
> I will do it if no-one objects in the next 72 hours.

+1 - And would you be looking at generating the list from git commit 
history in an automatic way like Noah suggests (just confirming)?


Re: [DISCUSS] Authorship of translations

2013-05-06 Thread Sebastien Goasguen

On May 6, 2013, at 3:10 PM, Chip Childers  wrote:

> On Mon, May 06, 2013 at 02:45:13PM -0400, Sebastien Goasguen wrote:
>> +1 as well, it's easy to do.
>> 
>> I will do it if no-one objects in the next 72 hours.
> 
> +1 - And would you be looking at generating the list from git commit 
> history in an automatic way like Noah suggests (just confirming)?

No, I am thinking:

I will grab the emails from the .po files when I download them from transifex.
I will put the utility to do that in the docs directory.
Then I will remove them and add the apache headers.

So it will be semi-automatic, included in the workflow to get the translation 
from transifex.

-sebastien



Re: Review Request: (CLOUDSTACK-2319) fix "unable to add egress rules" in SecurityGroup

2013-05-06 Thread ASF Subversion and Git Services

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


Commit b02bbc841e0ca927b5e208c394dbc8631bb1c389 in branch refs/heads/4.1 from 
Chip Childers 
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=b02bbc8 ]

CLOUDSTACK-2319: fix "unable to add egress rules" in SecurityGroup

Signed-off-by: Chip Childers 


- ASF Subversion and Git Services


On May 6, 2013, 6:44 p.m., Wei Zhou wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10957/
> ---
> 
> (Updated May 6, 2013, 6:44 p.m.)
> 
> 
> Review request for cloudstack.
> 
> 
> Description
> ---
> 
> This patch changes:
> (1) CloudStack UI (egress rule in Security Group)
> (2) findByUuidIncludingRemoved(uuid) return security_group_rule.id (find by 
> security_group_rule.uuid) instead of security_group.id (find by 
> security_group.uuid)
> 
> 
> This addresses bug CLOUDSTACK-2319.
> 
> 
> Diffs
> -
> 
>   api/src/com/cloud/network/security/SecurityGroupRules.java d255e46 
>   core/src/com/cloud/network/security/SecurityGroupRulesVO.java 82060ef 
>   server/src/com/cloud/network/security/dao/SecurityGroupRulesDaoImpl.java 
> f08ca05 
>   ui/scripts/network.js 1bc4eba 
> 
> Diff: https://reviews.apache.org/r/10957/diff/
> 
> 
> Testing
> ---
> 
> Testing ok.
> 
> 
> Thanks,
> 
> Wei Zhou
> 
>



Re: Review Request: (CLOUDSTACK-2322) update network.gateway to fix deployVm error on SharedNetwork after ipv6 support

2013-05-06 Thread ASF Subversion and Git Services

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


Commit 18f0f721d0b37be3dc20a0f757e36e4dd9050a03 in branch refs/heads/4.1 from 
Chip Childers 
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=18f0f72 ]

CLOUDSTACK-2322: update network.gateway to fix deployVm error on
SharedNetwork after ipv6 support

Signed-off-by: Chip Childers 


- ASF Subversion and Git Services


On May 6, 2013, 6:08 p.m., Wei Zhou wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10955/
> ---
> 
> (Updated May 6, 2013, 6:08 p.m.)
> 
> 
> Review request for cloudstack.
> 
> 
> Description
> ---
> 
> The allocateDirectIp in NetworkManagerImpl.java changes after ipv6 support.
> Two sentences were added before assignPublicIP.
> (1) if (network.getGateway() != null)
> (2) if (network.getIp6Gateway() != null) {
> However, for Shared Network, both fields are null in table `cloud`.`networks`.
> Some fields in table `cloud`.`networks` need to be updated.
> 
> 
> This addresses bug CLOUDSTACK-2322.
> 
> 
> Diffs
> -
> 
>   setup/db/db/schema-40to410.sql fe53d36 
> 
> Diff: https://reviews.apache.org/r/10955/diff/
> 
> 
> Testing
> ---
> 
> Testing ok.
> 
> 
> Thanks,
> 
> Wei Zhou
> 
>



Re: Review Request: (CLOUDSTACK-2319) fix "unable to add egress rules" in SecurityGroup

2013-05-06 Thread ASF Subversion and Git Services

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


Commit af5bf94b431cea91f424ec1b5dc038a22d25a954 in branch refs/heads/master 
from Chip Childers 
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=af5bf94 ]

CLOUDSTACK-2319: fix "unable to add egress rules" in SecurityGroup

Signed-off-by: Chip Childers 


- ASF Subversion and Git Services


On May 6, 2013, 6:44 p.m., Wei Zhou wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10957/
> ---
> 
> (Updated May 6, 2013, 6:44 p.m.)
> 
> 
> Review request for cloudstack.
> 
> 
> Description
> ---
> 
> This patch changes:
> (1) CloudStack UI (egress rule in Security Group)
> (2) findByUuidIncludingRemoved(uuid) return security_group_rule.id (find by 
> security_group_rule.uuid) instead of security_group.id (find by 
> security_group.uuid)
> 
> 
> This addresses bug CLOUDSTACK-2319.
> 
> 
> Diffs
> -
> 
>   api/src/com/cloud/network/security/SecurityGroupRules.java d255e46 
>   core/src/com/cloud/network/security/SecurityGroupRulesVO.java 82060ef 
>   server/src/com/cloud/network/security/dao/SecurityGroupRulesDaoImpl.java 
> f08ca05 
>   ui/scripts/network.js 1bc4eba 
> 
> Diff: https://reviews.apache.org/r/10957/diff/
> 
> 
> Testing
> ---
> 
> Testing ok.
> 
> 
> Thanks,
> 
> Wei Zhou
> 
>



Re: Review Request: (CLOUDSTACK-2322) update network.gateway to fix deployVm error on SharedNetwork after ipv6 support

2013-05-06 Thread ASF Subversion and Git Services

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


Commit 599023b61b7c89a24d5d851499db05b9338ab922 in branch refs/heads/master 
from Chip Childers 
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=599023b ]

CLOUDSTACK-2322: update network.gateway to fix deployVm error on
SharedNetwork after ipv6 support

Signed-off-by: Chip Childers 


- ASF Subversion and Git Services


On May 6, 2013, 6:08 p.m., Wei Zhou wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10955/
> ---
> 
> (Updated May 6, 2013, 6:08 p.m.)
> 
> 
> Review request for cloudstack.
> 
> 
> Description
> ---
> 
> The allocateDirectIp in NetworkManagerImpl.java changes after ipv6 support.
> Two sentences were added before assignPublicIP.
> (1) if (network.getGateway() != null)
> (2) if (network.getIp6Gateway() != null) {
> However, for Shared Network, both fields are null in table `cloud`.`networks`.
> Some fields in table `cloud`.`networks` need to be updated.
> 
> 
> This addresses bug CLOUDSTACK-2322.
> 
> 
> Diffs
> -
> 
>   setup/db/db/schema-40to410.sql fe53d36 
> 
> Diff: https://reviews.apache.org/r/10955/diff/
> 
> 
> Testing
> ---
> 
> Testing ok.
> 
> 
> Thanks,
> 
> Wei Zhou
> 
>



Re: Review Request: (CLOUDSTACK-2322) update network.gateway to fix deployVm error on SharedNetwork after ipv6 support

2013-05-06 Thread Chip Childers

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

Ship it!


Ship It!

- Chip Childers


On May 6, 2013, 6:08 p.m., Wei Zhou wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10955/
> ---
> 
> (Updated May 6, 2013, 6:08 p.m.)
> 
> 
> Review request for cloudstack.
> 
> 
> Description
> ---
> 
> The allocateDirectIp in NetworkManagerImpl.java changes after ipv6 support.
> Two sentences were added before assignPublicIP.
> (1) if (network.getGateway() != null)
> (2) if (network.getIp6Gateway() != null) {
> However, for Shared Network, both fields are null in table `cloud`.`networks`.
> Some fields in table `cloud`.`networks` need to be updated.
> 
> 
> This addresses bug CLOUDSTACK-2322.
> 
> 
> Diffs
> -
> 
>   setup/db/db/schema-40to410.sql fe53d36 
> 
> Diff: https://reviews.apache.org/r/10955/diff/
> 
> 
> Testing
> ---
> 
> Testing ok.
> 
> 
> Thanks,
> 
> Wei Zhou
> 
>



Re: Review Request: (CLOUDSTACK-2319) fix "unable to add egress rules" in SecurityGroup

2013-05-06 Thread Chip Childers

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

Ship it!


Ship It!

- Chip Childers


On May 6, 2013, 6:44 p.m., Wei Zhou wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10957/
> ---
> 
> (Updated May 6, 2013, 6:44 p.m.)
> 
> 
> Review request for cloudstack.
> 
> 
> Description
> ---
> 
> This patch changes:
> (1) CloudStack UI (egress rule in Security Group)
> (2) findByUuidIncludingRemoved(uuid) return security_group_rule.id (find by 
> security_group_rule.uuid) instead of security_group.id (find by 
> security_group.uuid)
> 
> 
> This addresses bug CLOUDSTACK-2319.
> 
> 
> Diffs
> -
> 
>   api/src/com/cloud/network/security/SecurityGroupRules.java d255e46 
>   core/src/com/cloud/network/security/SecurityGroupRulesVO.java 82060ef 
>   server/src/com/cloud/network/security/dao/SecurityGroupRulesDaoImpl.java 
> f08ca05 
>   ui/scripts/network.js 1bc4eba 
> 
> Diff: https://reviews.apache.org/r/10957/diff/
> 
> 
> Testing
> ---
> 
> Testing ok.
> 
> 
> Thanks,
> 
> Wei Zhou
> 
>



Callbacks and Events.

2013-05-06 Thread Jeronimo Garcia
Hi List.

Is there anyway to specify callbacks on api events , or maybe a real time
debug port/url ?

I need to trigger certain actions on VM creation and so far I've thought of
these ones:


   - Mysql Triggers on a given table
   - Virtual Router Modifications (edithosts.sh script)
   - Code modifications , specifically the bit of code that SSH into the
   Vrouter

Thanks a lot for you help.


Re: Callbacks and Events.

2013-05-06 Thread Jeronimo Garcia
the Events api call looks interesting ... but i'd need VM name and
Ipaddress ... so it forces me to do one call after a given event.

Thanks


On Mon, May 6, 2013 at 3:20 PM, Jeronimo Garcia wrote:

> Hi List.
>
> Is there anyway to specify callbacks on api events , or maybe a real time
> debug port/url ?
>
> I need to trigger certain actions on VM creation and so far I've thought
> of these ones:
>
>
>- Mysql Triggers on a given table
>- Virtual Router Modifications (edithosts.sh script)
>- Code modifications , specifically the bit of code that SSH into the
>Vrouter
>
> Thanks a lot for you help.
>


Re: [TIPS] On making eclipse work more efficient...

2013-05-06 Thread Mike Tutkowski
I just went ahead and updated cloudstack-services to cloud-services on the
Wiki.

I also updated bash \-x tools/eclipse/setup-eclipse-profile.sh to be bash
\-x tools/eclipse/set-eclipse-profile.sh (setup was changed to set).


On Mon, May 6, 2013 at 11:34 AM, Mike Tutkowski <
mike.tutkow...@solidfire.com> wrote:

> This is great, Alex - thanks!
>
> I wonder if you meant cloud-services (not cloudstack-services), though?
>
>
> On Mon, May 6, 2013 at 11:17 AM, Alex Huang  wrote:
>
>> Hi All,
>>
>> I updated the wiki page on the eclipse environment [1].  The main change
>> is how to get rid of the multiple copies of .java and .class files in the
>> Open Resources dialogue box.  Previously I suggested using working sets to
>> help with this problem but eclipse seems to be quite slow when opening
>> working sets so I found a much better and permanent solution by filtering
>> the resources of the parent projects in CloudStack.
>>
>> Take a look.  Hope it's helpful to you.
>>
>> --Alex
>> [1]
>> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Using+Eclipse+With+CloudStack
>>
>
>
>
> --
> *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: Callbacks and Events.

2013-05-06 Thread Chip Childers
On Mon, May 06, 2013 at 03:25:17PM -0500, Jeronimo Garcia wrote:
> the Events api call looks interesting ... but i'd need VM name and
> Ipaddress ... so it forces me to do one call after a given event.

Take a look at this: 

https://cwiki.apache.org/confluence/display/CLOUDSTACK/Event+Notification+Framework+Proposal

> 
> Thanks
> 
> 
> On Mon, May 6, 2013 at 3:20 PM, Jeronimo Garcia wrote:
> 
> > Hi List.
> >
> > Is there anyway to specify callbacks on api events , or maybe a real time
> > debug port/url ?
> >
> > I need to trigger certain actions on VM creation and so far I've thought
> > of these ones:
> >
> >
> >- Mysql Triggers on a given table
> >- Virtual Router Modifications (edithosts.sh script)
> >- Code modifications , specifically the bit of code that SSH into the
> >Vrouter
> >
> > Thanks a lot for you help.
> >


Re: Callbacks and Events.

2013-05-06 Thread Jeronimo Garcia
You know i was checking that out right now ... it seems like a good idea
... but when would this be official ?

Thanks!


On Mon, May 6, 2013 at 3:30 PM, Chip Childers wrote:

> On Mon, May 06, 2013 at 03:25:17PM -0500, Jeronimo Garcia wrote:
> > the Events api call looks interesting ... but i'd need VM name and
> > Ipaddress ... so it forces me to do one call after a given event.
>
> Take a look at this:
>
>
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Event+Notification+Framework+Proposal
>
> >
> > Thanks
> >
> >
> > On Mon, May 6, 2013 at 3:20 PM, Jeronimo Garcia  >wrote:
> >
> > > Hi List.
> > >
> > > Is there anyway to specify callbacks on api events , or maybe a real
> time
> > > debug port/url ?
> > >
> > > I need to trigger certain actions on VM creation and so far I've
> thought
> > > of these ones:
> > >
> > >
> > >- Mysql Triggers on a given table
> > >- Virtual Router Modifications (edithosts.sh script)
> > >- Code modifications , specifically the bit of code that SSH into
> the
> > >Vrouter
> > >
> > > Thanks a lot for you help.
> > >
>


Re: Callbacks and Events.

2013-05-06 Thread Chip Childers
On Mon, May 06, 2013 at 03:39:08PM -0500, Jeronimo Garcia wrote:
> You know i was checking that out right now ... it seems like a good idea
> ... but when would this be official ?

Once we release 4.1 (upgrade bugs are blocking that release)

> 
> Thanks!
> 
> 
> On Mon, May 6, 2013 at 3:30 PM, Chip Childers 
> wrote:
> 
> > On Mon, May 06, 2013 at 03:25:17PM -0500, Jeronimo Garcia wrote:
> > > the Events api call looks interesting ... but i'd need VM name and
> > > Ipaddress ... so it forces me to do one call after a given event.
> >
> > Take a look at this:
> >
> >
> > https://cwiki.apache.org/confluence/display/CLOUDSTACK/Event+Notification+Framework+Proposal
> >
> > >
> > > Thanks
> > >
> > >
> > > On Mon, May 6, 2013 at 3:20 PM, Jeronimo Garcia  > >wrote:
> > >
> > > > Hi List.
> > > >
> > > > Is there anyway to specify callbacks on api events , or maybe a real
> > time
> > > > debug port/url ?
> > > >
> > > > I need to trigger certain actions on VM creation and so far I've
> > thought
> > > > of these ones:
> > > >
> > > >
> > > >- Mysql Triggers on a given table
> > > >- Virtual Router Modifications (edithosts.sh script)
> > > >- Code modifications , specifically the bit of code that SSH into
> > the
> > > >Vrouter
> > > >
> > > > Thanks a lot for you help.
> > > >
> >


Re: New committer: Phong Nguyen

2013-05-06 Thread Phong Nguyen
Thank you, I look forward to helping the community with more contributions.

Cheers,
Phong


On Fri, May 3, 2013 at 4:55 PM, Musayev, Ilya  wrote:

> Congrats Phong :) +1 committer for NYC.
>
> > -Original Message-
> > From: Ahmad Emneina [mailto:aemne...@gmail.com]
> > Sent: Friday, May 03, 2013 4:37 PM
> > To: dev@cloudstack.apache.org
> > Subject: Re: New committer: Phong Nguyen
> >
> > Excellent news Phong, congratulations!
> >
> >
> > On Fri, May 3, 2013 at 12:10 PM, David Nalley  wrote:
> >
> > > The Project Management Committee (PMC) for Apache CloudStack has
> > asked
> > > Phong Nguyen to become a committer and we are pleased to announce
> > that
> > > they have accepted.
> > >
> > > Being a committer allows many contributors to contribute more
> > > autonomously. For developers, it makes it easier to submit changes and
> > > eliminates the need to have contributions reviewed via the patch
> > > submission process. Whether contributions are development-related or
> > > otherwise, it is a recognition of a contributor's participation in the
> > > project and commitment to the project and the Apache Way.
> > >
> > > Please join me in congratulating Phong
> > >
> > > --David
> > > on behalf of the CloudStack PMC
> > >
>
>


Re: Trouble with deployDataCenter.py

2013-05-06 Thread Mike Tutkowski
I don't have much Python experience, but it looks like we're trying to pass
in a named parameter that doesn't exist on the receiving side.

Perhaps I need to update a Python package?

def listUsers(self, command, postdata={}):

response = listUsersResponse()

response = self.connection.marvin_request(command, data=postdata,
response_type=response)

return response


On Mon, May 6, 2013 at 12:04 PM, Mike Tutkowski <
mike.tutkow...@solidfire.com> wrote:

> Hi,
>
> I just updated to the latest today and ran deployDataCenter.py to build a
> DevCloud2 environment.
>
> The script is having trouble. Any thoughts on this? Has this worked
> recently for anyone else?
>
> Thanks!
>
> mtutkowski-LT:devcloud mtutkowski$ python
> ../marvin/marvin/deployDataCenter.py -i devcloud.cfg
> Traceback (most recent call last):
>   File "../marvin/marvin/deployDataCenter.py", line 476, in 
> deploy.deploy()
>   File "../marvin/marvin/deployDataCenter.py", line 459, in deploy
> self.loadCfg()
>   File "../marvin/marvin/deployDataCenter.py", line 410, in loadCfg
> apiKey, securityKey = self.registerApiKey()
>   File "../marvin/marvin/deployDataCenter.py", line 349, in registerApiKey
> listuserRes = self.testClient.getApiClient().listUsers(listuser)
>   File
> "/Users/mtutkowski/Documents/CloudStack/src/incubator-cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
> line 433, in listUsers
> response = self.connection.marvin_request(command, data=postdata,
> response_type=response)
> TypeError: marvin_request() got an unexpected keyword argument 'data'
>
> --
> *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: [PROPOSAL] "Internal Load Balancing between VPC tiers"

2013-05-06 Thread Alena Prokharchyk
Chandan, reviewed the test plan and have a couple of comments:

1) there is no reboot operation supported for the Internal LB vm
2) The Internal LB Vm gets spanned for the guest IP address not when the
first Load Balancer is created per IP address, but when the first user vm
gets assigned to the Load Balancer.

I've updated the FS to reflect 1) and 2)

3) Create Load balancer with the source IP address specified. You should
add more test scenarios to this section:

* try to create lb rule with the sourceIpAddress that is assigned to the
existing user vm - should fail
* create lb rule using sourceIpAddress used by another LB rule (diff
instance/source port combinations) - should pass
* specify sourceIpAddress that is currently free in the system - should
pass.
* Try to deploy a regular user vm with the ip address that is used by the
load balancer rule - should fail.


-Alena.


On 5/3/13 3:51 PM, "Chandan Purushothama"
 wrote:

>Renamed the location. The new location is
>https://cwiki.apache.org/confluence/display/CLOUDSTACK/2.2+Internal+Load+B
>alancing+between+VPC+tiers,
>
>Thank you,
>Chandan.
>
>-Original Message-
>From: Chandan Purushothama [mailto:chandan.purushoth...@citrix.com]
>Sent: Friday, May 03, 2013 3:35 PM
>To: dev@cloudstack.apache.org
>Cc: Alex Huang; cloudstack-...@incubator.apache.org; Chiradeep Vittal
>Subject: RE: [PROPOSAL] "Internal Load Balancing between VPC tiers"
>
>I uploaded the Test Plan to
>https://cwiki.apache.org/confluence/display/CLOUDSTACK/2.2+Load+Balancing+
>on+all+Tiers . Kindly let me know if there are any review comments,
>
>Thank you,
>Chandan.
>
>-Original Message-
>From: Alena Prokharchyk [mailto:alena.prokharc...@citrix.com]
>Sent: Wednesday, May 01, 2013 12:14 PM
>To: dev@cloudstack.apache.org
>Cc: Alex Huang; cloudstack-...@incubator.apache.org; Chiradeep Vittal
>Subject: Re: [PROPOSAL] "Internal Load Balancing between VPC tiers"
>
>On 5/1/13 11:43 AM, "Chandan Purushothama"
> wrote:
>
>>Hello Alena,
>>
>>I have the following questions pertaining to the feature [Ref:
>>https://cwiki.apache.org/confluence/display/CLOUDSTACK/Internal+Load+Ba
>>lan
>>cing+between+VPC+tiers]
>>
>>1. Do we support Multiple Application Tiers with InternalLb Service?
>
>We do.
>
>
>>2. Do we support Network Tier Upgrade from a network offering with
>>InternalLb Service to another network offering that supports VPC VR as
>>LB provider?
>
>
>There is no separate service for the internal LB. It is the same LB
>service defined in the networkOffering, just with the capability
>lbSchemes=internal. In this release the upgrade from offering with
>lbSchemes=Internal to lbSchemes=Public (and vice versa) is not gonna be
>supported.
>
>
>-Alena.
>
>
>
>>
>>Thank you,
>>Chandan.
>>
>>-Original Message-
>>From: Alena Prokharchyk [mailto:alena.prokharc...@citrix.com]
>>Sent: Tuesday, March 26, 2013 9:07 AM
>>To: dev@cloudstack.apache.org
>>Cc: Alex Huang; cloudstack-...@incubator.apache.org; Chiradeep Vittal
>>Subject: Re: [PROPOSAL] "Internal Load Balancing between VPC tiers"
>>
>>Marcus is right. The LB VM resides just on one tier (App in my FS
>>example). To manage the access from Web Tier to the App tier, Network
>>ACLs will be used.
>>
>>-Alena.
>>
>>On 3/25/13 7:55 PM, "Marcus Sorensen"  wrote:
>>
>>>I assume, and it seems this way from the spec, that the load balancer
>>>VM just lives in the same network as the VMS you want to balance and
>>>redirects traffic to them. It has a link local nic plus 1 nic.
>>>
>>>That's why I was thinking it would be easy to just create a static Nat
>>>rule to the internal load balancer for public load balancing on any
>>>network tier.
>>>On Mar 25, 2013 8:46 PM, "Vijay Venkatachalam" <
>>>vijay.venkatacha...@citrix.com> wrote:
>>>
 If the services are provided by a LBVM, it should have access to
both networks, one NIC in the web tier (the guest network where the
VIP is
 present) and one NIC in the App Tier (the guest network where the
server  vms are present), would that understanding be right? So when
provisioning  the LB VM the user has to specify these 2 networks?

 On the similar lines, if an external LB Appliance is providing the
 service,  it has to be wired to both the VIP network  and the server
 vm network.

 Thanks,
 Vijay V.

 > -Original Message-
 > From: Alena Prokharchyk [mailto:alena.prokharc...@citrix.com]
 > Sent: Saturday, March 23, 2013 4:28 AM
 > To: cloudstack-...@incubator.apache.org
 > Cc: Alex Huang; Chiradeep Vittal
 > Subject: [PROPOSAL] "Internal Load Balancing between VPC tiers"
 >
 > I would like to propose a new feature - "Internal Load Balancing
between
 > VPC tiers".  With the feature support, you can set up the Load
Balancer
 inside
 > the VPC without facing the public network side. It will allow to
balance
 > internal traffic between tiers inside the VPC - for example,
 > traffic

Re: Trouble with deployDataCenter.py

2013-05-06 Thread Mike Tutkowski
It looks like the marvin_request method in cloudstackConnection.py does not
have a parameter named 'data'.

I changed the signature locally to the following and it works now:

def marvin_request(self, cmd, response_type=None, method='GET', data=''):


On Mon, May 6, 2013 at 2:59 PM, Mike Tutkowski  wrote:

> I don't have much Python experience, but it looks like we're trying to
> pass in a named parameter that doesn't exist on the receiving side.
>
> Perhaps I need to update a Python package?
>
> def listUsers(self, command, postdata={}):
>
> response = listUsersResponse()
>
> response = self.connection.marvin_request(command, data=postdata,
> response_type=response)
>
> return response
>
>
> On Mon, May 6, 2013 at 12:04 PM, Mike Tutkowski <
> mike.tutkow...@solidfire.com> wrote:
>
>> Hi,
>>
>> I just updated to the latest today and ran deployDataCenter.py to build a
>> DevCloud2 environment.
>>
>> The script is having trouble. Any thoughts on this? Has this worked
>> recently for anyone else?
>>
>> Thanks!
>>
>> mtutkowski-LT:devcloud mtutkowski$ python
>> ../marvin/marvin/deployDataCenter.py -i devcloud.cfg
>> Traceback (most recent call last):
>>   File "../marvin/marvin/deployDataCenter.py", line 476, in 
>> deploy.deploy()
>>   File "../marvin/marvin/deployDataCenter.py", line 459, in deploy
>> self.loadCfg()
>>   File "../marvin/marvin/deployDataCenter.py", line 410, in loadCfg
>> apiKey, securityKey = self.registerApiKey()
>>   File "../marvin/marvin/deployDataCenter.py", line 349, in registerApiKey
>> listuserRes = self.testClient.getApiClient().listUsers(listuser)
>>   File
>> "/Users/mtutkowski/Documents/CloudStack/src/incubator-cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
>> line 433, in listUsers
>> response = self.connection.marvin_request(command, data=postdata,
>> response_type=response)
>> TypeError: marvin_request() got an unexpected keyword argument 'data'
>>
>> --
>> *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
> *™*
>



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


Trouble still with finding TinyLinux template

2013-05-06 Thread Mike Tutkowski
Hi,

I recently updated my local repo, rebuilt, redeployed, and all.

I wanted to kick off a VM, but I don't see the TinyLinux template.

Any thoughts on this? Just followed the normal procedure I use for doing
this...didn't do anything different.

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: Trouble still with finding TinyLinux template

2013-05-06 Thread Wei ZHOU
Hi Mike,

The result of this command should be "192.168.56.1" or similar value, not
"10.2.0.15".
 select value from cloud.configuration where name="host";
Please make sure before you run "mvn -P developer -pl tools/devcloud
-Ddeploysvr"

you can change it by
  update cloud.configuration set value="192.168.56.1" where
name="host";"
you need to re-run "mvn -pl :cloud-client-ui jetty:run" after it.

Wei
2013/5/6 Mike Tutkowski 

> Hi,
>
> I recently updated my local repo, rebuilt, redeployed, and all.
>
> I wanted to kick off a VM, but I don't see the TinyLinux template.
>
> Any thoughts on this? Just followed the normal procedure I use for doing
> this...didn't do anything different.
>
> 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: Review Request: Remove filterwin2k from virtual router default config

2013-05-06 Thread Chiradeep Vittal

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

Ship it!


Applied, 5e87b0a, please close

- Chiradeep Vittal


On May 3, 2013, 9:05 p.m., Dennis Lawler wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/10843/
> ---
> 
> (Updated May 3, 2013, 9:05 p.m.)
> 
> 
> Review request for cloudstack and Frank Zhang.
> 
> 
> Description
> ---
> 
> Commenting out filterwin2k.
> 
> Should this be pushed back as a patch for older branches as well?
> 
> 
> This addresses bugs CLOUDSTACK-2224 and CLOUDSTACK-282.
> 
> 
> Diffs
> -
> 
>   patches/systemvm/debian/config/etc/dnsmasq.conf.tmpl 7d656cb 
>   patches/systemvm/debian/config/etc/vpcdnsmasq.conf 3717fc8 
> 
> Diff: https://reviews.apache.org/r/10843/diff/
> 
> 
> Testing
> ---
> 
> Verified in local environment that SRV records are accessible, enabling 
> Windows KMS services.
> 
> 
> Thanks,
> 
> Dennis Lawler
> 
>



Re: Trouble still with finding TinyLinux template

2013-05-06 Thread Mike Tutkowski
Interesting...in Global Settings, I find a key with the name 'host' and its
value is '192.168.56.1'.

That looks correct, though, right?


On Mon, May 6, 2013 at 3:35 PM, Wei ZHOU  wrote:

> Hi Mike,
>
> The result of this command should be "192.168.56.1" or similar value, not
> "10.2.0.15".
>  select value from cloud.configuration where name="host";
> Please make sure before you run "mvn -P developer -pl tools/devcloud
> -Ddeploysvr"
>
> you can change it by
>   update cloud.configuration set value="192.168.56.1" where
> name="host";"
> you need to re-run "mvn -pl :cloud-client-ui jetty:run" after it.
>
> Wei
> 2013/5/6 Mike Tutkowski 
>
> > Hi,
> >
> > I recently updated my local repo, rebuilt, redeployed, and all.
> >
> > I wanted to kick off a VM, but I don't see the TinyLinux template.
> >
> > Any thoughts on this? Just followed the normal procedure I use for doing
> > this...didn't do anything different.
> >
> > 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
> > *™*
> >
>



-- 
*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: [DISCUSS] Jira Component based Filters and Subscription Emails

2013-05-06 Thread David Nalley
On Thu, May 2, 2013 at 7:10 PM, Animesh Chaturvedi
 wrote:
> Folks
>
> I am working on setting up JIRA filters (named queries)  to show open issues 
> for a given  component.  The idea is whoever is interested in specific 
> CloudStack  components can setup personal email subscription to notify them 
> of potential opportunities to work on. The personal subscription email looks 
> like the following
>
> From : j...@apache.org
> Subject: [jira] Subscription: XXX where XXX is the Filter Description
> Body:
> List of Issues Ids and Summary
>
>
> Sample Email:
>
> From: j...@apache.org
> Subject: [jira] Subscription: CLOUDSTACK-Baremetal-Open-Issues
> Body:
>
> Issue Subscription
> Filter: CLOUDSTACK-Baremetal-Open-Issues (4 issues)
> Subscriber: animeshc
>
> Key Summary
> CLOUDSTACK-1619Baremetal - Restore/reset VM fail with 
> java.lang.NullPointerException
> https://issues.apache.org/jira/browse/CLOUDSTACK-1619
> CLOUDSTACK-1618Baremetal - Stop VM fail
> https://issues.apache.org/jira/browse/CLOUDSTACK-1618
> CLOUDSTACK-1614Baremetal - Reboot VM fail
> https://issues.apache.org/jira/browse/CLOUDSTACK-1614
> CLOUDSTACK-1610Baremetal API addBaremetalPxeKickStartServer fail to 
> prepare PXE server  causing create instance with Kickstart style image to fail
> https://issues.apache.org/jira/browse/CLOUDSTACK-1610
>
> You may edit this subscription at: 
> https://issues.apache.org/jira/secure/FilterSubscription!default.jspa?subId=13729&filterId=12323942
>
>
>
>
> To make the subscription easier I can add the subscription link to our 
> component maintainers page.
>
> The same filters can be used to notify the dev mailing list on a regular 
> basis. There is no direct way to notify the mailing list so I will have to 
> setup a personal subscription for each of these component filters and use 
> mail-client rules to auto-forward the subscription emails to the dev mailing 
> list.
>
> Do you think this is of value? Please share your thoughts and suggestions.
>

This makes sense to me, we just need to document well how to subscribe.

--David


Re: Trouble still with finding TinyLinux template

2013-05-06 Thread Mike Tutkowski
I looked here:

/opt/storage/secondary/template/tmpl/1/1 (on my DevCloud2 host) and found a
VHD file.

I do see in the GUI that I have a host alert on
nfs://192.168.56.10:/opt/storage/secondary,
but when I go look for the Alert (to see details), it is not on the
Events-Alerts page (the three general alerts that I have are there,
however).

Thanks!


On Mon, May 6, 2013 at 3:41 PM, Mike Tutkowski  wrote:

> Interesting...in Global Settings, I find a key with the name 'host' and
> its value is '192.168.56.1'.
>
> That looks correct, though, right?
>
>
> On Mon, May 6, 2013 at 3:35 PM, Wei ZHOU  wrote:
>
>> Hi Mike,
>>
>> The result of this command should be "192.168.56.1" or similar value, not
>> "10.2.0.15".
>>  select value from cloud.configuration where name="host";
>> Please make sure before you run "mvn -P developer -pl tools/devcloud
>> -Ddeploysvr"
>>
>> you can change it by
>>   update cloud.configuration set value="192.168.56.1" where
>> name="host";"
>> you need to re-run "mvn -pl :cloud-client-ui jetty:run" after it.
>>
>> Wei
>> 2013/5/6 Mike Tutkowski 
>>
>> > Hi,
>> >
>> > I recently updated my local repo, rebuilt, redeployed, and all.
>> >
>> > I wanted to kick off a VM, but I don't see the TinyLinux template.
>> >
>> > Any thoughts on this? Just followed the normal procedure I use for doing
>> > this...didn't do anything different.
>> >
>> > 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
>> > *™*
>> >
>>
>
>
>
> --
> *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
*™*


Database Access

2013-05-06 Thread Soheil Eizadi
I am trying to understand the details of DAO model in order implement it for 
our Network Element.

There is a reference to documentation "See Database Access for more details." 
But no link :(
https://cwiki.apache.org/CLOUDSTACK/putting-cloudstack-together.html

I searched the wiki for detailed information about the Database Access, found 
some references about the refractoring work, but nothing related to my use case.

I find some information on SlideShare: 
http://www.slideshare.net/cloudstack/management-server-internals
For the "Example DAO", slides 13-14, were useful.

If there is a pointer to more detailed information that would be great.
Thanks,
-Soheil

Fwd: [IP CLEARANCE] CloudStack Marvin Test Suite

2013-05-06 Thread Chip Childers
The IP Clearance 72 hour lazy consensus period has finally started.


-- Forwarded message --
From: Chip Childers 
Date: Mon, May 6, 2013 at 7:58 PM
Subject: [IP CLEARANCE] CloudStack Marvin Test Suite
To: gene...@incubator.apache.org


Citrix has donated the source code artifact detailed at [1] to the ASF.
This email is to request lazy consensus from the IPMC for the IP
clearance of this donation.

Please reply with questions or concerns if there are any.

-chip

[1] http://incubator.apache.org/ip-clearance/cloudstack-marvin-test-suite.html


Re: Database Access

2013-05-06 Thread Chip Childers
On Tue, May 07, 2013 at 12:00:35AM +, Soheil Eizadi wrote:
> I am trying to understand the details of DAO model in order implement it for 
> our Network Element.
> 
> There is a reference to documentation "See Database Access for more details." 
> But no link :(
> https://cwiki.apache.org/CLOUDSTACK/putting-cloudstack-together.html
> 
> I searched the wiki for detailed information about the Database Access, found 
> some references about the refractoring work, but nothing related to my use 
> case.
> 
> I find some information on SlideShare: 
> http://www.slideshare.net/cloudstack/management-server-internals
> For the "Example DAO", slides 13-14, were useful.
> 
> If there is a pointer to more detailed information that would be great.
> Thanks,
> -Soheil

I'll let more qualified people reply to the specific question you asked, 
but would love to hear more about the work you are doing with CloudStack.  
Can I assume that you are looking at integrating infoblox into ACS?  If so, 
what services are you working on integrating?

-chip


RE: Database Access

2013-05-06 Thread Vijayendra Bhamidipati
Hi Soheil,

Cloudstack internally uses cglib and ehcache to create and cache POJO (plain 
old java object) proxy objects in the db schema. The DAO layer has been written 
such that most routines that you will ever need to work with the POJOs, read a 
record from the db, or a list of records from the db, write a record to the db, 
find a record or a list of records by id in a table using conditions, and so 
on, have been implemented in GenericDaoBase.java.

Say you want to create a new table in the cloud schema, mytable. You first edit 
the appropriate sql script (which would be setup/db/db/schema410to420.sql if 
you're working on the current master) to include a create table 
my_table_name_in_cloud_schema DDL there. When you run ` mvn -e -P developer -pl 
developer -Ddeploydb;`, this table will get created in the cloud schema, and 
you can check that by logging into the mysql db. Next, you need a POJO to be 
able to hold a record of this table, in the cloudstack mgmt. server - so you 
define a new class for this. This class is called a "View Object" or VO. You 
call your class "mytableVO", typically like this:

@Entity
@Table(name="my_table_name_in_cloud_schema")
public class mytableVO implements mytable {

  
  @Column(name="column_name_in_cloud_schema_table")
  private  ; // Your field name here needn't match the 
actual column name in your table on mysql.

  @Column
.
.
   // Next, getter and setter methods for each field.

  // Two constructors, one taking in as arguments the minimum number of fields 
you want when creating this VO.
  // The other, a default constructor that typically generates a uuid for the 
uuid field.
}

So next, how do you fill up this VO with the corresponding columns of a record 
from the db? You need to tie this VO to a Dao class - one that extends the 
GenericDaoBase class. So you typically create an interface, mytableDao extends 
GenericDao. In this interface, you put in functions that you 
need specially for your own Dao implementation - say you want to run a 
complicated query where you create your own views and query from that, or use 
multiple conditions etc - you put a function declaration there called 
mytables_complicatedfunc() in there.

Next, you'll create a class to implement the above interface. Call it 
mytableDaoImpl. It will extend mytableDao. In here, you will implement your 
complicated function using Search Builders. In a search builder, you can 
multiple conditionals - basically the where part of a sql query. Here's an 
example:

vmIdSearch = createSearchBuilder();
vmIdSearch.and("vmId", vmIdSearch.entity().getCloneType(), Op.EQ);
vmIdSearch.done();

What you're doing here is that you're using the field name in the POJO you 
created (mytableVO) (here it is "vmId"). You're saying, get the clone type from 
the db, and check if it's equal (Op.EQ) to the vmId that you will supply to it. 
How do you supply the vmId? You instantiate the search builder you created 
above, then use that instance.setParameters("vmId", pass_your_vm_id_here). Then 
you pass this instance to one of GenericDaoBase's functions.

You typically will have an id/uuid column in your table, where they need to be 
autogenerated. You must use the @GeneratedValue annotation when you want to do 
that. Check out one of the Dao classes - a very simple one is one that I put in 
for the full clones feature a few weeks ago, and from which comes the excerpt 
that I used above.

When you implement a new table thus, you should also leverage the mockito 
frameworks already provided by cloudstack - to write a simple unit test to 
check if the table works as expected, you can refer to the commit 
cd291f6b4b5b851595ef11c5f14def9afddb6a1a on the master. Should make things 
easier :)

Finally, you will never see the actual proxy objects themselves - they're 
always hidden by cglib. Typically, you shouldn't need to know about them.


Cheers!
Regards,
Vijay

-Original Message-
From: Soheil Eizadi [mailto:seiz...@infoblox.com] 
Sent: Monday, May 06, 2013 5:01 PM
To: dev@cloudstack.apache.org
Subject: Database Access

I am trying to understand the details of DAO model in order implement it for 
our Network Element.

There is a reference to documentation "See Database Access for more details." 
But no link :( 
https://cwiki.apache.org/CLOUDSTACK/putting-cloudstack-together.html

I searched the wiki for detailed information about the Database Access, found 
some references about the refractoring work, but nothing related to my use case.

I find some information on SlideShare: 
http://www.slideshare.net/cloudstack/management-server-internals
For the "Example DAO", slides 13-14, were useful.

If there is a pointer to more detailed information that would be great.
Thanks,
-Soheil


RE: Database Access

2013-05-06 Thread Vijayendra Bhamidipati
Also, you will need to follow the coding guidelines for cloudstack when naming 
the db columns (refer to the Database Conventions section) :

https://cwiki.apache.org/CLOUDSTACK/coding-conventions.html


Regards,
Vijay

-Original Message-
From: Vijayendra Bhamidipati [mailto:vijayendra.bhamidip...@citrix.com] 
Sent: Monday, May 06, 2013 7:03 PM
To: dev@cloudstack.apache.org
Subject: RE: Database Access

Hi Soheil,

Cloudstack internally uses cglib and ehcache to create and cache POJO (plain 
old java object) proxy objects in the db schema. The DAO layer has been written 
such that most routines that you will ever need to work with the POJOs, read a 
record from the db, or a list of records from the db, write a record to the db, 
find a record or a list of records by id in a table using conditions, and so 
on, have been implemented in GenericDaoBase.java.

Say you want to create a new table in the cloud schema, mytable. You first edit 
the appropriate sql script (which would be setup/db/db/schema410to420.sql if 
you're working on the current master) to include a create table 
my_table_name_in_cloud_schema DDL there. When you run ` mvn -e -P developer -pl 
developer -Ddeploydb;`, this table will get created in the cloud schema, and 
you can check that by logging into the mysql db. Next, you need a POJO to be 
able to hold a record of this table, in the cloudstack mgmt. server - so you 
define a new class for this. This class is called a "View Object" or VO. You 
call your class "mytableVO", typically like this:

@Entity
@Table(name="my_table_name_in_cloud_schema")
public class mytableVO implements mytable {

  
  @Column(name="column_name_in_cloud_schema_table")
  private  ; // Your field name here needn't match the 
actual column name in your table on mysql.

  @Column
.
.
   // Next, getter and setter methods for each field.

  // Two constructors, one taking in as arguments the minimum number of fields 
you want when creating this VO.
  // The other, a default constructor that typically generates a uuid for the 
uuid field.
}

So next, how do you fill up this VO with the corresponding columns of a record 
from the db? You need to tie this VO to a Dao class - one that extends the 
GenericDaoBase class. So you typically create an interface, mytableDao extends 
GenericDao. In this interface, you put in functions that you 
need specially for your own Dao implementation - say you want to run a 
complicated query where you create your own views and query from that, or use 
multiple conditions etc - you put a function declaration there called 
mytables_complicatedfunc() in there.

Next, you'll create a class to implement the above interface. Call it 
mytableDaoImpl. It will extend mytableDao. In here, you will implement your 
complicated function using Search Builders. In a search builder, you can 
multiple conditionals - basically the where part of a sql query. Here's an 
example:

vmIdSearch = createSearchBuilder();
vmIdSearch.and("vmId", vmIdSearch.entity().getCloneType(), Op.EQ);
vmIdSearch.done();

What you're doing here is that you're using the field name in the POJO you 
created (mytableVO) (here it is "vmId"). You're saying, get the clone type from 
the db, and check if it's equal (Op.EQ) to the vmId that you will supply to it. 
How do you supply the vmId? You instantiate the search builder you created 
above, then use that instance.setParameters("vmId", pass_your_vm_id_here). Then 
you pass this instance to one of GenericDaoBase's functions.

You typically will have an id/uuid column in your table, where they need to be 
autogenerated. You must use the @GeneratedValue annotation when you want to do 
that. Check out one of the Dao classes - a very simple one is one that I put in 
for the full clones feature a few weeks ago, and from which comes the excerpt 
that I used above.

When you implement a new table thus, you should also leverage the mockito 
frameworks already provided by cloudstack - to write a simple unit test to 
check if the table works as expected, you can refer to the commit 
cd291f6b4b5b851595ef11c5f14def9afddb6a1a on the master. Should make things 
easier :)

Finally, you will never see the actual proxy objects themselves - they're 
always hidden by cglib. Typically, you shouldn't need to know about them.


Cheers!
Regards,
Vijay

-Original Message-
From: Soheil Eizadi [mailto:seiz...@infoblox.com] 
Sent: Monday, May 06, 2013 5:01 PM
To: dev@cloudstack.apache.org
Subject: Database Access

I am trying to understand the details of DAO model in order implement it for 
our Network Element.

There is a reference to documentation "See Database Access for more details." 
But no link :( 
https://cwiki.apache.org/CLOUDSTACK/putting-cloudstack-together.html

I searched the wiki for detailed information about the Database Access, found 
some references about the refractoring work, but nothing related to my use case.

I find some information on SlideShare: 
ht

Re: Any reason HA can not be used with baremetal?

2013-05-06 Thread Jessica Tomechak
On Mon, May 6, 2013 at 9:29 AM, David Nalley  wrote:

> On Mon, May 6, 2013 at 10:38 AM, Jessica Tomechak
>  wrote:
> > Does it matter whether Offer HA is checked when creating a compute
> offering
> > for use with a bare metal deployment? My understanding of HA is that it
> > will restart a VM on another host in the same zone if the VM crashes. In
> > the case of bare metal, instead of a VM, we have a baremetal instance,
> one
> > per machine. Would checking Offer HA mean that if a bare metal host
> > crashes, another baremetal instance would be created on a different host
> in
> > the zone? Has anyone tried / tested this scenario?
> >
> > Jessica T.
>
>
> No assumption of shared storage - as a matter of fact, I think the
> assumption is the opposite.
>
> --David
>

I think you check "Shared" for Storage Type when creating a compute
offering for an HA host. So I'm not sure whether your assumption about the
assumption is correct. I'd love to hear more about this.

Since we're talking about these settings, there are a few others which I'm
not sure how to document. These are in the Add Compute Offering dialog.
When the offering is for a bare metal host, would there be any restrictions
on setting these, or perhaps would some or all of them not make sense with
bare metal even if they're technically allowed:

Network Rate
Storage Tags
CPU Cap
isVolatile

Jessica T.


[TIPS] Writing unit tests with Spring injection...

2013-05-06 Thread Alex Huang
I made an improvement to how we write our unit tests.  Before this change, you 
needed to have three files for every unit test:
  1. The unit test itself
  2. The xml configuration
  3. The java test configuration

With this change, you only need the unit test and you can specify the test 
configuration within the Java class.  It mainly got rid of the xml file if you 
don't want to use it.

I've updated the wiki[1].  Please have a read.

--Alex
[1] 
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Unit+Testing+with+JUnit+and+Spring


  1   2   >