Changes to global_environment_variables cause duplication
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Undecided
|
Travis Truman |
Bug Description
Scenario:
Set the global_
global_
http_proxy: "http://
https_proxy: "http://
Run host and container playbooks:
openstack-ansible setup-hosts.yml
Change the values of global_
global_
http_proxy: "http://
https_proxy: "http://
Run host and container playbooks:
openstack-ansible setup-hosts.yml
Expected behavior:
/etc/environment in both the host and container look like:
http_proxy=http://
https_proxy=http://
Actual behavior:
/etc/environment in both the host and container look like:
http_proxy=http://
https_proxy=http://
http_proxy=http://
https_proxy=http://
Changed in openstack-ansible: | |
assignee: | nobody → Travis Truman (travis-truman) |
Changed in openstack-ansible: | |
status: | New → In Progress |
Changed in openstack-ansible: | |
status: | In Progress → Fix Committed |
Changed in openstack-ansible: | |
status: | Fix Committed → Fix Released |
Reviewed: https:/ /review. openstack. org/309128 /git.openstack. org/cgit/ openstack/ openstack- ansible- openstack_ hosts/commit/ ?id=bc21adddac2 33a9fb18336cf6c 830c45b685cc7d
Committed: https:/
Submitter: Jenkins
Branch: master
commit bc21adddac233a9 fb18336cf6c830c 45b685cc7d
Author: Travis Truman <email address hidden>
Date: Thu Apr 21 13:49:57 2016 -0400
Template /etc/environment rather than use lineinfile
The existing lineinfile implementation is buggy when changing and removing environment_ variables dict
entries from the global_
Change-Id: Ic9899b1a4a72e7 2d0bac26eb8f650 681186332e1
Partial-Bug: #1573131