Skip to content

Enable issue-backed Odoo prelaunch rebuild policies #573

@cbusillo

Description

@cbusillo

Objective

Add an explicit, issue-backed Launchplane policy signal for Odoo lanes that are safe to rebuild before launch, instead of relying on environment names or informal operator memory.

Desired Policy

For CM:

  • cm/testing: allow empty stable bootstrap.
  • cm/prod: allow empty stable bootstrap while CM prod is not active/authoritative yet.
  • Both lanes should remain issue-backed so the permission is auditable and easy to retire when CM launches.

For OPW:

  • opw/testing: allow restore from the current upstream/non-Docker source while OPW has not cut over.
  • opw/prod: allow restore from the current upstream/non-Docker source while OPW prod is not yet authoritative in Launchplane.
  • Both lanes should be issue-backed and expire/retire when OPW launches on Launchplane-managed prod.

Why

The current odoo_stable_bootstrap profile policy is disabled for odoo-tenant-cm cm/testing, so Odoo Stable Bootstrap is correctly rejected even though CM testing/prod are currently inactive and intended to be rebuildable.

Recent evidence:

Scope

  • Add/enable a Launchplane-owned policy signal for specific prelaunch Odoo lanes.
  • Store/link the policy to this issue or an explicit issue reference so the operator approval is visible in records/read models.
  • Permit CM empty bootstrap for both testing and prod while they are inactive/prelaunch.
  • Permit OPW restore-from-upstream for both testing and prod while Launchplane-managed prod is not authoritative.
  • Preserve fail-closed defaults for unknown lanes and real production lanes.
  • Make the policy easy to retire when CM or OPW launches.

Acceptance Criteria

  • CM testing and prod read models show they are provisional/prelaunch and empty-bootstrap allowed, with this issue as the approval signal.
  • OPW testing and prod read models show they are provisional/prelaunch and restore-from-upstream allowed, with this issue as the approval signal.
  • Odoo Stable Bootstrap for CM testing is accepted only when the issue-backed policy is present and the confirmation phrase matches.
  • Real production lanes still reject destructive bootstrap/recreate/restore without appropriate backup/restore proof.
  • Tests cover CM empty bootstrap allow, OPW upstream restore allow, issue reference requirement, and default refusal for unmarked lanes.
  • Docs explain that instance names like prod are not authority by themselves; the issue-backed lane policy is the authority until launch/cutover.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions