<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">I've seen that before.  It has been a
      while since I looked into it, but it is not an error in Kesytone
      iteslf, but rather the part of the setup talking to Keystone.<br>
      <br>
      I'll take the bug and comment on it there.<br>
      <br>
      <br>
      <br>
      <br>
      On 09/06/2013 11:52 AM, Goldstone, Robin J. wrote:<br>
    </div>
    <blockquote
cite="mid:D17A8FDF3CC59847983F6B75C05DB38B1555CC@PRDEXMBX-06.the-lab.llnl.gov"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div>I opened a bug yesterday morning but so far no one has looked
        at it:</div>
      <div><a moz-do-not-send="true"
          href="https://bugs.launchpad.net/keystone/+bug/1221331">https://bugs.launchpad.net/keystone/+bug/1221331</a></div>
      <div><br>
      </div>
      <div>How long should I expect it to take for someone to look at
        this?  I am dead in the water trying to install RDO until
        someone can help me with this…</div>
      <div><br>
      </div>
      <div>Thanks,</div>
      <div>Robin</div>
      <div><br>
      </div>
      <span id="OLK_SRC_BODY_SECTION">
        <div style="font-family:Calibri; font-size:11pt;
          text-align:left; color:black; BORDER-BOTTOM: medium none;
          BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT:
          0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;
          BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
          <span style="font-weight:bold">From: </span>Sean McCully <<a
            moz-do-not-send="true" href="mailto:sean_mccully@yahoo.com">sean_mccully@yahoo.com</a>><br>
          <span style="font-weight:bold">Reply-To: </span>"<a
            moz-do-not-send="true" href="mailto:sean_mccully@yahoo.com">sean_mccully@yahoo.com</a>"
          <<a moz-do-not-send="true"
            href="mailto:sean_mccully@yahoo.com">sean_mccully@yahoo.com</a>><br>
          <span style="font-weight:bold">Date: </span>Thursday,
          September 5, 2013 9:13 AM<br>
          <span style="font-weight:bold">To: </span>"Robin J.
          Goldstone" <<a moz-do-not-send="true"
            href="mailto:goldstone1@llnl.gov">goldstone1@llnl.gov</a>><br>
          <span style="font-weight:bold">Cc: </span>"<a
            moz-do-not-send="true"
            href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>"
          <<a moz-do-not-send="true"
            href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>><br>
          <span style="font-weight:bold">Subject: </span>Re:
          [Openstack] Keystone 'NoneType' object is unsubscriptable
          error<br>
        </div>
        <div><br>
        </div>
        <div>
          <meta name="GENERATOR" content="GtkHTML/4.6.6">
          <div>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 moz-do-not-send="true"
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>
            <a moz-do-not-send="true"
              href="https://bugs.launchpad.net/keystone/+filebug">https://bugs.launchpad.net/keystone/+filebug</a><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":"{}"}}'
              <a moz-do-not-send="true"
                href="http://0.0.0.0:35357/v2.0/OS-KSADM/services">http://0.0.0.0:35357/v2.0/OS-KSADM/services</a>
            </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"
              <a moz-do-not-send="true"
                href="http://0.0.0.0:35357/v2.0/OS-KSADM/services">http://0.0.0.0:35357/v2.0/OS-KSADM/services</a>
            </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
                moz-do-not-send="true"
                href="mailto:sean_mccully@yahoo.com">sean_mccully@yahoo.com</a>><br>
              Reply-To: "<a moz-do-not-send="true"
                href="mailto:sean_mccully@yahoo.com">sean_mccully@yahoo.com</a>"
              <<a moz-do-not-send="true"
                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 moz-do-not-send="true"
                href="mailto:goldstone1@llnl.gov">goldstone1@llnl.gov</a>><br>
              Cc: "<a moz-do-not-send="true"
                href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>"
              <<a moz-do-not-send="true"
                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 moz-do-not-send="true"
                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 moz-do-not-send="true"
                  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
                  moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  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 moz-do-not-send="true" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a>
Post to     : <a moz-do-not-send="true" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>
Unsubscribe : <a moz-do-not-send="true" 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>
          </div>
        </div>
      </span>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Mailing list: <a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a>
Post to     : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>
Unsubscribe : <a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>