I’m trying to use dhcp script to generate dhpcd configuration and I’m stucked at err that I can’t fix.
[root@plinfs1517 dhcp_agent]# ./dhcp_agent.py -H 10.0.99.9 -k xxxxxxxxxxxxxxxxxxxxx -m networks -p http -d "BBN Inno Lab" -v
[2020-03-11 15:45:57.212] INFO dhcp_agent.py:354 Sending request to http://10.0.99.9/dhcp/networks/?dc=BBN+Inno+Lab
[2020-03-11 15:45:57.212] INFO dhcp_agent.py:330 Using If-Modified-Since with value Wed, 11 Mar 2020 13:44:35 GMT for url http://10.0.99.9/dhcp/networks/?dc=BBN+Inno+Lab
[2020-03-11 15:45:57.247] INFO dhcp_agent.py:374 Storing Last-Modified for url http://10.0.99.9/dhcp/networks/?dc=BBN+Inno+Lab with value Wed, 11 Mar 2020 14:45:12 GMT
# DHCP Networks config generated by Ralph last modified at March 11, 2020, 2:45 p.m.
shared-network "SWITCH-MGMT" {
subnet 10.0.99.0 netmask 255.255.255.0 {
option routers 10.0.99.1;
option domain-name "yyyyyyyyyyyyy";
deny unknown-clients;
}
}
# End of autogenerated config
[2020-03-11 15:45:57.247] INFO dhcp_agent.py:424 Configuration written to stdout
[2020-03-11 15:45:57.247] INFO dhcp_agent.py:336 Last modified not found in cache for url http://10.0.99.9/dhcp/sync/
[2020-03-11 15:45:57.268] ERROR dhcp_agent.py:401 Could not send confirmation to Ralph. Server returned 404 status code with message: DHCP server doesn't exist.
[2020-03-11 15:45:57.269] INFO dhcp_agent.py:203 Removing lock
[root@plinfs1517 dhcp_agent]#
[root@plinfs1517 dhcp_agent]# ./dhcp_agent.py -H 10.0.99.9 -k xxxxxxxxxxxxxxx-m networks -p http -d "BBN Inno Lab" -v
[2020-03-11 15:51:15.241] INFO dhcp_agent.py:354 Sending request to http://10.0.99.9/dhcp/networks/?dc=BBN+Inno+Lab
[2020-03-11 15:51:15.242] INFO dhcp_agent.py:330 Using If-Modified-Since with value Wed, 11 Mar 2020 14:45:12 GMT for url http://10.0.99.9/dhcp/networks/?dc=BBN+Inno+Lab
[2020-03-11 15:51:15.271] INFO dhcp_agent.py:366 Server return status 304 NOT MODIFIED. Nothing to do.
[2020-03-11 15:51:15.271] INFO dhcp_agent.py:336 Last modified not found in cache for url http://10.0.99.9/dhcp/sync/
[2020-03-11 15:51:15.290] ERROR dhcp_agent.py:401 Could not send confirmation to Ralph. Server returned 404 status code with message: DHCP server doesn't exist.
[2020-03-11 15:51:15.290] INFO dhcp_agent.py:203 Removing lock
[root@plinfs1517 dhcp_agent]#
Obviously dhcp server is created where is supposed (I think) to be.
Ralph logs shows only this:
==> gunicorn.access.log <==
172.19.0.3 - - [11/Mar/2020:14:51:15 +0000] "GET /dhcp/networks/?dc=BBN+Inno+Lab HTTP/1.0" 304 0 "-" "Python-urllib/2.7"
172.19.0.3 - - [11/Mar/2020:14:51:15 +0000] "GET /dhcp/sync/ HTTP/1.0" 404 26 "-" "Python-urllib/2.7"
^C
root@8850dcdd94b7:/var/log/ralph#
Which is not helpful at all.
Is there any documentation for this script or the way to enable debug in Ralph so I could understand what is happening under the hood and fix it (or report bug)?