This issue only occours when keystone is connected to LDAP and the user_id is larger than 36 chars.
2016-06-21 13:30:11.844 ERROR oslo_db.sqlalchemy.exc_filters [^[[01;36mreq-1017c221-6916-407f-b3d3-dcebac2bd98d ^[[00;36m8106e27607584232efea29ac92f7c7386d920d7dc818ab42fa11aabc01157923 6da2466be238480e878f9b24a3fdacca] ^[[01;35mDBAPIError exception wrapped from (psycopg2.DataError) value too long for type character varying(36)
[SQL: 'INSERT INTO share_networks (created_at, updated_at, deleted_at, id, deleted, project_id, user_id, nova_net_id, neutron_net_id, neutron_subnet_id, network_type, segmentation_id, cidr, ip_version, name, description) VALUES (%(created_at)s, %(updated_at)s, %(deleted_at)s, %(id)s, %(deleted)s, %(project_id)s, %(user_id)s, %(nova_net_id)s, %(neutron_net_id)s, %(neutron_subnet_id)s, %(network_type)s, %(segmentation_id)s, %(cidr)s, %(ip_version)s, %(name)s, %(description)s)'] [parameters: {'project_id': u'6da2466bf238480e878f9b24a3fdacca', 'user_id': u'9106e27607584232efea29ac92f7c7386d920d7dc818ab42fa11aabc01157923', 'description': None, 'deleted': 'False', 'neutron_net_id': u'9eed90ae-f050-422c-bf9e-9f1b528a98a2', 'created_at': datetime.datetime(2016, 6, 21, 13, 30, 11, 843165), 'neutron_subnet_id': u'11726e89-eb26-4749-8339-ba886265a06e', 'updated_at': None, 'id': '37ac35b3-b97f-441e-9274-751aa3d5a75d', 'segmentation_id': None, 'ip_version': None, 'nova_net_id': None, 'cidr': None, 'deleted_at': None, 'network_type': None, 'name': u'gmp1'}]^[[00m
2016-06-21 13:30:11.844 TRACE oslo_db.sqlalchemy.exc_filters ^[[01;35m^[[00mTraceback (most recent call last):
2016-06-21 13:30:11.844 TRACE oslo_db.sqlalchemy.exc_filters ^[[01;35m^[[00m File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
2016-06-21 13:30:11.844 TRACE oslo_db.sqlalchemy.exc_filters ^[[01;35m^[[00m context)
2016-06-21 13:30:11.844 TRACE oslo_db.sqlalchemy.exc_filters ^[[01;35m^[[00m File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 450, in do_execute
2016-06-21 13:30:11.844 TRACE oslo_db.sqlalchemy.exc_filters ^[[01;35m^[[00m cursor.execute(statement, parameters)
2016-06-21 13:30:11.844 TRACE oslo_db.sqlalchemy.exc_filters ^[[01;35m^[[00mDataError: value too long for type character varying(36)
2016-06-21 13:30:11.844 TRACE oslo_db.sqlalchemy.exc_filters ^[[01;35m^[[00m
2016-06-21 13:30:11.844 TRACE oslo_db.sqlalchemy.exc_filters ^[[01;35m^[[00m
Fix proposed to branch: master /review. openstack. org/332194
Review: https:/