Unable to set additional Default gateway in fuelmenu

Bug #1436540 reported by Alexander Podrepniy
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Matthew Mosesohn

Bug Description

Fuel 6.1 build 227

Manual installation fuel-master.
Unable to set Fixed IP address for eth1 interface.

Steps to reproduce:
1. Start Fuel installation.
2. Wait until fuelmenu is started.
3. Choice "Network Setup".
4. Select:
     - Interface - eth1
     - Enable interface - Yes
     - Configuration via DHCP - Static
     - fill "IP address", "Netmask" and "Default Gateway"
5. Press "Apply".

Expected result:
     - Default Gateway - IP address

Actual result:
     - Default Gateway - empty

Changed in fuel:
milestone: none → 6.1
Revision history for this message
Alexander Podrepniy (apodrepniy) wrote :

[root@kh-env-1-fuel-61-227 ~]# cat /etc/fuel/version.yaml
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "6.1"
  api: "1.0"
  build_number: "227"
  build_id: "2015-03-25_09-13-15"
  nailgun_sha: "aaeee045ea755c9a81f48de2019fce3e368afa60"
  python-fuelclient_sha: "3624051242c83fdbdd1df9a0e466797c06b75043"
  astute_sha: "631f96d5a09cc48bfbddcbf056b946c8a80438f0"
  fuellib_sha: "96669c3b59b2286c4fe5a06940ef1c004f6aaeae"
  ostf_sha: "a4cf5f218c6aea98105b10c97a4aed8115c15867"
  fuelmain_sha: "320b5f46fc1b2798f9e86ed7df51d3bda1686c10"

Changed in fuel:
importance: Undecided → High
Revision history for this message
Vladimir Kuklin (vkuklin) wrote :

Alexey, we need logs from the master node or some more detailed description

Changed in fuel:
status: New → Incomplete
Revision history for this message
Vladimir Kuklin (vkuklin) wrote :
Revision history for this message
Vladimir Kuklin (vkuklin) wrote :

Sorry, Alexander, I misspelled your name.

Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Alexander Podrepniy (apodrepniy)
Revision history for this message
Alexander Podrepniy (apodrepniy) wrote :

Attached:
  /var/log/fuelmenu.log
  /tmp/puppet.log

Revision history for this message
Alexander Podrepniy (apodrepniy) wrote :

I can provide access to this VM if it's necessary.
By ssh or VMware ESXi console.

Revision history for this message
Alexander Podrepniy (apodrepniy) wrote :

Logs added.

Changed in fuel:
assignee: Alexander Podrepniy (apodrepniy) → Fuel Dev (fuel-dev)
status: Incomplete → New
assignee: Fuel Dev (fuel-dev) → Fuel Library Team (fuel-library)
summary: - fuel-master installation. Unable to set fixed IP.
+ Unable to set additional Default gateway in fuelmenu
Revision history for this message
Vladimir Kuklin (vkuklin) wrote :

Alexander, could it havfe happened for the reason that you already had this IP address configured somewhere else? If yes, please mark this bug as a duplicate of https://bugs.launchpad.net/fuel/+bug/1426573

Revision history for this message
Alexander Podrepniy (apodrepniy) wrote :

Vladimir, in this case no any other devices on both interfaces (eth0 - 10.20.0.x/24 and eth1 - 172.18.201.x/24) are present.

Probably wrong behavior (from /tmp/puppet.log):
2015-04-02 17:46:24 +0000 Puppet (debug): Executing '/sbin/ip addr add 172.18.201.15/24 dev eth1'
2015-04-02 17:46:24 +0000 Puppet (debug): Executing '/sbin/ip route del default dev eth1'
2015-04-02 17:46:24 +0000 Puppet (debug): Executing '/sbin/ip route add default via 172.18.201.1 dev eth1'

Expected:
1. Delete default routing from eth0 (via 10.20.0.1)
2. Add default routing to eth1 via 172.18.20.1

Dmitry Ilyin (idv1985)
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Sergey Vasilenko (xenolog)
Revision history for this message
Gil Meir (gilmeir-d) wrote :

Reproduced here as well, manually running "service network restart" on fuel master works around it.

Changed in fuel:
status: New → Confirmed
Stanislav Makar (smakar)
Changed in fuel:
assignee: Sergey Vasilenko (xenolog) → Stanislav Makar (smakar)
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/171645

Changed in fuel:
assignee: Stanislav Makar (smakar) → Matthew Mosesohn (raytrac3r)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

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

Changed in fuel:
assignee: Matthew Mosesohn (raytrac3r) → Stanislav Makar (smakar)
Changed in fuel:
assignee: Stanislav Makar (smakar) → Sergey Vasilenko (xenolog)
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/171728

Changed in fuel:
assignee: Sergey Vasilenko (xenolog) → Matthew Mosesohn (raytrac3r)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/171666
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=5a9f7f2b8716c49569e1bd8c7c6fbb4ae8ed6d1b
Submitter: Jenkins
Branch: master

commit 5a9f7f2b8716c49569e1bd8c7c6fbb4ae8ed6d1b
Author: Sergey Vasilenko <email address hidden>
Date: Wed Apr 8 19:11:28 2015 +0300

    Fix the problem with down interface

    Add interface turning on due to resource l3_ifconfig was not ready to be
    called alone. It assumed that interface is up.

    Change-Id: I36065a44a33a942ac78298fc6bef9ca3e45a3e27
    Closes-bug: #1436540

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Stanislav Makar (smakar) wrote :

Patch fixes down interface but we still have problen with extra default route

We have to allow user to select one default route in fuelmenu due to 2 def routes it a very rare case

If you do not agree then we have to ask which of two default routes is more important ( to set the metric to this route)

Changed in fuel:
status: Fix Committed → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-web (master)

Change abandoned by Matthew Mosesohn (<email address hidden>) on branch: master
Review: https://review.openstack.org/171645
Reason: Sergey Vasilenko fixed this in l23network

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

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

commit 24bb61a4e2e20d1d99dcd63ae87eaf0bdc89d9f4
Author: Matthew Mosesohn <email address hidden>
Date: Wed Apr 8 19:24:25 2015 +0300

    Unset previous gateway to permit new one

    l23network cannot set a new gateway unless
    the previous one is unset, so a new function
    unset_gateway was added to interfaces module.

    Change-Id: I119c5ca8cfa2fb920ee37cfcb5211b64ff5ea8c7
    Closes-Bug: 1436540

Changed in fuel:
status: Confirmed → Fix Committed
Revision history for this message
Aviram Bar-Haim (aviramb) wrote :

Reproduced on:
{"build_id": "2015-04-13_10-39-24", "ostf_sha": "c2a76a60ec4ebbd78e508216c2e12787bf25e423", "build_number": "169", "release_versions": {"2014.2-6.1": {"VERSION": {"build_id": "2015-04-13_10-39-24", "ostf_sha": "c2a76a60ec4ebbd78e508216c2e12787bf25e423", "build_number": "169", "api": "1.0", "nailgun_sha": "0435d55f252796e77791c62405af8f341338ae73", "openstack_version": "2014.2-6.1", "production": "docker", "python-fuelclient_sha": "9208ff4a08dcb674ce2df132399a5aa3ddfac21c", "astute_sha": "d96a80b63198a578b2c159edbd76048819039eb0", "feature_groups": ["experimental"], "release": "6.1", "fuelmain_sha": "9bdbd5018ed8fb6ff8af5fadadc49969d7e58a13", "fuellib_sha": "7d1e708297bd8fb4619210779f93d00201c95bba"}}}, "auth_required": true, "api": "1.0", "nailgun_sha": "0435d55f252796e77791c62405af8f341338ae73", "openstack_version": "2014.2-6.1", "production": "docker", "python-fuelclient_sha": "9208ff4a08dcb674ce2df132399a5aa3ddfac21c", "astute_sha": "d96a80b63198a578b2c159edbd76048819039eb0", "feature_groups": ["experimental"], "release": "6.1", "fuelmain_sha": "9bdbd5018ed8fb6ff8af5fadadc49969d7e58a13", "fuellib_sha": "7d1e708297bd8fb4619210779f93d00201c95bba"}

Gateway was successfully set after manually ifdown and ifup the new configured interface.

Changed in fuel:
status: Fix Committed → Confirmed
Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :
Changed in fuel:
status: Confirmed → Fix Committed
Changed in fuel:
status: Fix Committed → Confirmed
Revision history for this message
Aviram Bar-Haim (aviramb) wrote :

Now it fails with "Duplicate host found with IP <IP>" for every IP.
No other host with the same address..

Reproduced on:
[root@fuel ~]# cat /etc/fuel/version.yaml
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "6.1"
  openstack_version: "2014.2.2-6.1"
  api: "1.0"
  build_number: "361"
  build_id: "2015-04-29_07-55-19"
  nailgun_sha: "e660b1c09d7d4d07bdd48d424ce9aed3b6facd6e"
  python-fuelclient_sha: "8cd6cf575d3c101dee1032abb6877dfa8487e077"
  astute_sha: "04ebab96d57b0e8acbf2d7f3ba05e4fbf31b741e"
  fuel-library_sha: "0e5b82d24853304befb22145ac4aaf3545d295e1"
  fuel-ostf_sha: "b38602c841deaa03ddffc95c02f319360462cbe3"
  fuelmain_sha: "ee112acfdd0f9017ef40be53e8e51bb5c429e97c"

Maybe related to https://github.com/stackforge/fuel-web/commit/2a4160aff786f725dd7a222a9e210fbc2ad72acb ?

Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

Aviram,

Can you open a shell and run the following command:
arping -D -c3 -w1 -I eth0 10.20.0.2

Replace eth0 and 10.20.0.2 with the interface and IP you're trying to configure. It's returning nonzero for some reason, but fuelmenu doesn't log output.

Changed in fuel:
status: Confirmed → Incomplete
Revision history for this message
Aviram Bar-Haim (aviramb) wrote :

# arping -D -c3 -w1 -I eth1 10.212.14.17
Interface "eth1" is down

Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :
Changed in fuel:
status: Incomplete → Fix Committed
tags: added: on-verification
tags: removed: on-verification
Revision history for this message
Sergey Novikov (snovikov) wrote :

Verified on fuel-6.1-499-2015-06-02_22-09-35.iso.

Steps to verify:
1. Start Fuel installation.
2. Wait until fuelmenu is started.
3. Choice "Network Setup".
4. Select:
     - Interface - eth1
     - Enable interface - Yes
     - Configuration via DHCP - Static
     - fill "IP address", "Netmask" and "Default Gateway"
5. Press "Apply".
6. Check that Default Gateway is changed.
7. Check that iface eth1 is up after deployment of fuel master

Changed in fuel:
status: Fix Committed → Fix Released
Revision history for this message
Sergey Novikov (snovikov) wrote :

Verified on fuel-6.1-499-2015-06-02_22-09-35.iso.

Steps to verify:
1. Start Fuel installation.
2. Wait until fuelmenu is started.
3. Choice "Network Setup".
4. Select:
     - Interface - eth1
     - Enable interface - Yes
     - Configuration via DHCP - Static
     - fill "IP address", "Netmask" and "Default Gateway"
5. Press "Apply".
6. Check that Default Gateway is changed.
7. Check that iface eth1 is up after deployment of fuel master

Revision history for this message
Sergey Novikov (snovikov) wrote :

Verified on fuel-6.1-499-2015-06-02_22-09-35.iso.

Steps to verify:
  1. Start Fuel installation.
  2. Wait until fuelmenu is started.
  3. Choice "Network Setup".
  4. Select:
     - Interface - eth1
     - Enable interface - Yes
     - Configuration via DHCP - Static
     - fill "IP address", "Netmask" and "Default Gateway"
  5. Press "Apply".
  6. Check that Default Gateway is changed.
  7. Check that iface eth1 is up after deployment of fuel master

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

Remote bug watches

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