Skip to content

Contract reaper thread not running #5319

@citrus-it

Description

@citrus-it

#5318 caused sled-agent to run out of contracts after 216 failed attempts to boot the switch zone.
There is a contract reaper thread that releases contracts after running commands in the context of another zone, but that was for some reason not running.

BRM44220001 # pstack `pgrep sled-agent` | demangle | grep contract_reaper
BRM44220001 #

Compare this with a running sled in dogfood:

BRM44220011 # pstack `pgrep sled-agent` | demangle | grep contract_reaper
 000000000261ecec illumos_utils::running_zone::zenter::contract_reaper::hca301d33703c3725 () + 19c

I haven't looked at the code yet, but we are presumably starting the contract reaper thread too late, it should be created before we ever run a command in a non-global zone context or we will leak contracts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions