fuelmenu does not apply resolv.conf changes immidiately

Bug #1603445 reported by Vyacheslav Struk
20
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Vyacheslav Struk

Bug Description

MOS9

Fuelmenu successfully updates resolv.conf on change at "DNS & Hostname" tab, but does not use the new settings itself. We have to force python process to re-read the file (i.e by calling libc.so's __res_init)

Please note it it NOT the same as #1585292

How to reproduce:

1. Proceed with Fuel installation until the fuel-menu appears
2. Make sure default "external DNS" at the "DNS & Hostname" tab can't resolve public ubuntu repository names correctly.
3. Go to "Bootstrap Image" tab and make sure check fails.
4. Change external dns to correct one.
5. Go to "Bootstrap Image" tab and make sure check still fails (It shouldn't!)
6. Restart fuelmenu
7. Go to "Bootstrap Image" tab and make sure check is passing (nothing changed! Same external dns server configured as in #5)

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

Changed in fuel:
assignee: nobody → Vyacheslav Struk (vstruk)
status: New → In Progress
Dmitry Klenov (dklenov)
Changed in fuel:
milestone: none → 9.1
importance: Undecided → Medium
tags: added: area-python
Revision history for this message
Stepan Rogov (srogov) wrote :

Workaround:
Configure external DNS and then save & exit
When check failed, login in the second console and run "killall fuelmenu".
Run bootstrap_admin_node.sh command
After fuel menu appears and choose save & exit. Then installation will start.

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

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

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

commit c4ff3eebde75daab40fb7c7aba175543024e9fb6
Author: Vyacheslav Struk <email address hidden>
Date: Fri Jul 15 16:56:23 2016 +0300

    Force fuelmenu to re-read resolv.conf on change

    Fuelmenu updates resolv.conf but uses old nameservers till restart.
    It makes NTP and repository accessibility checks to fail.

    Change-Id: Ifc6f1d51f655b7329af6942bb060beebeeae5fef
    Closes-Bug: 1603445

tags: added: in-stable-mitaka
Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-menu (master)

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

commit e9a7bf3e0dd3ecc358aac4ec851351c255fcc367
Author: Vyacheslav Struk <email address hidden>
Date: Fri Jul 15 16:56:23 2016 +0300

    Force fuelmenu to re-read resolv.conf on change

    Fuelmenu updates resolv.conf but uses old nameservers till restart.
    It makes NTP and repository accessibility checks to fail.

    Change-Id: Ifc6f1d51f655b7329af6942bb060beebeeae5fef
    Closes-Bug: 1603445

tags: added: on-verification
Revision history for this message
Dmitry Belyaninov (dbelyaninov) wrote :

Wrong DNS was used before fuelmenu run. So repo check failed. After changing DNS to correct - repo check passed without fuelmenu restart.

9.X snapshot #109

Changed in fuel:
status: Fix Committed → Fix Released
tags: removed: on-verification
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-menu 10.0.0rc1

This issue was fixed in the openstack/fuel-menu 10.0.0rc1 release candidate.

Revision history for this message
Akshay (ap-amin) wrote :

attached is the file containing screen shots/errors. according to bug #1603445. fuel-menu 10.0.0rc1 suppose to fix the issue but can't find where to download from and how ti install. Please help. Thanks.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-menu 10.0.0

This issue was fixed in the openstack/fuel-menu 10.0.0 release.

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.