Bug 1451187 - Unknown lvalue 'ENVIRONMENT' in section 'Service while using docker system container
Summary: Unknown lvalue 'ENVIRONMENT' in section 'Service while using docker system co...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Giuseppe Scrivano
QA Contact: Gan Huang
URL:
Whiteboard:
Depends On: 1450307
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-16 05:36 UTC by Gan Huang
Modified: 2017-08-16 19:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-10 05:24:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1716 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 09:02:50 UTC

Description Gan Huang 2017-05-16 05:36:22 UTC
Description of problem:
According to https://www.freedesktop.org/software/systemd/man/systemd.service.html#Command%20lines, `ENVIRONMENT` can't be recognized in systemd service configurations. Only `Environment` recognized.

Version-Release number of selected component (if applicable):
openshift-ansible-3.6.68-1.git.0.9cbe2b7.el7.noarch.rpm

How reproducible:
always

Steps to Reproduce:
1. Set up proxy env while using docker system container
#cat inventory_hosts
<--snip-->
openshift_docker_use_system_container=true
openshift_docker_systemcontainer_image_registry_override=brew-xxx.redhat.com:8888/rhel7
openshift_http_proxy=http://xxx.redhat.com:3128
openshift_https_proxy=http://xxx.redhat.com:3128
<--snip-->



Actual results:
Failed to pull images via docker client from external registry due to proxy variables not loaded into `container-engine` successfully.

# systemctl status container-engine
<--snip-->
May 15 23:51:06 openshift-147.lab.sjc.redhat.com systemd[1]: [/etc/systemd/system/container-engine.service.d/custom.conf:6] Unknown lvalue 'ENVIRONMENT' in section 'Service'

It worked well after renaming 'ENVIRONMENT' to `Environment`.

Expected results:


Additional info:

Comment 1 Giuseppe Scrivano 2017-05-17 09:54:27 UTC
Pull request here:

https://github.com/openshift/openshift-ansible/pull/4214

Comment 3 Gan Huang 2017-06-12 02:56:52 UTC
Verified with openshift-ansible-3.6.98-1.git.0.e651d65.el7.noarch.rpm

Proxy variables set correctly.

Comment 5 errata-xmlrpc 2017-08-10 05:24:06 UTC
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.

https://access.redhat.com/errata/RHEA-2017:1716


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