Devstack - Changing IP address after installation

skanagasabap picture skanagasabap · Apr 16, 2013 · Viewed 7.9k times · Source

I have devstack installed on a ubuntu 12.04 and I could get logged into Dashboard , Now I changed the IP of my ubuntu machine. After changing the IP, I couldn't log into Dashboard anymore

I gets the following error message. I can see my old IP in the error message.

ConnectionError at /auth/login/
HTTPConnectionPool(host='OLD_IP_ADDRESS', port=35357): Max retries exceeded with url: /v2.0/tokens (Caused by <class 'socket.error'>: [Errno 113] No route to host)

Request Method:     POST
Request URL:    http://NEW_IP_ADDRESS/auth/login/
Django Version:     1.4.5
Exception Type:     ConnectionError
Exception Value:    
HTTPConnectionPool(host='OLD_IP_ADDRESS', port=35357): Max retries exceeded with url: /v2.0/tokens (Caused by <class 'socket.error'>: [Errno 113] No route to host)
Exception Location:     /usr/local/lib/python2.7/dist-packages/requests/adapters.py in send, line 246
  Python Executable:    /usr/bin/python
  Python Version:   2.7.3
  Python Path:  
   ['/opt/stack/horizon/openstack_dashboard/wsgi/../..',
   '/opt/stack/python-keystoneclient',
   '/usr/local/lib/python2.7/dist-packages',
   '/opt/stack/python-glanceclient/setuptools_git-1.0b1-py2.7.egg',
   '/opt/stack/python-glanceclient',
   '/opt/stack/python-cinderclient',

Is there a documented procedure available to change the IP address manually ? My New IP doesn't have connection to internet so I wouldn't be able to redeploy devstack

Answer

skanagasabap picture skanagasabap · Apr 29, 2013

Thanks guys for your answers..

I missed to update my answer, I fixed that issue in an easy way.

Solution is first run unstack.sh and then run stack.sh once more. It will do the necessary fix. Since I haven't made much progress with Devstack after installation it makes me more confident to run stack.sh

For the second time when you run stack.sh its not needed to connect to internet, So my issue is fixed.

Feel free to share your thoughts on this.