Bug 257646

Summary: opensm: rc service is installed by default, but opensm(8) is not (WITH_OFED_EXTRA)
Product: Base System Reporter: metsuke <metsuke>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Many People CC: hselasky, kib, markj, metsuke
Priority: --- Keywords: easy, needs-qa
Version: 13.0-RELEASEFlags: koobs: maintainer-feedback? (kib)
koobs: mfc-stable13?
koobs: mfc-stable12?
Hardware: amd64   
OS: Any   

Description metsuke 2021-08-06 02:16:32 UTC
/usr/bin/opensm appears to be missing:

    # service opensm start
    Starting 0x0202c9fffe318b00 opensm.
    eval: /usr/bin/opensm: not found
    Starting 0x0202c9fffe318b01 opensm.
    eval: /usr/bin/opensm: not found

The service can no longer be started now.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2021-08-06 02:46:01 UTC
@Reporter, If additional information can be provided, please re-open the issue. Please include at least:

- Exact FreeBSD version (uname -a output)
- /var/run/dmesg.boot output (as an attachment)
- Contents of /etc/make.conf /etc/src.conf and /etc/src-env.conf if not empty
- If running a non GENERIC kernel, full kernel config (as an attachment)
- Any other details relevent to the system in question.
Comment 2 Mark Johnston freebsd_committer 2021-08-06 03:09:05 UTC
The problem is pretty clear:

$ which opensm

The opensm build is disabled unless one builds world with WITH_OFED_EXTRA:

I'm not sure why opensm is considered non-essential, at least one host needs to run an SM.  I guess it is most common to run it on a switch?  At least, rc.d/opensm should not be installed by default.
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2021-08-06 03:14:28 UTC
^Triage: Re-open given additional detail
Comment 4 metsuke 2021-08-06 03:22:36 UTC
@koobs Let me know if I should still provide additional details you requested, thanks.

I am on 13.0-RELEASE-p3:
13.0-RELEASE-p3 FreeBSD 13.0-RELEASE-p3 #0: Tue Jun 29 19:46:20 UTC 2021     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
Comment 5 Konstantin Belousov freebsd_committer 2021-08-06 03:51:57 UTC
(In reply to Mark Johnston from comment #2)
WITH_OFED enables only essential core libraries needed to run rdma applications.
Anything more, like test utilities, management utilities, or subnet manager,
is put under _EXTRA because if you need this, you would recompile base anyway.