You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Pavan Kumar Bandarupally (JIRA)" <ji...@apache.org> on 2013/12/23 07:33:52 UTC

[jira] [Created] (CLOUDSTACK-5607) Deleting a template from one zone removes it from all zones

Pavan Kumar Bandarupally created CLOUDSTACK-5607:
----------------------------------------------------

             Summary: Deleting a template from one zone removes it from all zones 
                 Key: CLOUDSTACK-5607
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5607
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Template
    Affects Versions: 4.3.0
         Environment: 4.3 MS
Multiple zones
            Reporter: Pavan Kumar Bandarupally
            Priority: Critical
             Fix For: 4.3.0


Register a template and select it to be available in all zones while registering. The template will successfully get downloaded to all the zones in the setup. In UI you can see that the template will be shown once for each zone. Once the template is installed and ready to use, from UI delete the template from one of the zones. Once the delete operation completes you can see that it is deleted from all the zones even though we deleted it only from one zone.

Expected:
------------  
The template should be deleted only from one zone 

Actual:
----------
The template gets deleted from all the zones.

Note:
------- 
In the DB the template status will be destroyed only in the zone from which it was deleted but in UI it will be removed from all zones.

Job Traces:
------------------ 

2013-12-20 17:43:32,520 DEBUG [c.c.a.ApiServlet] (catalina-exec-19:ctx-f8bd38aa) ===START===  10.146.0.11 -- GET  command=deleteTemplate&id=e5a45120-e1dc-4b54-849d-1e1e7b7bc5c0&zoneid=485aff23-1b9c-419c-9066-051d4e384f8c&response=json&sessionkey=2uhdSWakv%2Bwtliqp35yLP2ekz7c%3D&_=1387522407471
2013-12-20 17:43:32,632 DEBUG [c.c.s.StatsCollector] (StatsCollector-1:ctx-823f6719) StorageCollector is running...
2013-12-20 17:43:32,707 DEBUG [c.c.a.t.Request] (StatsCollector-1:ctx-823f6719) Seq 3-1744176843: Received:  { Ans: , MgmtId: 6915098673184, via: 3, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
2013-12-20 17:43:32,768 DEBUG [c.c.a.t.Request] (StatsCollector-1:ctx-823f6719) Seq 5-565380424: Received:  { Ans: , MgmtId: 6915098673184, via: 5, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
2013-12-20 17:43:32,773 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-405:ctx-1051c476) Seq 1-769789686: Executing request
2013-12-20 17:43:32,781 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (catalina-exec-19:ctx-f8bd38aa ctx-bdee003a) submit async job-34, details: AsyncJobVO {id:34, userId: 2, accountId: 2, instanceType: Template, instanceId: 208, cmd: org.apache.cloudstack.api.command.user.template.DeleteTemplateCmd, cmdInfo: {"id":"e5a45120-e1dc-4b54-849d-1e1e7b7bc5c0","response":"json","sessionkey":"2uhdSWakv+wtliqp35yLP2ekz7c\u003d","cmdEventType":"TEMPLATE.DELETE","ctxUserId":"2","zoneid":"485aff23-1b9c-419c-9066-051d4e384f8c","httpmethod":"GET","_":"1387522407471","ctxAccountId":"2","ctxStartEventId":"112"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 6915098673184, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-12-20 17:43:32,786 DEBUG [c.c.a.ApiServlet] (catalina-exec-19:ctx-f8bd38aa ctx-bdee003a) ===END===  10.146.0.11 -- GET  command=deleteTemplate&id=e5a45120-e1dc-4b54-849d-1e1e7b7bc5c0&zoneid=485aff23-1b9c-419c-9066-051d4e384f8c&response=json&sessionkey=2uhdSWakv%2Bwtliqp35yLP2ekz7c%3D&_=1387522407471
2013-12-20 17:43:32,790 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (Job-Executor-30:ctx-4c40fe50) Add job-34 into job monitoring
2013-12-20 17:43:32,790 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-30:ctx-4c40fe50) Executing AsyncJobVO {id:34, userId: 2, accountId: 2, instanceType: Template, instanceId: 208, cmd: org.apache.cloudstack.api.command.user.template.DeleteTemplateCmd, cmdInfo: {"id":"e5a45120-e1dc-4b54-849d-1e1e7b7bc5c0","response":"json","sessionkey":"2uhdSWakv+wtliqp35yLP2ekz7c\u003d","cmdEventType":"TEMPLATE.DELETE","ctxUserId":"2","zoneid":"485aff23-1b9c-419c-9066-051d4e384f8c","httpmethod":"GET","_":"1387522407471","ctxAccountId":"2","ctxStartEventId":"112"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 6915098673184, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-12-20 17:43:32,863 INFO  [c.c.t.HypervisorTemplateAdapter] (Job-Executor-30:ctx-4c40fe50 ctx-bdee003a) Delete template from image store: TeamSSV
2013-12-20 17:43:32,865 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl] (Job-Executor-30:ctx-4c40fe50 ctx-bdee003a) template 208 is already in store:2, type:Image
2013-12-20 17:43:32,964 DEBUG [c.c.a.t.Request] (Job-Executor-30:ctx-4c40fe50 ctx-bdee003a) Seq 5-565380425: Sending  { Cmd , MgmtId: 6915098673184, via: 5(s-5-VM), Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.DeleteCommand":{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/208/6533dce0-ef20-3ee7-9adb-033b7aa7b248.vhd","origUrl":"http://10.147.28.7/templates/Windows8/Windows832.vhd","uuid":"e5a45120-e1dc-4b54-849d-1e1e7b7bc5c0","id":208,"format":"VHD","accountId":2,"checksum":"9f6d808b78c989d39d87b54c533816b0","hvm":true,"displayText":"templt in all zones","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.147.28.7/export/home/pavan/secondaryVMWS3MultiZone","_role":"Image"}},"name":"208-2-e79f16a0-b237-35ee-a167-86585e05767d","hypervisorType":"XenServer"}},"wait":0}}] }
2013-12-20 17:43:33,034 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-405:ctx-1051c476) Seq 1-769789686: Response Received:
2013-12-20 17:43:33,035 DEBUG [c.c.a.t.Request] (StatsCollector-1:ctx-823f6719) Seq 1-769789686: Received:  { Ans: , MgmtId: 6915098673184, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
2013-12-20 17:43:33,039 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-29:ctx-533ef364) Seq 4-1965166074: Executing request
2013-12-20 17:43:33,102 DEBUG [c.c.h.v.r.VmwareResource] (DirectAgent-29:ctx-533ef364 10.147.40.12) Datastore summary info, storageId: a496d411-739a-3265-a03d-ac0815ad8729, localPath: /export/home/pavan/primaryVMWS3MultiZone, poolType: NetworkFilesystem, capacity: 5902284800000, free: 2803870789632, used: 3098414010368
2013-12-20 17:43:33,102 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-29:ctx-533ef364) Seq 4-1965166074: Response Received:
2013-12-20 17:43:33,103 DEBUG [c.c.a.t.Request] (StatsCollector-1:ctx-823f6719) Seq 4-1965166074: Received:  { Ans: , MgmtId: 6915098673184, via: 4, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
2013-12-20 17:43:35,713 DEBUG [c.c.a.t.Request] (AgentManager-Handler-5:null) Seq 5-565380425: Processing:  { Ans: , MgmtId: 6915098673184, via: 5, Ver: v1, Flags: 10, [{"com.cloud.agent.api.Answer":{"result":true,"wait":0}}] }
2013-12-20 17:43:35,713 DEBUG [c.c.a.t.Request] (Job-Executor-30:ctx-4c40fe50 ctx-bdee003a) Seq 5-565380425: Received:  { Ans: , MgmtId: 6915098673184, via: 5, Ver: v1, Flags: 10, { Answer } }
2013-12-20 17:43:35,748 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-30:ctx-4c40fe50 ctx-bdee003a) Complete async job-34, jobStatus: SUCCEEDED, resultCode: 0, result: org.apache.cloudstack.api.response.SuccessResponse/null/{"success":true}
2013-12-20 17:43:35,769 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-30:ctx-4c40fe50) Done executing org.apache.cloudstack.api.command.user.template.DeleteTemplateCmd for job-34
2013-12-20 17:43:35,774 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (Job-Executor-30:ctx-4c40fe50) Remove job-34 from job monitoring







--
This message was sent by Atlassian JIRA
(v6.1.5#6160)