Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for finding oxide processes on a sled #7320

Conversation

papertigers
Copy link
Contributor

@papertigers papertigers commented Jan 7, 2025

This PR adds support for finding all oxide processes via libcontract and relying on the fact that we deploy oxide services with the fmri prefix svc:/oxide/ or svc:/system/illumos. This allows us to find every pid started via smf even if the smf script uses ctrun.

You can see this for yourself by running pfexec ctstat -av on a helios/illumos based system:

205     1       process owned   2492    0       -       -       
        cookie:                0
        informative event set: core
        critical event set:    hwerr empty
        fatal event set:       hwerr
        parameter set:         noorphan regent
        member processes:      2497
        inherited contracts:   none
        service fmri:          svc:/oxide/wicketd:default
        service fmri ctid:     204
        creator:               ctrun
        aux:                   
249     1       process owned   1334    0       -       -       
        cookie:                0x20
        informative event set: none
        critical event set:    hwerr empty
        fatal event set:       none
        parameter set:         inherit regent
        member processes:      2794
        inherited contracts:   none
        service fmri:          svc:/oxide/dendrite:default
        service fmri ctid:     249
        creator:               svc.startd
        aux:                   start
254     1       process owned   1334    0       -       -       
        cookie:                0x20
        informative event set: none
        critical event set:    hwerr empty
        fatal event set:       none
        parameter set:         inherit regent
        member processes:      2802
        inherited contracts:   none
        service fmri:          svc:/oxide/lldpd:default
        service fmri ctid:     254
        creator:               svc.startd
        aux:                   start

This PR is on top of:

Created using spr 1.3.6-beta.1
@papertigers
Copy link
Contributor Author

This PR is actually a redo of #7194 because I mistakenly merged the PR into the wrong branch...

Created using spr 1.3.6-beta.1
@papertigers papertigers enabled auto-merge (squash) January 7, 2025 22:26
@papertigers papertigers merged commit a77566a into main Jan 8, 2025
18 checks passed
@papertigers papertigers deleted the spr/papertigers/add-support-for-finding-oxide-processes-on-a-sled branch January 8, 2025 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant