<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
Robin,<BR>
<BR>
I would suggest opening a bug in launchpad, to let the project maintainers know about this issue. I do not see any related bugs.<BR>
<BR>
=Bug=Search=====<BR>
<A HREF="https://bugs.launchpad.net/keystone?field.searchtext=%27NoneType%27+object+is+unsubscriptable">https://bugs.launchpad.net/keystone?field.searchtext=%27NoneType%27+object+is+unsubscriptable</A><BR>
<BR>
==New==Bug====<BR>
https://bugs.launchpad.net/keystone/+filebug<BR>
 <BR>
<BR>
<BR>
<BR>
Sean<BR>
<BR>
<BR>
On Thu, 2013-09-05 at 15:59 +0000, Goldstone, Robin J. wrote:
<BLOCKQUOTE TYPE=CITE>
    Sean,
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    It appears that the curl interface works just fine:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    # brutus1 /root > curl -X POST -H "X-Auth-Token: 49c056f8688540fcb933cf7335537676" -H "Content-type: application/json" --data '{"OS-KSADM:service": {"name":"Test","type":"test","extra":"{}"}}' http://0.0.0.0:35357/v2.0/OS-KSADM/services
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    {"OS-KSADM:service": {"type": "test", "name": "Test", "id": "6d54ea4d2752435aba19893a9de24695"}}
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    # brutus1 /root > curl -X GET -H "X-Auth-Token: 49c056f8688540fcb933cf7335537676" http://0.0.0.0:35357/v2.0/OS-KSADM/services
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    {"OS-KSADM:services": [{"type": "test", "name": "Test", "id": "6d54ea4d2752435aba19893a9de24695"}]}
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    I also verified directly in the mysql database:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    mysql> use keystone;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Reading table information for completion of table and column names
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    You can turn off this feature to get a quicker startup with -A
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Database changed
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    mysql> select * from service;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    +----------------------------------+------+------------------+
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    | id                               | type | extra            |
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    +----------------------------------+------+------------------+
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    | 6d54ea4d2752435aba19893a9de24695 | test | {"name": "Test"} |
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    +----------------------------------+------+------------------+
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    1 row in set (0.00 sec)
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    mysql>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    But access via the keystone client still fails with the same error:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    # brutus1 /root > keystone service-list
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    'NoneType' object is unsubscriptable
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    -Robin
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    From: Sean McCully <<A HREF="mailto:sean_mccully@yahoo.com">sean_mccully@yahoo.com</A>><BR>
    Reply-To: "<A HREF="mailto:sean_mccully@yahoo.com">sean_mccully@yahoo.com</A>" <<A HREF="mailto:sean_mccully@yahoo.com">sean_mccully@yahoo.com</A>><BR>
    Date: Wednesday, September 4, 2013 6:27 PM<BR>
    To: "Robin J. Goldstone" <<A HREF="mailto:goldstone1@llnl.gov">goldstone1@llnl.gov</A>><BR>
    Cc: "<A HREF="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</A>" <<A HREF="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</A>><BR>
    Subject: Re: [Openstack] Keystone 'NoneType' object is unsubscriptable error<BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    What happens after you add a service,<BR>
    <BR>
    curl -X POST -H "X-Auth-Token: <auth-token>" -H "Content-type: application/json" --data '{"OS-KSADM:service": {"name":"Test","type":"test","extra":"{}"}}' <A HREF="http://0.0.0.0:35357/v2.0/OS-KSADM/services">http://0.0.0.0:35357/v2.0/OS-KSADM/services</A><BR>
    <BR>
    <BR>
    <BR>
    Sean<BR>
    <BR>
    <BR>
    On Thu, 2013-09-05 at 00:39 +0000, Goldstone, Robin J. wrote: <BR>
    <BLOCKQUOTE TYPE=CITE>
        I am trying to install the RDO OpenStack distribution on a RHEL 6.4 system.  The install is failing during keystone configuration as follows:<BR>
        ^[[1;35merr: /Stage[main]/Cinder::Keystone::Auth/Keystone_service[cinder]: Could not evaluate: Execution of '/usr/bin/keystone --endpoint <A HREF="http://127.0.0.1:35357/v2.0/">http://127.0.0.1:35357/v2.0/</A> service-list' returned 1: 'NoneType' object is unsubscriptable<BR>
        <BR>
        <BR>
        If I run the command interactively I get the same error: <BR>
        # brutus1 /etc/keystone > export OS_SERVICE_TOKEN=49c056f8688540fcb933cf7335537676<BR>
        # brutus1 /etc/keystone > export OS_SERVICE_ENDPOINT=<A HREF="http://127.0.0.1:35357/v2.0">http://127.0.0.1:35357/v2.0</A> <BR>
        # brutus1 /etc/keystone > keystone service-list <BR>
        'NoneType' object is unsubscriptable <BR>
        <BR>
        <BR>
        The keystone service appears to be running and connected to the mysql database:<BR>
        # brutus1 /root > ps -ef|grep keystone <BR>
        keystone  8451     1  0 17:20 ?        00:00:00 /usr/bin/python /usr/bin/keystone-all --config-file /etc/keystone/keystone.conf<BR>
        # brutus1 /root > lsof -i|grep keystone <BR>
        keystone- 8451 keystone    4u  IPv4  21614      0t0  TCP *:35357 (LISTEN)<BR>
        keystone- 8451 keystone    6u  IPv4  21616      0t0  TCP *:commplex-main (LISTEN)<BR>
        keystone- 8451 keystone    8u  IPv4  21961      0t0  TCP ebrutus1:54531->ebrutus1:mysql (ESTABLISHED)<BR>
        <BR>
        <BR>
        The mysql database appears to have been properly initialized though hardly any of the tables have anything in them.<BR>
        <BR>
        <BR>
        mysql> use keystone; <BR>
        Reading table information for completion of table and column names<BR>
        You can turn off this feature to get a quicker startup with -A<BR>
        <BR>
        <BR>
        Database changed <BR>
        mysql> show tables; <BR>
        +------------------------+ <BR>
        | Tables_in_keystone     | <BR>
        +------------------------+ <BR>
        | credential             | <BR>
        | domain                 | <BR>
        | ec2_credential         | <BR>
        | endpoint               | <BR>
        | group                  | <BR>
        | group_domain_metadata  | <BR>
        | group_project_metadata | <BR>
        | migrate_version        | <BR>
        | policy                 | <BR>
        | project                | <BR>
        | role                   | <BR>
        | service                | <BR>
        | token                  | <BR>
        | trust                  | <BR>
        | trust_role             | <BR>
        | user                   | <BR>
        | user_domain_metadata   | <BR>
        | user_group_membership  | <BR>
        | user_project_metadata  | <BR>
        +------------------------+ <BR>
        19 rows in set (0.00 sec) <BR>
        <BR>
        <BR>
        mysql> select * from service; <BR>
        Empty set (0.00 sec) <BR>
        <BR>
        <BR>
        I cranked up the debug level in the keystone log file and here is what I see:<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] ******************** REQUEST ENVIRON ********************<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] SCRIPT_NAME = /v2.0<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] webob.adhoc_attrs = {'response': <Response at 0x2373510 200 OK>}<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] REQUEST_METHOD = GET<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] PATH_INFO = /OS-KSADM/services<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] SERVER_PROTOCOL = HTTP/1.0<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] HTTP_X_AUTH_TOKEN = 49c056f8688540fcb933cf7335537676<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] HTTP_USER_AGENT = python-keystoneclient<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] eventlet.posthooks = []<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] SERVER_NAME = 127.0.0.1<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] REMOTE_ADDR = 127.0.0.1<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] eventlet.input = <eventlet.wsgi.Input object at 0x236b8d0><BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] wsgi.url_scheme = http<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] SERVER_PORT = 35357<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] wsgi.input = <eventlet.wsgi.Input object at 0x236b8d0><BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] HTTP_HOST = 127.0.0.1:35357<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] wsgi.multithread = True<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] HTTP_ACCEPT = */*<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] wsgi.version = (1, 0)<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] openstack.context = {'token_id': '49c056f8688540fcb933cf7335537676', 'is_admin': True}<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] GATEWAY_INTERFACE = CGI/1.1<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] wsgi.run_once = False<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] wsgi.errors = <open file '<stderr>', mode 'w' at 0x2aaaaaae81e0><BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] wsgi.multiprocess = False<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] CONTENT_TYPE = text/plain<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] HTTP_ACCEPT_ENCODING = identity, deflate, compress, gzip<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] <BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] ******************** REQUEST BODY ********************<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] <BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] arg_dict: {}<BR>
        2013-09-04 17:37:48     INFO [sqlalchemy.engine.base.Engine] SELECT service.id AS service_id, service.type AS service_type, service.extra AS service_extra<BR>
        FROM service <BR>
        2013-09-04 17:37:48     INFO [sqlalchemy.engine.base.Engine] ()<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] ******************** RESPONSE HEADERS ********************<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] Vary = X-Auth-Token<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] Content-Type = application/json<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] Content-Length = 25<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] <BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] ******************** RESPONSE BODY ********************<BR>
        2013-09-04 17:37:48    DEBUG [keystone.common.wsgi] {"OS-KSADM:services": []}<BR>
        2013-09-04 17:37:48     INFO [access] 127.0.0.1 - - [05/Sep/2013:00:37:48 +0000] "GET <A HREF="http://127.0.0.1:35357/v2.0/OS-KSADM/services">http://127.0.0.1:35357/v2.0/OS-KSADM/services</A> HTTP/1.0" 200 25<BR>
        2013-09-04 17:37:48    DEBUG [eventlet.wsgi.server] 127.0.0.1 - - [04/Sep/2013 17:37:48] "GET /v2.0/OS-KSADM/services HTTP/1.1" 200 153 0.008193<BR>
        <BR>
        <BR>
        <BR>
        <BR>
        I have tried completely wiping out and reinstalling RDO but it chokes at the same point.   Myself, along with several other people, have reported this error on the RDO forum but no one over there has responded so I thought I would try my luck over here.  If anyone has an idea of what my problem is, or can offer advice on further troubleshooting, please let me know.  <BR>
        <BR>
        <BR>
        Thank you in advance. <BR>
        Robin Goldstone, LLNL 
<PRE>
_______________________________________________
Mailing list: <A HREF="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</A>
Post to     : <A HREF="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</A>
Unsubscribe : <A HREF="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</A>
</PRE>
    </BLOCKQUOTE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>