Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

[Grizzly] Cinder create fails

Hello there,

I have been trying unsuccessfully to create volumes with cinder.

So here is how I proceeded:

  1. All components of Grizzly are installed (except Quantum which is still a work in progress). Everything seems to work fine so far.
  2. To install Cinder, I followed the official procedure: http://docs.openstack.org/trunk/openstack-compute/admin/content/cinder-install.html
  3. Database is installed on Cinder host, while the other services keystone, glance, etc are on the controller node.
  4. Database sync worked fine, and it created all the tables needed.
  5. Creating the volume however let the volume in a 'creating' state and reports errors


Here is my report:

Display of pvs/vgs and directories for cinder:

# pvs
  PV         VG             Fmt  Attr PSize  PFree 
  /dev/sda2  cinder-volumes lvm2 a-   51,22g 51,22g
# vgs
  VG             #PV #LV #SN Attr   VSize  VFree 
  cinder-volumes   1   0   0 wz--n- 51,22g 51,22g
# ls -lR /var/lib/cinder/ 
/var/lib/cinder/:
total 52
-rw------- 1 cinder cinder 41984 juin   7 16:34 cinder.sqlite
drwxr-x--- 2 cinder cinder  4096 mai   17 22:18 volumes

/var/lib/cinder/volumes:
total 0

Creating the first volume on cinder:
# cinder create --display_name test-cinder1
+---------------------+--------------------------------------+
|       Property      |                Value                 |
+---------------------+--------------------------------------+
|     attachments     |                  []                  |
|  availability_zone  |                 nova                 |
|       bootable      |                false                 |
|      created_at     |      2013-06-10T09:33:36.233022      |
| display_description |                 None                 |
|     display_name    |             test-cinder              |
|          id         | f5ec7252-a9de-448c-b7a6-8d9d7814d860 |
|       metadata      |                  {}                  |
|         size        |                  1                   |
|     snapshot_id     |                 None                 |
|     source_volid    |                 None                 |
|        status       |               creating               |
|     volume_type     |                 None                 |
+---------------------+--------------------------------------+


The output on Cinder-node concerning the schedule:

# tail -f /var/log/cinder/cinder-scheduler.log 
2013-06-10 11:33:39    ERROR [cinder.scheduler.manager] Failed to schedule_create_volume: Volume f5ec7252-a9de-448c-b7a6-8d9d7814d860 could not be found. 
2013-06-10 11:33:39    ERROR [root] Original exception being dropped: ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/dist-packages/cinder/scheduler/manager.py", line 104, in create_volume\n    self.driver.schedule_create_volume(context, request_spec,\n', '  File "/usr/lib/python2.7/dist-packages/cinder/scheduler/filter_scheduler.py", line 77, in schedule_create_volume\n    updated_volume = driver.volume_update_db(context, volume_id, host)\n', '  File "/usr/lib/python2.7/dist-packages/cinder/scheduler/driver.py", line 53, in volume_update_db\n    return db.volume_update(context, volume_id, values)\n', '  File "/usr/lib/python2.7/dist-packages/cinder/db/api.py", line 268, in volume_update\n    return IMPL.volume_update(context, volume_id, values)\n', '  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 123, in wrapper\n    return f(args, *kwargs)\n', '  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 1103, in volume_update\n    volume_ref = volume_get(context, volume_id, session=session)\n', '  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 123, in wrapper\n    return f(args, *kwargs)\n', '  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 1023, in volume_get\n    raise exception.VolumeNotFound(volume_id=volume_id)\n', 'VolumeNotFound: Volume f5ec7252-a9de-448c-b7a6-8d9d7814d860 could not be found.\n'] 
2013-06-10 11:33:39    ERROR [cinder.openstack.common.rpc.amqp] Exception during message handling 
Traceback (most recent call last): 
  File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/amqp.py", line 430, in _process_data 
    rval = self.proxy.dispatch(ctxt, version, method, *args) 
  File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/dispatcher.py", line 133, in dispatch 
    return getattr(proxyobj, method)(ctxt, *kwargs) 
  File "/usr/lib/python2.7/dist-packages/cinder/scheduler/manager.py", line 115, in create_volume 
    volume_state, 
  File "/usr/lib/python2.7/dist-packages/cinder/scheduler/manager.py", line 127, in _set_volume_state_and_notify 
    if volume_id: 
  File "/usr/lib/python2.7/dist-packages/cinder/db/api.py", line 268, in volume_update 
    return IMPL.volume_update(context, volume_id, values) 
  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 123, in wrapper 
    return f(args, *kwargs) 
  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 1103, in volume_update 
    volume_ref = volume_get(context, volume_id, session=session) 
  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 123, in wrapper 
    return f(args, *kwargs) 
  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 1023, in volume_get 
    raise exception.VolumeNotFound(volume_id=volume_id) 
VolumeNotFound: Volume f5ec7252-a9de-448c-b7a6-8d9d7814d860 could not be found.

So it looks like it cannot create the volume, but why..I don't know.

Keystone log doesn't show anything suspicious to me in both case (Debug=False/True) - no Error/Warning, HTTP return code looks fine, however if you have any hint to look for, I'll check again.

I hope this question/report is complete enough to get some helpful hand, if not please let me know what to check/add; such as config files for example.

Thank you,

Regards,

[Grizzly] [Solved] Cinder create fails

Hello there,

I have been trying unsuccessfully to create volumes with cinder.

So here is how I proceeded:

  1. All components of Grizzly are installed (except Quantum which is still a work in progress). Everything seems to work fine so far.
  2. To install Cinder, I followed the official procedure: http://docs.openstack.org/trunk/openstack-compute/admin/content/cinder-install.html
  3. Database is installed on Cinder host, while the other services keystone, glance, etc are on the controller node.
  4. Database sync worked fine, and it created all the tables needed.
  5. Creating the volume however let the volume in a 'creating' state and reports errors


Here is my report:

Display of pvs/vgs and directories for cinder:

# pvs
  PV         VG             Fmt  Attr PSize  PFree 
  /dev/sda2  cinder-volumes lvm2 a-   51,22g 51,22g
# vgs
  VG             #PV #LV #SN Attr   VSize  VFree 
  cinder-volumes   1   0   0 wz--n- 51,22g 51,22g
# ls -lR /var/lib/cinder/ 
/var/lib/cinder/:
total 52
-rw------- 1 cinder cinder 41984 juin   7 16:34 cinder.sqlite
drwxr-x--- 2 cinder cinder  4096 mai   17 22:18 volumes

/var/lib/cinder/volumes:
total 0

Creating the first volume on cinder:
# cinder create --display_name test-cinder1
+---------------------+--------------------------------------+
|       Property      |                Value                 |
+---------------------+--------------------------------------+
|     attachments     |                  []                  |
|  availability_zone  |                 nova                 |
|       bootable      |                false                 |
|      created_at     |      2013-06-10T09:33:36.233022      |
| display_description |                 None                 |
|     display_name    |             test-cinder              |
|          id         | f5ec7252-a9de-448c-b7a6-8d9d7814d860 |
|       metadata      |                  {}                  |
|         size        |                  1                   |
|     snapshot_id     |                 None                 |
|     source_volid    |                 None                 |
|        status       |               creating               |
|     volume_type     |                 None                 |
+---------------------+--------------------------------------+


The output on Cinder-node concerning the schedule:

# tail -f /var/log/cinder/cinder-scheduler.log 
2013-06-10 11:33:39    ERROR [cinder.scheduler.manager] Failed to schedule_create_volume: Volume f5ec7252-a9de-448c-b7a6-8d9d7814d860 could not be found. 
2013-06-10 11:33:39    ERROR [root] Original exception being dropped: ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/dist-packages/cinder/scheduler/manager.py", line 104, in create_volume\n    self.driver.schedule_create_volume(context, request_spec,\n', '  File "/usr/lib/python2.7/dist-packages/cinder/scheduler/filter_scheduler.py", line 77, in schedule_create_volume\n    updated_volume = driver.volume_update_db(context, volume_id, host)\n', '  File "/usr/lib/python2.7/dist-packages/cinder/scheduler/driver.py", line 53, in volume_update_db\n    return db.volume_update(context, volume_id, values)\n', '  File "/usr/lib/python2.7/dist-packages/cinder/db/api.py", line 268, in volume_update\n    return IMPL.volume_update(context, volume_id, values)\n', '  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 123, in wrapper\n    return f(args, *kwargs)\n', '  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 1103, in volume_update\n    volume_ref = volume_get(context, volume_id, session=session)\n', '  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 123, in wrapper\n    return f(args, *kwargs)\n', '  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 1023, in volume_get\n    raise exception.VolumeNotFound(volume_id=volume_id)\n', 'VolumeNotFound: Volume f5ec7252-a9de-448c-b7a6-8d9d7814d860 could not be found.\n'] 
2013-06-10 11:33:39    ERROR [cinder.openstack.common.rpc.amqp] Exception during message handling 
Traceback (most recent call last): 
  File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/amqp.py", line 430, in _process_data 
    rval = self.proxy.dispatch(ctxt, version, method, *args) 
  File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/dispatcher.py", line 133, in dispatch 
    return getattr(proxyobj, method)(ctxt, *kwargs) 
  File "/usr/lib/python2.7/dist-packages/cinder/scheduler/manager.py", line 115, in create_volume 
    volume_state, 
  File "/usr/lib/python2.7/dist-packages/cinder/scheduler/manager.py", line 127, in _set_volume_state_and_notify 
    if volume_id: 
  File "/usr/lib/python2.7/dist-packages/cinder/db/api.py", line 268, in volume_update 
    return IMPL.volume_update(context, volume_id, values) 
  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 123, in wrapper 
    return f(args, *kwargs) 
  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 1103, in volume_update 
    volume_ref = volume_get(context, volume_id, session=session) 
  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 123, in wrapper 
    return f(args, *kwargs) 
  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 1023, in volume_get 
    raise exception.VolumeNotFound(volume_id=volume_id) 
VolumeNotFound: Volume f5ec7252-a9de-448c-b7a6-8d9d7814d860 could not be found.

So it looks like it cannot create the volume, but why..I don't know.

Keystone log doesn't show anything suspicious to me in both case (Debug=False/True) - no Error/Warning, HTTP return code looks fine, however if you have any hint to look for, I'll check again.

I hope this question/report is complete enough to get some helpful hand, if not please let me know what to check/add; such as config files for example.

Thank you,

Regards,

click to hide/show revision 3
minor fix at the title, clickable links

[Solved] Cinder create failsfails with "VolumeNotFound"

Hello there,

I have been trying unsuccessfully to create volumes with cinder.

So here is how I proceeded:

  1. All components of Grizzly are installed (except Quantum which is still a work in progress). Everything seems to work fine so far.
  2. To install Cinder, I followed the official procedure: http://docs.openstack.org/trunk/openstack-compute/admin/content/cinder-install.html
  3. Database is installed on Cinder host, while the other services keystone, glance, etc are on the controller node.
  4. Database sync worked fine, and it created all the tables needed.
  5. Creating the volume however let the volume in a 'creating' state and reports errors


Here is my report:

Display of pvs/vgs and directories for cinder:

# pvs
  PV         VG             Fmt  Attr PSize  PFree 
  /dev/sda2  cinder-volumes lvm2 a-   51,22g 51,22g
# vgs
  VG             #PV #LV #SN Attr   VSize  VFree 
  cinder-volumes   1   0   0 wz--n- 51,22g 51,22g
# ls -lR /var/lib/cinder/ 
/var/lib/cinder/:
total 52
-rw------- 1 cinder cinder 41984 juin   7 16:34 cinder.sqlite
drwxr-x--- 2 cinder cinder  4096 mai   17 22:18 volumes

/var/lib/cinder/volumes:
total 0

Creating the first volume on cinder:
# cinder create --display_name test-cinder1
+---------------------+--------------------------------------+
|       Property      |                Value                 |
+---------------------+--------------------------------------+
|     attachments     |                  []                  |
|  availability_zone  |                 nova                 |
|       bootable      |                false                 |
|      created_at     |      2013-06-10T09:33:36.233022      |
| display_description |                 None                 |
|     display_name    |             test-cinder              |
|          id         | f5ec7252-a9de-448c-b7a6-8d9d7814d860 |
|       metadata      |                  {}                  |
|         size        |                  1                   |
|     snapshot_id     |                 None                 |
|     source_volid    |                 None                 |
|        status       |               creating               |
|     volume_type     |                 None                 |
+---------------------+--------------------------------------+


The output on Cinder-node concerning the schedule:

# tail -f /var/log/cinder/cinder-scheduler.log 
2013-06-10 11:33:39    ERROR [cinder.scheduler.manager] Failed to schedule_create_volume: Volume f5ec7252-a9de-448c-b7a6-8d9d7814d860 could not be found. 
2013-06-10 11:33:39    ERROR [root] Original exception being dropped: ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/dist-packages/cinder/scheduler/manager.py", line 104, in create_volume\n    self.driver.schedule_create_volume(context, request_spec,\n', '  File "/usr/lib/python2.7/dist-packages/cinder/scheduler/filter_scheduler.py", line 77, in schedule_create_volume\n    updated_volume = driver.volume_update_db(context, volume_id, host)\n', '  File "/usr/lib/python2.7/dist-packages/cinder/scheduler/driver.py", line 53, in volume_update_db\n    return db.volume_update(context, volume_id, values)\n', '  File "/usr/lib/python2.7/dist-packages/cinder/db/api.py", line 268, in volume_update\n    return IMPL.volume_update(context, volume_id, values)\n', '  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 123, in wrapper\n    return f(args, *kwargs)\n', '  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 1103, in volume_update\n    volume_ref = volume_get(context, volume_id, session=session)\n', '  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 123, in wrapper\n    return f(args, *kwargs)\n', '  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 1023, in volume_get\n    raise exception.VolumeNotFound(volume_id=volume_id)\n', 'VolumeNotFound: Volume f5ec7252-a9de-448c-b7a6-8d9d7814d860 could not be found.\n'] 
2013-06-10 11:33:39    ERROR [cinder.openstack.common.rpc.amqp] Exception during message handling 
Traceback (most recent call last): 
  File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/amqp.py", line 430, in _process_data 
    rval = self.proxy.dispatch(ctxt, version, method, *args) 
  File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/dispatcher.py", line 133, in dispatch 
    return getattr(proxyobj, method)(ctxt, *kwargs) 
  File "/usr/lib/python2.7/dist-packages/cinder/scheduler/manager.py", line 115, in create_volume 
    volume_state, 
  File "/usr/lib/python2.7/dist-packages/cinder/scheduler/manager.py", line 127, in _set_volume_state_and_notify 
    if volume_id: 
  File "/usr/lib/python2.7/dist-packages/cinder/db/api.py", line 268, in volume_update 
    return IMPL.volume_update(context, volume_id, values) 
  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 123, in wrapper 
    return f(args, *kwargs) 
  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 1103, in volume_update 
    volume_ref = volume_get(context, volume_id, session=session) 
  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 123, in wrapper 
    return f(args, *kwargs) 
  File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 1023, in volume_get 
    raise exception.VolumeNotFound(volume_id=volume_id) 
VolumeNotFound: Volume f5ec7252-a9de-448c-b7a6-8d9d7814d860 could not be found.

So it looks like it cannot create the volume, but why..I don't know.

Keystone log doesn't show anything suspicious to me in both case (Debug=False/True) - no Error/Warning, HTTP return code looks fine, however if you have any hint to look for, I'll check again.

I hope this question/report is complete enough to get some helpful hand, if not please let me know what to check/add; such as config files for example.

Thank you,

Regards,