[Bug 1916931] Re: omshell returns inconsistent results or segfaults
Bill MacAllister
1916931 at bugs.launchpad.net
Wed Jan 18 07:38:31 UTC 2023
> Bill, Lukas asked a question in comment #10 and set the bug to 'incomplete', hoping
> to get feedback from someone who could reproduce the problem. If you can provide an
> answer, please do set the bug back to 'confirmed' when answering.
I don't agree with Lukas' action. The bug is still valid for Jammy, the LTS version.
If Lukas wants to provide a package to test on Jammy I can do that, but setting up
a DHCP peer environment in a version of Ubuntu that I don't have a build environment
for will take quite a bit of effort. It is particularly onerous because I only use
LTS versions of Ubuntu, so even if the Kinetic works it doesn't solve my problem
for another 2 years.
> Could somebody confirm if this issue is still happening with omshell v4.4.3 from
> the Ubuntu Kinetic package?
I suppose there is an alternative. I'll see if I can backport the 4.4.3 version from
Kinetic to Jammy.
I can confirm that the bug exists in 4.4.1 on Debian 11, Bullseye.
Bill
--
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:
Expired
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