[Bug 1916931] Re: omshell returns inconsistent results or segfaults
Massimiliano Ballerini
1916931 at bugs.launchpad.net
Tue Oct 11 10:29:13 UTC 2022
Updated isc-dhcp-server to 4.4.1 from apt and omshell crashing 100% of
the time with my configuration.
Compiled the isc-dhcp-server 4.4.3 from source and I'm using
omshell-4.4.3 bin with isc-dhcp-server 4.4.1 without problem for 3
months now. Probably just fixed in 4.4.3 or 4.4.1 compile problem.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to isc-dhcp in Ubuntu.
https://bugs.launchpad.net/bugs/1916931
Title:
omshell returns inconsistent results or segfaults
Status in isc-dhcp package in Ubuntu:
Confirmed
Bug description:
I have just built a Ubuntu 20.04 server and installed isc-dhcp-server
4.4.1 on it and I am seeing inconsistent returns from omshell.
Initially omshell returns data as expected, but when I exit and re-enter
omshell connections fail.
Here is the initial, working, session:
# omshell
> server localhost
> port 7911
> key omapi_key <the key>
> connect
obj: <null>
> new failover-state
obj: failover-state
> set name = "dhcp-failover"
obj: failover-state
name = "dhcp-failover"
> open
obj: failover-state
name = "dhcp-failover"
partner-address = c0:9d:e9:76:e9:55:00:00
partner-port = 00:00:02:07
local-address = 10:9d:e9:76:e9:55:00:00
local-port = 00:00:02:07
max-outstanding-updates = 00:00:00:0a
mclt = 00:00:01:2c
load-balance-max-secs = 00:00:00:03
load-balance-hba =
ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
partner-state = 00:00:00:02
local-state = 00:00:00:02
partner-stos = 60:36:d0:68
local-stos = 60:36:8b:3b
hierarchy = 00:00:00:01
last-packet-sent = 00:00:00:00
last-timestamp-received = 00:00:00:00
skew = 00:00:00:00
max-response-delay = 00:00:00:3c
cur-unacked-updates = 00:00:00:00
Here is what I see when the connect fails. Well, just hangs really.
# omshell
> server localhost
> port 7911
> key omapi_key <the key>
> connect
And then I hit ctrl-c to break out and tried again:
# omshell
> server localhost
> port 7911
> key omapi_key <the key>
> connect
Segmentation fault (core dumped)
Note, the peer to this server is still running Ubuntu 18.04 with
isc-dhcp-server 4.3.5. Running the exact same commands on the peer
works reliably. (They are using the same python script to drive
omshell.) The DHCP server on the new system appears to be working
just fine as reported by omshell on the peer and systemctl.
I was curious if the problem could be with the mis-matched versions
of isc-dhcp-server so I shutdown isc-dhcp-server on the 18.04 system
and get the same results.
I also tried using a python script with the pypureomapi module to
try and determine if the problem was in omshell or the server. I
got very similar results when I attempted to get information about
the failover state of the server. Interestingly interrogating
the server about host information seems to work just fine.
This is a critical bug since I don't see how to fail over a DHCP
that is running the isc-dhcp-server on 20.04 without being able
to issue omapi commands.
I am attaching apport output to this bug report.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1916931/+subscriptions
More information about the foundations-bugs
mailing list