[fuel 10 community] - got error as " No DHCP servers found. Cannot enable DHCP"

Bug #1653194 reported by Jianghua Wang
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Michael Polenchuk
Newton
Fix Released
High
Michael Polenchuk

Bug Description

I donwloaded the latest fuel-community 10.0 iso and tried to install fuel master with it. But I got error from the fuelmenu as: "No DHCP servers found. Cannot enable DHCP".

The fuel master VM has two interfaces: eth0 for PXE and eth1 used for public access. Eth1 is set to get IP from DHCP.

The log from /var/log/fuelmenu.log:
2016-12-30 04:51:36,816 DEBUG Executing command: dhcpcheck discover --timeout 5 -f json --ifaces eth1
2016-12-30 04:51:37,060 DEBUG Command executed with exit code: 2
2016-12-30 04:51:37,060 DEBUG Unable to parse JSON.
2016-12-30 04:51:37,061 ERROR Errors: 1 ['No DHCP servers found. Cannot enable DHCP']
2016-12-30 04:51:37,061 ERROR Check failed. Not applying
2016-12-30 04:51:37,061 ERROR False

We can see the command of "dhcpcheck discover --timeout 5 -f json --ifaces eth1" exit with code:2

If I run this command manually, we can see the --ifaces option is not supported by dhcpcheck.

[root@fuel log]# dhcpcheck discover --timeout 5 -f json --ifaces eth1
usage: dhcpcheck discover [-h] [--timeout TIMEOUT] [--repeat REPEAT]
                          [-f {csv,json,table,value,yaml}] [-c COLUMN]
                          [--max-width <integer>] [--noindent]
                          [--quote {all,minimal,none,nonnumeric}]
                          [--with-vlans]
                          config
dhcpcheck discover: error: unrecognized arguments: --ifaces
[root@fuel log]# echo $?
2

$ cksum fuel-community-10.0.iso
3188088122 2293989376 fuel-community-10.0.iso

[root@fuel log]# rpm -q -f /bin/dhcpcheck
network-checker-10.0.0-1.mos83.x86_64

# in my fuel 9.0 env:
[root@fuel ~]# rpm -q -f /bin/dhcpcheck
network-checker-9.0.0-1.mos77.x86_64

[root@fuel ~]# dhcpcheck discover --timeout 5 -f json --ifaces eth1
[{"iface": "eth1", "mac": "6a:ff:5c:3f:bd:25", "server_ip": "10.62.16.11", "server_id": "10.62.16.11", "gateway": "0.0.0.0", "dport": 67, "message": "offer", "yiaddr": "10.62.18.178"}]

So it seems dhcpcheck has been changed but fuelmenu is still using the old options?

Revision history for this message
Jianghua Wang (wjh-fresh) wrote :

BTW: With manually runing dhclient, eth1 could get IP address successfully.

Changed in fuel:
status: New → Confirmed
milestone: none → 11.0
importance: Undecided → High
assignee: nobody → Michael Polenchuk (mpolenchuk)
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/415832

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

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

commit 8af5a4df689b66db21b3ba46476984f60b0eb90a
Author: Michael Polenchuk <email address hidden>
Date: Fri Dec 30 12:41:55 2016 +0400

    Use listservers for dhcpcheck

    Conform search of external dhcp servers
    to changed dhcpcheck commands.

    Change-Id: I44dee0bae667cc8a04583e519e8b15b04f192a70
    Depends-On: I07c3e7acb00e65554983f07e17acbf345c7508d7
    Closes-Bug: #1653194

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-menu (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/418250

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

Reviewed: https://review.openstack.org/418250
Committed: https://git.openstack.org/cgit/openstack/fuel-menu/commit/?id=2cf99bf930e3d3f393575afb84411f9cb436bef6
Submitter: Jenkins
Branch: stable/newton

commit 2cf99bf930e3d3f393575afb84411f9cb436bef6
Author: Michael Polenchuk <email address hidden>
Date: Fri Dec 30 12:41:55 2016 +0400

    Use listservers for dhcpcheck

    Conform search of external dhcp servers
    to changed dhcpcheck commands.

    Change-Id: I44dee0bae667cc8a04583e519e8b15b04f192a70
    Depends-On: I07c3e7acb00e65554983f07e17acbf345c7508d7
    Closes-Bug: #1653194
    (cherry picked from commit 8af5a4df689b66db21b3ba46476984f60b0eb90a)

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

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

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.