[openstack-dev] [Openstack][keystone][ldap] Bug unsupported operand type(s) for &: 'str' and 'int'

Adam Young ayoung at redhat.com
Mon Aug 26 21:31:14 UTC 2013


On 08/22/2013 05:37 AM, ZhiQiang Fan wrote:
> actually, i only read the master branch, and there is no such file, 
> you can report a bug on keystone grizzly and submit your code, if 
> you're granted

Yes, please file the bug, sign the CLA, and submit to gerrit. Thanks
>
>
> On Thu, Aug 22, 2013 at 5:21 PM, Qinglong.Meng <mengql112233 at gmail.com 
> <mailto:mengql112233 at gmail.com>> wrote:
>
>     I have fix it in my env.
>     and you will find some hardcore in /identity/backend/ldap/core.py,,
>
>
>     2013/8/22 ZhiQiang Fan <aji.zqfan at gmail.com
>     <mailto:aji.zqfan at gmail.com>>
>
>         yes, i think it is a bug, because the api doesn't convert
>         string to correct type:
>         >>> True & 1
>         1
>         >>> 'True' & 1
>         Traceback (most recent call last):
>           File "<stdin>", line 1, in <module>
>         TypeError: unsupported operand type(s) for &: 'str' and 'int'
>
>         Feel free to report a bug and may be you can try to fix it.
>
>
>         On Thu, Aug 22, 2013 at 3:51 PM, Qinglong.Meng
>         <mengql112233 at gmail.com <mailto:mengql112233 at gmail.com>> wrote:
>
>             oh, yeah,
>             here is the keystone log:
>             http://paste.openstack.org/show/44857/
>
>             Best Regards,
>
>
>
>
>
>             2013/8/22 ZhiQiang Fan <aji.zqfan at gmail.com
>             <mailto:aji.zqfan at gmail.com>>
>
>                 your first reference (the log) is incorrect.
>
>
>                 On Thu, Aug 22, 2013 at 2:55 PM, Qinglong.Meng
>                 <mengql112233 at gmail.com
>                 <mailto:mengql112233 at gmail.com>> wrote:
>
>                     Hi All,
>                         Os: Ubuntu 12.04 LTS
>                         keystone version: stable/grizzly
>                         After I deploy keystone with ldap backend
>                     (openldap), I got the issue about type in
>                     keystone.log, when I create user by  keystoneclient.
>                         Here are some docs:
>                         1. keystone.log
>                     http://paste.openstack.org/
>                         2. keystone.conf
>                     http://paste.openstack.org/show/44839/
>                         3. slapd.conf
>                     http://paste.openstack.org/show/44843/
>                         4. openstack.ldif
>                     http://paste.openstack.org/show/44844/
>
>                     And I think this is one bug, it's right?
>
>                     Best Regards,
>
>                     -- 
>
>                     Lawrency Meng
>                     mail: mengql112233 at gmail.com
>                     <mailto:mengql112233 at gmail.com>
>                     _______________________________________________
>                     Mailing list: https://launchpad.net/~openstack
>                     <https://launchpad.net/%7Eopenstack>
>                     Post to     : openstack at lists.launchpad.net
>                     <mailto:openstack at lists.launchpad.net>
>                     Unsubscribe : https://launchpad.net/~openstack
>                     <https://launchpad.net/%7Eopenstack>
>                     More help   : https://help.launchpad.net/ListHelp
>
>                     _______________________________________________
>                     OpenStack-dev mailing list
>                     OpenStack-dev at lists.openstack.org
>                     <mailto:OpenStack-dev at lists.openstack.org>
>                     http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
>
>
>                 -- 
>                 blog: zqfan.github.com <http://zqfan.github.com>
>                 git: github.com/zqfan <http://github.com/zqfan>
>
>                 _______________________________________________
>                 OpenStack-dev mailing list
>                 OpenStack-dev at lists.openstack.org
>                 <mailto:OpenStack-dev at lists.openstack.org>
>                 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
>
>
>             -- 
>
>             Lawrency Meng
>             mail: mengql112233 at gmail.com <mailto:mengql112233 at gmail.com>
>             _______________________________________________
>             Mailing list: https://launchpad.net/~openstack
>             <https://launchpad.net/%7Eopenstack>
>             Post to     : openstack at lists.launchpad.net
>             <mailto:openstack at lists.launchpad.net>
>             Unsubscribe : https://launchpad.net/~openstack
>             <https://launchpad.net/%7Eopenstack>
>             More help   : https://help.launchpad.net/ListHelp
>
>             _______________________________________________
>             OpenStack-dev mailing list
>             OpenStack-dev at lists.openstack.org
>             <mailto:OpenStack-dev at lists.openstack.org>
>             http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
>
>
>         -- 
>         blog: zqfan.github.com <http://zqfan.github.com>
>         git: github.com/zqfan <http://github.com/zqfan>
>
>         _______________________________________________
>         OpenStack-dev mailing list
>         OpenStack-dev at lists.openstack.org
>         <mailto:OpenStack-dev at lists.openstack.org>
>         http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
>
>
>     -- 
>
>     Lawrency Meng
>     mail: mengql112233 at gmail.com <mailto:mengql112233 at gmail.com>
>     _______________________________________________
>     Mailing list: https://launchpad.net/~openstack
>     <https://launchpad.net/%7Eopenstack>
>     Post to     : openstack at lists.launchpad.net
>     <mailto:openstack at lists.launchpad.net>
>     Unsubscribe : https://launchpad.net/~openstack
>     <https://launchpad.net/%7Eopenstack>
>     More help   : https://help.launchpad.net/ListHelp
>
>     _______________________________________________
>     OpenStack-dev mailing list
>     OpenStack-dev at lists.openstack.org
>     <mailto:OpenStack-dev at lists.openstack.org>
>     http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
>
>
> -- 
> blog: zqfan.github.com <http://zqfan.github.com>
> git: github.com/zqfan <http://github.com/zqfan>
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130826/764b3a1b/attachment.html>


More information about the OpenStack-dev mailing list