You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have been using the patching module for some time, and no issue, and suddenly we got the error below (it is random, from 10 times doing snapshot will come once, it is always same inputs):
{
"msg" : "ManagedObjectNotFound: The object 'vim.Task:task-256811' has already been deleted or has not been completely created",
"kind" : "bolt/plan-failure",
"details" : {
"class" : "Bolt::PAL::PALError"
}
}
I think that message comes from VMware (error in Plan output above) reference: https://kb.vmware.com/s/article/1039326
I wonder if it is possible to take an exception and proceed with the Plan because when this fails Plan is stopped. Since this is a function, can we raise an exception in Ruby code in case of the error above to proceed?
Thanks
The text was updated successfully, but these errors were encountered:
Can this help me if I raise exception around this code:
begin
unless vm.snapshot
return_value = true
break
end
rescue => err
raise "Deleting snapshot failed with error: #{err}"
end
Basically, if something fails to continue with the rest of the Plan, otherwise we receive an error and the Plan is stopped:
{
"msg" : "ManagedObjectNotFound: The object 'vim.Task:task-256811' has already been deleted or has not been completely created",
"kind" : "bolt/plan-failure",
"details" : {
"class" : "Bolt::PAL::PALError"
}
}
The problem is that error above does not tell where in the Ruby file is an error (line)
Hi Encore team,
We have been using the patching module for some time, and no issue, and suddenly we got the error below (it is random, from 10 times doing snapshot will come once, it is always same inputs):
{
"msg" : "ManagedObjectNotFound: The object 'vim.Task:task-256811' has already been deleted or has not been completely created",
"kind" : "bolt/plan-failure",
"details" : {
"class" : "Bolt::PAL::PALError"
}
}
I think that message comes from VMware (error in Plan output above) reference: https://kb.vmware.com/s/article/1039326
I wonder if it is possible to take an exception and proceed with the Plan because when this fails Plan is stopped. Since this is a function, can we raise an exception in Ruby code in case of the error above to proceed?
Thanks
The text was updated successfully, but these errors were encountered: