fermosan commented on issue #10049:
URL: https://github.com/apache/cloudstack/issues/10049#issuecomment-2527719610

   Hello @rohityadavcloud.
   
   Running Instance:
   On the cloudstack-agent side we have:
   
   `2024-12-09 11:44:05,584 DEBUG [cloud.agent.Agent] 
(agentRequest-Handler-4:[]) (logid:8cc3fef2) Request:Seq 
191-1230327123202298444:  { Cmd , MgmtId: 95530338908, via: 191, Ver: v1, 
Flags: 100111, 
[{"org.apache.cloudstack.backup.TakeBackupCommand":{"vmName":"i-2-596-VM","backupPath":"i2-596-VM/2024.12.09.13.44.05","backupRepoType":"nfs","backupRepoAddress":"172.31.103.251:/data/col1/BACKUP","wait":"0","bypassHostMaintenance":"false"}}]
 }
   2024-12-09 11:44:05,585 DEBUG [cloud.agent.Agent] 
(agentRequest-Handler-4:[]) (logid:8cc3fef2) Processing command: 
org.apache.cloudstack.backup.TakeBackupCommand
   2024-12-09 11:44:05,619 DEBUG [utils.script.Script] (Script-3:[]) (logid:) 
Piped commands executed successfully
   2024-12-09 11:44:05,619 DEBUG 
[resource.wrapper.LibvirtTakeBackupCommandWrapper] (agentRequest-Handler-4:[]) 
(logid:8cc3fef2) Failed to take VM backup:
   2024-12-09 11:44:05,620 DEBUG [cloud.agent.Agent] 
(agentRequest-Handler-4:[]) (logid:8cc3fef2) Seq 191-1230327123202298444:  { 
Ans: , MgmtId: 95530338908, via: 191, Ver: v1, Flags: 110, 
[{"org.apache.cloudstack.backup.BackupAnswer":{"result":"false","details":"","wait":"0","bypassHostaintenance":"false"}}]
 }
   `
   
   On the management server log:
   
   `2024-12-09 13:47:10,391 DEBUG [c.c.a.ApiServer] 
(qtp1800976873-22047:[ctx-d2bbf912, ctx-f313a3b4]) (logid:25c2cfd9) CIDRs from 
which account 'Account 
[{"accountName":"admin","id":2,"uuid":"4a0c196f-2989-11ea-bc02-b8ca3a64c3a4"}]' 
is allowed to perform API calls: 0.0.0.0/0,::/0
   2024-12-09 13:47:10,393 DEBUG [c.c.a.m.ClusteredAgentAttache] 
(API-Job-Executor-81:[ctx-3b1e1215, job-83850, ctx-cd856b49]) (logid:7202eaa8) 
Seq 175-1230327123202298459: Routed from 95530338908
   2024-12-09 13:47:10,394 DEBUG [c.c.a.t.Request] 
(API-Job-Executor-81:[ctx-3b1e1215, job-83850, ctx-cd856b49]) (logid:7202eaa8) 
Seq 191-1230327123202298459: Sending  { Cmd , MgmtId: 95530338908, via: 
191(mdr2srvkvm01), Ver: v1, Flags: 100111, 
[{"org.apache.cloudstack.backup.TakeBackupCommand":{"vmName":"i-2-596-VM","backupPath":"i-2-596-VM/2024.12.09.13.47.10","backupRepoType":"nfs","backupRepoAddress":"172.31.103.251:/data/col1/BACKUP","wait":"0","bypassHostMaintenance":"false"}}]
 }
   2024-12-09 13:47:10,403 DEBUG [o.a.c.a.StaticRoleBasedAPIAccessChecker] 
(qtp1800976873-22047:[ctx-d2bbf912, ctx-f313a3b4]) (logid:25c2cfd9) RoleService 
is enabled. We will use it instead of StaticRoleBasedAPIAccessChecker.
   2024-12-09 13:47:10,404 DEBUG [o.a.c.r.ApiRateLimitServiceImpl] 
(qtp1800976873-22047:[ctx-d2bbf912, ctx-f313a3b4]) (logid:25c2cfd9) API rate 
limiting is disabled. We will not use ApiRateLimitService.
   2024-12-09 13:47:10,436 DEBUG [c.c.a.t.Request] (AgentManager-Handler-13:[]) 
(logid:) Seq 191-1230327123202298459: Processing:  { Ans: , MgmtId: 
95530338908, via: 191, Ver: v1, Flags: 110, 
[{"org.apache.cloudstack.backup.BackupAnswer":{"result":"false","details":"","wait":"0","bypassHostMaintenance":"false"}}]
 }
   2024-12-09 13:47:10,436 DEBUG [c.c.a.m.ClusteredAgentAttache] 
(AgentManager-Handler-13:[]) (logid:) Seq 175-1230327123202298459: No more 
commands found
   2024-12-09 13:47:10,436 DEBUG [c.c.a.t.Request] 
(API-Job-Executor-81:[ctx-3b1e1215, job-83850, ctx-cd856b49]) (logid:7202eaa8) 
Seq 191-1230327123202298459: Received:  { Ans: , MgmtId: 95530338908, via: 
191(mdr2srvkvm01), Ver: v1, Flags: 110, { BackupAnswer } }
   2024-12-09 13:47:10,444 WARN  [o.a.c.m.w.WebhookServiceImpl] 
(API-Job-Executor-81:[ctx-3b1e1215, job-83850, ctx-cd856b49]) (logid:7202eaa8) 
Skipping delivering event [ID: null, description: 
{"event":"BACKUP.CREATE","status":"Completed"}] to any webhook as account ID is 
missing
   2024-12-09 13:47:10,444 WARN  [o.a.c.f.e.EventDistributorImpl] 
(API-Job-Executor-81:[ctx-3b1e1215, job-83850, ctx-cd856b49]) (logid:7202eaa8) 
Failed to publish event [category: ActionEvent, type: BACKUP.CREATE] on bus 
webhookEventBus
   2024-12-09 13:47:10,458 INFO  [c.c.a.ApiServlet] 
(qtp1800976873-22047:[ctx-d2bbf912, ctx-f313a3b4]) (logid:25c2cfd9) (userId=2 
accountId=2 sessionId=node0uurhl6pbu62fo5g8lyenjrh414) 194.219.182.165 -- GET 
jobId=7202eaa8-deea-4881-82e6-cc62ac9114b6&command=queryAsyncJobResult&response=json&sessionkey=tQ7Q3JCVI7ZCb0J9NNiZyGf4a6w
 200 
{"queryasyncjobresultresponse":{"accountid":"4a0c196f-2989-11ea-bc02-b8ca3a64c3a4","account":"admin","domainid":"2a06fb0a-2989-11ea-bc02-b8ca3a64c3a4","domainpath":"ROOT","userid":"4a0c279e-2989-11ea-bc02-b8ca3a64c3a4","cmd":"org.apache.cloudstack.api.command.user.backup.CreateBackupCmd","jobstatus":0,"jobprocstatus":0,"jobresultcode":0,"jobinstancetype":"Backup","managementserverid":95530338908,"created":"2024-12-09T13:47:10+0200","jobid":"7202eaa8-deea-4881-82e6-cc62ac9114b6"}}
   2024-12-09 13:47:10,459 DEBUG [c.c.a.ApiServlet] 
(qtp1800976873-22047:[ctx-d2bbf912, ctx-f313a3b4]) (logid:25c2cfd9) ===END===  
194.219.182.165 -- GET  
jobId=7202eaa8-deea-4881-82e6-cc62ac9114b6&command=queryAsyncJobResult&response=json&sessionkey=tQ7Q3JCVI7ZCb0J9NNiZyGf4a6w
   2024-12-09 13:47:10,468 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-81:[ctx-3b1e1215, job-83850]) (logid:7202eaa8) Complete async 
job-83850, jobStatus: FAILED, resultCode: 530, result: 
org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"Failed
 to create VM backup"}`
   
   Stopped Instance:
   
   On the cloudstack-agent side we have:
   
   `2024-12-09 11:55:12,282 DEBUG [cloud.agent.Agent] 
(agentRequest-Handler-2:[]) (logid:e900457e) Request:Seq 
191-1230327123202298492:  { Cmd , MgmtId: 95530338908, via: 191, Ver: v1, 
Flags: 100111, 
[{"org.apache.cloudstack.backup.TakeBackupCommand":{"vmName":"i-2-596-VM","backupPath":"i-2-596-VM/2024.12.09.13.55.12","backupRepoType":"nfs","backupRepoAddress":"172.31.103.251:/data/col1/BACKUP","volumePaths":["/mnt/3f13461f-efe4-3232-ae24-62803d0b7263/e777f35f-a03f-4642-86c7-51d643fe54fd","/mnt/3f13461f-efe4-3232-ae24-62803d0b7263/d433e70c-82d1-48dc-87ba-62c0ca28fa17"],"wait":"0","bypassHostMaintenance":"false"}}]
 }
   2024-12-09 11:55:12,283 DEBUG [cloud.agent.Agent] 
(agentRequest-Handler-2:[]) (logid:e900457e) Processing command: 
org.apache.cloudstack.backup.TakeBackupCommand
   2024-12-09 11:55:12,319 DEBUG [utils.script.Script] (Script-10:[]) (logid:) 
Piped commands executed successfully
   2024-12-09 11:55:12,319 DEBUG 
[resource.wrapper.LibvirtTakeBackupCommandWrapper] (agentRequest-Handler-2:[]) 
(logid:e900457e) Failed to take VM backup:
   2024-12-09 11:55:12,319 DEBUG [cloud.agent.Agent] 
(agentRequest-Handler-2:[]) (logid:e900457e) Seq 191-1230327123202298492:  { 
Ans: , MgmtId: 95530338908, via: 191, Ver: v1, Flags: 110, 
[{"org.apache.cloudstack.backup.BackupAnswer":{"result":"false","details":"","wait":"0","bypassHostMaintenance":"false"}}]
 }
   `
   
   On the management server log:
   
   `2024-12-09 13:55:15,369 INFO  [c.c.a.ApiServlet] 
(qtp1800976873-22222:[ctx-404a879a, ctx-8780cfdd]) (logid:dc21b917) (userId=2 
accountId=2 sessionId=node0uurhl6pbu62fo5g8lyenjrh414) 194.219.182.165 -- GET 
jobId=e900457e-d1d9-40a8-af96-e520d48b7323&command=queryAsyncJobResult&response=json&sessionkey=tQ7Q3JCVI7ZCb0J9NNiZyGf4a6w
 200 
{"queryasyncjobresultresponse":{"accountid":"4a0c196f-2989-11ea-bc02-b8ca3a64c3a4","account":"admin","domainid":"2a06fb0a-2989-11ea-bc02-b8ca3a64c3a4","domainpath":"ROOT","userid":"4a0c279e-2989-11ea-bc02-b8ca3a64c3a4","cmd":"org.apache.cloudstack.api.command.user.backup.CreateBackupCmd","jobstatus":2,"jobprocstatus":0,"jobresultcode":530,"jobresulttype":"object","jobresult":{"errorcode":530,"errortext":"Failed
 to create VM 
backup"},"jobinstancetype":"Backup","created":"2024-12-09T13:55:12+0200","completed":"2024-12-09T13:55:12+0200","jobid":"e900457e-d1d9-40a8-af96-e520d48b7323"}}`
   
   All users writing in the NFS are squashed and is verified that they can 
write. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to