Skip to content

Use next_item CTE helper for sled subnet allocation when adding a sled to an initialized rack #4544

Open
@andrewjstone

Description

@andrewjstone

Currently, subnet allocation is done manually in omicron_nexus::app::rack::Nexus::add_sled_to_initialized_rack inside rust code, outside CRDB. However, this means that concurrent add sled operations will fail due to reusing allocations. We can avoid this problem via the use of the next_item helper

Metadata

Metadata

Assignees

No one assigned

    Labels

    databaseRelated to database accessnexusRelated to nexus

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions