Changing gateway in fuelmenu changes gateway in bootstrap but not in deployment

Bug #1500667 reported by Tudor Holton
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Mikhail Zhnichkov
Mitaka
Fix Released
Medium
Mikhail Zhnichkov

Bug Description

I installed Fuel 6.1 with the wrong gateway. Instead of specifying the remote hop 10.20.0.1, I specified the local hop 10.20.0.2. Network verification rightly failed.

I corrected this in fuelmenu, and the bootstrapped nodes correctly picked up the new gateway. However, when I deploy, the old gateway (10.20.0.2) keeps being supplied to the deployed nodes, and the deployment fails because it cannot then get access to external repositories.

I've tried restarting. I'd done a grep search of the filesystem and found some configs that hadn't been changed. However, when I changed them, it didn't fix the problem. :-(

Tudor Holton (tudor)
summary: - Changing gateway in fuelmenu doesn't change gateway in deployment
+ Changing gateway in fuelmenu changes gateway in bootstrap but not in
+ deployment
Revision history for this message
Artem Panchenko (apanchenko-8) wrote :

Hi Tudor,

changing gateway for admin network using Fuel menu after master node deployment doesn't change GW stored in Nailgun database, so you need to do it manually:

# dockerctl shell postgres su - postgres -c "psql nailgun -c \"UPDATE network_groups SET gateway = '10.20.0.1' WHERE name = 'fuelweb_admin';\""

In 7.0 release we added an ability to manage network groups using CLI (https://docs.mirantis.com/openstack/fuel/fuel-master/operations.html#using-networking-templates), but unfortunately in 6.1 there is no such feature.

Also, I think this bug is about lack of Fuel documentation regarding changing admin network gateway. Python guys, please assign it to fuel-docs team if you agree.

Changed in fuel:
importance: Undecided → Medium
assignee: nobody → Fuel Python Team (fuel-python)
milestone: none → 8.0
status: New → Confirmed
Revision history for this message
Tudor Holton (tudor) wrote :

Hi Artem,

Thanks for the reply.

I'd humbly disagree that it's not a fuelmenu bug.

I see an implication by specifying the gateway in fuelmenu that it should affect all aspects of fuel, not just the master node config. If it were for the master node config only, then surely it should be "fuelmastermenu" or some such?

Furthermore, this gateway is used in the initial configuration of the admin network, so it is essentially responsible for more than just the master node config.

However, my point is moot since, as you say, it's fixed in 7.0. I'm more making an argument for the ongoing approach which has been already taken in 7.0. :-)

Thanks again!

Cheers,
Tudor.

Dmitry Pyzhov (dpyzhov)
tags: added: area-python
Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

We passed SCF for 8.0. Moving the bug to 9.0.

tags: added: module-fuelmenu
Changed in fuel:
milestone: 8.0 → 9.0
Revision history for this message
Bug Checker Bot (bug-checker) wrote : Autochecker

(This check performed automatically)
Please, make sure that bug description contains the following sections filled in with the appropriate data related to the bug you are describing:

actual result

version

expected result

steps to reproduce

For more detailed information on the contents of each of the listed sections see https://wiki.openstack.org/wiki/Fuel/How_to_contribute#Here_is_how_you_file_a_bug

tags: added: need-info
Fedor Zhadaev (fzhadaev)
Changed in fuel:
milestone: 9.0 → 10.0
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Mikhail Zhnichkov (mzhnichkov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-menu (master)

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

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

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

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-menu (master)

Change abandoned by Mikhail Zhnichkov (<email address hidden>) on branch: master
Review: https://review.openstack.org/310191

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

Change abandoned by Mikhail Zhnichkov (<email address hidden>) on branch: master
Review: https://review.openstack.org/310158

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

Change abandoned by Mikhail Zhnichkov (<email address hidden>) on branch: master
Review: https://review.openstack.org/310191

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

Change abandoned by Mikhail Zhnichkov (<email address hidden>) on branch: master
Review: https://review.openstack.org/310199

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/317916

tags: added: area-ui
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-ui (master)

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

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

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

commit d41348e8425e314723b646a2d6c90b3cebd4c98a
Author: Mikhail <email address hidden>
Date: Wed May 18 11:59:34 2016 +0300

    Allow to modify default admin network via API

    Nailgun cant change parameters in default admin network
    (such as gateway or ip range), but sometimes its needed.
    This patch allow to modify default admin network via API.

    Change-Id: I9200c90747dba1e5c5b4e5457e423cb4c3ff3062
    Partial-Bug: #1500667

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-ui (master)

Change abandoned by Mikhail Zhnichkov (<email address hidden>) on branch: master
Review: https://review.openstack.org/320011
Reason: it's not needed anymore

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

Reviewed: https://review.openstack.org/310158
Committed: https://git.openstack.org/cgit/openstack/fuel-menu/commit/?id=599d801eb0cd3058aae293ebae1a6e5dd0548f3b
Submitter: Jenkins
Branch: master

commit 599d801eb0cd3058aae293ebae1a6e5dd0548f3b
Author: mzhnichkov <email address hidden>
Date: Tue Apr 26 12:13:13 2016 +0300

    Added ability to update PXE DHCP parameters after deploy

    It's possible to change PXE settings on post deploy stage, but, in fact,
    dnsmasq configuration will not be changed. This patch introduce puppet
    call to get these changes applied.

    Function puppetApply was refactored to return Bool value,
    previously it has returned None or False.

    Change-Id: I3fc7097035f492ad24483205cedc0d2c773af24b
    Closes-Bug: #1500667
    Depends-On: I9200c90747dba1e5c5b4e5457e423cb4c3ff3062

Changed in fuel:
status: In Progress → Fix Committed
tags: removed: area-ui
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/414994

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-menu (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/414996

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

Reviewed: https://review.openstack.org/414994
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=955c4d7afa020e1b18c1de81c1c94a690a38ae44
Submitter: Jenkins
Branch: stable/mitaka

commit 955c4d7afa020e1b18c1de81c1c94a690a38ae44
Author: Mikhail <email address hidden>
Date: Wed May 18 11:59:34 2016 +0300

    Allow to modify default admin network via API

    Nailgun cant change parameters in default admin network
    (such as gateway or ip range), but sometimes its needed.
    This patch allow to modify default admin network via API.

    Change-Id: I9200c90747dba1e5c5b4e5457e423cb4c3ff3062
    Partial-Bug: #1500667
    (cherry picked from commit d41348e8425e314723b646a2d6c90b3cebd4c98a)

tags: added: in-stable-mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-menu (stable/mitaka)

Reviewed: https://review.openstack.org/414996
Committed: https://git.openstack.org/cgit/openstack/fuel-menu/commit/?id=392b70480b9251df0a101bcb9520150bb3e7ba45
Submitter: Jenkins
Branch: stable/mitaka

commit 392b70480b9251df0a101bcb9520150bb3e7ba45
Author: mzhnichkov <email address hidden>
Date: Tue Apr 26 12:13:13 2016 +0300

    Added ability to update PXE DHCP parameters after deploy

    It's possible to change PXE settings on post deploy stage, but, in fact,
    dnsmasq configuration will not be changed. This patch introduce puppet
    call to get these changes applied.

    Function puppetApply was refactored to return Bool value,
    previously it has returned None or False.

    Change-Id: I3fc7097035f492ad24483205cedc0d2c773af24b
    Closes-Bug: #1500667
    Depends-On: I9200c90747dba1e5c5b4e5457e423cb4c3ff3062
    (cherry picked from commit 599d801eb0cd3058aae293ebae1a6e5dd0548f3b)

tags: added: on-verification
Revision history for this message
Vladimir Khlyunev (vkhlyunev) wrote :

Snapshot 801 - gateway of admin node itself was changed successfully

tags: removed: on-verification
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.