Skip to content

Probe zone creation needs to be in a transaction #9340

@bnaecker

Description

@bnaecker

Converting the TODO from here:

/// Add a probe to the data store.
pub async fn probe_create(
&self,
opctx: &OpContext,
authz_project: &authz::Project,
probe: &Probe,
ip_pool: Option<authz::IpPool>,
) -> CreateResult<Probe> {
//TODO in transaction
use nexus_db_schema::schema::probe::dsl;
let conn = self.pool_connection_authorized(opctx).await?;

to a proper issue. This creates an external IP address, network interface, and finally the probe itself. These should be in a transaction or otherwise concurrency-safe.

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