Neutron cleanup needs to delete routes

Bug #1423020 reported by Sean M. Collins
32
This bug affects 4 people
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Sean M. Collins

Bug Description

Unstacking with the unstack.sh script then running stack.sh again will throw an error if a route already exists for the $FIXED_RANGE

++ grep router_gateway
++ neutron port-list -c fixed_ips -c device_owner
+ ROUTER_GW_IP=172.18.161.250
+ die_if_not_set 1212 ROUTER_GW_IP 'Failure retrieving ROUTER_GW_IP'
+ local exitcode=0
++ grep xtrace
++ set +o
+ local 'xtrace=set -o xtrace'
+ set +o xtrace
+ sudo route add -net 10.0.0.0/24 gw 172.18.161.250
SIOCADDRT: File exists
+ exit_trap
+ local r=7
++ jobs -p
+ jobs=
+ [[ -n '' ]]
+ kill_spinner
+ '[' '!' -z '' ']'
+ [[ 7 -ne 0 ]]
+ echo 'Error on exit'
Error on exit
+ [[ -z /opt/stack/logs ]]
+ /home/stack/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping... see /opt/stack/logs/worlddump-2015-02-17-233020.txt for details
+ exit 7

Tags: neutron
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

Fix proposed to branch: master
Review: https://review.openstack.org/156858

Changed in devstack:
assignee: nobody → Sean M. Collins (scollins)
status: New → In Progress
description: updated
Revision history for this message
Sean M. Collins (scollins) wrote :

Prior to the proposed fix, after a "stack.sh && unstack.sh" the following routes are left in the routing table

stack@scollins-devstack-1:~/devstack$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 172.18.161.1 0.0.0.0 UG 0 0 0 eth0
10.0.0.0 172.18.161.250 255.255.255.0 UG 0 0 0 eth0
169.254.169.254 - 255.255.255.255 !H 0 - 0 -
172.18.161.0 * 255.255.255.0 U 0 0 0 eth0
192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0

tags: added: neutron
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on devstack (master)

Change abandoned by Sean M. Collins (<email address hidden>) on branch: master
Review: https://review.openstack.org/156858

Revision history for this message
Sean M. Collins (scollins) wrote :
Revision history for this message
Ed Balduf (ebalduf) wrote :

I can reproduce this every time I run a devstack. In my case, I have 2 interfaces, both on the same physical l2 network, the first interface is for the control connections, 2nd is for devstack. Devstack adds a route from the first interface to the neutron router so the host can get to the tenant network and never cleans it up when unstack.sh runs. It fails every time. I'm currently running this with stable/kilo, but the code hasn't changed since, so it's still the same.

Revision history for this message
Farhad Sunavala (fsbiz) wrote :

I am seeing the exact same issue with the stable liberty release.
Any progress on this ?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Sean Dague (<email address hidden>) on branch: master
Review: https://review.openstack.org/156858
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
Sean Dague (sdague) wrote :

This devstack bug was last updated over 180 days ago, as devstack
is a fast moving project and we'd like to get the tracker down to
currently actionable bugs, this is getting marked as Invalid. If the
issue still exists, please feel free to reopen it.

Changed in devstack:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers