Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 1571338 - env. vars in /etc/sysconfig/atomic-openshift-master-controllers
Summary: env. vars in /etc/sysconfig/atomic-openshift-master-controllers
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Documentation
Version: 3.10.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 3.11.z
Assignee: Samantha Gidlow
QA Contact: Gaoyun Pei
Vikram Goyal
Depends On:
TreeView+ depends on / blocked
Reported: 2018-04-24 14:36 UTC by Hongkai Liu
Modified: 2021-04-07 12:52 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-03-17 12:52:27 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Hongkai Liu 2018-04-24 14:36:34 UTC
Document URL: 

Section Number and Name: 

Describe the issue: 
There is a test case where I need to set up KUBE_MAX_PD_VOLS=60 in 

In 3.10, this file is no longer used.

From Clayton Coleman's email:
The /etc/sysconfig/(origin|atomic-openshift)-(api|controllers) files will no longer be used.  A new /etc/origin/master/master.env file can be used to set environment variables for the static pods.  The set of configuration available as env vars is limited (proxy and log levels).  Future versions of OpenShift will remove this configuration in favor of control plane files, so consider the master.env file a last resort and deprecated.

I wonder if the following is the way (since master.env is also deprecated) to be supported:

### modify the yaml def for static pod of controller
# vi /etc/origin/node/pods/controller.yaml
    image: registry.reg-aws.openshift.com:443/openshift3/ose-control-plane:v3.10
    - name: KUBE_MAX_PD_VOLS
      value: 60

Currently, I cannot do this because I hit https://bugzilla.redhat.com/show_bug.cgi?id=1570877 after the modification.

Suggestions for improvement: 

Additional information:

Comment 1 Hongkai Liu 2018-05-03 19:54:52 UTC
Found the problem:

# vi /etc/origin/node/pods/controller.yaml
    image: registry.reg-aws.openshift.com:443/openshift3/ose-control-plane:v3.10
    - name: KUBE_MAX_PD_VOLS
      value: "60" 

Note that 60 has to be double quoted otherwise got the following msg in `journalctl -u atomic-openshift-node`
May 03 19:15:24 ip-172-31-26-32.us-west-2.compute.internal atomic-openshift-node[24536]: E0503 19:15:24.463780   24536 file_linux.go:114] Can't process manifest file "/etc/origin/node/pods/controller.yaml": /etc/origin/node/pods/controller.yaml: couldn't parse as pod([pos 651]: json: expect char '"' but got char '2'), please check manifest file.

# oc rsh master-controllers-ip-172-31-26-32.us-west-2.compute.internal
sh-4.2# printenv | grep 60

I would feel more comfortable if someone can confirm that is the correct way to set up env var for static pods, like master-controllers.


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