fuel plugin ldap is not idempotent

Bug #1630957 reported by Roman Sokolkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Won't Fix
Medium
Fuel Plugins Bugs
Mitaka
Confirmed
Medium
Fuel Plugins Bugs

Bug Description

I'm using Fuel plugin ldap 3.0. Fuel 9.1.

It uses file_line with incorrect matches that will cause new few lines addition on the second run.

Affected
OPENSTACK_API_VERSIONS
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT

https://github.com/openstack/fuel-plugin-ldap/blob/9.0/deployment_scripts/puppet/modules/plugin_ldap/manifests/controller.pp#L158-L170

Workaround: change matches to

^OPENSTACK_API_VERSIONS = {.*$
^OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = .*$

Steps to reproduce:
- Deploy 9.1 + ldap plugin
- execute
epuppet apply --modulepath /etc/puppet/modules/:/etc/fuel/plugins/ldap-3.0/puppet/modules/ /etc/fuel/plugins/ldap-3.0/puppet/manifests/controller_site.pp

Expected result:
No new lines in /etc/openstack-dashboard/local_settings.py

Actual result:
New lines with the same content appeared

Changed in fuel:
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → Fuel Plugins Bugs (fuel-plugins-bugs)
milestone: none → 9.2
Roman Vyalov (r0mikiam)
Changed in fuel:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.