You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "omurozlu (via GitHub)" <gi...@apache.org> on 2024/07/24 20:19:44 UTC

[I] Veeam Backup Assign Backup Problem [cloudstack]

omurozlu opened a new issue, #9440:
URL: https://github.com/apache/cloudstack/issues/9440

   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   API
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main branch.
   -->
   
   ~~~
   4.19.1
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   Assign Instance to backup offering problem
   ~~~
   
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   It makes it look like the transaction is done but it really isn't.
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   2024-07-24 22:58:00,465 DEBUG [c.c.a.ApiServlet] (qtp660017404-390:ctx-e6fc64df ctx-390166cf) (logid:968834c0) ===END===  192.168.161.8 -- GET  jobId=4dabe3fc-14a1-4c2a-8992-326e1be7ca6a&command=queryAsyncJobResult&response=json
   2024-07-24 22:58:00,557 DEBUG [o.a.c.h.HAManagerImpl] (BackgroundTaskPollManager-5:ctx-60ee3a93) (logid:46865693) HA health check task is running...
   2024-07-24 22:58:00,666 DEBUG [o.a.c.b.v.VeeamClient] (API-Job-Executor-1:ctx-255103b8 job-517 ctx-2be1b76c) (logid:4dabe3fc) Response received in GET request is: [HttpResponseProxy{HTTP/1.1 200 OK [Cache-Control: private, Content-Length: 8363, Content-Type: application/xml; charset=utf-8, Server: Microsoft-HTTPAPI/2.0, X-Frame-Options: SAMEORIGIN, X-XSS-Protection: 1; mode=block, Strict-Transport-Security: max-age=31536000, X-Content-Type-Options: nosniff, Date: Wed, 24 Jul 2024 19:58:33 GMT] ResponseEntityProxy{[Content-Type: application/xml; charset=utf-8,Content-Length: 8363,Chunked: false]}}] for URL: [https://vbem01.flexapp360.team:9398/api/jobs/dea66e23-a8e6-4247-a7d5-1b01969aa3c7?format=Entity].
   2024-07-24 22:58:00,752 DEBUG [o.a.c.b.v.VeeamClient] (API-Job-Executor-1:ctx-255103b8 job-517 ctx-2be1b76c) (logid:4dabe3fc) Trying to clone veeam job: urn:veeam:Job:dea66e23-a8e6-4247-a7d5-1b01969aa3c7 with backup uuid: i-2-20-VM-CSBKP-22662e18-8ae1-4031-a82c-bf848a4b29bd
   2024-07-24 22:58:00,756 DEBUG [o.a.c.b.v.VeeamClient] (API-Job-Executor-1:ctx-255103b8 job-517 ctx-2be1b76c) (logid:4dabe3fc) Trying to list backup repository for backup job [name: DailyBackup] in server [id: 7427e57f-b587-4d4f-a678-7dc0db6d4ab9].
   2024-07-24 22:58:00,757 WARN  [o.a.c.b.v.VeeamClient] (API-Job-Executor-1:ctx-255103b8 job-517 ctx-2be1b76c) (logid:4dabe3fc) Exception caught while trying to clone Veeam job:
   com.cloud.utils.exception.CloudRuntimeException: Error while executing PowerShell commands due to: There was a problem while connecting to vbem01.flexapp360.team:22
           at org.apache.cloudstack.backup.veeam.VeeamClient.executePowerShellCommands(VeeamClient.java:646)
           at org.apache.cloudstack.backup.veeam.VeeamClient.getRepositoryNameFromJob(VeeamClient.java:434)
           at org.apache.cloudstack.backup.veeam.VeeamClient.listBackupRepository(VeeamClient.java:412)
           at org.apache.cloudstack.backup.veeam.VeeamClient.cloneVeeamJob(VeeamClient.java:530)
           at org.apache.cloudstack.backup.VeeamBackupProvider.assignVMToBackupOffering(VeeamBackupProvider.java:177)
           at org.apache.cloudstack.backup.BackupManagerImpl$1.doInTransaction(BackupManagerImpl.java:314)
           at org.apache.cloudstack.backup.BackupManagerImpl$1.doInTransaction(BackupManagerImpl.java:306)
           at com.cloud.utils.db.Transaction$3.doInTransaction(Transaction.java:74)
           at com.cloud.utils.db.Transaction.execute(Transaction.java:62)
           at com.cloud.utils.db.Transaction.execute(Transaction.java:71)
           at org.apache.cloudstack.backup.BackupManagerImpl.transactionAssignVMToBackupOffering(BackupManagerImpl.java:306)
           at org.apache.cloudstack.backup.BackupManagerImpl.assignVMToBackupOffering(BackupManagerImpl.java:302)
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:566)
           at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
           at org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:107)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
           at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:52)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
           at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
           at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
           at com.sun.proxy.$Proxy330.assignVMToBackupOffering(Unknown Source)
           at org.apache.cloudstack.api.command.user.backup.AssignVirtualMachineToBackupOfferingCmd.execute(AssignVirtualMachineToBackupOfferingCmd.java:88)
           at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:172)
           at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:112)
           at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:654)
           at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:48)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52)
           at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:45)
           at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:602)
           at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.base/java.lang.Thread.run(Thread.java:829)
   2024-07-24 22:58:00,759 ERROR [o.a.c.b.VeeamBackupProvider] (API-Job-Executor-1:ctx-255103b8 job-517 ctx-2be1b76c) (logid:4dabe3fc) Failed to clone pre-defined Veeam job (backup offering) for backup offering ID: urn:veeam:Job:dea66e23-a8e6-4247-a7d5-1b01969aa3c7 but will check the list of jobs again if it was eventually succeeded.
   2024-07-24 22:58:00,759 DEBUG [o.a.c.b.v.VeeamClient] (API-Job-Executor-1:ctx-255103b8 job-517 ctx-2be1b76c) (logid:4dabe3fc) Trying to list backup policies that are Veeam jobs
   2024-07-24 22:58:01,190 DEBUG [o.a.c.b.v.VeeamClient] (API-Job-Executor-1:ctx-255103b8 job-517 ctx-2be1b76c) (logid:4dabe3fc) Response received in GET request is: [HttpResponseProxy{HTTP/1.1 200 OK [Cache-Control: private, Content-Length: 912, Content-Type: application/xml; charset=utf-8, Server: Microsoft-HTTPAPI/2.0, X-Frame-Options: SAMEORIGIN, X-XSS-Protection: 1; mode=block, Strict-Transport-Security: max-age=31536000, X-Content-Type-Options: nosniff, Date: Wed, 24 Jul 2024 19:58:35 GMT] ResponseEntityProxy{[Content-Type: application/xml; charset=utf-8,Content-Length: 912,Chunked: false]}}] for URL: [https://vbem01.flexapp360.team:9398/api/jobs].
   2024-07-24 22:58:01,204 ERROR [o.a.c.b.BackupManagerImpl] (API-Job-Executor-1:ctx-255103b8 job-517 ctx-2be1b76c) (logid:4dabe3fc) Failed to assign VM [{"backupOfferingId":1,"backupVolumes":"[{\"uuid\":\"9c1a0797-f55f-4f93-8712-085d48eca756\",\"type\":\"ROOT\",\"size\":107374182400,\"path\":\"0fb3c71b3444447f92dae3312ef3e6e7\"}]","instanceName":"i-2-20-VM","uuid":"22662e18-8ae1-4031-a82c-bf848a4b29bd"}] to the Backup Offering [{"externalId":"urn:veeam:Job:dea66e23-a8e6-4247-a7d5-1b01969aa3c7","name":"Daily Backup","provider":"veeam","uuid":"291a0968-c509-438a-94f9-1f60e2c1532e"}], using provider [name: veeam, class: VeeamBackupProvider], due to: [Failed to assign the VM to the backup offering, please try removing the assignment and try again.].
   2024-07-24 22:58:01,205 DEBUG [o.a.c.b.BackupManagerImpl] (API-Job-Executor-1:ctx-255103b8 job-517 ctx-2be1b76c) (logid:4dabe3fc) Failed to assign VM [{"backupOfferingId":1,"backupVolumes":"[{\"uuid\":\"9c1a0797-f55f-4f93-8712-085d48eca756\",\"type\":\"ROOT\",\"size\":107374182400,\"path\":\"0fb3c71b3444447f92dae3312ef3e6e7\"}]","instanceName":"i-2-20-VM","uuid":"22662e18-8ae1-4031-a82c-bf848a4b29bd"}] to the Backup Offering [{"externalId":"urn:veeam:Job:dea66e23-a8e6-4247-a7d5-1b01969aa3c7","name":"Daily Backup","provider":"veeam","uuid":"291a0968-c509-438a-94f9-1f60e2c1532e"}], using provider [name: veeam, class: VeeamBackupProvider], due to: [Failed to assign the VM to the backup offering, please try removing the assignment and try again.].
   com.cloud.utils.exception.CloudRuntimeException: Failed to assign the VM to the backup offering, please try removing the assignment and try again.
           at org.apache.cloudstack.backup.BackupManagerImpl$1.doInTransaction(BackupManagerImpl.java:315)
           at org.apache.cloudstack.backup.BackupManagerImpl$1.doInTransaction(BackupManagerImpl.java:306)
           at com.cloud.utils.db.Transaction$3.doInTransaction(Transaction.java:74)
           at com.cloud.utils.db.Transaction.execute(Transaction.java:62)
           at com.cloud.utils.db.Transaction.execute(Transaction.java:71)
           at org.apache.cloudstack.backup.BackupManagerImpl.transactionAssignVMToBackupOffering(BackupManagerImpl.java:306)
           at org.apache.cloudstack.backup.BackupManagerImpl.assignVMToBackupOffering(BackupManagerImpl.java:302)
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:566)
           at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
           at org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:107)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
           at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:52)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
           at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
           at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
           at com.sun.proxy.$Proxy330.assignVMToBackupOffering(Unknown Source)
           at org.apache.cloudstack.api.command.user.backup.AssignVirtualMachineToBackupOfferingCmd.execute(AssignVirtualMachineToBackupOfferingCmd.java:88)
           at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:172)
           at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:112)
           at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:654)
           at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:48)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52)
           at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:45)
           at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:602)
           at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.base/java.lang.Thread.run(Thread.java:829)
   2024-07-24 22:58:01,241 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-1:ctx-255103b8 job-517 ctx-2be1b76c) (logid:4dabe3fc) Complete async job-517, jobStatus: SUCCEEDED, resultCode: 0, result: org.apache.cloudstack.api.response.SuccessResponse/null/{"success":"true"}
   2024-07-24 22:58:01,243 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-1:ctx-255103b8 job-517 ctx-2be1b76c) (logid:4dabe3fc) Publish async job-517 complete on message bus
   2024-07-24 22:58:01,243 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-1:ctx-255103b8 job-517 ctx-2be1b76c) (logid:4dabe3fc) Wake up jobs related to job-517
   2024-07-24 22:58:01,244 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-1:ctx-255103b8 job-517 ctx-2be1b76c) (logid:4dabe3fc) Update db status for job-517
   2024-07-24 22:58:01,246 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-1:ctx-255103b8 job-517 ctx-2be1b76c) (logid:4dabe3fc) Wake up jobs joined with job-517 and disjoin all subjobs created from job- 517
   2024-07-24 22:58:01,255 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-1:ctx-255103b8 job-517) (logid:4dabe3fc) Done executing org.apache.cloudstack.api.command.user.backup.AssignVirtualMachineToBackupOfferingCmd for job-517
   2024-07-24 22:58:01,256 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-1:ctx-255103b8 job-517) (logid:4dabe3fc) Remove job-517 from job monitoring
   2024-07-24 22:58:01,419 DEBUG [c.c.a.ApiServlet] (qtp660017404-388:ctx-8d964df1) (logid:2ebbfcc9) ===START===  192.168.161.8 -- GET  command=readyForShutdown&response=json
   2024-07-24 22:58:01,419 DEBUG [c.c.a.ApiServlet] (qtp660017404-388:ctx-8d964df1) (logid:2ebbfcc9) Two factor authentication is already verified for the user 2, so skipping
   2024-07-24 22:58:01,435 DEBUG [c.c.a.ApiServer] (qtp660017404-388:ctx-8d964df1 ctx-ec3a5d74) (logid:2ebbfcc9) CIDRs from which account 'Account [{"accountName":"admin","id":2,"uuid":"a64e983a-45bd-11ef-968b-005056b7aa72"}]' is allowed to perform API calls: 0.0.0.0/0,::/0
   2024-07-24 22:58:01,445 DEBUG [o.a.c.a.StaticRoleBasedAPIAccessChecker] (qtp660017404-388:ctx-8d964df1 ctx-ec3a5d74) (logid:2ebbfcc9) RoleService is enabled. We will use it instead of StaticRoleBasedAPIAccessChecker.
   
   ~~~
   


-- 
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: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Veeam Backup => Assign Backup Problem [cloudstack]

Posted by "abh1sar (via GitHub)" <gi...@apache.org>.
abh1sar closed issue #9440: Veeam Backup => Assign Backup Problem
URL: https://github.com/apache/cloudstack/issues/9440


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Veeam Backup => Assign Backup Problem [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #9440:
URL: https://github.com/apache/cloudstack/issues/9440#issuecomment-2252164163

   > > > hello @weizhouapache, machine showing and working in vmware no problem but cloudstack panel in volume deleted. (Not remove in vmware just not showing in cloudstack panel.)
   > > > <img alt="Screenshot 2024-07-25 at 17 31 22" width="2000" src="https://private-user-images.githubusercontent.com/41322804/352160985-b60c872b-0ace-49eb-9a16-685dbbbbea77.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5MTkzNjksIm5iZiI6MTcyMTkxOTA2OSwicGF0aCI6Ii80MTMyMjgwNC8zNTIxNjA5ODUtYjYwYzg3MmItMGFjZS00OWViLTlhMTYtNjg1ZGJiYmJlYTc3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI1VDE0NTEwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI4M2IzNWJkZGU3ZDc2YTYzZjg3ZDk5NDY0ZDNlZTFjZmNhMjBhZTZjMWYyMTM5OWI0ZjczODE1N2IzNzQ4NmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.x-MdNXr0Em6SydDnARbkZbFnBP323o0NgvIm78eoKJw">
   > > 
   > > 
   > > @omurozlu you can set "removed" field to "NULL" in the "volumes" table
   > 
   > yes this solves the problem
   > 
   > `update cloud.volumes set removed=null where id = xx`
   
   
   @omurozlu that's just the workaround
   
   I checked the screenshot you shared. the vm was created from the ISO, which might be the root cause of the issue.
   can you test another vm created from a template ?


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Veeam Backup => Assign Backup Problem [cloudstack]

Posted by "abh1sar (via GitHub)" <gi...@apache.org>.
abh1sar commented on issue #9440:
URL: https://github.com/apache/cloudstack/issues/9440#issuecomment-3704828966

   Fixed by https://github.com/apache/cloudstack/pull/10705


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Veeam Backup => Assign Backup Problem [cloudstack]

Posted by "omurozlu (via GitHub)" <gi...@apache.org>.
omurozlu commented on issue #9440:
URL: https://github.com/apache/cloudstack/issues/9440#issuecomment-2250320166

   Hello,
   
   im make this working backup but restore make give this error
   
   Does anyone have any ideas on this subject?
   
   <img width="2298" alt="Screenshot 2024-07-25 at 16 24 32" src="https://github.com/user-attachments/assets/aa93f89b-cbaf-450d-911c-497b834857b3">
   
   
   
   ```2024-07-25 16:18:14,753 DEBUG [c.c.a.m.AgentManagerImpl] (AgentManager-Handler-13:null) (logid:) Ping from 10(v-2-VM)
   2024-07-25 16:18:14,817 DEBUG [c.c.h.g.VMwareGuru] (API-Job-Executor-7:ctx-483a914e job-550 ctx-bde8dc82) (logid:b7e45425) VM restore mapping for disk com.vmware.vim25.VirtualDiskFlatVer2BackingInfo@628136c9 (capacity: (100.00 GB) 107374182400) with volume ID55
   2024-07-25 16:18:14,818 DEBUG [c.c.h.g.VMwareGuru] (API-Job-Executor-7:ctx-483a914e job-550 ctx-bde8dc82) (logid:b7e45425) Trying to find network with vlan: [1006].
   2024-07-25 16:18:14,821 DEBUG [c.c.h.g.VMwareGuru] (API-Job-Executor-7:ctx-483a914e job-550 ctx-bde8dc82) (logid:b7e45425) Mapping network vlan [1006] to networkVO [id: b2184e9d-26a4-4f32-897b-c835ba0959cd].
   2024-07-25 16:18:14,830 ERROR [o.a.c.b.BackupManagerImpl] (API-Job-Executor-7:ctx-483a914e job-550 ctx-bde8dc82) (logid:b7e45425) Failed to import VM [vmInternalName: i-2-20-VM] from backup restoration [{"backupType":"Full","externalId":"56590451-d12e-468a-8722-db7b67881bff","id":1,"uuid":"56fe2d70-fc02-4e49-b8d4-c6cc225a84b9","vmId":20}] with hypervisor [type: VMware] due to: [null].
   java.lang.NullPointerException
           at com.cloud.hypervisor.guru.VMwareGuru.importVirtualMachineFromBackup(VMwareGuru.java:1169)
           at org.apache.cloudstack.backup.BackupManagerImpl.importRestoredVM(BackupManagerImpl.java:570)
           at org.apache.cloudstack.backup.BackupManagerImpl.restoreBackup(BackupManagerImpl.java:623)
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:566)
           at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
           at org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:107)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
           at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:52)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
           at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
           at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
           at com.sun.proxy.$Proxy330.restoreBackup(Unknown Source)
           at org.apache.cloudstack.api.command.user.backup.RestoreBackupCmd.execute(RestoreBackupCmd.java:77)
           at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:172)
           at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:112)
           at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:654)
           at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:48)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52)
           at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:45)
           at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:602)
           at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.base/java.lang.Thread.run(Thread.java:829)
   2024-07-25 16:18:14,848 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-7:ctx-483a914e job-550) (logid:b7e45425) Complete async job-550, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530"}
   2024-07-25 16:18:14,850 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-7:ctx-483a914e job-550) (logid:b7e45425) Publish async job-550 complete on message bus
   2024-07-25 16:18:14,850 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-7:ctx-483a914e job-550) (logid:b7e45425) Wake up jobs related to job-550
   2024-07-25 16:18:14,850 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-7:ctx-483a914e job-550) (logid:b7e45425) Update db status for job-550
   2024-07-25 16:18:14,852 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-7:ctx-483a914e job-550) (logid:b7e45425) Wake up jobs joined with job-550 and disjoin all subjobs created from job- 550
   2024-07-25 16:18:14,860 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-7:ctx-483a914e job-550) (logid:b7e45425) Done executing org.apache.cloudstack.api.command.user.backup.RestoreBackupCmd for job-550
   2024-07-25 16:18:14,861 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-7:ctx-483a914e job-550) (logid:b7e45425) Remove job-550 from job monitoring
   2024-07-25 16:18:14,917 DEBUG [c.c.a.ApiServlet] (qtp660017404-920:ctx-1ab4bb5f) (logid:917861ca) ===START===  192.168.161.8 -- GET  jobId=b7e45425-dd27-4a0f-8361-ac305a3b0963&command=queryAsyncJobResult&response=json
   2024-07-25 16:18:14,917 DEBUG [c.c.a.ApiServlet] (qtp660017404-920:ctx-1ab4bb5f) (logid:917861ca) Two factor authentication is already verified for the user 2, so skipping
   ```


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Veeam Backup => Assign Backup Problem [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #9440:
URL: https://github.com/apache/cloudstack/issues/9440#issuecomment-2249683671

   @omurozlu 
   the veeam integration uses veeam API in some operations.
   in some other operations, it runs powershell command via ssh into the server, therefore the ssh port should be accessible from cloudstack management server. 
   
   ```
   com.cloud.utils.exception.CloudRuntimeException: Error while executing PowerShell commands due to: There was a problem while connecting to vbem01.flexapp360.team:22
   ```
   
   can you please check the firewall ? 


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Veeam Backup => Assign Backup Problem [cloudstack]

Posted by "omurozlu (via GitHub)" <gi...@apache.org>.
omurozlu commented on issue #9440:
URL: https://github.com/apache/cloudstack/issues/9440#issuecomment-2601018888

   I have done tests on this subject.
   When the VM is created from a template, it does not give an error.
   When it is created from an ISO, the volume database also appears as removed.
   
   `update cloud.volumes set removed=null where id = xx` this needs to be corrected manually.
   


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Veeam Backup => Assign Backup Problem [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #9440:
URL: https://github.com/apache/cloudstack/issues/9440#issuecomment-2250450845

   @omurozlu 
   can you check if the vm template and service offering are still valid ?


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Veeam Backup => Assign Backup Problem [cloudstack]

Posted by "kiranchavala (via GitHub)" <gi...@apache.org>.
kiranchavala commented on issue #9440:
URL: https://github.com/apache/cloudstack/issues/9440#issuecomment-2249709910

   @omurozlu 
   
   Did you install the openssh package on windows server 
   
   https://docs.cloudstack.apache.org/en/4.19.1.0/adminguide/veeam_plugin.html#installing-veeam-backup-and-recovery-for-use-with-cloudstack
   
   https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse?tabs=gui#install-openssh-for-windows


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Veeam Backup => Assign Backup Problem [cloudstack]

Posted by "omurozlu (via GitHub)" <gi...@apache.org>.
omurozlu commented on issue #9440:
URL: https://github.com/apache/cloudstack/issues/9440#issuecomment-2251154830

   hello again @weizhouapache,
   
   volumes table state column showing => 'ready'
   
   * im vm create 
   * added backup offering
   * start backup (complated no problem)
   * trying restore backup (give same error)
   <img width="815" alt="Screenshot 2024-07-25 at 21 29 25" src="https://github.com/user-attachments/assets/c5f260eb-8b1c-4529-b9d1-5542495d505b">
   <img width="1413" alt="Screenshot 2024-07-25 at 21 29 45" src="https://github.com/user-attachments/assets/7bfb3abf-5038-4583-9e47-b7d38ec68980">
   
   


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Veeam Backup => Assign Backup Problem [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #9440:
URL: https://github.com/apache/cloudstack/issues/9440#issuecomment-2250553601

   > hello @weizhouapache, machine showing and working in vmware no problem but cloudstack panel in volume deleted. (Not remove in vmware just not showing in cloudstack panel.)
   > 
   > <img alt="Screenshot 2024-07-25 at 17 31 22" width="2000" src="https://private-user-images.githubusercontent.com/41322804/352160985-b60c872b-0ace-49eb-9a16-685dbbbbea77.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5MTkzNjksIm5iZiI6MTcyMTkxOTA2OSwicGF0aCI6Ii80MTMyMjgwNC8zNTIxNjA5ODUtYjYwYzg3MmItMGFjZS00OWViLTlhMTYtNjg1ZGJiYmJlYTc3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI1VDE0NTEwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI4M2IzNWJkZGU3ZDc2YTYzZjg3ZDk5NDY0ZDNlZTFjZmNhMjBhZTZjMWYyMTM5OWI0ZjczODE1N2IzNzQ4NmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.x-MdNXr0Em6SydDnARbkZbFnBP323o0NgvIm78eoKJw">
   
   @omurozlu 
   you can set "removed" field to "NULL" in the "volumes" table


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Veeam Backup => Assign Backup Problem [cloudstack]

Posted by "omurozlu (via GitHub)" <gi...@apache.org>.
omurozlu commented on issue #9440:
URL: https://github.com/apache/cloudstack/issues/9440#issuecomment-2250536433

   hello @weizhouapache,
   machine showing and working in vmware no problem but cloudstack panel in volume deleted. (Not remove in vmware just not showing in cloudstack panel.)
   
   <img width="2270" alt="Screenshot 2024-07-25 at 17 31 22" src="https://github.com/user-attachments/assets/b60c872b-0ace-49eb-9a16-685dbbbbea77">
   


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Veeam Backup => Assign Backup Problem [cloudstack]

Posted by "omurozlu (via GitHub)" <gi...@apache.org>.
omurozlu commented on issue #9440:
URL: https://github.com/apache/cloudstack/issues/9440#issuecomment-2251274541

   > > hello @weizhouapache, machine showing and working in vmware no problem but cloudstack panel in volume deleted. (Not remove in vmware just not showing in cloudstack panel.)
   > > <img alt="Screenshot 2024-07-25 at 17 31 22" width="2000" src="https://private-user-images.githubusercontent.com/41322804/352160985-b60c872b-0ace-49eb-9a16-685dbbbbea77.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5MTkzNjksIm5iZiI6MTcyMTkxOTA2OSwicGF0aCI6Ii80MTMyMjgwNC8zNTIxNjA5ODUtYjYwYzg3MmItMGFjZS00OWViLTlhMTYtNjg1ZGJiYmJlYTc3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI1VDE0NTEwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI4M2IzNWJkZGU3ZDc2YTYzZjg3ZDk5NDY0ZDNlZTFjZmNhMjBhZTZjMWYyMTM5OWI0ZjczODE1N2IzNzQ4NmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.x-MdNXr0Em6SydDnARbkZbFnBP323o0NgvIm78eoKJw">
   > 
   > @omurozlu you can set "removed" field to "NULL" in the "volumes" table
   
   bu sorun çözülüyor evet
   
   UPDATE `cloud`.`volumes` SET `removed` = '' WHERE `id` = xx 
   
   


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org