Bug #25522
closedMisleading error for DHCP proxy
Description
I cannot delete nor modify a host with missing DHCP entry.
The UI tries and fails because of the missing DHCP entry itself.
I think this situation should be considered as ok and the process should continue (i.e. I want to delete it and already it does not exist = deleted successfully anyway). Maybe generate a warning but not fail?
I checked this more deeply and found out the real issue now.
The issue was due to misconfiguration. The DHCP feature did not start on the proxy.
Can the error description be improved? I got misled because of 404. Also, the smart proxy was green in the smart proxies section so I was unsuspecting.
proxy.log:
2018-11-20T14:54:47 df1b559e [I] Started DELETE /dhcp/192.168.108.0/mac/[redacted]:96:03 2018-11-20T14:54:47 df1b559e [I] Finished DELETE /dhcp/192.168.108.0/mac/[redacted]:96:03 with 404 (0.51 ms)
UI error:
Remove DHCP Settings for [redacted] task failed with the following error: ERF12-0635 [ProxyAPI::ProxyException]: Unable to delete DHCP entry for [redacted]:96:03 ([RestClient::NotFound]: 404 Not Found) for proxy https://[redacted]/dhcp
Updated by Radosław Piliszek about 6 years ago
I just realized the dynamic DHCP entry actually exists so there is something else wrong in here as well.
Updated by Radosław Piliszek about 6 years ago
- Subject changed from Cannot delete nor modify host with missing DHCP entry to Misleading error for DHCP proxy
- Description updated (diff)
- Priority changed from High to Low
READ THIS
I am changing the description of this report.
The issue was due to misconfiguration. The DHCP feature did not start on the proxy.
Can the error description be improved? I got misled because of 404. Also, the smart proxy was green in the smart proxies section so I was unsuspecting.
Updated by Lukas Zapletal about 6 years ago
- Status changed from New to Closed
- Triaged changed from No to Yes
Probably but I am unsure we are gonna invest time into this. I am closing the issue for now, reopen if you want to send a patch.
We have a way of listing available features and there is also a mechanism to report failed modules (Proxy - Show), so it is definitely doable.
Updated by Tomer Brisker about 6 years ago
- Status changed from Closed to Rejected