Ask Your Question
0

Devstack not working after changing IP

asked 2016-02-15 05:43:24 -0500

Wasiq Noor gravatar image

updated 2016-04-22 16:14:22 -0500

Hello..!!

I installed devstack on my ubuntu machine amonth ago. For some factors, I had to change IP of machine. After that, devstack is not working. Also, I don't want to run stack.sh again and again. I followed the following steps:

  1. Run unstack.sh
  2. In keystone database "update endpoint set url = REPLACE(url, '[old IP address]', '[new IP address]')";
  3. Update all Ip in /etc folder "grep -rl '[old IP address]' /etc | xargs sed -i 's/[old IP address]/[new IP address]/g'"
  4. Update all Ip in /opt/stack folder "grep -rl '[old IP address]' /opt/stack | xargs sed -i 's/[old IP address]/[new IP address]/g'"
  5. Restart apache2 server
  6. Run rejoin-stack.sh

These steps are not working and gives the following error on login dashboard page: "An error occurred authenticating. Please try again later."

Can anybody suggest, what I am missing or not doing to make it work?

edit retag flag offensive close merge delete

Comments

Help please..

Wasiq Noor gravatar imageWasiq Noor ( 2016-02-16 01:45:43 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-02-20 15:06:54 -0500

Wasiq Noor gravatar image

updated 2016-02-21 05:31:05 -0500

Hello..!!

FInally I found the solution. I am sharing it for someone needing this. Follow the steps as follow:

  1. Run unstack.sh
  2. In keystone database "update endpoint set url = REPLACE(url, '[old IP address]', '[new IP address]')";
  3. Update all Ips in /etc folder "grep -rl '[old IP address]' /etc | xargs sed -i 's/[old IP address]/[new IP address]/g'"
  4. Update all Ips in /opt/stack folder "grep -rl '[old IP address]' /opt/stack | xargs sed -i 's/[old IP address]/[new IP address]/g'"
  5. Restart apache2 server
  6. Run rejoin-stack.sh
  7. Restart Keystone "keystone-all"
  8. Bingo
edit flag offensive delete link more

Comments

Can you edit your answer and add the steps mentioned in it?. It will help same people with the same issue. Once done, mark your question as answered right in the check button at the left of your answer.

Regards

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-02-20 16:49:07 -0500 )edit

Done..!! I cannot answer it because of very few points :(

Wasiq Noor gravatar imageWasiq Noor ( 2016-02-21 05:32:04 -0500 )edit

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: 2016-02-15 05:43:24 -0500

Seen: 669 times

Last updated: Apr 22 '16