Upgrade from Katello 3.5.1 to 3.6.0 Puppet ENC errors

Hi,

I’m having this issue after upgrading from Katello 3.5.1 to 3.6.0. Seems like the hash got converted to something else or is not properly interpreted. If I modify the smart parameter it will fail in some other.

Any idea?

Logs:

Web UI

undefined method `each_pair' for "{\"PrivateMirror\"=>[\"mirror.corp.domain.com\", \"mirror2.corp.domain.com\"]}":String Did you mean? each_char`

production.log

2018-04-24 07:30:40 6e9be278 [app] [W] Failed to generate external nodes for host100.corp.domain.com
 | NoMethodError: undefined method `each_pair' for #<String:0x007fd5d9740a48>
 | Did you mean?  each_char
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/core_ext/hash/deep_merge.rb:22:in `deep_merge!'
 | /usr/share/foreman/app/services/classification/values_hash_query.rb:159:in `block in update_hash_matcher'
 | /usr/share/foreman/app/services/classification/values_hash_query.rb:154:in `reverse_each'
 | /usr/share/foreman/app/services/classification/values_hash_query.rb:154:in `update_hash_matcher'
 | /usr/share/foreman/app/services/classification/values_hash_query.rb:51:in `merged_value'
 | /usr/share/foreman/app/services/classification/values_hash_query.rb:37:in `calculate_value'
 | /usr/share/foreman/app/services/classification/values_hash_query.rb:20:in `block in values_hash'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/delegation.rb:39:in `each'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/delegation.rb:39:in `each'
 | /usr/share/foreman/app/services/classification/values_hash_query.rb:19:in `values_hash'
 | /usr/share/foreman/app/models/concerns/classification.rb:5:in `block (2 levels) in <module:Classification>'

Anybody experiencing this issue?

I think I’m hitting this bug:

https://projects.theforeman.org/issues/19980