Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cinder Error - Volume Not Attaching to Instance

Hi guys,

Im trying to attach a volume to an instance and im not getting the volume when fdisk -l

Dont know how to follow this step at openstack

In the [lvm] section, configure the LVM back end with the LVM driver, cinder-volumes volume group, iSCSI protocol, and appropriate iSCSI service:

[lvm] ... volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver volume_group = cinder-volumes iscsi_protocol = iscsi iscsi_helper = lioadm

I dont find the [lvm] section and no [lvm] section is in the file.

Here is the cinder.conf file on the storage node => http://www.filedropper.com/cinder_1

Here's the log which displays the error.

2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher [req-8ca989fe-3b12-4cf0-bd14-9a26923ec9e4 7ead70b5918b4e3c97ca8cce96d41978 9b77bb7a532d4b40a06323640a811b67 - - -] Exception during message handling: Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgtadm --lld iscsi --op show --mode target
Exit code: 96
Stdout: u''
Stderr: u'/usr/bin/cinder-rootwrap: Executable not found: tgtadm (filter match = tgtadm)\n'
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 138, in _dispatch_and_reply
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher     incoming.message))
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 185, in _dispatch
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 127, in _do_dispatch
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 1442, in initialize_connection
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher     volume, connector)
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/lvm.py", line 760, in create_export
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher     volume_path)
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/targets/iscsi.py", line 210, in create_export
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher     **portals_config)
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/targets/tgt.py", line 140, in create_iscsi_target
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher     run_as_root=True)
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 148, in execute
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher     return processutils.execute(*cmd, **kwargs)
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 389, in execute
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher     cmd=sanitized_cmd)
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher ProcessExecutionError: Unexpected error while running command.
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgtadm --lld iscsi --op show --mode target
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher Exit code: 96
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher Stdout: u''
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher Stderr: u'/usr/bin/cinder-rootwrap: Executable not found: tgtadm (filter match = tgtadm)\n'
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher 
2017-02-01 13:41:29.763 3064 ERROR oslo_messaging._drivers.common [req-8ca989fe-3b12-4cf0-bd14-9a26923ec9e4 7ead70b5918b4e3c97ca8cce96d41978 9b77bb7a532d4b40a06323640a811b67 - - -] Returning exception Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgtadm --lld iscsi --op show --mode target
Exit code: 96
Stdout: u''
Stderr: u'/usr/bin/cinder-rootwrap: Executable not found: tgtadm (filter match = tgtadm)\n' to caller
2017-02-01 13:41:29.764 3064 ERROR oslo_messaging._drivers.common [req-8ca989fe-3b12-4cf0-bd14-9a26923ec9e4 7ead70b5918b4e3c97ca8cce96d41978 9b77bb7a532d4b40a06323640a811b67 - - -] ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 138, in _dispatch_and_reply\n    incoming.message))\n', '  File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 185, in _dispatch\n    return self._do_dispatch(endpoint, method, ctxt, args)\n', '  File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 127, in _do_dispatch\n    result = func(ctxt, **new_args)\n', '  File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 1442, in initialize_connection\n    volume, connector)\n', '  File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/lvm.py", line 760, in create_export\n    volume_path)\n', '  File "/usr/lib/python2.7/site-packages/cinder/volume/targets/iscsi.py", line 210, in create_export\n    **portals_config)\n', '  File "/usr/lib/python2.7/site-packages/cinder/volume/targets/tgt.py", line 140, in create_iscsi_target\n    run_as_root=True)\n', '  File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 148, in execute\n    return processutils.execute(*cmd, **kwargs)\n', '  File "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 389, in execute\n    cmd=sanitized_cmd)\n', "ProcessExecutionError: Unexpected error while running command.\nCommand: sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgtadm --lld iscsi --op show --mode target\nExit code: 96\nStdout: u''\nStderr: u'/usr/bin/cinder-rootwrap: Executable not found: tgtadm (filter match = tgtadm)\\n'\n"]
2017-02-01 13:41:30.020 3064 INFO cinder.volume.manager [req-f4c677c9-c771-465b-ac95-7416e52f411b 7ead70b5918b4e3c97ca8cce96d41978 9b77bb7a532d4b40a06323640a811b67 - - -] Terminate volume connection completed successfully.

Cinder Error - Volume Not Attaching to Instance

Hi guys,

Im trying to attach a volume to an instance and im not getting the volume when fdisk -l

Dont know how to follow this step at openstack

In the [lvm] section, configure the LVM back end with the LVM driver, cinder-volumes volume group, iSCSI protocol, and appropriate iSCSI service:

[lvm] ... volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver volume_group = cinder-volumes iscsi_protocol = iscsi iscsi_helper = lioadm

I dont find the [lvm] section and no [lvm] section is in the file.

Here is the cinder.conf file on the storage node => http://www.filedropper.com/cinder_1filedropper.com/cinder_1

Here's the log which displays the error.

2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher [req-8ca989fe-3b12-4cf0-bd14-9a26923ec9e4 7ead70b5918b4e3c97ca8cce96d41978 9b77bb7a532d4b40a06323640a811b67 - - -] Exception during message handling: Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgtadm --lld iscsi --op show --mode target
Exit code: 96
Stdout: u''
Stderr: u'/usr/bin/cinder-rootwrap: Executable not found: tgtadm (filter match = tgtadm)\n'
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 138, in _dispatch_and_reply
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher     incoming.message))
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 185, in _dispatch
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 127, in _do_dispatch
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 1442, in initialize_connection
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher     volume, connector)
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/lvm.py", line 760, in create_export
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher     volume_path)
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/targets/iscsi.py", line 210, in create_export
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher     **portals_config)
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/targets/tgt.py", line 140, in create_iscsi_target
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher     run_as_root=True)
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 148, in execute
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher     return processutils.execute(*cmd, **kwargs)
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 389, in execute
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher     cmd=sanitized_cmd)
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher ProcessExecutionError: Unexpected error while running command.
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgtadm --lld iscsi --op show --mode target
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher Exit code: 96
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher Stdout: u''
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher Stderr: u'/usr/bin/cinder-rootwrap: Executable not found: tgtadm (filter match = tgtadm)\n'
2017-02-01 13:41:29.752 3064 ERROR oslo_messaging.rpc.dispatcher 
2017-02-01 13:41:29.763 3064 ERROR oslo_messaging._drivers.common [req-8ca989fe-3b12-4cf0-bd14-9a26923ec9e4 7ead70b5918b4e3c97ca8cce96d41978 9b77bb7a532d4b40a06323640a811b67 - - -] Returning exception Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgtadm --lld iscsi --op show --mode target
Exit code: 96
Stdout: u''
Stderr: u'/usr/bin/cinder-rootwrap: Executable not found: tgtadm (filter match = tgtadm)\n' to caller
2017-02-01 13:41:29.764 3064 ERROR oslo_messaging._drivers.common [req-8ca989fe-3b12-4cf0-bd14-9a26923ec9e4 7ead70b5918b4e3c97ca8cce96d41978 9b77bb7a532d4b40a06323640a811b67 - - -] ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 138, in _dispatch_and_reply\n    incoming.message))\n', '  File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 185, in _dispatch\n    return self._do_dispatch(endpoint, method, ctxt, args)\n', '  File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 127, in _do_dispatch\n    result = func(ctxt, **new_args)\n', '  File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 1442, in initialize_connection\n    volume, connector)\n', '  File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/lvm.py", line 760, in create_export\n    volume_path)\n', '  File "/usr/lib/python2.7/site-packages/cinder/volume/targets/iscsi.py", line 210, in create_export\n    **portals_config)\n', '  File "/usr/lib/python2.7/site-packages/cinder/volume/targets/tgt.py", line 140, in create_iscsi_target\n    run_as_root=True)\n', '  File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 148, in execute\n    return processutils.execute(*cmd, **kwargs)\n', '  File "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 389, in execute\n    cmd=sanitized_cmd)\n', "ProcessExecutionError: Unexpected error while running command.\nCommand: sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgtadm --lld iscsi --op show --mode target\nExit code: 96\nStdout: u''\nStderr: u'/usr/bin/cinder-rootwrap: Executable not found: tgtadm (filter match = tgtadm)\\n'\n"]
2017-02-01 13:41:30.020 3064 INFO cinder.volume.manager [req-f4c677c9-c771-465b-ac95-7416e52f411b 7ead70b5918b4e3c97ca8cce96d41978 9b77bb7a532d4b40a06323640a811b67 - - -] Terminate volume connection completed successfully.