ldap backend fails to work with enabled attributes on domains and groups
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Undecided
|
Dolph Mathews |
Bug Description
I started working on a separate bug and attempted to run the live ldap tests:
PYTHONPATH=. ./run_tests.sh --nologcapture _ldap_livetest:
test_add_
=======
ERROR: test_add_
-------
Traceback (most recent call last):
File "/Users/
self.
File "/Users/
rv = self.identity_
File "/Users/
return self.domain.
File "/Users/
return super(DomainApi, self).create(data)
File "/Users/
conn.
File "/Users/
return self.conn.add_s(dn, ldap_attrs)
File "/Users/
return self.result(
File "/Users/
res_
File "/Users/
res_type, res_data, res_msgid, srv_ctrls = self.result3(
File "/Users/
ldap_result = self._ldap_
File "/Users/
result = func(*args,
UNDEFINED_TYPE: {'info': 'enabled: attribute type undefined', 'desc': 'Undefined attribute type'}
-------
Ran 1 test in 0.088s
FAILED (errors=1)
This is the same problem that was solved in earlier changes via enabled emulation. The tenant and user objects both take this into account. A workaround to get live ldap tests running is to simply ignore the enabled attributes in your backend_
domain_
group_attribute
description: | updated |
Changed in keystone: | |
assignee: | nobody → Sahdev Zala (spzala) |
Changed in keystone: | |
assignee: | Sahdev Zala (spzala) → Dolph Mathews (dolph) |
Changed in keystone: | |
milestone: | none → grizzly-rc1 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | grizzly-rc1 → 2013.1 |
So here is what is happening. Ideally you should be able to use enabled_emulation for Group and Domains but those classes did not include the emulation mixin class so right now you cannot use enabled_emulation for Group and Domains. the work around is to use the ignore attribute for these and then the test will work. Hmm not sure this is worth blocking a release since there is a work-around. Sahdev is working on a patch