keystone-ldap needs to handle complex ldap-config-flags
Bug #1674841 reported by
David Ames
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Keystone LDAP integration |
Fix Released
|
Medium
|
David Ames |
Bug Description
Keystone-ldap splits on comma (,). But complex flags may have sub groupings that are comma delimited like the following:
user_tree_
user_filter=
Also document the setting in more detail on what it expects.
Changed in charm-keystone-ldap: | |
milestone: | 17.05 → 17.08 |
Changed in charm-keystone-ldap: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
ubuntu@ juju-daa3c6- 8-lxd-0: /var/log/ juju$ sudo tailf unit-keystone- ldap-0. log backend- relation- joined File "templates/ keystone. conf", line 16, in top-level template code backend- relation- joined {% if options. ldap_options -%} backend- relation- joined File "/var/lib/ juju/agents/ unit-keystone- ldap-0/ .venv/lib/ python3. 5/site- packages/ jinja2/ environment. py", line 430, in getattr backend- relation- joined return getattr(obj, attribute) backend- relation- joined File "lib/charm/ openstack/ keystone_ ldap.py" , line 40, in ldap_options backend- relation- joined hookenv. config( 'ldap-config- flags') backend- relation- joined File "/var/lib/ juju/agents/ unit-keystone- ldap-0/ .venv/lib/ python3. 5/site- packages/ charmhelpers/ contrib/ openstack/ utils.py" , line 1939, in config_flags_parser backend- relation- joined raise OSContextError backend- relation- joined charmhelpers. contrib. openstack. exceptions. OSContextError uniter. operation runhook.go:107 hook "domain- backend- relation- joined" failed: exit status 1 backend- relation- joined /keystone- domain- backend/ provides. py:25:joined keystone_ ldap_handlers. py:36:check_ configuration keystone_ ldap_handlers. py:28:configure _domain_ name lib/juju/ agents/ unit-keystone- ldap-0/ .venv/lib/ python3. 5/site- packages/ charmhelpers/ contrib/ openstack/ templates' ]] backend- relation- joined Traceback (most recent call last): backend- relation- joined File "/var/lib/ juju/agents/ unit-keystone- ldap-0/ charm/hooks/ domain- backend- relation- joined" , line 19, in <module> backend- relation- joined main() backend- relation- joined File "/var/lib/ juju/agents/ unit-keystone- ldap-0/ .venv/lib/ python3. 5/site- packages/ charms/ reactive/ __init_ _.py", line 78, in main backend- relation- joined bus.dispatch() backend- relation- joined File "/var/lib/ juju/agents/ unit-keystone- ldap-0/ .venv/lib/ python3. 5/site- packages/ charms/ reactive/ bus.py" , line 434, in dispatch backend- relation- joined _invoke( other_handlers) backend- relation- joined File "/var/lib/ juju/agents/ unit-keystone- ldap-0/ .venv/lib/ python3. 5/site- packages/ charms/ react.. .
2017-03-21 21:49:00 INFO domain-
2017-03-21 21:49:00 INFO domain-
2017-03-21 21:49:00 INFO domain-
2017-03-21 21:49:00 INFO domain-
2017-03-21 21:49:00 INFO domain-
2017-03-21 21:49:00 INFO domain-
2017-03-21 21:49:00 INFO domain-
2017-03-21 21:49:00 INFO domain-
2017-03-21 21:49:00 INFO domain-
2017-03-21 21:49:00 ERROR juju.worker.
2017-03-21 21:54:29 INFO juju-log domain-backend:68: Reactive main running for hook domain-
2017-03-21 21:54:29 INFO juju-log domain-backend:68: Invoking reactive handler: hooks/relations
2017-03-21 21:54:29 INFO juju-log domain-backend:68: Invoking reactive handler: reactive/
2017-03-21 21:54:31 INFO juju-log domain-backend:68: Invoking reactive handler: reactive/
2017-03-21 21:54:31 INFO juju-log domain-backend:68: Creating choice loader with dirs: [['templates/'], ['/var/
2017-03-21 21:54:31 ERROR juju-log domain-backend:68: Invalid config value(s) at index 1
2017-03-21 21:54:31 INFO domain-
2017-03-21 21:54:31 INFO domain-
2017-03-21 21:54:31 INFO domain-
2017-03-21 21:54:31 INFO domain-
2017-03-21 21:54:31 INFO domain-
2017-03-21 21:54:31 INFO domain-
2017-03-21 21:54:31 INFO domain-
2017-03-21 21:54:31 INFO domain-