<div dir="ltr">There's a backslash in your endpoints and a stray closing paren at the end:<div><br></div><div>  <a href="http://192.168.122.215:8776/v1/$(tenant_id)s">http://192.168.122.215:8776/v1/$(tenant_id)s</a><font face="arial, sans-serif">)</font></div>
<div><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div style><span style="font-size:13px;font-family:arial,sans-serif">Keystone supports two formats here so you don't have to try and escape anything. Recreate your endpoints with whichever one of the following you prefer:</span></div>
<div style><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div style><span style="font-size:13px;font-family:arial,sans-serif">  </span><a href="http://192.168.122.215:8776/v1/%5C$(tenant_id)s" target="_blank" style="font-size:13px;font-family:arial,sans-serif">http://192.168.122.215:8776/v1/$(tenant_id)s</a></div>
<div style><span style="font-size:13px;font-family:arial,sans-serif">  </span><a href="http://192.168.122.215:8776/v1/%5C$(tenant_id)s" target="_blank" style="font-size:13px;font-family:arial,sans-serif">http://192.168.122.215:8776/v1/%(tenant_id)s</a><br>
</div></div><div class="gmail_extra"><br clear="all"><div><div><br></div>-Dolph</div>
<br><br><div class="gmail_quote">On Fri, Apr 5, 2013 at 7:58 AM, Arindam Choudhury <span dir="ltr"><<a href="mailto:arindam@live.com" target="_blank">arindam@live.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><div dir="ltr">[(keystone_user)]$ cinder --debug list<br>connect: (158.109.65.21, 5000) ************<br>send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: <a href="http://158.109.65.21:5000" target="_blank">158.109.65.21:5000</a>\r\nContent-Length: 97\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-cinderclient\r\n\r\n{"auth": {"tenantName": "user", "passwordCredentials": {"username": "user", "password": "user"}}}'<br>
reply: 'HTTP/1.1 200 OK\r\n'<br>header: Vary: X-Auth-Token<br>header: Content-Type: application/json<br>header: Date: Fri, 05 Apr 2013 11:26:46 GMT<br>header: Transfer-Encoding: chunked<br>connect: (158.109.65.21, 8776) ************<br>
send: u'GET /v1/\\e50f4b99747849bfade38bc8a7734731)/volumes/detail HTTP/1.1\r\nHost: <a href="http://158.109.65.21:8776" target="_blank">158.109.65.21:8776</a>\r\nx-auth-project-id: user\r\nx-auth-token: a0712823eddc42b6b73dab6ae0a88097\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-cinderclient\r\n\r\n'<br>
reply: 'HTTP/1.1 400 Bad Request\r\n'<br>header: Content-Length: 65<br>header: Content-Type: application/json; charset=UTF-8<br>header: X-Compute-Request-Id: req-3f84bc89-e5a0-47f7-b5b1-b1a9e4293eba<br>header: Date: Fri, 05 Apr 2013 11:26:46 GMT<br>
DEBUG (shell:480) Malformed request url (HTTP 400) (Request-ID: req-3f84bc89-e5a0-47f7-b5b1-b1a9e4293eba)<br>Traceback (most recent call last):<br>  File "/usr/lib/python2.7/site-packages/cinderclient/shell.py", line 477, in main<br>
    OpenStackCinderShell().main(sys.argv[1:])<br>  File "/usr/lib/python2.7/site-packages/cinderclient/shell.py", line 428, in main<br>    args.func(self.cs, args)<br>  File "/usr/lib/python2.7/site-packages/cinderclient/v1/shell.py", line 143, in do_list<br>
    volumes = cs.volumes.list(search_opts=search_opts)<br>  File "/usr/lib/python2.7/site-packages/cinderclient/v1/volumes.py", line 184, in list<br>    "volumes")<br>  File "/usr/lib/python2.7/site-packages/cinderclient/base.py", line 63, in _list<br>
    resp, body = self.api.client.get(url)<br>  File "/usr/lib/python2.7/site-packages/cinderclient/client.py", line 162, in get<br>    return self._cs_request(url, 'GET', **kwargs)<br>  File "/usr/lib/python2.7/site-packages/cinderclient/client.py", line 131, in _cs_request<br>
    **kwargs)<br>  File "/usr/lib/python2.7/site-packages/cinderclient/client.py", line 114, in request<br>    raise exceptions.from_response(resp, body)<br>BadRequest: Malformed request url (HTTP 400) (Request-ID: req-3f84bc89-e5a0-47f7-b5b1-b1a9e4293eba)<br>
ERROR: Malformed request url (HTTP 400) (Request-ID: req-3f84bc89-e5a0-47f7-b5b1-b1a9e4293eba)<br>[(keystone_user)]$ <br><br><br><div><div></div><hr>From: <a href="mailto:arindam@live.com" target="_blank">arindam@live.com</a><br>
To: <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>Date: Fri, 5 Apr 2013 12:29:20 +0200<br>Subject: [Openstack] [Folfsom][Cinder] cinder list ERROR: Malformed request url (HTTP 400)<div>
<div class="h5"><br><br>


<div dir="ltr">Hi,<br><br>I am trying to install OpenStack Folsom on Fedora 18. So far I have installed:<br><br>$ openstack-status <br>== Glance services ==<br>openstack-glance-api:         active<br>openstack-glance-registry:    active<br>
== Keystone service ==<br>openstack-keystone:           active<br>== Cinder services ==<br>openstack-cinder-api:         active<br>openstack-cinder-scheduler:   active<br>openstack-cinder-volume:      active<br>== Support services ==<br>
libvirtd:                     active<br>tgtd:                         active<br>qpidd:                        active<br>memcached:                    inactive (disabled on boot)<br><br>When I tried to run cinder list, I get this error:<br>
[(keystone_user)]$ cinder list<br>ERROR: Malformed request url (HTTP 400) (Request-ID: req-3692a984-8750-47a5-a673-1db9d5fd217a)<br><br><br>The instructons I have followed are as follows:<br><br># yum install openstack-cinder -y<br>
# openstack-db --init --service cinder<br># openstack-config --set /etc/cinder/cinder.conf DEFAULT auth_strategy keystone<br># openstack-config --set /etc/cinder/cinder.conf keystone_authtoken admin_tenant_name admin<br># openstack-config --set /etc/cinder/cinder.conf keystone_authtoken admin_user admin<br>
# openstack-config --set /etc/cinder/cinder.conf keystone_authtoken admin_password admin<br># grep -q /etc/cinder/volumes /etc/tgt/targets.conf || sed -i '1iinclude /etc/cinder/volumes/*' /etc/tgt/targets.conf<br>
# service tgtd start <br># chkconfig tgtd on<br># truncate --size 20G ~/cinder-volumes<br># losetup -fv ~/cinder-volumes <br># vgcreate cinder-volumes /dev/loop0<br>  No physical volume label read from /dev/loop0<br>  Physical volume "/dev/loop0" successfully created<br>
  Volume group "cinder-volumes" successfully created<br># vgdisplay cinder-volumes <br>  --- Volume group ---<br>  VG Name               cinder-volumes<br>  System ID             <br>  Format                lvm2<br>
  Metadata Areas        1<br>  Metadata Sequence No  1<br>  VG Access             read/write<br>  VG Status             resizable<br>  MAX LV                0<br>  Cur LV                0<br>  Open LV               0<br>  Max PV                0<br>
  Cur PV                1<br>  Act PV                1<br>  VG Size               20.00 GiB<br>  PE Size               4.00 MiB<br>  Total PE              5119<br>  Alloc PE / Size       0 / 0   <br>  Free  PE / Size       5119 / 20.00 GiB<br>
  VG UUID               lZc93K-lcJc-5kpx-okRC-eFxc-bRdp-jPKVhJ<br># service openstack-cinder-api start<br># service openstack-cinder-scheduler start<br># service openstack-cinder-volume start<br># chkconfig openstack-cinder-api on<br>
# chkconfig openstack-cinder-scheduler on<br># chkconfig openstack-cinder-volume on<br># grep -i ERROR /var/log/cinder/*<br># grep CRITICAL /var/log/cinder/*<br><br>$ source keystonerc_admin <br>[(keystone_admin)]$ keystone service-create --name=cinder --type=volume --description="Cinder Volume Service"<br>
+-------------+----------------------------------+<br>|   Property  |              Value               |<br>+-------------+----------------------------------+<br>| description |      Cinder Volume Service       |<br>|      id     | 35f0664f21c24e339dc5a59192033735 |<br>
|     name    |              cinder              |<br>|     type    |              volume              |<br>+-------------+----------------------------------+<br>$ keystone endpoint-create --region RegionOne --service-id 35f0664f21c24e339dc5a59192033735 --publicurl '<a href="http://192.168.122.215:8776/v1/%5C$(tenant_id)s" target="_blank">http://192.168.122.215:8776/v1/\$(tenant_id)s</a>)' --adminurl '<a href="http://192.168.122.215:8776/v1/%5C$(tenant_id)s" target="_blank">http://192.168.122.215:8776/v1/\$(tenant_id)s</a>)' --internalurl '<a href="http://192.168.122.215:8776/v1/%5C$(tenant_id)s" target="_blank">http://192.168.122.215:8776/v1/\$(tenant_id)s</a>)'<br>
+-------------+----------------------------------------------+<br>|   Property  |                    Value                     |<br>+-------------+----------------------------------------------+<br>|   adminurl  | <a href="http://192.168.122.215:8776/v1/%5C$(tenant_id)s" target="_blank">http://192.168.122.215:8776/v1/\$(tenant_id)s</a>) |<br>
|      id     |       5ce4f0a5f6874eb7a2a33265e2891a66       |<br>| internalurl | <a href="http://192.168.122.215:8776/v1/%5C$(tenant_id)s" target="_blank">http://192.168.122.215:8776/v1/\$(tenant_id)s</a>) |<br>|  publicurl  | <a href="http://192.168.122.215:8776/v1/%5C$(tenant_id)s" target="_blank">http://192.168.122.215:8776/v1/\$(tenant_id)s</a>) |<br>
|    region   |                  RegionOne                   |<br>|  service_id |       35f0664f21c24e339dc5a59192033735       |<br>+-------------+----------------------------------------------+<br><br>$ source keystonerc_user <br>
[(keystone_user)]$ cinder list<br>ERROR: Malformed request url (HTTP 400) (Request-ID: req-6f1b6a0e-ca49-468e-85c0-1bbb063b3a2e)<br><br><br><br>                                    </div>
<br></div></div>_______________________________________________
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a></div>                                           </div></div>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div>