sptest232 commented on issue #6599:
URL: https://github.com/apache/cloudstack/issues/6599#issuecomment-1335092901

   Also problems (with the exception of the problem with method PS 
"GetBackupTargetRepository()") with CloudStack 4.17.1.0 + Veeam Backup and 
Replication 11.0.1.1261
   
   ### PowerShell
   
   
   Add-PSSnapin VeeamPSSnapin;$Job = Get-VBRJob -name 
"predef";$Job.GetBackupTargetReposito**ry() ^| se**lect Name | Format-List
   At line:1 char:94
   + ...  Get-VBRJob -name "predef";$Job.GetBackupTargetRepository() ^| select 
...
   
   **Unexpected token '^' in expression or statement.**
       + CategoryInfo          : ParserError: (:) [], 
ParentContainsErrorRecordException
       + FullyQualifiedErrorId : UnexpectedToken
   
   
   Add-PSSnapin VeeamPSSnapin;$Job = Get-VBRJob -name 
"predef";$Job.GetBackupTargetRepositor**y() | s**elect Name | Format-List
   Add-PSSnapin : No snap-ins have been registered for Windows PowerShell 
version 5.
   At line:1 char:1
   + Add-PSSnapin VeeamPSSnapin;$Job = Get-VBRJob -name "predef";$Job.GetB ...
   
       + CategoryInfo          : InvalidArgument: (VeeamPSSnapin:String) 
[Add-PSSnapin], PSArgumentException
       + FullyQualifiedErrorId : 
AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
   
   
   
   **Name : Default Backup Repository**
   
   
   
   ##### CloudStack log
   
   2022-12-02 14:04:30,692 ERROR [c.c.u.s.SshHelper] 
(API-Job-Executor-3:ctx-c9a1fec5 job-45 ctx-441a8bba) (logid:87897a61) SSH 
execution of command PowerShell Add-PSSnapin VeeamPSSnapin;$Job = Get-VBRJob 
-name
   "adhoc";$Job.GetBackupTargetRepository() ^| select Name | Format-List has an 
error status code in return. Result output: 'Format-List' is not recognized as 
an internal or external command,
   operable program or batch file.
   
   2022-12-02 14:04:30,697 ERROR [o.a.c.b.v.VeeamClient] 
(API-Job-Executor-3:ctx-c9a1fec5 job-45 ctx-441a8bba) (logid:87897a61) Veeam 
PowerShell commands [PowerShell Add-PSSnapin VeeamPSSnapin;$Job = Get-VBRJob
   -name "adhoc";$Job.GetBackupTargetRepository() ^| select Name | Format-List] 
failed due to: ['Format-List' is not recognized as an internal or external 
command,
   operable program or batch file.
   ].
   2022-12-02 14:04:30,699 WARN  [o.a.c.b.v.VeeamClient] 
(API-Job-Executor-3:ctx-c9a1fec5 job-45 ctx-441a8bba) (logid:87897a61) 
Exception caught while trying to clone Veeam job:
   com.cloud.utils.exception.CloudRuntimeException: Failed to get Repository 
Name from Job [name: adhoc].
           at 
org.apache.cloudstack.backup.veeam.VeeamClient.getRepositoryNameFromJob(VeeamClient.java:367)
           at 
org.apache.cloudstack.backup.veeam.VeeamClient.listBackupRepository(VeeamClient.java:343)
           at 
org.apache.cloudstack.backup.veeam.VeeamClient.cloneVeeamJob(VeeamClient.java:461)
           at 
org.apache.cloudstack.backup.VeeamBackupProvider.assignVMToBackupOffering(VeeamBackupProvider.java:148)
           at 
org.apache.cloudstack.backup.BackupManagerImpl$1.doInTransaction(BackupManagerImpl.java:304)
           at 
org.apache.cloudstack.backup.BackupManagerImpl$1.doInTransaction(BackupManagerImpl.java:296)
           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:296)
           at 
org.apache.cloudstack.backup.BackupManagerImpl.assignVMToBackupOffering(BackupManagerImpl.java:292)
           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.$Proxy315.assignVMToBackupOffering(Unknown Source)
           at 
org.apache.cloudstack.api.command.user.backup.AssignVirtualMachineToBackupOfferingCmd.execute(AssignVirtualMachineToBackupOfferingCmd.java:90)
           at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:163)
           at 
com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:106)
           at 
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:620)
           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:568)
           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)


-- 
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