Error in running ./stack.sh in devstack
Solution 1
After cloning:
cd devstack/
cp samples/local.conf .
- Edit the local.conf by adding the setting the HOST_IP of your machine on which devstack is being installed.
Solution 2
Add HOST_IP=<your machine ip address>
to local.conf file.
STEPS:
- List item Go to the root folder where you cloned or copied "devstack". Like
/opt/stack/devstack
- Edit the "local.conf file.
vi local.conf
Add
HOST_IP=0.0.0.0
(replace 0.0.0.0 with your machine IP address) to the file. Save and exit. The complete file will look like this:[[local|localrc]] HOST_IP=13.84.214.151 ADMIN_PASSWORD=secret DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD
Run
./stack.sh
This should run without errors.
Solution 3
First, get the IP address using the command:
ip addr show
Second, after you could get the IP address, copy and paste it in the local.conf file that you have created under the devstack directory, that should be looking like this:
[[local|localrc]]
HOST_IP=0.0.0.0 #replace 0.0.0.0 with your ip
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
then run ./stack.sh
again.
Solution 4
- First check the IP address of your server interface by using command
ifconfig
. - Then find the line
HOST_IP=$(get_default_host_ip "$FIXED_RANGE" "$FLOATING_RANGE" "$HOST_IP_IFACE" "$HOST_IP" "inet")
in the file /opt/stack/devstack/stackrc.
Put your server IP (in my setup line number is 859), make sure the entry is like below:
if [ "$HOST_IP" == "192.168.0.0" ];
then save the file (suppose my server IPis 192.168.0.0).
- Run
./stack.sh
It works for me.
Solution 5
Edit this file "/opt/stack/devstack/stackrc"
In this file, find the HOST_IP Variable and change it to HOST_IP=0.0.0.0
Instead of 0.0.0.0, set your IP Address (ifconfig)
ss22ever
Updated on June 13, 2022Comments
-
ss22ever almost 2 years
When I try to do ./stack.sh after the call trace I am provide with the following error :
`[Call Trace] ./stack.sh:217:source /home/work/devstack/stackrc:821:die [ERROR] /home/suramya/devstack/stackrc:821 Could not determine host ip address. See local.conf for suggestions on setting HOST_IP.
`