← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1028799] Re: error happens when parse the error page

 

** Changed in: python-keystoneclient
    Milestone: None => 0.2.0

** Changed in: python-keystoneclient
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1028799

Title:
  error happens when parse the error page

Status in OpenStack Identity (Keystone):
  Invalid
Status in Python client library for Keystone:
  Fix Released

Bug description:
  I enabled a proxy on keystone server. When I use keystone client to
  report status. Unexpected error happens when parse the error page,
  which is weird.

  part of keystone.conf
  [DEFAULT]
  #bind_host = 0.0.0.0
  public_port = 5000
  admin_port = 5001
  admin_token = 8a47fd17e8950d483ea7
  compute_port = 8774
  verbose = True
  debug = True
  #log_config = /etc/keystone/logging.conf


  [root@kapi-r11 ~]# ifconfig
  eth0      Link encap:Ethernet  HWaddr 00:1E:67:05:9D:14
            inet addr:192.168.11.100  Bcast:192.168.255.255  Mask:255.255.0.0
            inet6 addr: fe80::21e:67ff:fe05:9d14/64 Scope:Link
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:665663 errors:0 dropped:0 overruns:0 frame:0
            TX packets:98960 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1000
            RX bytes:164713538 (157.0 MiB)  TX bytes:10391084 (9.9 MiB)
            Memory:b1f20000-b1f40000


  [root@kapi-r11 ~]# service openstack-keystone status
  keystone (pid  31977) is running...

  [root@kapi-r11 ~]# iptables -I INPUT 1 -p tcp --dport 5000 -j ACCEPT

  [root@kapi-r11 ~]# iptables -I INPUT 1 -p tcp --dport 5001 -j ACCEPT


  [root@kapi-r11 ~]# keystone --token 8a47fd17e8950d483ea7 --endpoint http://192.168.11.100:5001/v2.0 --debug role-list
  connect: (192.168.11.100, 5001)
  send: 'GET /v2.0/OS-KSADM/roles HTTP/1.1\r\nHost: 192.168.11.100:5001\r\nx-auth-token: 8a47fd17e8950d483ea7\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-keystoneclient\r\n\r\n'
  reply: 'HTTP/1.1 503 Service Unavailable\r\n'
  header: Cache-Control: no-cache
  header: Pragma: no-cache
  header: Content-Type: text/html; charset=utf-8
  header: Proxy-Connection: close
  header: Connection: close
  header: Content-Length: 768
  Traceback (most recent call last):
    File "/usr/bin/keystone", line 9, in <module>
      load_entry_point('python-keystoneclient==2012.1', 'console_scripts', 'keystone')()
    File "/usr/lib/python2.6/site-packages/keystoneclient/shell.py", line 306, in main
      OpenStackIdentityShell().main(sys.argv[1:])
    File "/usr/lib/python2.6/site-packages/keystoneclient/shell.py", line 266, in main
      args.func(self.cs, args)
    File "/usr/lib/python2.6/site-packages/keystoneclient/v2_0/shell.py", line 203, in do_role_list
      roles = kc.roles.list()
    File "/usr/lib/python2.6/site-packages/keystoneclient/v2_0/roles.py", line 51, in list
      return self._list("/OS-KSADM/roles", "roles")
    File "/usr/lib/python2.6/site-packages/keystoneclient/base.py", line 70, in _list
      data = body[response_key]
  TypeError: string indices must be integers, not str

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1028799/+subscriptions