Description of problem: Configure node garbage collection following https://docs.openshift.com/enterprise/3.1/admin_guide/garbage_collection.html, add following configurations to node-config.yaml, when starting openshift node, error "F1124 10:26:24.955722 3492 start_node.go:74] could not load config file "openshift.local.config/node/node-config.yaml" due to an error: json: cannot unmarshal number into Go value of type string" is displayed. Container garbage collection setting. ``` kubeletArguments: minimum-container-ttl-duration: - 10s maximum-dead-containers-per-container: - 2 maximum-dead-containers: - 100 ``` Version-Release number of selected component (if applicable): On devenv-fedora_2775 openshift v1.1-146-ge13da03 kubernetes v1.1.0-origin-1107-g4c8e6f4 etcd 2.1.2 How reproducible: Always Steps to Reproduce: 1. Follow https://docs.openshift.com/enterprise/3.1/admin_guide/garbage_collection.html to setup node garbage collection 2. sudo /data/src/github.com/openshift/origin/_output/local/bin/linux/amd64/openshift start node --kubeconfig=openshift.local.config/master/admin.kubeconfig --hostname=`hostname` --volume-dir=pwd/openshift.local.volumes --config=openshift.local.config/node/node-config.yaml Actual results: After step 2: F1124 10:26:24.955722 3492 start_node.go:74] could not load config file "openshift.local.config/node/node-config.yaml" due to an error: json: cannot unmarshal number into Go value of type string Expected results: Should not see any error Additional info: After updating the values with string, node is started Document URL: https://docs.openshift.com/enterprise/3.1/admin_guide/garbage_collection.html Section Number and Name: Container Garbage Collection
The documentation needs to be corrected. All kubeletArguments values have to be strings. In the example above, 10s, 2, and 100 need to be strings.
https://github.com/openshift/openshift-docs/pull/1282
Merged upstream
@Jan Chaloupka if this bug is fixed, could you set the status on_qa ?
I was told it is enough to set status to RELEASE_PENDING. This is documentation related. The change is already presented in openshift docs [1] in "Settings" snippets of configurations. I don't see a reason why this can not be switched to VERIFIED right away. Can anyone from docs confirm/verify? [1] https://docs.openshift.org/latest/admin_guide/garbage_collection.html
This bug can be verified, can anyone please change it to ON_QA status? We can only change a bug to VERIFIED status from ON_QA status. Thank you!
This bug is verified.