HomePhorge

(PUP-576,PUP-1064) Update to activerecord 3.2.x to work around a Ruby 2.x issue
284bbfcdc9deUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-576,PUP-1064) Update to activerecord 3.2.x to work around a Ruby 2.x issue

tests/store_configs/enc_provides_node_when_storeconfigs_enabled.rb fails
running under Ruby 2.0 because of a bug between activerecord 3.0 and
Ruby 2.0. This fails with:

'undefined method `insert_record' for <Array:0x00000003027be8>'

when Puppet::Rails::Host attempts to save with merged facts. The root
cause is tangled up in ActiveRecord's association proxies.

ActiveRecord 3.2 has patches which allow it to work under Ruby 2.0

However making this change unearthed another Rails issue which Andrew
Parker recalled was in fact PUP-1064. This issue tracks a
general failure in Puppet on any Ruby version working with ActiveRecord

3.0.10. Fortunately there was a patch attached to PUP-1064 which

guards lookup of the activerecord id property on the
puppet/rails/resource.rb activerecord object, and this does appear to
fix the issue.

Details

Provenance
Josh Partlow <joshua.partlow@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUf4b6cc2c2cee: (PUP-576) Handle Ruby 2.0 OpenSSL lib error message
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Partlow <joshua.partlow@puppetlabs.com> committed rPU284bbfcdc9de: (PUP-576,PUP-1064) Update to activerecord 3.2.x to work around a Ruby 2.x issue (authored by Josh Partlow <joshua.partlow@puppetlabs.com>).Jan 30 2014, 11:00 PM