Hi, thanks for you reply.
I again created a host in a network with pre-existing reservations. I have DHCP enabled for that subnet. IP assignment worked and it got 10.25.10.93. Host got deployed and is working.
Next I asked the proxy to give me the reservations:
{"reservations":[{"name":"linipa01.example.com","ip":"10.25.10.41","mac":"52:54:00:97:02:50","subnet":"10.25.10.0/255.255.255.0","type":"reservation","deleteable":true,"hostname":"linipa01.example.com","hardware_type":"ethernet","filename":"pxelinux.0","nextServer":"10.25.10.11"},{"name":"linkvm01.example.com","ip":"10.25.10.45","mac":"d0:67:e5:e7:07:d6","subnet":"10.25.10.0/255.255.255.0","type":"reservation","deleteable":true,"hostname":"linkvm01.example.com","hardware_type":"ethernet","filename":"","nextServer":"10.25.10.254"},{"name":"linlog02.example.com","ip":"10.25.10.39","mac":"52:54:00:8e:f1:10","subnet":"10.25.10.0/255.255.255.0","type":"reservation","deleteable":true,"hostname":"linlog02.example.com","hardware_type":"ethernet","filename":"pxelinux.0","nextServer":"10.25.10.11"},{"name":"linkvm02.example.com","ip":"10.25.10.21","mac":"d0:50:99:c0:61:fd","subnet":"10.25.10.0/255.255.255.0","type":"reservation","deleteable":true,"hostname":"linkvm02.example.com","hardware_type":"ethernet","filename":"pxelinux.0","nextServer":"10.25.10.11"},{"name":"linmon01.example.com","ip":"10.25.10.32","mac":"52:54:00:ba:fe:ac","subnet":"10.25.10.0/255.255.255.0","type":"reservation","deleteable":true,"hostname":"linmon01.example.com","hardware_type":"ethernet","filename":"pxelinux.0","nextServer":"10.25.10.11"},{"name":"linkvm03.example.com","ip":"10.25.10.31","mac":"d4:ae:52:ca:a0:e2","subnet":"10.25.10.0/255.255.255.0","type":"reservation","deleteable":true,"hostname":"linkvm03.example.com","hardware_type":"ethernet","filename":"","nextServer":"10.25.10.254"},{"name":"lingtw01.example.com","ip":"10.25.10.254","mac":"52:54:00:98:2a:41","subnet":"10.25.10.0/255.255.255.0","type":"reservation","deleteable":true,"hostname":"lingtw01.example.com","hardware_type":"ethernet","filename":"pxelinux.0","nextServer":"10.25.10.10"},{"name":"lindat01.example.com","ip":"10.25.10.20","mac":"52:54:00:b8:11:fb","subnet":"10.25.10.0/255.255.255.0","type":"reservation","deleteable":true,"hostname":"lindat01.example.com","hardware_type":"ethernet","filename":"pxelinux.0","nextServer":"10.25.10.10"},{"name":"linutl02.example.com","ip":"10.25.10.23","mac":"52:54:00:a0:0b:77","subnet":"10.25.10.0/255.255.255.0","type":"reservation","deleteable":true,"hostname":"linutl02.example.com","hardware_type":"ethernet","filename":"pxelinux.0","nextServer":"10.25.10.10"},{"name":"linutl04.example.com","ip":"10.25.10.25","mac":"52:54:00:34:bd:0d","subnet":"10.25.10.0/255.255.255.0","type":"reservation","deleteable":true,"hostname":"linutl04.example.com","hardware_type":"ethernet","filename":"pxelinux.0","nextServer":"10.25.10.10"}],"leases":[{"name":"lease-52540028aecc","ip":"10.25.10.145","mac":"52:54:00:28:ae:cc","subnet":"10.25.10.0/255.255.255.0","starts":"2018-10-29 12:26:19 UTC","ends":"2018-10-29 14:26:19 UTC","state":"active","type":"lease","tstp":"2018-10-29 15:26:19 UTC","tsfp":"2018-10-29 15:26:19 UTC","atsfp":"2018-10-29 15:26:19 UTC","cltt":"2018-10-29 12:26:19 UTC","next_state":"expired","hardware_type":"ethernet","client_hostn....bla bla lots of lease but also not the .93....mer\""}]}
(sorry for the layout) It gives me the pre-existing reservations but not the one for my dhcptest host with .93.
After that I tried to do a ‘rebuild config’ and it gives me a DHCP error. The output of the proxy is:
I, [2018-10-31T09:34:21.182179 ] INFO -- : ::1 - - [31/Oct/2018:09:34:21 +0100] "GET /dhcp/10.25.10.0 HTTP/1.1" 200 7074 0.0015
I, [2018-10-31T09:37:16.549336 d72907df] INFO -- : ::ffff:10.25.10.11 - - [31/Oct/2018:09:37:16 +0100] "GET /tftp/serverName HTTP/1.1" 200 17 0.0006
I, [2018-10-31T09:37:16.691985 d72907df] INFO -- : ::ffff:10.25.10.11 - - [31/Oct/2018:09:37:16 +0100] "DELETE /dhcp/10.25.10.0/mac/52:54:00:cc:52:e5 HTTP/1.1" 200 - 0.0008
E, [2018-10-31T09:37:16.768558 d72907df] ERROR -- : Omshell failed:
> > > > obj: <null>
, > obj: host
, > obj: host
, name = "dhcptest.example.com"
, > obj: host
, name = "dhcptest.example.com"
, ip-address = 0a:19:0a:5d
, > obj: host
, name = "dhcptest.example.com"
, ip-address = 0a:19:0a:5d
, hardware-address = 52:54:00:cc:52:e5
, > obj: host
, name = "dhcptest.example.com"
, ip-address = 0a:19:0a:5d
, hardware-address = 52:54:00:cc:52:e5
, hardware-type = 1
, > obj: host
, name = "dhcptest.example.com"
, ip-address = 0a:19:0a:5d
, hardware-address = 52:54:00:cc:52:e5
, hardware-type = 1
, statements = "filename = "pxelinux.0"; next-server = 0a:19:0a:0b; option host-name = "dhcptest.example.com";"
, > can't open object: already exists
, obj: host
, name = "dhcptest.example.com"
, ip-address = 0a:19:0a:5d
, hardware-address = 52:54:00:cc:52:e5
, hardware-type = 1
, statements = "filename = "pxelinux.0"; next-server = 0a:19:0a:0b; option host-name = "dhcptest.example.com";"
, >
E, [2018-10-31T09:37:16.769337 d72907df] ERROR -- : Failed to add DHCP reservation for dhcptest.example.com (10.25.10.93 / 52:54:00:cc:52:e5): Entry already exists
And that is correct. My leases file has:
host dhcptest.example.com {
dynamic;
hardware ethernet 52:54:00:cc:52:e5;
fixed-address 10.25.10.93;
supersede server.filename = "pxelinux.0";
supersede server.next-server = 0a:19:0a:0b;
supersede host-name = "dhcptest.example.com";
}
So it seems like I have a reservation but the proxy is still not showing it…?