Bug 257646 - opensm: rc service is installed by default, but opensm(8) is not (WITH_OFED_EXTRA)
Summary: opensm: rc service is installed by default, but opensm(8) is not (WITH_OFED_E...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 13.0-RELEASE
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: easy, needs-qa
Depends on:
Blocks:
 
Reported: 2021-08-06 02:16 UTC by metsuke
Modified: 2021-08-06 03:51 UTC (History)
4 users (show)

See Also:
koobs: maintainer-feedback? (kib)
koobs: mfc-stable13?
koobs: mfc-stable12?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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:
https://cgit.freebsd.org/src/commit/?id=abbe7d5acd14dddbf8506f2e1f47d6dd953756fb

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.