<br><br><div class="gmail_quote">On Tue, Nov 6, 2012 at 3:44 PM, Ahmed Al-Mehdi <span dir="ltr"><<a href="mailto:ahmed@coraid.com" target="_blank">ahmed@coraid.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word"><div>John,</div><div><br></div><div>I reboot my controller node, and things seem to be working a bit better.   I followed the steps in "OpenStack Deploy and Install – Ubuntu", section Appendix B ( <a href="http://docs.openstack.org/trunk/openstack-compute/install/apt/content/osfolubuntu-cinder.html" target="_blank">http://docs.openstack.org/trunk/openstack-compute/install/apt/content/osfolubuntu-cinder.html</a> ).  All the three cinder-api/volume/scheduler services are running.</div>
<div><br></div><div><div>root@bodega:/var/log/cinder# ps aux | grep cinder</div><div>cinder    1329  0.0  0.0  37952  1312 ?        Ss   12:01   0:00 su -s /bin/sh -c exec cinder-scheduler --config-file=/etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-scheduler.log cinder</div>
<div>cinder    1331  0.0  0.4 182508 34424 ?        S    12:01   0:07 /usr/bin/python /usr/bin/cinder-scheduler --config-file=/etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-scheduler.log</div><div>cinder    2289  0.0  0.0  37952  1308 ?        Ss   12:08   0:00 su -s /bin/sh -c exec cinder-api --config-file=/etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-api.log cinder</div>
<div>cinder    2290  0.0  0.5 213864 46872 ?        S    12:08   0:01 /usr/bin/python /usr/bin/cinder-api --config-file=/etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-api.log</div><div>cinder    2537  0.0  0.0  37952  1312 ?        Ss   12:22   0:00 su -s /bin/sh -c exec cinder-volume --config-file=/etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-volume.log cinder</div>
<div>cinder    2538  0.0  0.4 184644 36812 ?        S    12:22   0:06 /usr/bin/python /usr/bin/cinder-volume --config-file=/etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-volume.log</div></div><div><br></div><div>
VG "cinder-volumes" is present:</div><div><br></div><div><div>root@bodega:/var/log/cinder# vgdisplay  cinder-volumes</div><div>  --- Volume group ---</div><div>  VG Name               cinder-volumes</div><div>  System ID             </div>
<div>  Format                lvm2</div><div>  Metadata Areas        1</div><div>  Metadata Sequence No  6</div><div>  VG Access             read/write</div><div>  VG Status             resizable</div><div>  MAX LV                0</div>
<div>  Cur LV                1</div><div>  Open LV               0</div><div>  Max PV                0</div><div>  Cur PV                1</div><div>  Act PV                1</div><div>  VG Size               2.00 GiB</div>
<div>  PE Size               4.00 MiB</div><div>  Total PE              511</div><div>  Alloc PE / Size       256 / 1.00 GiB</div><div>  Free  PE / Size       255 / 1020.00 MiB</div><div>  VG UUID               VhxQZx-fB8K-36V9-L0sB-ImVO-oVFw-LNOLM0</div>
<div>   </div><div><br></div></div><div>However, when I create a 1GB test volume (as per the instructions), I run into a failure.</div><div><br></div><div><div>root@bodega:~/ahmed/cinder# date; cinder create --display_name test 1</div>
<div>Tue Nov  6 12:57:39 PST 2012</div><div>+---------------------+--------------------------------------+</div><div>|       Property      |                Value                 |</div><div>+---------------------+--------------------------------------+</div>
<div>|     attachments     |                  []                  |</div><div>|  availability_zone  |                 nova                 |</div><div>|      created_at     |      2012-11-06T20:57:39.538245      |</div><div>
| display_description |                 None                 |</div><div>|     display_name    |                 test                 |</div><div>|          id         | ab719d8d-42a4-44bc-b627-96b30e3f5002 |</div><div>|       metadata      |                  {}                  |</div>
<div>|         size        |                  1                   |</div><div>|     snapshot_id     |                 None                 |</div><div>|        status       |               creating               |</div><div>
|     volume_type     |                 None                 |</div><div>+---------------------+--------------------------------------+</div><div>root@bodega:~/ahmed/cinder# </div><div>root@bodega:~/ahmed/cinder# </div><div>
root@bodega:~/ahmed/cinder# </div><div>root@bodega:~/ahmed/cinder# date; cinder list</div><div>Tue Nov  6 13:06:46 PST 2012</div><div>+--------------------------------------+--------+--------------+------+-------------+-------------+</div>
<div>|                  ID                  | Status | Display Name | Size | Volume Type | Attached to |</div><div>+--------------------------------------+--------+--------------+------+-------------+-------------+</div><div>
| ab719d8d-42a4-44bc-b627-96b30e3f5002 | error  |     test     |  1   |     None    |             |</div><div>+--------------------------------------+--------+--------------+------+-------------+-------------+</div><div>root@bodega:~/ahmed/cinder#</div>
</div><div><br></div><div>I am attaching text file containing the log entries from the three cinder log files.   Can you please help me understand why the volume creation is failing?  I really appreciate your help.</div><div>
<br></div><div>Regards,</div><div>Ahmed.</div><div><br></div><div><br></div><span><div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none">
<span style="font-weight:bold">From: </span> John Griffith <<a href="mailto:john.griffith@solidfire.com" target="_blank">john.griffith@solidfire.com</a>><br><span style="font-weight:bold">Date: </span> Tuesday, November 6, 2012 11:41 AM<div>
<div class="h5"><br><span style="font-weight:bold">To: </span> Ahmed Al-Mehdi <<a href="mailto:ahmed@coraid.com" target="_blank">ahmed@coraid.com</a>><br><span style="font-weight:bold">Cc: </span> "<a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>" <<a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>><br>
<span style="font-weight:bold">Subject: </span> Re: [Openstack] [openstack][cinder] cinder create gives an error<br></div></div></div><div><div class="h5"><div><br></div><blockquote style="BORDER-LEFT:#b5c4df 5 solid;PADDING:0 0 0 5;MARGIN:0 0 0 5">
<div><div><br><br><div class="gmail_quote">On Tue, Nov 6, 2012 at 11:28 AM, Ahmed Al-Mehdi <span dir="ltr">
<<a href="mailto:ahmed@coraid.com" target="_blank">ahmed@coraid.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>John,</div><div><br></div><div>Thank you for your response.  When you stay start from scratch, do you mean re-install everything (all services) from scratch, as in a fresh install of Ubuntu?   And then not install nova-volume and don't create endpoint for nova-volume?</div>
<div><br></div><div>Not to impose on you, but can you help me understand what does the following error mean:</div><div>    <b>ERROR: Malformed request url (HTTP 400) (Request-ID: req-8cff9608-598b-4618-bdc1-1068a1227781)</b></div>
<div><b><br></b></div><div>Is there an issue with how the REST command (Get/Put) is formed?</div><div>Is the service not listening on the expected port, or the service is not even up and running?</div><div><br></div><div>
Regards,</div><div>Ahmed.</div><div><br></div><div><br></div><span><div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none">
<span style="font-weight:bold">From: </span>John Griffith <<a href="mailto:john.griffith@solidfire.com" target="_blank">john.griffith@solidfire.com</a>><br><span style="font-weight:bold">Date: </span>Tuesday, November 6, 2012 11:19 AM<br>
<span style="font-weight:bold">To: </span>Ahmed Al-Mehdi <<a href="mailto:ahmed@coraid.com" target="_blank">ahmed@coraid.com</a>><br><span style="font-weight:bold">Cc: </span>"<a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>" <<a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Openstack] [openstack][cinder] cinder create gives an error<br></div><div><div><div><br></div><blockquote style="BORDER-LEFT:#b5c4df 5 solid;PADDING:0 0 0 5;MARGIN:0 0 0 5">
<div><div><br><br><div class="gmail_quote">On Tue, Nov 6, 2012 at 11:10 AM, Ahmed Al-Mehdi <span dir="ltr">
<<a href="mailto:ahmed@coraid.com" target="_blank">ahmed@coraid.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Hello,</div><div><br></div><div>I just installed installed cinder, however, I am getting the following error.</div><div><br></div><div><div>root@bodega:~/ahmed/cinder# cinder create --display_name test 1</div><div>ERROR: Malformed request url (HTTP 400) (Request-ID: req-a488154b-37f8-47e8-ae5f-8e7a73f6637b)</div>
<div>root@bodega:~/ahmed/cinder# </div></div><div><br></div><div><br></div><div>Can someone please help me understand what this error means.  I don't see any logs being generated in any of the cinder log files - cinder–api.log, cinder-scheduler.log, cinder-volume.log.</div>
<div><br></div><div>Any pointers to debug this issue would be greatly appreciated.</div><div><br></div><div>Regards,</div><div>Ahmed.</div><div><br></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" target="_blank">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>
Ahmed,
<div><br></div><div>It looks like there's still a problem with your endpoint configuration?  If your conf files are in fact set up correctly as advised earlier there is also a potential that you didn't clean up the nova-volume settings you had in keystone and the CS.  Depending
 on your system, you might want to consider dropping the tables from your DB and starting from scratch and install cinder only. </div><div><br></div><div>Thanks,</div><div>John</div></div></div></blockquote></div></div></span></div>
</blockquote></div>
Ahmed,
<div><br></div><div>No... sorry, I didn't mean re-install the OS, just reconfigure OpenStack from scratch (drop the databases [NOT the mysql and other defaults]) and step back through the config without the nova-volume piece in the mix.</div>
<div><br></div><div>The malformed request is telling you that there's something that the receiving end does not like about the call you've made.  The reason I suspect the endpoint or catalog service issue is that I've made the same mistake and seen the same error myself :)</div>
<div><br></div><div>Thanks,</div><div>John</div></div></div></blockquote></div></div></span></div>
</blockquote></div>Ahmed,<div><br></div><div>Sorry this has been so much trouble for you, it looks like the only thing missing now is your iscsi/tgt setup.  Double check the items in step 13 on Migrate Wiki.</div><div><br>
</div><div><a href="http://wiki.openstack.org/MigrateToCinder">http://wiki.openstack.org/MigrateToCinder</a></div><div><br></div><div>Thanks,</div><div>John</div>