Bug 1289762 - /etc/kubernetes/config has typo for privileged containers option
/etc/kubernetes/config has typo for privileged containers option
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kubernetes (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Jan Chaloupka
: Extras
Depends On:
  Show dependency treegraph
Reported: 2015-12-08 17:04 EST by Micah Abbott
Modified: 2016-03-04 10:06 EST (History)
2 users (show)

See Also:
Fixed In Version: kubernetes-1.2.0-0.2.alpha1.git8632732.el7_2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-02-16 11:30:26 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Micah Abbott 2015-12-08 17:04:49 EST
Description of problem:
The '/etc/kubernetes/config' file has a typo in the 'KUBE_ALLOW_PRIV' option; it lists '--allow_privileged' as the option to the 'kubelet', but the correct option is '--allow-privileged'.  Note: dash vs underscore

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Install kubernetes-master
2. Inspect /etc/kubernetes/config

Actual results:

Option listed is '--allow_privileged'

Expected results:

Option should be '--allow-privileged'

Additional info:

See upstream docs:  http://kubernetes.io/v1.1/docs/admin/kubelet.html

-bash-4.2# rpm -q kubernetes-master
-bash-4.2# rpm -ql kubernetes-master 
-bash-4.2# cat /etc/kubernetes/config 
# kubernetes system config
# The following values are used to configure various aspects of all
# kubernetes services, including
#   kube-apiserver.service
#   kube-controller-manager.service
#   kube-scheduler.service
#   kubelet.service
#   kube-proxy.service
# logging to stderr means we get it in the systemd journal

# journal message level, 0 is debug

# Should this cluster be allowed to run privileged docker containers

# How the controller-manager, scheduler, and proxy find the apiserver
Comment 5 errata-xmlrpc 2016-02-16 11:30:26 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

Comment 6 John Boero 2016-03-04 09:57:21 EST
Hi I just ran into this in Fedora 23 as well.  Suddenly pulled the updates that fixed it and left me confused.  Note that the man pages are still ambiguous, with references to both --api_servers and --api-servers etc.  Very confusing for users and no helpful output when mistaken.  Should another bug be filed for documentation?  .rpmnew config files leave me scratching my head with a partially functional cluster.

Comment 7 Jan Chaloupka 2016-03-04 10:06:08 EST
Hi John,

atm both form of flags with dashes/underscores are supported. Flags with underscore are deprecated although still supported for backward compatibility.

If there are both forms supported, prefer flags with dashes.

If there is a flag that should be supported and is not, please report a bug.


Note You need to log in before you can comment on or make changes to this bug.