Ask Your Question
0

How to change ISCSI volumes IP

asked 2012-08-12 13:52:39 -0500

dano-marc0 gravatar image

Hi,

I have an issue since I had to change the public IP of my server. Config file and mysql db have been updated with the new IP. ISCSI targets have been deleted (LVM volumes are still there) and remap on the new IP address.

I am using Essex ubuntu package with tgtadm as iscsi helper.

When I launch nova-compute service, he is still looking for iscsi volumes on the old IP address. In the nova-compute.log I can see: [...] 2012-08-12 14:00:19 CRITICAL nova [-] Unable to allow access for disk path /dev/disk/by-path/ip-192.168.1.179:3260-iscsi-iqn.2010-10.org.openstack:volume-00000008-lun-1: No such file or directory 2012-08-12 14:00:19 TRACE nova Traceback (most recent call last): 2012-08-12 14:00:19 TRACE nova File "/usr/bin/nova-compute", line 49, in <module> 2012-08-12 14:00:19 TRACE nova service.wait() 2012-08-12 14:00:19 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 413, in wait 2012-08-12 14:00:19 TRACE nova _launcher.wait() 2012-08-12 14:00:19 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 131, in wait 2012-08-12 14:00:19 TRACE nova service.wait() 2012-08-12 14:00:19 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 166, in wait 2012-08-12 14:00:19 TRACE nova return self._exit_event.wait() 2012-08-12 14:00:19 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait 2012-08-12 14:00:19 TRACE nova return hubs.get_hub().switch() 2012-08-12 14:00:19 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in switch 2012-08-12 14:00:19 TRACE nova return self.greenlet.switch() 2012-08-12 14:00:19 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main 2012-08-12 14:00:19 TRACE nova result = function(args, *kwargs) 2012-08-12 14:00:19 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 101, in run_server 2012-08-12 14:00:19 TRACE nova server.start() 2012-08-12 14:00:19 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 162, in start 2012-08-12 14:00:19 TRACE nova self.manager.init_host() 2012-08-12 14:00:19 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 253, in init_host 2012-08-12 14:00:19 TRACE nova self.reboot_instance(context, instance['uuid']) 2012-08-12 14:00:19 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped 2012-08-12 14:00:19 TRACE nova return f(args, *kw) 2012-08-12 14:00:19 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 159, in decorated_function 2012-08-12 14:00:19 TRACE nova function(self, context, instance_uuid, args, *kwargs) 2012-08-12 14:00:19 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 183, in decorated_function 2012-08-12 14:00:19 TRACE nova sys.exc_info()) 2012-08-12 14:00:19 TRACE nova File "/usr/lib/python2.7 ... (more)

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2012-08-14 20:17:11 -0500

dano-marc0 gravatar image

Yes, I did but nova seem to be still looking at the old path.

I found a way to restart nova-compute by making links (ln) from current disk path to what nova-compute is looking.

Something like this: ln /dev/disk/by-path/ip-192.168.100.1\:3260-iscsi-iqn.2010-10.org.openstack\:volume-0000000a-lun-1 /dev/disk/by-path/ip-192.168.1.179\:3260-iscsi-iqn.2010-10.org.openstack\:volume-0000000a-lun-1

After that, everything is working. So I was able to backup concerned volumes delete them and create new ones. Freshly created volumes are using the good path...

edit flag offensive delete link more
0

answered 2012-08-12 13:59:44 -0500

dano-marc0 gravatar image

nova.conf http://pastebin.com/LB69EE3f full nova-compute.log after service start and stoped: http://pastebin.com/YFsAA7Ui

edit flag offensive delete link more
0

answered 2012-08-14 14:55:09 -0500

vishvananda gravatar image

Did you update the provider_location field in the volumes table in the database with the new ip address?

Vish

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-08-12 13:52:39 -0500

Seen: 63 times

Last updated: Aug 14 '12