Bug 1659584 - bcc-lua not available in RHEL8
Summary: bcc-lua not available in RHEL8
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: bcc
Version: 8.0
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: 8.0
Assignee: Jerome Marchand
QA Contact: Christian Trautman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-14 17:39 UTC by John Pittman
Modified: 2018-12-17 14:08 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-12-17 14:08:34 UTC
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)

Description John Pittman 2018-12-14 17:39:08 UTC
Description of problem:

The bcc-lua package is not available in RHEL8.  This package is seemingly needed to run lua bpf scripts.

Version-Release number of selected component (if applicable):

lua-libs-5.3.4-10.el8.x86_64
bcc-debugsource-0.7.0-3.el8.x86_64
bcc-0.7.0-3.el8.x86_64
bcc-debuginfo-0.7.0-3.el8.x86_64
bcc-tools-0.7.0-3.el8.x86_64
python3-bcc-0.7.0-3.el8.x86_64
bcc-tools-debuginfo-0.7.0-3.el8.x86_64
pcp-pmda-bcc-4.2.0-1.el8.x86_64
lua-5.3.4-10.el8.x86_64

Steps to Reproduce:

/usr/bin/lua:
=============
[root@localhost tools]# cat vfs_write_lua 
#!/usr/bin/lua

local bpf = require('bpf')

[root@localhost tools]# ./vfs_write_lua 
/usr/bin/lua: ./vfs_write_lua:3: module 'bpf' not found:
	no field package.preload['bpf']
	no file '/usr/share/lua/5.3/bpf.lua'
	no file '/usr/share/lua/5.3/bpf/init.lua'
	no file '/usr/lib64/lua/5.3/bpf.lua'
	no file '/usr/lib64/lua/5.3/bpf/init.lua'
	no file './bpf.lua'
	no file './bpf/init.lua'
	no file '/usr/lib64/lua/5.3/bpf.so'
	no file '/usr/lib64/lua/5.3/loadall.so'
	no file './bpf.so'
stack traceback:
	[C]: in function 'require'
	./vfs_write_lua:3: in main chunk
	[C]: in ?

/usr/bin/env bcc-lua:
=====================
[root@localhost tools]# ./vfs_write_lua.lua 
/usr/bin/env: ‘bcc-lua’: No such file or directory

Actual results:

Unable to run lua bpf script

Expected results:

Ability to run.

Additional Info:

Package is available in Fedora 28

bcc-lua.x86_64 : Standalone tool to run BCC tracers written in Lua

Comment 1 Jerome Marchand 2018-12-17 10:46:34 UTC
(In reply to John Pittman from comment #0)
> Description of problem:
> 
> The bcc-lua package is not available in RHEL8.  This package is seemingly
> needed to run lua bpf scripts.

The bcc-lua is disabled on RHEL8 for the lack of luajit.

> 
> Version-Release number of selected component (if applicable):
> 
> lua-libs-5.3.4-10.el8.x86_64
> bcc-debugsource-0.7.0-3.el8.x86_64
> bcc-0.7.0-3.el8.x86_64
> bcc-debuginfo-0.7.0-3.el8.x86_64
> bcc-tools-0.7.0-3.el8.x86_64
> python3-bcc-0.7.0-3.el8.x86_64
> bcc-tools-debuginfo-0.7.0-3.el8.x86_64
> pcp-pmda-bcc-4.2.0-1.el8.x86_64
> lua-5.3.4-10.el8.x86_64
> 
> Steps to Reproduce:
> 
> /usr/bin/lua:
> =============
> [root@localhost tools]# cat vfs_write_lua 

Where does that script comes from? Is it part of bcc-tools package. If so that's a mistake. I don't see it in bcc-tools-0.7.0-5 though.

> #!/usr/bin/lua
> 
> local bpf = require('bpf')
> 
> [root@localhost tools]# ./vfs_write_lua 
> /usr/bin/lua: ./vfs_write_lua:3: module 'bpf' not found:
> 	no field package.preload['bpf']
> 	no file '/usr/share/lua/5.3/bpf.lua'
> 	no file '/usr/share/lua/5.3/bpf/init.lua'
> 	no file '/usr/lib64/lua/5.3/bpf.lua'
> 	no file '/usr/lib64/lua/5.3/bpf/init.lua'
> 	no file './bpf.lua'
> 	no file './bpf/init.lua'
> 	no file '/usr/lib64/lua/5.3/bpf.so'
> 	no file '/usr/lib64/lua/5.3/loadall.so'
> 	no file './bpf.so'
> stack traceback:
> 	[C]: in function 'require'
> 	./vfs_write_lua:3: in main chunk
> 	[C]: in ?
> 
> /usr/bin/env bcc-lua:
> =====================
> [root@localhost tools]# ./vfs_write_lua.lua 
> /usr/bin/env: ‘bcc-lua’: No such file or directory
> 
> Actual results:
> 
> Unable to run lua bpf script
> 
> Expected results:
> 
> Ability to run.
> 
> Additional Info:
> 
> Package is available in Fedora 28
> 
> bcc-lua.x86_64 : Standalone tool to run BCC tracers written in Lua

Comment 2 John Pittman 2018-12-17 13:16:48 UTC
Hi Jerome, thanks for looking.  It's just a test script that I wrote.  Writing a script for bcc in lua is a part of our RHEL8 readiness testing.  If there is no plan for bcc-lua support to be in RHEL8, that's fine, just let me know and I will document that on the customer portal.

Comment 3 Jerome Marchand 2018-12-17 14:08:20 UTC
(In reply to John Pittman from comment #2)
> Hi Jerome, thanks for looking.  It's just a test script that I wrote. 
> Writing a script for bcc in lua is a part of our RHEL8 readiness testing. 
> If there is no plan for bcc-lua support to be in RHEL8, that's fine, just
> let me know and I will document that on the customer portal.

There is indeed no plan to support bcc-lua in RHEL8. Thanks, I'll close this bz then.


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