分享

求助:openstack云硬盘无法挂在

neterghost 发表于 2015-8-13 15:59:00 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 6 14866
2015-08-13 14:43:40.520 23760 ERROR nova.virt.block_device [req-7640934f-3842-45b0-a0ec-adc2e7d3b90a e4b9de586ee84b19ac28ef1b5ac7c5e4 e54972fa368e469d8ebb2e989bf966b4 - - -] [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0] Driver failed to attach volume 3b72e68d-6f36-4cbd-9094-80de1fc69b9b at /dev/vdb
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0] Traceback (most recent call last):
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/nova/virt/block_device.py", line 253, in attach
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     device_type=self['device_type'], encryption=encryption)
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1037, in attach_volume
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     self._connect_volume(connection_info, disk_info)
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 988, in _connect_volume
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     driver.connect_volume(connection_info, disk_info)
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 445, in inner
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     return f(*args, **kwargs)
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/volume.py", line 435, in connect_volume
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     self._run_iscsiadm(iscsi_properties, ("--rescan",))
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/volume.py", line 359, in _run_iscsiadm
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     check_exit_code=check_exit_code)
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 206, in execute
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     return processutils.execute(*cmd, **kwargs)
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/oslo_concurrency/processutils.py", line 233, in execute
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     cmd=sanitized_cmd)
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0] ProcessExecutionError: Unexpected error while running command.
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0] Command: sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2010-10.org.openstack:volume-3b72e68d-6f36-4cbd-9094-80de1fc69b9b -p 191.168.254.100:3260 --rescan
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0] Exit code: 21
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0] Stdout: u''
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0] Stderr: u'iscsiadm: No session found.\n'
2015-08-13 14:43:40.520 23760 TRACE nova.virt.block_device [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]
2015-08-13 14:43:40.726 23760 ERROR nova.compute.manager [req-7640934f-3842-45b0-a0ec-adc2e7d3b90a e4b9de586ee84b19ac28ef1b5ac7c5e4 e54972fa368e469d8ebb2e989bf966b4 - - -] [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0] Failed to attach 3b72e68d-6f36-4cbd-9094-80de1fc69b9b at /dev/vdb
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0] Traceback (most recent call last):
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 4778, in _attach_volume
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     do_check_attach=False, do_driver_attach=True)
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/nova/virt/block_device.py", line 49, in wrapped
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     ret_val = method(obj, context, *args, **kwargs)
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/nova/virt/block_device.py", line 262, in attach
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     connector)
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 85, in __exit__
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     six.reraise(self.type_, self.value, self.tb)
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/nova/virt/block_device.py", line 253, in attach
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     device_type=self['device_type'], encryption=encryption)
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1037, in attach_volume
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     self._connect_volume(connection_info, disk_info)
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 988, in _connect_volume
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     driver.connect_volume(connection_info, disk_info)
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 445, in inner
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     return f(*args, **kwargs)
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/volume.py", line 435, in connect_volume
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     self._run_iscsiadm(iscsi_properties, ("--rescan",))
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/volume.py", line 359, in _run_iscsiadm
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     check_exit_code=check_exit_code)
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 206, in execute
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     return processutils.execute(*cmd, **kwargs)
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]   File "/usr/lib/python2.7/dist-packages/oslo_concurrency/processutils.py", line 233, in execute
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]     cmd=sanitized_cmd)
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0] ProcessExecutionError: Unexpected error while running command.
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0] Command: sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2010-10.org.openstack:volume-3b72e68d-6f36-4cbd-9094-80de1fc69b9b -p 191.168.254.100:3260 --rescan
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0] Exit code: 21
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0] Stdout: u''
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0] Stderr: u'iscsiadm: No session found.\n'
2015-08-13 14:43:40.726 23760 TRACE nova.compute.manager [instance: 77161517-9a16-45bc-9d12-ec2f8d3188b0]
2015-08-13 14:43:40.938 23760 INFO nova.scheduler.client.report [req-7640934f-3842-45b0-a0ec-adc2e7d3b90a e4b9de586ee84b19ac28ef1b5ac7c5e4 e54972fa368e469d8ebb2e989bf966b4 - - -] Compute_service record updated for ('compute', 'compute')
2015-08-13 14:43:40.940 23760 ERROR oslo_messaging.rpc.dispatcher [req-7640934f-3842-45b0-a0ec-adc2e7d3b90a e4b9de586ee84b19ac28ef1b5ac7c5e4 e54972fa368e469d8ebb2e989bf966b4 - - -] Exception during message handling: Unexpected error while running command.
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     executor_callback))
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     executor_callback)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 6584, in attach_volume
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     bdm=bdm)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 443, in decorated_function
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 88, in wrapped
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     payload)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 85, in __exit__
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 71, in wrapped
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     return f(self, context, *args, **kw)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 327, in decorated_function
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     LOG.warning(msg, e, instance_uuid=instance_uuid)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 85, in __exit__
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 298, in decorated_function
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 355, in decorated_function
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     kwargs['instance'], e, sys.exc_info())
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 85, in __exit__
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 343, in decorated_function
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 4768, in attach_volume
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     do_attach_volume(context, instance, driver_bdm)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 445, in inner
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     return f(*args, **kwargs)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 4766, in do_attach_volume
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     bdm.destroy()
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 85, in __exit__
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 4763, in do_attach_volume
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     return self._attach_volume(context, instance, driver_bdm)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 4786, in _attach_volume
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     self.volume_api.unreserve_volume(context, bdm.volume_id)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 85, in __exit__
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 4778, in _attach_volume
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     do_check_attach=False, do_driver_attach=True)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/virt/block_device.py", line 49, in wrapped
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     ret_val = method(obj, context, *args, **kwargs)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/virt/block_device.py", line 262, in attach
  15-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     connector)
鈻[6n08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 85, in __exit__
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/virt/block_device.py", line 253, in attach
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     device_type=self['device_type'], encryption=encryption)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1037, in attach_volume
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     self._connect_volume(connection_info, disk_info)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 988, in _connect_volume
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     driver.connect_volume(connection_info, disk_info)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 445, in inner
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     return f(*args, **kwargs)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/volume.py", line 435, in connect_volume
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     self._run_iscsiadm(iscsi_properties, ("--rescan",))
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/volume.py", line 359, in _run_iscsiadm
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     check_exit_code=check_exit_code)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 206, in execute
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     return processutils.execute(*cmd, **kwargs)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_concurrency/processutils.py", line 233, in execute
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher     cmd=sanitized_cmd)
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher ProcessExecutionError: Unexpected error while running command.
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher Command: sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2010-10.org.openstack:volume-3b72e68d-6f36-4cbd-9094-80de1fc69b9b -p 191.168.254.100:3260 --rescan
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher Exit code: 21
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher Stdout: u''
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher Stderr: u'iscsiadm: No session found.\n'
2015-08-13 14:43:40.940 23760 TRACE oslo_messaging.rpc.dispatcher


nova-computer显示如上错误,云硬盘无法挂在,求高手赐教。。。。

已有(6)人评论

跳转到指定楼层
xuanxufeng 发表于 2015-8-13 16:23:29
只说
Driver failed to attach volume 3b72e68d-6f36-4cbd-9094-80de1fc69b9b at /dev/vdb
这个错误没有太大意义,产生这个问题的原因也很多

楼主是按照文档还是什么,建议多参考,多对比
教你如何在linux云主机上挂载云硬盘
http://www.aboutyun.com/thread-8040-1-1.html



回复

使用道具 举报

neterghost 发表于 2015-8-13 16:34:13
本帖最后由 neterghost 于 2015-8-13 16:47 编辑
xuanxufeng 发表于 2015-8-13 16:23
只说
Driver failed to attach volume 3b72e68d-6f36-4cbd-9094-80de1fc69b9b at /dev/vdb
这个错误没有 ...

我是参考官方文档安装的,目前看日志,只发现在挂在云硬盘时nova-computer.log中会报这个错误。。。
云硬盘不能挂载到虚拟机上,创建云硬盘也不能加载镜像。。。。如果创建云硬盘时选择加载镜像,cinder-api.log会报这个错误:

cinder-api.log:2015-08-13 16:34:50.560 3303 TRACE cinder.image.glance     raise exc.CommunicationError(message=message)
cinder-api.log:2015-08-13 16:34:50.560 3303 TRACE cinder.image.glance CommunicationError: Error finding address for http://191.168.254.100:9292/v1/i ... -b14a-4dc2ae33ee62: ('Connection aborted.', error(111, 'ECONNREFUSED'))


是不是我的cinder模块配置有问题?但是我比较了官方文档没发现有什么错误。。。。求大神赐教。。。
回复

使用道具 举报

xuanxufeng 发表于 2015-8-13 16:46:12
neterghost 发表于 2015-8-13 16:34
我是参考官方文档安装的,目前看日志,只发现在挂在云硬盘时nova-computer.log中会报这个错误。。。
云 ...

应该某个配置项错了,特别留心驱动的配置。
回复

使用道具 举报

neterghost 发表于 2015-8-13 16:49:11
xuanxufeng 发表于 2015-8-13 16:46
应该某个配置项错了,特别留心驱动的配置。

大神,创建云硬盘时选择加载镜像,cinder-api.log会报这个错误:
cinder-api.log:2015-08-13 16:34:50.560 3303 TRACE cinder.image.glance     raise exc.CommunicationError(message=message)
cinder-api.log:2015-08-13 16:34:50.560 3303 TRACE cinder.image.glance CommunicationError: Error finding address for http://191.168.254.100:9292/v1/i ... -b14a-4dc2ae33ee62: ('Connection aborted.', error(111, 'ECONNREFUSED'))


这个是怎么回事?我觉得我的cinder配置有问题,但是我没检查出来错误。。。。

回复

使用道具 举报

arsenduan 发表于 2015-8-13 17:56:15
neterghost 发表于 2015-8-13 16:49
大神,创建云硬盘时选择加载镜像,cinder-api.log会报这个错误:
cinder-api.log:2015-08-13 16:34:50.5 ...

大神,创建云硬盘时选择加载镜像,cinder-api.log会报这个错误:
cinder-api.log:2015-08-13 16:34:50.560 3303 TRACE cinder.image.glance     raise exc.CommunicationError(message=message)
cinder-api.log:2015-08-13 16:34:50.560 3303 TRACE cinder.image.glance CommunicationError: Error finding address for http://191.168.254.100:9292/v1/i ... -b14a-4dc2ae33ee62: ('Connection aborted.', error(111, 'ECONNREFUSED'))

你的错误只能定位到通信问题,所以检测相关配置。

确保下面都是正确

[DEFAULT]
...
auth_strategy = keystone

[keystone_authtoken]
...
auth_uri = http://controller:5000/v2.0
identity_uri = http://controller:35357
admin_tenant_name = service
admin_user = cinder
admin_password = CINDER_PASS



[DEFAULT]
...
my_ip = 10.0.0.41

[DEFAULT]
...
glance_host = controller

就这么点内容,细心就能解决。
上面只是给你举例,根据自己的实际情况修改

详细参考
openstack【juno】入门 【cinder篇】二十一:安装配置块存储节点(cinder)
http://www.aboutyun.com/thread-11681-1-1.html






回复

使用道具 举报

neterghost 发表于 2015-8-20 09:14:13
问题以解决,是配置文件中my_ip配置错误,导致不能通信造成的
再次感谢给位大神的帮助~~~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条