![puppet 仪表板:导入报告时格式不匹配](https://linux22.com/image/667882/puppet%20%E4%BB%AA%E8%A1%A8%E6%9D%BF%EF%BC%9A%E5%AF%BC%E5%85%A5%E6%8A%A5%E5%91%8A%E6%97%B6%E6%A0%BC%E5%BC%8F%E4%B8%8D%E5%8C%B9%E9%85%8D.png)
全新的 puppet-dashboard 2.0.0-beta1 无法导入任何报告:delayed_job 工作人员抱怨:
Importing report at 2015-10-01 04:55 UTC
Attribute was supposed to be a Array, but was a ActiveSupport::HashWithIndifferentAccess
Backtrace
app/models/report.rb:134:in `create_from_yaml'
puppet 客户端版本为:4.2.2
它看起来格式不匹配,但我发现的唯一“格式”指令是:
preferred_serialization_format = pson
仪表板日志非常简单:
2015-10-01T08:09:16+0200: [Worker(delayed_job.1 host:puppet pid:19415)] Class#create_from_yaml completed after 0.0752
2015-10-01T08:09:16+0200: [Worker(delayed_job.1 host:puppet pid:19415)] 1 jobs processed at 11.1567 j/s, 0 failed ...
我错过了什么?
答案1
截至 2015 年 10 月,为了让 puppet-dashboard 接受 puppet4 格式的报告,您必须获取拉取请求 #329。
这解决了我的问题。