Hi Danushka, Yes. noted with thanks. we'll update the order respectively.
On Wed, Aug 20, 2014 at 6:30 PM, Danushka Fernando <[email protected]> wrote: > Apart from that you need to do 2, 3, 4 before 1 as we discussed. > > Thanks & Regards > Danushka Fernando > Software Engineer > WSO2 inc. http://wso2.com/ > Mobile : +94716332729 > > > On Wed, Aug 20, 2014 at 6:03 PM, Amila Maha Arachchi <[email protected]> > wrote: > >> >> >> >> On Wed, Aug 20, 2014 at 5:10 PM, Godwin Shrimal <[email protected]> wrote: >> >>> Hi, >>> >>> We are working on Training project (*[Cloud] Tenant deletion >>> code/script for cloud* - https://redmine.wso2.com/issues/3121) , there >>> for studying the process of create tenant in App Cloud. We studied the >>> *CreateTenant.bpel >>> *(under appfactory/1.1.0/modules/bpels/CreateTenant) which is use to >>> create the tenant in App Cloud. >>> >>> Listed below the identified create and delete tenant process >>> >>> *Create Tenant Process* >>> >>> 1. Initialize Repository Manager >>> >>> Nothing happens at the moment in the source code. >>> >>> 2. Initialize Build Manager >>> >>> 1. Deploy jenkins web application(jenkins.war) on application server >>> >>> 3. Initialize Cloud Manager >>> >>> 1. Perform addTenant operation in TenantMgtAdminService >>> >>> 2. Create Git repository (use gitblit api to create repo in Git, API >>> has the delete repository functionality ) >>> >>> 3. Subscribe for Stratos (Use Stratos Rest Service for subscribe) >>> >>> 4. Tenant Creation Listeners Notification >>> 1. Perform addSkeletonTenant operation in TenantMgtAdminService >>> >>> >>> >>> *Delete Tenant Process (propose)* >>> >>> 1. Perform TenantMgtAdminService deleteTenant operation >>> >>> 1. Delete Billing data >>> >>> 2. Delete Tenant Registration Data (Ex. REG_CLUSTER_LOCK, REG_LOG) >>> >>> 3. Delete Tenant User management data (Ex. UM_USER_PERMISSION, UM_USER) >>> >>> 4. Remove Tenant information from cache >>> >>> 5. Delete UM_TENANT table >>> >>> 2. Undeploy jenkins web app from application server >>> >> >> In the application server, when the jenkins web app is deployed, it >> creates a folder in repository/jenkins/tenants/<tenant-domain>. All the >> builds etc. happens inside this folder. So, you need to delete this folder >> as well. >> >> >>> 3. Delete Git repository (use gitblit api to delete repo in Git) >>> >> >> There may be applications created by tenant. For these applications, >> there are git repositories created. So, we need to delete them as well. I >> think, best option would be to, check for the applications created and then >> delete them via AF APIs or admin services. This process deletes the >> repository as well. >> >> Note that there are two Git servers in App Cloud / AF. One is for >> application source and the other for stratos environments. In #3, you have >> mentioned about repos created for stratos. >> >> >> You also need to check whether there are databases created by using >> RSSAdmin. >> >> >>> 4. Unsubscribe Stratos using Stratos Rest Service >>> >>> >>> Please give you all feedback on this. >>> >>> >>> Thanks >>> Godwin >>> >>> -- >>> *Godwin Amila Shrimal* >>> Senior Software Engineer >>> WSO2 Inc.; http://wso2.com >>> lean.enterprise.middleware >>> >>> mobile: *+94772264165* >>> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>* >>> twitter: https://twitter.com/godwinamila >>> >> >> >> >> -- >> *Amila Maharachchi* >> Senior Technical Lead >> WSO2, Inc.; http://wso2.com >> >> Blog: http://maharachchi.blogspot.com >> Mobile: +94719371446 >> >> > -- *Godwin Amila Shrimal* Senior Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94772264165* linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>* twitter: https://twitter.com/godwinamila
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
