[Openstack] [openstack][cinder] cinder create gives an error
Ahmed Al-Mehdi
ahmed at coraid.com
Tue Nov 6 22:44:59 UTC 2012
John,
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 ( http://docs.openstack.org/trunk/openstack-compute/install/apt/content/osfolubuntu-cinder.html ). All the three cinder-api/volume/scheduler services are running.
root at bodega:/var/log/cinder# ps aux | grep cinder
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
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
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
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
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
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
VG "cinder-volumes" is present:
root at bodega:/var/log/cinder# vgdisplay cinder-volumes
--- Volume group ---
VG Name cinder-volumes
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 6
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 2.00 GiB
PE Size 4.00 MiB
Total PE 511
Alloc PE / Size 256 / 1.00 GiB
Free PE / Size 255 / 1020.00 MiB
VG UUID VhxQZx-fB8K-36V9-L0sB-ImVO-oVFw-LNOLM0
However, when I create a 1GB test volume (as per the instructions), I run into a failure.
root at bodega:~/ahmed/cinder# date; cinder create --display_name test 1
Tue Nov 6 12:57:39 PST 2012
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| created_at | 2012-11-06T20:57:39.538245 |
| display_description | None |
| display_name | test |
| id | ab719d8d-42a4-44bc-b627-96b30e3f5002 |
| metadata | {} |
| size | 1 |
| snapshot_id | None |
| status | creating |
| volume_type | None |
+---------------------+--------------------------------------+
root at bodega:~/ahmed/cinder#
root at bodega:~/ahmed/cinder#
root at bodega:~/ahmed/cinder#
root at bodega:~/ahmed/cinder# date; cinder list
Tue Nov 6 13:06:46 PST 2012
+--------------------------------------+--------+--------------+------+-------------+-------------+
| ID | Status | Display Name | Size | Volume Type | Attached to |
+--------------------------------------+--------+--------------+------+-------------+-------------+
| ab719d8d-42a4-44bc-b627-96b30e3f5002 | error | test | 1 | None | |
+--------------------------------------+--------+--------------+------+-------------+-------------+
root at bodega:~/ahmed/cinder#
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.
Regards,
Ahmed.
From: John Griffith <john.griffith at solidfire.com<mailto:john.griffith at solidfire.com>>
Date: Tuesday, November 6, 2012 11:41 AM
To: Ahmed Al-Mehdi <ahmed at coraid.com<mailto:ahmed at coraid.com>>
Cc: "openstack at lists.launchpad.net<mailto:openstack at lists.launchpad.net>" <openstack at lists.launchpad.net<mailto:openstack at lists.launchpad.net>>
Subject: Re: [Openstack] [openstack][cinder] cinder create gives an error
On Tue, Nov 6, 2012 at 11:28 AM, Ahmed Al-Mehdi <ahmed at coraid.com<mailto:ahmed at coraid.com>> wrote:
John,
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?
Not to impose on you, but can you help me understand what does the following error mean:
ERROR: Malformed request url (HTTP 400) (Request-ID: req-8cff9608-598b-4618-bdc1-1068a1227781)
Is there an issue with how the REST command (Get/Put) is formed?
Is the service not listening on the expected port, or the service is not even up and running?
Regards,
Ahmed.
From: John Griffith <john.griffith at solidfire.com<mailto:john.griffith at solidfire.com>>
Date: Tuesday, November 6, 2012 11:19 AM
To: Ahmed Al-Mehdi <ahmed at coraid.com<mailto:ahmed at coraid.com>>
Cc: "openstack at lists.launchpad.net<mailto:openstack at lists.launchpad.net>" <openstack at lists.launchpad.net<mailto:openstack at lists.launchpad.net>>
Subject: Re: [Openstack] [openstack][cinder] cinder create gives an error
On Tue, Nov 6, 2012 at 11:10 AM, Ahmed Al-Mehdi <ahmed at coraid.com<mailto:ahmed at coraid.com>> wrote:
Hello,
I just installed installed cinder, however, I am getting the following error.
root at bodega:~/ahmed/cinder# cinder create --display_name test 1
ERROR: Malformed request url (HTTP 400) (Request-ID: req-a488154b-37f8-47e8-ae5f-8e7a73f6637b)
root at bodega:~/ahmed/cinder#
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.
Any pointers to debug this issue would be greatly appreciated.
Regards,
Ahmed.
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack at lists.launchpad.net<mailto:openstack at lists.launchpad.net>
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp
Ahmed,
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.
Thanks,
John
Ahmed,
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.
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 :)
Thanks,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20121106/68f7d250/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: create.log
Type: application/octet-stream
Size: 12457 bytes
Desc: create.log
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20121106/68f7d250/attachment.obj>
More information about the Openstack
mailing list