You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Namita Chaudhari <na...@sungard.com> on 2014/03/13 07:45:56 UTC

Regarding Cloudstack-4322

Hi Sanjay,

I tried to delete a domain with force option:

1) The domain gets deleted successfully when the accounts under that domain
does not need cleanup.
2) The domain does not get deleted, when the accounts under that domain
needs cleanup. It throws an exception saying "failed to cleanup domain
resources and sub domains, delete failed in domain".

I have attached the screenshot and log file for the same in the jira.

Please let me know your comments.

Thanks and Regards,
-- 

*Namita Chaudhari* ● Associate Engineer- Product Development ● SunGard
Availability Services, India ● Mobile: +91 9762922138 ● Email:
namita.chaudhari@sungard.com

*[image: AS_yt]* <http://www.youtube.com/user/SunGardAS>*[image:
AS_twitter]* <https://twitter.com/SunGardASIN>*[image:
AS_in]*<http://www.linkedin.com/company/sungardasin>*[image:
AS_gplus]* <https://plus.google.com/102459878242108588663/>*[image:
AS_fb]*<https://www.facebook.com/sungardas.in>*[image:
AS_ss]* <http://www.slideshare.net/SunGardASIN/documents>

RE: Regarding Cloudstack-4322

Posted by Sanjay Tripathi <sa...@citrix.com>.
Namita,

As of now, there is no domain cleanup thread in CloudStack and as a solution to this bug, we need to implement this thread(similar to account.cleanup thread).

--Sanjay

From: Namita Chaudhari [mailto:namita.chaudhari@sungard.com]
Sent: Monday, March 17, 2014 11:39 AM
To: dev@cloudstack.apache.org
Subject: Re: Regarding Cloudstack-4322

Hi Sanjay,

When a request is done for deleting a domain, it calls deleteDomain method which calls domain.cleanup thread which clean up the inactive domains, sub-domains under that domain, delete the users and accounts and releases the resources for those accounts and deletes the domain shared network. So we already have such thread implemented for domain cleanup.

Please let me know your thoughts.

Thanks and Regards,
Namita

On Thu, Mar 13, 2014 at 3:51 PM, Sanjay Tripathi <sa...@citrix.com>> wrote:
Namita,

Exception “Failed to delete domain” comes if there is an error while cleaning up the accounts. For accounts, there is account.cleanup thread which cleanup up the removed/inactive accounts but for domain, CS doesn’t has any specific thread to delete inactive domains and thows the exception back to user. As a fix, we need domain.cleanup thread, so if there is a failure during deleteDomain with “force” option then CS will not throw any exception and in backend, this thread will handle the deletion.

--Sanjay

From: Namita Chaudhari [mailto:namita.chaudhari@sungard.com<ma...@sungard.com>]
Sent: Thursday, March 13, 2014 12:16 PM
To: dev@cloudstack.apache.org<ma...@cloudstack.apache.org>; Sanjay Tripathi
Subject: Regarding Cloudstack-4322

Hi Sanjay,

I tried to delete a domain with force option:

1) The domain gets deleted successfully when the accounts under that domain does not need cleanup.
2) The domain does not get deleted, when the accounts under that domain needs cleanup. It throws an exception saying "failed to cleanup domain resources and sub domains, delete failed in domain".

I have attached the screenshot and log file for the same in the jira.

Please let me know your comments.

Thanks and Regards,
--
Namita Chaudhari ● Associate Engineer- Product Development ● SunGard Availability Services, India ● Mobile: +91 9762922138 ● Email: namita.chaudhari@sungard.com<ma...@sungard.com>>

[AS_yt]<http://www.youtube.com/user/SunGardAS>[AS_twitter]<https://twitter.com/SunGardASIN>[AS_in]<http://www.linkedin.com/company/sungardasin>[AS_gplus]<https://plus.google.com/102459878242108588663/>[AS_fb]<https://www.facebook.com/sungardas.in>[AS_ss]<http://www.slideshare.net/SunGardASIN/documents>



--

Namita Chaudhari ● Associate Engineer- Product Development ● SunGard Availability Services, India ● Mobile: +91 9762922138 ● Email: namita.chaudhari@sungard.com<ma...@sungard.com>

[AS_yt]<http://www.youtube.com/user/SunGardAS>[AS_twitter]<https://twitter.com/SunGardASIN>[AS_in]<http://www.linkedin.com/company/sungardasin>[AS_gplus]<https://plus.google.com/102459878242108588663/>[AS_fb]<https://www.facebook.com/sungardas.in>[AS_ss]<http://www.slideshare.net/SunGardASIN/documents>

Re: Regarding Cloudstack-4322

Posted by Namita Chaudhari <na...@sungard.com>.
Hi Sanjay,

When a request is done for deleting a domain, it calls deleteDomain method
which calls domain.cleanup thread which clean up the inactive domains,
sub-domains under that domain, delete the users and accounts and releases
the resources for those accounts and deletes the domain shared network. So
we already have such thread implemented for domain cleanup.

Please let me know your thoughts.

Thanks and Regards,
Namita


On Thu, Mar 13, 2014 at 3:51 PM, Sanjay Tripathi <sanjay.tripathi@citrix.com
> wrote:

> Namita,
>
> Exception “Failed to delete domain” comes if there is an error while
> cleaning up the accounts. For accounts, there is account.cleanup thread
> which cleanup up the removed/inactive accounts but for domain, CS doesn’t
> has any specific thread to delete inactive domains and thows the exception
> back to user. As a fix, we need domain.cleanup thread, so if there is a
> failure during deleteDomain with “force” option then CS will not throw any
> exception and in backend, this thread will handle the deletion.
>
> --Sanjay
>
> From: Namita Chaudhari [mailto:namita.chaudhari@sungard.com]
> Sent: Thursday, March 13, 2014 12:16 PM
> To: dev@cloudstack.apache.org; Sanjay Tripathi
> Subject: Regarding Cloudstack-4322
>
> Hi Sanjay,
>
> I tried to delete a domain with force option:
>
> 1) The domain gets deleted successfully when the accounts under that
> domain does not need cleanup.
> 2) The domain does not get deleted, when the accounts under that domain
> needs cleanup. It throws an exception saying "failed to cleanup domain
> resources and sub domains, delete failed in domain".
>
> I have attached the screenshot and log file for the same in the jira.
>
> Please let me know your comments.
>
> Thanks and Regards,
> --
>
> Namita Chaudhari ● Associate Engineer- Product Development ● SunGard
> Availability Services, India ● Mobile: +91 9762922138 ● Email:
> namita.chaudhari@sungard.com<ma...@sungard.com>
>
> [AS_yt]<http://www.youtube.com/user/SunGardAS>[AS_twitter]<
> https://twitter.com/SunGardASIN>[AS_in]<
> http://www.linkedin.com/company/sungardasin>[AS_gplus]<
> https://plus.google.com/102459878242108588663/>[AS_fb]<
> https://www.facebook.com/sungardas.in>[AS_ss]<
> http://www.slideshare.net/SunGardASIN/documents>
>



-- 

*Namita Chaudhari* ● Associate Engineer- Product Development ● SunGard
Availability Services, India ● Mobile: +91 9762922138 ● Email:
namita.chaudhari@sungard.com

*[image: AS_yt]* <http://www.youtube.com/user/SunGardAS>*[image:
AS_twitter]* <https://twitter.com/SunGardASIN>*[image:
AS_in]*<http://www.linkedin.com/company/sungardasin>*[image:
AS_gplus]* <https://plus.google.com/102459878242108588663/>*[image:
AS_fb]*<https://www.facebook.com/sungardas.in>*[image:
AS_ss]* <http://www.slideshare.net/SunGardASIN/documents>

RE: Regarding Cloudstack-4322

Posted by Sanjay Tripathi <sa...@citrix.com>.
Namita,

Exception “Failed to delete domain” comes if there is an error while cleaning up the accounts. For accounts, there is account.cleanup thread which cleanup up the removed/inactive accounts but for domain, CS doesn’t has any specific thread to delete inactive domains and thows the exception back to user. As a fix, we need domain.cleanup thread, so if there is a failure during deleteDomain with “force” option then CS will not throw any exception and in backend, this thread will handle the deletion.

--Sanjay

From: Namita Chaudhari [mailto:namita.chaudhari@sungard.com]
Sent: Thursday, March 13, 2014 12:16 PM
To: dev@cloudstack.apache.org; Sanjay Tripathi
Subject: Regarding Cloudstack-4322

Hi Sanjay,

I tried to delete a domain with force option:

1) The domain gets deleted successfully when the accounts under that domain does not need cleanup.
2) The domain does not get deleted, when the accounts under that domain needs cleanup. It throws an exception saying "failed to cleanup domain resources and sub domains, delete failed in domain".

I have attached the screenshot and log file for the same in the jira.

Please let me know your comments.

Thanks and Regards,
--

Namita Chaudhari ● Associate Engineer- Product Development ● SunGard Availability Services, India ● Mobile: +91 9762922138 ● Email: namita.chaudhari@sungard.com<ma...@sungard.com>

[AS_yt]<http://www.youtube.com/user/SunGardAS>[AS_twitter]<https://twitter.com/SunGardASIN>[AS_in]<http://www.linkedin.com/company/sungardasin>[AS_gplus]<https://plus.google.com/102459878242108588663/>[AS_fb]<https://www.facebook.com/sungardas.in>[AS_ss]<http://www.slideshare.net/SunGardASIN/documents>