Bug 1838453 - device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
Summary: device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: ovirt-hosted-engine-ha
Classification: oVirt
Component: Broker
Version: 2.4.3
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: ---
: ---
Assignee: Yedidyah Bar David
QA Contact: Nikolai Sednev
URL:
Whiteboard:
Depends On:
Blocks: 1871065
TreeView+ depends on / blocked
 
Reported: 2020-05-21 08:06 UTC by Nikolai Sednev
Modified: 2023-09-15 01:29 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1871065 (view as bug list)
Environment:
Last Closed: 2020-09-15 08:52:36 UTC
oVirt Team: Integration
Embargoed:
sbonazzo: ovirt-4.4?
mavital: testing_plan_complete-
mtessun: planning_ack+
sbonazzo: devel_ack+
mavital: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 5514071 0 None None None 2020-10-23 15:51:01 UTC
oVirt gerrit 111049 0 master ABANDONED storage: Use os.readv instead of fdopen+readinto 2021-02-16 04:42:17 UTC

Description Nikolai Sednev 2020-05-21 08:06:10 UTC
Description of problem:
Opened forth to https://bugzilla.redhat.com/show_bug.cgi?id=1837465 as we have to fix ovirt-ha-broker privilege issue.

Console being flooded with "device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege."
 
[14544.903544] perf: interrupt took too long (4007 > 3933), lowering kernel.perf_event_max_sample_rate to 49000
[14554.851969] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[14554.964192] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[14564.976748] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[14565.085529] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[14574.208248] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[14584.220897] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[14584.332797] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[14594.345214] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[14594.457546] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[14604.470254] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[14604.582136] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[14614.584533] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[14614.709813] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.



Version-Release number of selected component (if applicable):
Linux puma19.scl.lab.tlv.redhat.com 4.18.0-193.4.1.el8_2.x86_64 #1 SMP Fri May 15 15:02:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux


How reproducible:
100%

Steps to Reproduce:
1.Deploy HE over FC on RHEL8.2 host.
2.Check console on host.

Actual results:
Console flooded with error messages.

Expected results:
No flood should be sent to console.

Additional info:

Comment 1 Evgeny Slutsky 2020-05-21 11:03:53 UTC
this warning originate from ovirt-ha-broker which tries to read the host state directly from HostedEngineConfigurationImage LVM (with out mounting) , 
when run in debug:

May 21 12:47:55 puma18.scl.lab.tlv.redhat.com ovirt-ha-broker[1054888]: ovirt-ha-broker ovirt_hosted_engine_ha.broker.storage_broker.StorageBroker DEBUG Getting stats for service hosted-engine.metadata from /var
/run/vdsm/storage/52706b72-d782-4937-a452-c9f8111d9d08/1cbaa6fd-4b9f-4cae-8281-533b66113da2/0b422721-be91-4a86-811d-f85a42267e9e with offset 0
May 21 12:47:55 puma18.scl.lab.tlv.redhat.com kernel: device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.

Comment 2 Simone Tiraboschi 2020-05-21 12:22:09 UTC
I don't think that the issue is that we miss a mount.

I fear that the issue comes from a kernel patch:
https://patchwork.kernel.org/patch/9553769/

that it's only in kernel >= 4.11 so it wasn't in EL7

Comment 3 Evgeny Slutsky 2020-05-21 13:55:49 UTC
that's the commit that added that check in the kernel:
https://github.com/torvalds/linux/commit/e980f62353c697cbf0c4325e43df6e44399aeb64#diff-309bcac7077137714d954d0a75c854d1R473

Comment 4 Peter Grossoehme 2020-05-26 12:13:28 UTC
Same issues here - I'm not able to deploy the hosted engine after moving to fibre channel storage (LUN).

Comment 5 Evgeny Slutsky 2020-05-26 12:39:05 UTC
(In reply to Peter Grossoehme from comment #4)
> Same issues here - I'm not able to deploy the hosted engine after moving to
> fibre channel storage (LUN).

is your deployment completely blocked or just throwing warning to the console/journal?

Comment 6 Peter Grossoehme 2020-05-26 12:52:25 UTC
(In reply to Evgeny Slutsky from comment #5)
> (In reply to Peter Grossoehme from comment #4)
> > Same issues here - I'm not able to deploy the hosted engine after moving to
> > fibre channel storage (LUN).
> 
> is your deployment completely blocked or just throwing warning to the
> console/journal?

The whole deployment process is broken / blocked after the VM was prepared when choosing the FC target (LUN) to move it to it's final storage destination (preparing storage, etc.). It's GUI says there is not enough space for the hosted engine but you can continue anyway and this fails at least but I have seen the LVM2 is created on my FC block device but afterwards it's stucks / blocks with kernel buffer messages like

[ 2168.118886] sd 9:0:0:1: alua: port group 01 state A preferred supports tolUsNA
[ 2169.869820] print_req_error: critical target error, dev dm-12, sector 264192 flags 400009
[ 2169.870474] print_req_error: critical target error, dev dm-12, sector 296960 flags 400809
[ 2179.571184] sd 9:0:0:1: alua: supports implicit TPGS
[ 2179.571189] sd 9:0:0:1: alua: device naa.6c8a776100b2482400006a9b00000000 port group 1 rel port 29
[ 2179.571330] sd 10:0:0:1: alua: supports implicit TPGS
[ 2179.571333] sd 10:0:0:1: alua: device naa.6c8a776100b2482400006a9b00000000 port group 2 rel port 129
[ 2179.576876] sd 9:0:0:1: alua: port group 01 state A preferred supports tolUsNA
[ 2179.576878] sd 10:0:0:1: alua: port group 02 state N non-preferred supports tolUsNA
[ 2179.759015] sd 10:0:0:1: alua: supports implicit TPGS
[ 2179.759019] sd 10:0:0:1: alua: device naa.6c8a776100b2482400006a9b00000000 port group 2 rel port 129
[ 2179.759063] sd 9:0:0:1: alua: supports implicit TPGS
[ 2179.759066] sd 9:0:0:1: alua: device naa.6c8a776100b2482400006a9b00000000 port group 1 rel port 29
[ 2179.765887] sd 10:0:0:1: alua: port group 02 state N non-preferred supports tolUsNA
[ 2179.765911] sd 9:0:0:1: alua: port group 01 state A preferred supports tolUsNA
[ 2204.368022] sd 10:0:0:1: alua: supports implicit TPGS
[ 2204.368025] sd 10:0:0:1: alua: device naa.6c8a776100b2482400006a9b00000000 port group 2 rel port 129
[ 2204.368423] sd 9:0:0:1: alua: supports implicit TPGS
[ 2204.368426] sd 9:0:0:1: alua: device naa.6c8a776100b2482400006a9b00000000 port group 1 rel port 29
[ 2204.373924] sd 9:0:0:1: alua: port group 01 state A preferred supports tolUsNA
[ 2204.373927] sd 10:0:0:1: alua: port group 02 state N non-preferred supports tolUsNA
[ 2204.836839] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2204.856096] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2226.074683] EXT4-fs (dm-19): mounting ext3 file system using the ext4 subsystem
[ 2226.076177] EXT4-fs (dm-19): mounted filesystem with ordered data mode. Opts: (null)
[ 2227.300636] sd 9:0:0:1: alua: supports implicit TPGS
[ 2227.300640] sd 9:0:0:1: alua: device naa.6c8a776100b2482400006a9b00000000 port group 1 rel port 29
[ 2227.300989] sd 10:0:0:1: alua: supports implicit TPGS
[ 2227.300992] sd 10:0:0:1: alua: device naa.6c8a776100b2482400006a9b00000000 port group 2 rel port 129
[ 2227.306986] sd 9:0:0:1: alua: port group 01 state A preferred supports tolUsNA
[ 2227.306998] sd 10:0:0:1: alua: port group 02 state N non-preferred supports tolUsNA
[ 2227.637860] sd 9:0:0:1: alua: supports implicit TPGS
[ 2227.637864] sd 9:0:0:1: alua: device naa.6c8a776100b2482400006a9b00000000 port group 1 rel port 29
[ 2227.638402] sd 10:0:0:1: alua: supports implicit TPGS
[ 2227.638405] sd 10:0:0:1: alua: device naa.6c8a776100b2482400006a9b00000000 port group 2 rel port 129
[ 2227.643991] sd 9:0:0:1: alua: port group 01 state A preferred supports tolUsNA
[ 2227.644005] sd 10:0:0:1: alua: port group 02 state N non-preferred supports tolUsNA
[ 2228.156679] sd 9:0:0:1: alua: supports implicit TPGS
[ 2228.156683] sd 9:0:0:1: alua: device naa.6c8a776100b2482400006a9b00000000 port group 1 rel port 29
[ 2228.157309] sd 10:0:0:1: alua: supports implicit TPGS
[ 2228.157312] sd 10:0:0:1: alua: device naa.6c8a776100b2482400006a9b00000000 port group 2 rel port 129
[ 2228.161988] sd 9:0:0:1: alua: port group 01 state A preferred supports tolUsNA
[ 2228.164017] sd 10:0:0:1: alua: port group 02 state N non-preferred supports tolUsNA
[ 2243.119648] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2244.162091] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2244.209320] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2247.258569] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2247.406854] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2247.412852] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2247.419841] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2247.567536] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2247.574689] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2247.581542] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2248.224700] dm_blk_ioctl: 6 callbacks suppressed
[ 2248.224701] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2248.230983] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2248.236954] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2248.636925] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2248.643006] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2248.649904] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2269.715256] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2270.745211] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2280.783922] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2281.814721] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2289.858146] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2290.888975] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2299.933291] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2300.961189] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2331.361182] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2331.368260] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2331.376271] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2331.519382] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2331.525384] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2331.531535] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2331.927855] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2331.933779] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2331.940584] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2332.016921] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.

....

 2395.911211] device-mapper: core: qemu-img: sending ioctl 5326 to DM device without required privilege.
[ 2438.755412] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2438.962399] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2438.990162] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2439.016001] device-mapper: core: qemu-img: sending ioctl 5326 to DM device without required privilege.
[ 2439.114808] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2439.308013] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2439.331706] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2439.362621] device-mapper: core: qemu-img: sending ioctl 5326 to DM device without required privilege.
[ 2439.366491] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2449.367692] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2459.368686] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2469.369619] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2479.370635] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2489.371522] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2493.585493] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2493.783793] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2493.803214] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2493.827094] device-mapper: core: qemu-img: sending ioctl 5326 to DM device without required privilege.
[ 2493.927693] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2494.134935] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2494.154303] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2494.179805] device-mapper: core: qemu-img: sending ioctl 5326 to DM device without required privilege.
[ 2494.183783] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2504.184997] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2514.186397] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2524.187553] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2526.833102] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2527.037045] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2527.037695] device-mapper: core: jsonrpc/4: sending ioctl 5401 to DM device without required privilege.
[ 2527.037745] device-mapper: core: jsonrpc/4: sending ioctl 5401 to DM device without required privilege.
[ 2527.139830] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2527.140424] device-mapper: core: jsonrpc/2: sending ioctl 5401 to DM device without required privilege.
[ 2527.140457] device-mapper: core: jsonrpc/2: sending ioctl 5401 to DM device without required privilege.
[ 2527.267811] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2527.268485] device-mapper: core: jsonrpc/3: sending ioctl 5401 to DM device without required privilege.
[ 2538.475586] dm_blk_ioctl: 19 callbacks suppressed
[ 2538.475587] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2538.559098] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2548.560167] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2548.624633] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2558.625715] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2558.693600] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2568.694456] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2568.764445] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2578.765441] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2578.835609] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2588.836458] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2588.921738] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2589.268692] device-mapper: core: vm/f4f50ab2: sending ioctl 5401 to DM device without required privilege.
[ 2589.279147] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2589.369035] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2589.565173] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2589.581510] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2589.604398] device-mapper: core: qemu-img: sending ioctl 5326 to DM device without required privilege.
[ 2599.280350] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2599.367446] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2599.999362] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2610.000425] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2610.086863] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2610.477799] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2610.635152] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2610.841146] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2610.860557] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2610.884485] device-mapper: core: qemu-img: sending ioctl 5326 to DM device without required privilege.
[ 2620.478928] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2620.562144] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2621.213598] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2631.214683] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2631.301327] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2631.655394] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2631.827223] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2632.008116] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2632.023789] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2632.047565] device-mapper: core: qemu-img: sending ioctl 5326 to DM device without required privilege.
[ 2641.656554] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2641.744323] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2642.385772] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2652.386756] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2652.462788] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2652.817695] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2652.970449] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2653.148432] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2653.163884] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2653.185202] device-mapper: core: qemu-img: sending ioctl 5326 to DM device without required privilege.
[ 2662.818962] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2662.906704] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2663.579250] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2673.580366] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2673.663098] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2674.002254] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2674.178547] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2674.371501] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2674.394950] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2674.419291] device-mapper: core: qemu-img: sending ioctl 5326 to DM device without required privilege.
[ 2683.089909] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2683.707143] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2693.708264] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2693.793741] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2694.146887] device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.
[ 2694.315598] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2694.505550] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2694.521165] device-mapper: core: dd: sending ioctl 80306d02 to DM device without required privilege.
[ 2694.545245] device-mapper: core: qemu-img: sending ioctl 5326 to DM device without required privilege.

I don't know if this issue is really related to the deployment process but seems so.
The same setup did work without any issues with oVirt 4.3.9.

Comment 7 Yedidyah Bar David 2020-08-27 07:41:30 UTC
For the record - managed to reproduce based on reading the bug discussion and the source code.

Created some LV using lvcreate on my laptop. Path to it was /dev/dm-5.

chowned it to my own user (not root).

Ran this, in python3, as my own user:

>>> import os
>>> direct_flag = os.O_DIRECT
>>> path='/dev/dm-5'
>>> f = os.open(path, direct_flag | os.O_RDONLY | os.O_SYNC)
>>> offset = 0
>>> os.lseek(f, offset, os.SEEK_SET)
0
>>> fin = os.fdopen(f, 'rb', 0)

After the last statement, I got this in dmesg:

[3554155.899699] device-mapper: core: python3: sending ioctl 5401 to DM device without required privilege.

But no error in python. I also tried running the code following this (from ovirt-hosted-engine-ha:ovirt_hosted_engine_ha/broker/storage_broker.py:get_raw_stats) and succeeded (direct_io_buffer.read worked, decode obviously failed because the LV contained garbage).

5401 seems to be TCGETS [1], which is an ioctl to get serial port settings from a device. So it seems like python's os.fdopen calls it at some point, perhaps gets an error, continues silently and finishes successfully.

Not sure how best to fix this - perhaps use supervdsmd to do this as root, or write our own simple "super-ovirt-ha-d".

It's probably also safe to ignore, even if ugly.

Comment 8 Yedidyah Bar David 2020-09-08 10:23:28 UTC
Also filed bug 1876840 on the kernel to get rid of this warning.

Comment 9 Mister X 2020-09-10 11:49:28 UTC
Hi, 

I'm facing the same issue, endless messages with:

device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device without required privilege.

Is there a solution? I have no permission to see bug 1876840


thanks,

Comment 10 Yedidyah Bar David 2020-09-10 12:10:52 UTC
(In reply to Mister X from comment #9)
> Hi, 
> 
> I'm facing the same issue, endless messages with:
> 
> device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device
> without required privilege.

This in itself is harmless, can be ignored.

> 
> Is there a solution?

See the linked patch. It's not yet ready.

> I have no permission to see bug 1876840

Not sure why. Now set it to be public.

Comment 11 Mister X 2020-09-10 12:37:33 UTC
(In reply to Yedidyah Bar David from comment #10)
> (In reply to Mister X from comment #9)

> > device-mapper: core: ovirt-ha-broker: sending ioctl 5401 to DM device
> > without required privilege.

Hi Yedidyah,

Thanks for your quick answer.

> This in itself is harmless, can be ignored.

Good, now I'm less worried :)

> See the linked patch. It's not yet ready.

Ok, I'll wait then.

> Not sure why. Now set it to be public.

Thanks again, now I can access.

KR,

Comment 13 Yedidyah Bar David 2020-09-15 08:52:36 UTC
I abandoned my current patch, mainly because it's not clear to me how to verify it comprehensively (as-is, or even if addressing the concern about short reads), and it does not seem worth it.

Instead, closing as a duplicate of the kernel bug I opened.

*** This bug has been marked as a duplicate of bug 1876840 ***

Comment 17 Red Hat Bugzilla 2023-09-15 01:29:41 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 365 days


Note You need to log in before you can comment on or make changes to this bug.