Skip to content

Conversation

@jcantrill
Copy link
Contributor

blocked on #350

@jcantrill jcantrill requested a review from ewolinetz March 16, 2017 20:05
@jcantrill jcantrill self-assigned this Mar 16, 2017
@jcantrill jcantrill force-pushed the refactor_gen_log_throttle branch from 7eaaa5c to 73c2ea7 Compare March 17, 2017 22:42
@jcantrill
Copy link
Contributor Author

[merge]

@jcantrill
Copy link
Contributor Author

[merge] ansible dependency is fixed.

@jcantrill
Copy link
Contributor Author

[merge] test flake?

@openshift-bot
Copy link

Evaluated for aggregated logging merge up to 73c2ea7

@openshift-bot
Copy link

Aggregated Logging Merge Results: FAILURE (https://ci.openshift.redhat.com/jenkins/job/test-origin-aggregated-logging/1230/) (Base Commit: c13ad15)

@richm
Copy link
Contributor

richm commented Mar 31, 2017

@jcantrill The problem is that YAML.load_file() will return false if the file has no yaml in it. map is not a valid method for the false class. The default file /etc/fluent/configs.d/user/throttle-config.yaml contains only comments.

$ pwd
~/origin-aggregated-logging
$ irb
irb(main):001:0> require 'yaml'
=> true
irb(main):002:0> YAML.load_file("fluentd/configs.d/user/throttle-conf.yaml")
=> false
irb(main):003:0> YAML.load_file("fluentd/configs.d/user/throttle-conf.yaml").map
NoMethodError: undefined method `map' for false:FalseClass
Did you mean?  tap
	from (irb):3
	from /usr/bin/irb:11:in `<main>'

This is the error from https://ci.openshift.redhat.com/jenkins/job/test-origin-aggregated-logging/1230/s3/download/logs/containers/k8s_fluentd-elasticsearch.1fb423d7_logging-fluentd-cgslb_logging_ec2283af-1583-11e7-a65a-0ecf144b3860_828d9bc5.log

generate_throttle_configs.rb:222:in `<main>': undefined method `map' for false:FalseClass (NoMethodError)

@openshift-bot
Copy link

Evaluated for origin aggregated logging merge up to 73c2ea7

@openshift-bot
Copy link

openshift-bot commented Jun 8, 2017

Origin Aggregated Logging Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin_aggregated_logging/10/) (Base Commit: 6f90060)

@openshift-bot openshift-bot merged commit a0be43d into openshift:master Jun 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants