default gateway configuration fails in fuelmenu

Bug #1389233 reported by Gil Meir
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Matthew Mosesohn

Bug Description

My topology:
port 1 - connected to the pxe network.
port 2 - connected to the public network .

On fuelmenu when configuring eth1 (port 2 for public network) the ip address and netmask are set correctly,
but the default gateway isn't configured.

To workaround this I shifted to another tty and edited /etc/sysconfig/network-scripts/ifcfg-eth1, I added GATEWAY=<my_gw>,
then /etc/init.d/network restart, and it worked.

Afterwards I launched fuelmenu again, amd it showed the correct gateway address. Then I tried to configure the gateway again via fuelmenu and saw the same behavior again - the gateway address was removed from the network-script file and fuelmenu showed "Gateway: None".

Build info:
{"build_id": "2014-11-02_03-28-01", "ostf_sha": "9c6fadca272427bb933bc459e14bb1bad7f614aa", "build_number": "188", "auth_required": true, "api": "1.0", "nailgun_sha": "b4f9c65e17f7807118df4e1192266b250fbacc21", "production": "docker", "fuelmain_sha": "ac3ba5f5c6073b7776ec69fc3cb4dd3c56df36c5", "astute_sha": "c72dac7b31646fbedbfc56a2a87676c6d5713fcf", "feature_groups": ["experimental"], "release": "6.0", "release_versions": {"2014.2-6.0": {"VERSION": {"build_id": "2014-11-02_03-28-01", "ostf_sha": "9c6fadca272427bb933bc459e14bb1bad7f614aa", "build_number": "188", "api": "1.0", "nailgun_sha": "b4f9c65e17f7807118df4e1192266b250fbacc21", "production": "docker", "fuelmain_sha": "ac3ba5f5c6073b7776ec69fc3cb4dd3c56df36c5", "astute_sha": "c72dac7b31646fbedbfc56a2a87676c6d5713fcf", "feature_groups": ["experimental"], "release": "6.0", "fuellib_sha": "45ad9b42666d7e3e14ab9af2911808e6c8806842"}}}, "fuellib_sha": "45ad9b42666d7e3e14ab9af2911808e6c8806842"}

Revision history for this message
Gil Meir (gilmeir-d) wrote :
Changed in fuel:
assignee: nobody → Fuel Python Team (fuel-python)
milestone: none → 6.0
importance: Undecided → High
Revision history for this message
Dima Shulyak (dshulyak) wrote :

Even more, if you will unset default gateway on eth0 - you wont be able to setup gateway for any interface.
Also in my opinion configuration is misleading, you definetely wont be able to setup multiple defaut gateways.
But you should be able to add custom routing for each of the networks, for example,
after modification of network_scripts you will loose routing for admin_network, and all the networks will have gateway
from eth1 as next hop address

Changed in fuel:
status: New → Confirmed
Revision history for this message
Gil Meir (gilmeir-d) wrote :

I haven't mention it, probably I should have - I deleted the old default gw before manually adding the correct one.
I'm now using another iso, but as far as I remember the routing table after my work around looked like this:
10.20.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 <public-net> 0.0.0.0 UG 0 0 0 eth1

Regarding losing connectivity to fuel network - I did it from a console via IPMI interface (out of band), so no problem here.

Changed in fuel:
importance: High → Medium
tags: added: mellanox
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

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

Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Matthew Mosesohn (raytrac3r)
status: Confirmed → In Progress
Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

Raising priority because it's reproducable and affects all deployments.

Changed in fuel:
importance: Medium → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/135286
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=b8f07af26319932af06651ce8eafff837d0efc1a
Submitter: Jenkins
Branch: master

commit b8f07af26319932af06651ce8eafff837d0efc1a
Author: Matthew Mosesohn <email address hidden>
Date: Tue Nov 18 16:43:13 2014 +0400

    Add default_gateway for l23network call in fuelmenu

    l23network::l3:ifconfig added a new parameter default_gateway
    which is default to false now in the following commit:
    https://github.com/stackforge/fuel-library/commit/c1e3c4e74cf99fe5ccfab21e22da93e90fc9f3a7

    Change-Id: I7b46585fbbc2eb1aa58084b194f3663218513968
    Closes-Bug: #1389233

Changed in fuel:
status: In Progress → Fix Committed
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.