← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1352516] [NEW] "cinder-volumes" has insufficient free space

 

Public bug reported:

Project > Volume > Create Volume fails and only shows a generic 'Error'
in the table.  User has to go to /var/log/cinder/volume.log  to see why
it failed.  It would be nice to propagate the error message (or
something) like the one in the volume.log: "Volume group "cinder-
volumes" has insufficient free space (1279 extents): 1280 required.\n'"

Related:
I believe Instances has a nice way of letting user know the failure... it will show a new section in the Instances table:

Fault

Message
No valid host was found.
Code
500
Details
File "/opt/stack/nova/nova/scheduler/filter_scheduler.py", line 107, in schedule_run_instance raise exception.NoValidHost(reason="")
Created
Aug. 4, 2014, 6:50 p.m.

---

volume.log trace:

2014-05-09 05:15:24.365 32325 TRACE oslo.messaging.rpc.dispatcher Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-e78a37c4-69b5-4b02-91ea-8f8131da5062 cinder-volumes -L 5g
2014-05-09 05:15:24.365 32325 TRACE oslo.messaging.rpc.dispatcher Exit code: 5
2014-05-09 05:15:24.365 32325 TRACE oslo.messaging.rpc.dispatcher Stdout: ''
2014-05-09 05:15:24.365 32325 TRACE oslo.messaging.rpc.dispatcher Stderr: '  Volume group "cinder-volumes" has insufficient free space (1279 extents): 1280 required.\n'
2014-05-09 05:15:24.365 32325 TRACE oslo.messaging.rpc.dispatcher
2014-05-09 05:15:24.367 32325 ERROR oslo.messaging._drivers.common [req-fb3ce0ad-17a5-4e8d-bf54-f7ef58f3721c 12854cf133d442a3808b2c5f45d95cd2 31e76abd2fe64fd1af8f94e0bb06487c - - -] Returning exception Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-e78a37c4-69b5-4b02-91ea-8f8131da5062 cinder-volumes -L 5g
Exit code: 5
Stdout: ''
Stderr: '  Volume group "cinder-volumes" has insufficient free space (1279 extents): 1280 required.\n' to caller
2014-05-09 05:15:24.368 32325 ERROR oslo.messaging._drivers.common [req-fb3ce0ad-17a5-4e8d-bf54-f7ef58f3721c 12854cf133d442a3808b2c5f45d95cd2 31e76abd2fe64fd1af8f94e0bb06487c - - -] ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply\n    incoming.message))\n', '  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch\n    return self._do_dispatch(endpoint, method, ctxt, args)\n', '  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch\n    result = getattr(endpoint, method)(ctxt, **new_args)\n', '  File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 363, in create_volume\n    _run_flow()\n', '  File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 356, in _run_flow\n    flow_engine.run()\n', '  File "/usr/lib/python2.6/site-packages/taskflow/utils/lock_utils.py", line 53, in wrapper\n    return f(*args, **kwargs)\n', '  File "/usr/lib/python2.6/site-packages/taskflow/engines/action_engine/engine.py", line 111, in run\n    self._run()\n', '  File "/usr/lib/python2.6/site-packages/taskflow/engines/action_engine/engine.py", line 121, in _run\n    self._revert(misc.Failure())\n', '  File "/usr/lib/python2.6/site-packages/taskflow/engines/action_engine/engine.py", line 78, in _revert\n    misc.Failure.reraise_if_any(failures.values())\n', '  File "/usr/lib/python2.6/site-packages/taskflow/utils/misc.py", line 558, in reraise_if_any\n    failures[0].reraise()\n', '  File "/usr/lib/python2.6/site-packages/taskflow/utils/misc.py", line 565, in reraise\n    six.reraise(*self._exc_info)\n', '  File "/usr/lib/python2.6/site-packages/taskflow/engines/action_engine/executor.py", line 36, in _execute_task\n    result = task.execute(**arguments)\n', '  File "/usr/lib/python2.6/site-packages/cinder/volume/flows/manager/create_volume.py", line 594, in execute\n    **volume_spec)\n', '  File "/usr/lib/python2.6/site-packages/cinder/volume/flows/manager/create_volume.py", line 564, in _create_raw_volume\n    return self.driver.create_volume(volume_ref)\n', '  File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 196, in create_volume\n    mirror_count)\n', '  File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 185, in _create_volume\n    vg_ref.create_volume(name, size, lvm_type, mirror_count)\n', '  File "/usr/lib/python2.6/site-packages/cinder/brick/local_dev/lvm.py", line 474, in create_volume\n    run_as_root=True)\n', '  File "/usr/lib/python2.6/site-packages/cinder/utils.py", line 136, in execute\n    return processutils.execute(*cmd, **kwargs)\n', '  File "/usr/lib/python2.6/site-packages/cinder/openstack/common/processutils.py", line 173, in execute\n    cmd=\' \'.join(cmd))\n', 'ProcessExecutionError: Unexpected error while running command.\nCommand: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-e78a37c4-69b5-4b02-91ea-8f8131da5062 cinder-volumes -L 5g\nExit code: 5\nStdout: \'\'\nStderr: \'  Volume group "cinder-volumes" has insufficient free space (1279 extents): 1280 required.\\n\'\n']

** Affects: horizon
     Importance: Undecided
         Status: New

** Description changed:

  Project > Volume > Create Volume fails and only shows a generic 'Error'
- in the table.  User has to go to volume.log to see why it failed.  It
- would be nice to propagate the error message like the one in the
- volume.log: "Volume group "cinder-volumes" has insufficient free space
- (1279 extents): 1280 required.\n'"
+ in the table.  User has to go to /var/log/cinder/volume.log  to see why
+ it failed.  It would be nice to propagate the error message (or
+ something) like the one in the volume.log: "Volume group "cinder-
+ volumes" has insufficient free space (1279 extents): 1280 required.\n'"
  
  Related:
  I believe Instances has a nice way of letting user know the failure... it will show a new section in the Instances table:
  
  Fault
  
  Message
  No valid host was found.
  Code
  500
  Details
  File "/opt/stack/nova/nova/scheduler/filter_scheduler.py", line 107, in schedule_run_instance raise exception.NoValidHost(reason="")
  Created
  Aug. 4, 2014, 6:50 p.m.
  
  ---
  
  volume.log trace:
  
  2014-05-09 05:15:24.365 32325 TRACE oslo.messaging.rpc.dispatcher Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-e78a37c4-69b5-4b02-91ea-8f8131da5062 cinder-volumes -L 5g
  2014-05-09 05:15:24.365 32325 TRACE oslo.messaging.rpc.dispatcher Exit code: 5
  2014-05-09 05:15:24.365 32325 TRACE oslo.messaging.rpc.dispatcher Stdout: ''
  2014-05-09 05:15:24.365 32325 TRACE oslo.messaging.rpc.dispatcher Stderr: '  Volume group "cinder-volumes" has insufficient free space (1279 extents): 1280 required.\n'
  2014-05-09 05:15:24.365 32325 TRACE oslo.messaging.rpc.dispatcher
  2014-05-09 05:15:24.367 32325 ERROR oslo.messaging._drivers.common [req-fb3ce0ad-17a5-4e8d-bf54-f7ef58f3721c 12854cf133d442a3808b2c5f45d95cd2 31e76abd2fe64fd1af8f94e0bb06487c - - -] Returning exception Unexpected error while running command.
  Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-e78a37c4-69b5-4b02-91ea-8f8131da5062 cinder-volumes -L 5g
  Exit code: 5
  Stdout: ''
  Stderr: '  Volume group "cinder-volumes" has insufficient free space (1279 extents): 1280 required.\n' to caller
  2014-05-09 05:15:24.368 32325 ERROR oslo.messaging._drivers.common [req-fb3ce0ad-17a5-4e8d-bf54-f7ef58f3721c 12854cf133d442a3808b2c5f45d95cd2 31e76abd2fe64fd1af8f94e0bb06487c - - -] ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply\n    incoming.message))\n', '  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch\n    return self._do_dispatch(endpoint, method, ctxt, args)\n', '  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch\n    result = getattr(endpoint, method)(ctxt, **new_args)\n', '  File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 363, in create_volume\n    _run_flow()\n', '  File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 356, in _run_flow\n    flow_engine.run()\n', '  File "/usr/lib/python2.6/site-packages/taskflow/utils/lock_utils.py", line 53, in wrapper\n    return f(*args, **kwargs)\n', '  File "/usr/lib/python2.6/site-packages/taskflow/engines/action_engine/engine.py", line 111, in run\n    self._run()\n', '  File "/usr/lib/python2.6/site-packages/taskflow/engines/action_engine/engine.py", line 121, in _run\n    self._revert(misc.Failure())\n', '  File "/usr/lib/python2.6/site-packages/taskflow/engines/action_engine/engine.py", line 78, in _revert\n    misc.Failure.reraise_if_any(failures.values())\n', '  File "/usr/lib/python2.6/site-packages/taskflow/utils/misc.py", line 558, in reraise_if_any\n    failures[0].reraise()\n', '  File "/usr/lib/python2.6/site-packages/taskflow/utils/misc.py", line 565, in reraise\n    six.reraise(*self._exc_info)\n', '  File "/usr/lib/python2.6/site-packages/taskflow/engines/action_engine/executor.py", line 36, in _execute_task\n    result = task.execute(**arguments)\n', '  File "/usr/lib/python2.6/site-packages/cinder/volume/flows/manager/create_volume.py", line 594, in execute\n    **volume_spec)\n', '  File "/usr/lib/python2.6/site-packages/cinder/volume/flows/manager/create_volume.py", line 564, in _create_raw_volume\n    return self.driver.create_volume(volume_ref)\n', '  File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 196, in create_volume\n    mirror_count)\n', '  File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 185, in _create_volume\n    vg_ref.create_volume(name, size, lvm_type, mirror_count)\n', '  File "/usr/lib/python2.6/site-packages/cinder/brick/local_dev/lvm.py", line 474, in create_volume\n    run_as_root=True)\n', '  File "/usr/lib/python2.6/site-packages/cinder/utils.py", line 136, in execute\n    return processutils.execute(*cmd, **kwargs)\n', '  File "/usr/lib/python2.6/site-packages/cinder/openstack/common/processutils.py", line 173, in execute\n    cmd=\' \'.join(cmd))\n', 'ProcessExecutionError: Unexpected error while running command.\nCommand: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-e78a37c4-69b5-4b02-91ea-8f8131da5062 cinder-volumes -L 5g\nExit code: 5\nStdout: \'\'\nStderr: \'  Volume group "cinder-volumes" has insufficient free space (1279 extents): 1280 required.\\n\'\n']

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1352516

Title:
  "cinder-volumes" has insufficient free space

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Project > Volume > Create Volume fails and only shows a generic
  'Error' in the table.  User has to go to /var/log/cinder/volume.log
  to see why it failed.  It would be nice to propagate the error message
  (or something) like the one in the volume.log: "Volume group "cinder-
  volumes" has insufficient free space (1279 extents): 1280
  required.\n'"

  Related:
  I believe Instances has a nice way of letting user know the failure... it will show a new section in the Instances table:

  Fault

  Message
  No valid host was found.
  Code
  500
  Details
  File "/opt/stack/nova/nova/scheduler/filter_scheduler.py", line 107, in schedule_run_instance raise exception.NoValidHost(reason="")
  Created
  Aug. 4, 2014, 6:50 p.m.

  ---

  volume.log trace:

  2014-05-09 05:15:24.365 32325 TRACE oslo.messaging.rpc.dispatcher Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-e78a37c4-69b5-4b02-91ea-8f8131da5062 cinder-volumes -L 5g
  2014-05-09 05:15:24.365 32325 TRACE oslo.messaging.rpc.dispatcher Exit code: 5
  2014-05-09 05:15:24.365 32325 TRACE oslo.messaging.rpc.dispatcher Stdout: ''
  2014-05-09 05:15:24.365 32325 TRACE oslo.messaging.rpc.dispatcher Stderr: '  Volume group "cinder-volumes" has insufficient free space (1279 extents): 1280 required.\n'
  2014-05-09 05:15:24.365 32325 TRACE oslo.messaging.rpc.dispatcher
  2014-05-09 05:15:24.367 32325 ERROR oslo.messaging._drivers.common [req-fb3ce0ad-17a5-4e8d-bf54-f7ef58f3721c 12854cf133d442a3808b2c5f45d95cd2 31e76abd2fe64fd1af8f94e0bb06487c - - -] Returning exception Unexpected error while running command.
  Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-e78a37c4-69b5-4b02-91ea-8f8131da5062 cinder-volumes -L 5g
  Exit code: 5
  Stdout: ''
  Stderr: '  Volume group "cinder-volumes" has insufficient free space (1279 extents): 1280 required.\n' to caller
  2014-05-09 05:15:24.368 32325 ERROR oslo.messaging._drivers.common [req-fb3ce0ad-17a5-4e8d-bf54-f7ef58f3721c 12854cf133d442a3808b2c5f45d95cd2 31e76abd2fe64fd1af8f94e0bb06487c - - -] ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply\n    incoming.message))\n', '  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch\n    return self._do_dispatch(endpoint, method, ctxt, args)\n', '  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch\n    result = getattr(endpoint, method)(ctxt, **new_args)\n', '  File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 363, in create_volume\n    _run_flow()\n', '  File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 356, in _run_flow\n    flow_engine.run()\n', '  File "/usr/lib/python2.6/site-packages/taskflow/utils/lock_utils.py", line 53, in wrapper\n    return f(*args, **kwargs)\n', '  File "/usr/lib/python2.6/site-packages/taskflow/engines/action_engine/engine.py", line 111, in run\n    self._run()\n', '  File "/usr/lib/python2.6/site-packages/taskflow/engines/action_engine/engine.py", line 121, in _run\n    self._revert(misc.Failure())\n', '  File "/usr/lib/python2.6/site-packages/taskflow/engines/action_engine/engine.py", line 78, in _revert\n    misc.Failure.reraise_if_any(failures.values())\n', '  File "/usr/lib/python2.6/site-packages/taskflow/utils/misc.py", line 558, in reraise_if_any\n    failures[0].reraise()\n', '  File "/usr/lib/python2.6/site-packages/taskflow/utils/misc.py", line 565, in reraise\n    six.reraise(*self._exc_info)\n', '  File "/usr/lib/python2.6/site-packages/taskflow/engines/action_engine/executor.py", line 36, in _execute_task\n    result = task.execute(**arguments)\n', '  File "/usr/lib/python2.6/site-packages/cinder/volume/flows/manager/create_volume.py", line 594, in execute\n    **volume_spec)\n', '  File "/usr/lib/python2.6/site-packages/cinder/volume/flows/manager/create_volume.py", line 564, in _create_raw_volume\n    return self.driver.create_volume(volume_ref)\n', '  File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 196, in create_volume\n    mirror_count)\n', '  File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 185, in _create_volume\n    vg_ref.create_volume(name, size, lvm_type, mirror_count)\n', '  File "/usr/lib/python2.6/site-packages/cinder/brick/local_dev/lvm.py", line 474, in create_volume\n    run_as_root=True)\n', '  File "/usr/lib/python2.6/site-packages/cinder/utils.py", line 136, in execute\n    return processutils.execute(*cmd, **kwargs)\n', '  File "/usr/lib/python2.6/site-packages/cinder/openstack/common/processutils.py", line 173, in execute\n    cmd=\' \'.join(cmd))\n', 'ProcessExecutionError: Unexpected error while running command.\nCommand: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-e78a37c4-69b5-4b02-91ea-8f8131da5062 cinder-volumes -L 5g\nExit code: 5\nStdout: \'\'\nStderr: \'  Volume group "cinder-volumes" has insufficient free space (1279 extents): 1280 required.\\n\'\n']

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


Follow ups

References