RangeError "X is recycled object" while running automation scripts

Solution Unverified - Updated -

Issue

  • When running automation code I am getting DRB exceptions. When running the following code from a button as an example. It has happened in 1 iteration or took as many as 23. I have run this 5 times and it fails every time.
def filter_templates(templates)
  templates.select { true }
end

templates = $evm.vmdb('TemplateVmware').all
$evm.log(:info, "Template names #{templates.map(&:name).join(',')}")

$evm.log(:info, 'Selecting items from the array.')
(1..100).each do |index|
  $evm.log(:info, "Iteration #{index}")
  $evm.log(:info, "Template names #{filter_templates(templates).map(&:name).join(',')}")
  sleep(delay)
end

Environment

  • Red Hat CloudForms 3.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content