openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #11926
Re: not able to attach a volume to a running instance
Hey Vijay,
You might want to verify that /etc/iscsi/initiatorname.iscsi in fact
does not exist. If that is actually the case, then something appears
to have gone wrong in your iscsi setup/install on that node I believe.
You can try running 'sudo iscsi-iname' and using the output to create
the file manually.
John
On Thu, May 17, 2012 at 3:12 PM, Vijay <vijayrg@xxxxxxxxx> wrote:
> Hello,
> I am not able to attach a volume to a running instance.
>
> I am able to create volume but attaching it to the running instance is failing. Using Essex release.
> I am getting the following error:
>
> File /etc/iscsi/initiatorname.iscsi could not be found.
>
> Detailed nova-compute log:
>
> 2012-05-17 13:50:28 ERROR nova.rpc.amqp [req-301e50a2-3238-4924-b7f0-477be7e0ffa8 75899f2562cc44d9aa0f120ff1d246be 6672d2141fe4454e87fad2ba19223327] Exception during message handling
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp Traceback (most recent call last):
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp File "/usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/rpc/amqp.py", line 252, in _process_data
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp rval = node_func(context=ctxt, **node_args)
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp File "/usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/exception.py", line 114, in wrapped
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp return f(*args, **kw)
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp File "/usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/compute/manager.py", line 153, in decorated_function
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp function(self, context, instance_uuid, *args, **kwargs)
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp File "/usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/compute/manager.py", line 177, in decorated_function
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp sys.exc_info())
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp self.gen.next()
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp File "/usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/compute/manager.py", line 171, in decorated_function
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp return function(self, context, instance_uuid, *args, **kwargs)
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp File "/usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/compute/manager.py", line 1717, in attach_volume
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp self.volume_api.unreserve_volume(context, volume)
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp self.gen.next()
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp File "/usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/compute/manager.py", line 1708, in attach_volume
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp connector = self.driver.get_volume_connector(instance_ref)
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp File "/usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/virt/libvirt/connection.py", line 479, in get_volume_connector
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp self._initiator = libvirt_utils.get_iscsi_initiator()
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp File "/usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/virt/libvirt/utils.py", line 42, in get_iscsi_initiator
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp contents = utils.read_file_as_root('/etc/iscsi/initiatorname.iscsi')
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp File "/usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/utils.py", line 1635, in read_file_as_root
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp raise exception.FileNotFound(file_path=file_path)
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp FileNotFound: File /etc/iscsi/initiatorname.iscsi could not be found.
> 2012-05-17 13:50:28 TRACE nova.rpc.amqp
>
> I appreciate any help.
> Thanks,
> -vj
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
References