Stack.sh Fail to detect HOST_IP, after changing HOST IP address in cloned machine

Bug #1660909 reported by maestropandy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Unassigned

Bug Description

Hi All,

I am filing this bug after going through

https://bugs.launchpad.net/devstack/+bug/887293

https://bugs.launchpad.net/devstack/+bug/1517199

VM1:

I have cloned devstack/master as non-root user account named "pandy" and ran ./stack.sh, and have given $HOST_IP = 192.168.88.15 ( eth0 = 10.0.2.15, eth1 = 192.168.88.14, mine is virtual box setup) and ran it successfully then taken clone of it and in new clone changed MAC address called "VM2"

VM2
 Changed eth1 = 192.168.88.15 where eth0 remains same being its NAT only not Host-only adapter. Now again ran ./unstack.sh it thrown me error as

devstack$ ./unstack.sh
[Call Trace]
./unstack.sh:33:source
/home/pandy/devstack/openrc:27:source
/home/pandy/devstack/stackrc:759:die
[ERROR] /home/pandy/devstack/stackrc:759 Could not determine host ip address. See local.conf for suggestions on setting HOST_IP.

where my devstack is running as non-root user account, so only it was ran properly in VM1, seems devstack fails to read/detect HOST_IP address if do multiple stack.sh, Is it so ?

Thanks
pandiyan

summary: - Fail to detect HOST_IP after setting while reclone
+ Stack.sh Fail to detect HOST_IP, after changing HOST IP address in
+ cloned machine
Revision history for this message
venkatamahesh (venkatamaheshkotha) wrote :

Hi,

Did you check the .localrc.auto file is there ?

Revision history for this message
venkatamahesh (venkatamaheshkotha) wrote :

Usually when you run stack.sh , a file (.localrc.auto) will be created. It is nothing but a copy of local.conf. So In your scenario - You have changed the HOST_IP in local.conf in second VM. Try with changing the HOST_IP in .localrc.auto also.

Changed in devstack:
assignee: nobody → maestropandy (maestropandy)
Revision history for this message
Sean Dague (sdague) wrote :

No reviews found in this bug, unassigning. Please add a comment with active reviews before assigning an individual, or tag the bug in the gerrit review, which will do that automatically

Changed in devstack:
assignee: maestropandy (maestropandy) → nobody
Aizuddin Zali (mymzbe)
Changed in devstack:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.