[Openstack] error when create volume use "nova volume-create"

DeadSun mwjpiero at gmail.com
Mon Oct 24 09:05:52 UTC 2011


Now I can export lun:

$ sudo iscsiadm -m discovery -t sendtargets -p node2
10.11.3.64:3260,1 iqn.2010-10.org.openstack:volume-00000001

but errors still show:

2011-10-24 17:04:01,015 DEBUG nova.utils [-] Running cmd (subprocess): sudo
iscsiadm -m discovery -t sendtargets -p node2 from (pid=23629) execute
/data/nova/nova/utils.py:168
2011-10-24 17:04:01,035 ERROR nova.rpc [-] Exception during message handling
(nova.rpc): TRACE: Traceback (most recent call last):
(nova.rpc): TRACE: File "/data/nova/nova/rpc/impl_kombu.py", line 620, in
_process_data
(nova.rpc): TRACE: rval = node_func(context=ctxt, **node_args)
(nova.rpc): TRACE: File "/data/nova/nova/volume/manager.py", line 268, in
initialize_connection
(nova.rpc): TRACE: return self.driver.initialize_connection(volume_ref,
address)
(nova.rpc): TRACE: File "/data/nova/nova/volume/driver.py", line 406, in
initialize_connection
(nova.rpc): TRACE: iscsi_properties = self._get_iscsi_properties(volume)
(nova.rpc): TRACE: File "/data/nova/nova/volume/driver.py", line 350, in
_get_iscsi_properties
(nova.rpc): TRACE: (volume['name']))
(nova.rpc): TRACE: Error: Could not find iSCSI export for volume
volume-00000001
(nova.rpc): TRACE:
2011-10-24 17:04:01,036 ERROR nova.rpc [-] Returning exception Could not
find iSCSI export for volume volume-00000001 to caller
2011-10-24 17:04:01,036 ERROR nova.rpc [-] ['Traceback (most recent call
last):\n', ' File "/data/nova/nova/rpc/impl_kombu.py", line 620, in
_process_data\n rval = node_func(context=ctxt, **node_args)\n', ' File
"/data/nova/nova/volume/manager.py", line 268, in initialize_connection\n
return self.driver.initialize_connection(volume_ref, address)\n', ' File
"/data/nova/nova/volume/driver.py", line 406, in initialize_connection\n
iscsi_properties = self._get_iscsi_properties(volume)\n', ' File
"/data/nova/nova/volume/driver.py", line 350, in _get_iscsi_properties\n
(volume[\'name\']))\n', 'Error: Could not find iSCSI export for volume
volume-00000001\n']

2011/10/24 DeadSun <mwjpiero at gmail.com>

> It still doesnot work. I will talk with you.
>
>
> 2011/10/24 Razique Mahroua <razique.mahroua at gmail.com>
>
>> Hey livemoon,
>> make sure the package "open-iscsi" is installed on all your nodes.
>> then run $ service open-iscsi restart before restarting the nova-volume
>> service
>>
>> Beware, the tgtadm performs the iscsi exports, while the sessions run on
>> the compute node.
>> I'm working on a scheme for better clarity.
>>
>>
>> Le 24 oct. 2011 à 09:32, DeadSun a écrit :
>>
>> > Hi.Razique, I am livemoon
>> >
>> > I have install tgt via package.
>> >
>> > Now I have "nova volume-create" a volume.
>> > *************************************************************
>> > openstack at node2:/data/nova$ sudo tgtadm --lld iscsi --op show --mode
>> target
>> > Target 8: iqn.2010-10.org.openstack:volume-00000001
>> > System information:
>> > Driver: iscsi
>> > State: ready
>> > I_T nexus information:
>> > LUN information:
>> > LUN: 0
>> > Type: controller
>> > SCSI ID: IET 00080000
>> > SCSI SN: beaf80
>> > Size: 0 MB, Block size: 1
>> > Online: Yes
>> > Removable media: No
>> > Readonly: No
>> > Backing store type: null
>> > Backing store path: None
>> > Backing store flags:
>> > LUN: 1
>> > Type: disk
>> > SCSI ID: IET 00080001
>> > SCSI SN: beaf81
>> > Size: 1074 MB, Block size: 512
>> > Online: Yes
>> > Removable media: No
>> > Readonly: No
>> > Backing store type: rdwr
>> > Backing store path: /dev/nova-volumes/volume-00000001
>> > Backing store flags:
>> > Account information:
>> > ACL information:
>> > ALL
>> > ****************************************************
>> > but I use "sudo iscsiadm -m node", nothing show
>> >
>> > but when I attach volume to a server, error show, It seems it use
>> iscsiadmin and not tgtadmin
>> > ****************************************************
>> > 2011-10-24 15:13:32,786 DEBUG nova.rpc [-] received {u'_context_roles':
>> [u'Admin', u'Admin', u'KeystoneAdmin', u'KeystoneServiceAdmin'], u'_msg_id':
>> u'2f6c24f9bae84b278e28c27c76022a9b', u'_context_read_deleted': False,
>> u'_context_request_id': u'49d034cc-94e7-40a6-a3c9-65f5eb3e46d0', u'args':
>> {u'volume_id': 1, u'address': u'10.200.200.4'}, u'_context_auth_token':
>> u'Mko09ijnbhu87ygv', u'_context_strategy': u'keystone',
>> u'_context_is_admin': True, u'_context_project_id': u'1',
>> u'_context_timestamp': u'2011-10-24T07:13:20.774649', u'_context_user_id':
>> u'admin', u'method': u'initialize_connection', u'_context_remote_address':
>> u'10.200.200.4'} from (pid=18380) __call__
>> /data/nova/nova/rpc/impl_kombu.py:600
>> > 2011-10-24 15:13:32,787 DEBUG nova.rpc [-] unpacked context: {'user_id':
>> u'admin', 'roles': [u'Admin', u'Admin', u'KeystoneAdmin',
>> u'KeystoneServiceAdmin'], 'timestamp': u'2011-10-24T07:13:20.774649',
>> 'auth_token': u'Mko09ijnbhu87ygv', 'msg_id':
>> u'2f6c24f9bae84b278e28c27c76022a9b', 'remote_address': u'10.200.200.4',
>> 'strategy': u'keystone', 'is_admin': True, 'request_id':
>> u'49d034cc-94e7-40a6-a3c9-65f5eb3e46d0', 'project_id': u'1', 'read_deleted':
>> False} from (pid=18380) _unpack_context
>> /data/nova/nova/rpc/impl_kombu.py:646
>> > 2011-10-24 15:13:32,843 WARNING nova.volume.driver [-] ISCSI
>> provider_location not stored, using discovery
>> > 2011-10-24 15:13:32,844 DEBUG nova.utils [-] Running cmd (subprocess):
>> sudo iscsiadm -m discovery -t sendtargets -p node2 from (pid=18380) execute
>> /data/nova/nova/utils.py:168
>> > 2011-10-24 15:13:32,859 DEBUG nova.utils [-] Result was 255 from
>> (pid=18380) execute /data/nova/nova/utils.py:184
>> > 2011-10-24 15:13:32,861 ERROR nova.rpc [-] Exception during message
>> handling
>> > (nova.rpc): TRACE: Traceback (most recent call last):
>> > (nova.rpc): TRACE: File "/data/nova/nova/rpc/impl_kombu.py", line 620,
>> in _process_data
>> > (nova.rpc): TRACE: rval = node_func(context=ctxt, **node_args)
>> > (nova.rpc): TRACE: File "/data/nova/nova/volume/manager.py", line 268,
>> in initialize_connection
>> > (nova.rpc): TRACE: return self.driver.initialize_connection(volume_ref,
>> address)
>> > (nova.rpc): TRACE: File "/data/nova/nova/volume/driver.py", line 406, in
>> initialize_connection
>> > (nova.rpc): TRACE: iscsi_properties = self._get_iscsi_properties(volume)
>> > (nova.rpc): TRACE: File "/data/nova/nova/volume/driver.py", line 345, in
>> _get_iscsi_properties
>> > (nova.rpc): TRACE: location = self._do_iscsi_discovery(volume)
>> > (nova.rpc): TRACE: File "/data/nova/nova/volume/driver.py", line 309, in
>> _do_iscsi_discovery
>> > (nova.rpc): TRACE: run_as_root=True)
>> > (nova.rpc): TRACE: File "/data/nova/nova/utils.py", line 192, in execute
>> > (nova.rpc): TRACE: cmd=' '.join(cmd))
>> > (nova.rpc): TRACE: ProcessExecutionError: Unexpected error while running
>> command.
>> > (nova.rpc): TRACE: Command: sudo iscsiadm -m discovery -t sendtargets -p
>> node2
>> > (nova.rpc): TRACE: Exit code: 255
>> > (nova.rpc): TRACE: Stdout: ''
>> > (nova.rpc): TRACE: Stderr: 'iscsiadm: Could not scan
>> /sys/class/iscsi_transport.\niscsiadm: Could not scan
>> /sys/class/iscsi_transport.\niscsiadm: can not connect to iSCSI daemon
>> (111)!\niscsiadm: Cannot perform discovery. Initiatorname
>> required.\niscsiadm: Discovery process to node2:3260 failed to create a
>> discovery session.\niscsiadm: Could not perform SendTargets discovery.\n'
>> > (nova.rpc): TRACE:
>> > 2011-10-24 15:13:32,862 ERROR nova.rpc [-] Returning exception
>> Unexpected error while running command.
>> > Command: sudo iscsiadm -m discovery -t sendtargets -p node2
>> > Exit code: 255
>> > Stdout: ''
>> > Stderr: 'iscsiadm: Could not scan /sys/class/iscsi_transport.\niscsiadm:
>> Could not scan /sys/class/iscsi_transport.\niscsiadm: can not connect to
>> iSCSI daemon (111)!\niscsiadm: Cannot perform discovery. Initiatorname
>> required.\niscsiadm: Discovery process to node2:3260 failed to create a
>> discovery session.\niscsiadm: Could not perform SendTargets discovery.\n' to
>> caller
>> > 2011-10-24 15:13:32,863 ERROR nova.rpc [-] ['Traceback (most recent call
>> last):\n', ' File "/data/nova/nova/rpc/impl_kombu.py", line 620, in
>> _process_data\n rval = node_func(context=ctxt, **node_args)\n', ' File
>> "/data/nova/nova/volume/manager.py", line 268, in initialize_connection\n
>> return self.driver.initialize_connection(volume_ref, address)\n', ' File
>> "/data/nova/nova/volume/driver.py", line 406, in initialize_connection\n
>> iscsi_properties = self._get_iscsi_properties(volume)\n', ' File
>> "/data/nova/nova/volume/driver.py", line 345, in _get_iscsi_properties\n
>> location = self._do_iscsi_discovery(volume)\n', ' File
>> "/data/nova/nova/volume/driver.py", line 309, in _do_iscsi_discovery\n
>> run_as_root=True)\n', ' File "/data/nova/nova/utils.py", line 192, in
>> execute\n cmd=\' \'.join(cmd))\n', "ProcessExecutionError: Unexpected error
>> while running command.\nCommand: sudo iscsiadm -m discovery -t sendtargets
>> -p node2\nExit code: 255\nStdout: ''\nStderr: 'iscsiadm: Could not scan
>> /sys/class/iscsi_transport.\\niscsiadm: Could not scan
>> /sys/class/iscsi_transport.\\niscsiadm: can not connect to iSCSI daemon
>> (111)!\\niscsiadm: Cannot perform discovery. Initiatorname
>> required.\\niscsiadm: Discovery process to node2:3260 failed to create a
>> discovery session.\\niscsiadm: Could not perform SendTargets
>> discovery.\\n'\n"]
>> > ********************************************************
>> >
>> > --
>> > 非淡薄无以明志,非宁静无以致远
>>
>>
>
>
> --
> 非淡薄无以明志,非宁静无以致远
>



-- 
非淡薄无以明志,非宁静无以致远
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20111024/4262804b/attachment.html>


More information about the Openstack mailing list