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 => 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 ...