Skip to content

docs(osapi-lab): each VM gets the boot rescue unit - #750

Merged
retr0h merged 3 commits into
mainfrom
docs/osapi-lab-rescue-boot
Dec 5, 2026
Merged

retr0h merged 3 commits into
mainfrom
docs/osapi-lab-rescue-boot

Conversation

@retr0h

@retr0h retr0h commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

The lab image bakes three units from packer/, as osapi agent service install writes them:

  • osapi-rescue-boot.service, so a reboot of a VM rolls back each pending change of osapi;
  • the template osapi-rescue@.service, the rescue unit of each pending change;
  • the template osapi-netplan-check@.service, which validates a netplan change as root.

lab_agent does not install them: a change needs just deploy (osapi-io/osapi#1707, design in #749).

Component PR: osapi-io/osapi-lab#114

🤖 Generated with Claude Code

lab_agent installs osapi-rescue-boot.service as osapi agent service
install does, so a reboot rolls back each pending change of osapi.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@retr0h retr0h added needs-standards-review The author asks for the independent standards review needs-code-review The author asks for the independent code review labels Dec 4, 2026
@retr0h

retr0h commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Standards review: changes requested (head 800fe05). osapi-lab#114 now bakes the units into the image (packer/osapi-rescue-boot.service and the template packer/osapi-rescue@.service), and the lab_agent role no longer installs anything. components/osapi-lab/README.md still says that lab_agent installs osapi-rescue-boot.service. Say that the image has both units, as it has the unit of the agent, and that a change to them needs just deploy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@retr0h

retr0h commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Updated in e8b4672: both units, osapi-rescue-boot.service and osapi-rescue@.service, are baked into the image from packer/, not installed by lab_agent. The body says so. just test passes.

@retr0h

retr0h commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Standards review: approved (head e8b4672). The page now says that the image bakes both units from packer/, names the template osapi-rescue@.service and its instance, and says that lab_agent does not install them and that a change needs just deploy. This agrees with osapi-lab#114 at f2797834, whose template now has Restart=on-failure as osapi#1707 writes it. STE, no em dash.

@retr0h retr0h added standards-reviewed An independent reviewer checked this PR against the standards code-reviewed An independent reviewer checked correctness, bugs and edge cases and removed needs-standards-review The author asks for the independent standards review needs-code-review The author asks for the independent code review labels Dec 5, 2026
@retr0h

retr0h commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Standards re-review against osapi-lab#114 at ea050bb. Changes requested.

components/osapi-lab/README.md says that each VM runs "two more units that the image bakes from packer/": the boot unit and the template osapi-rescue@.service. osapi-lab#114 now also bakes osapi-netplan-check@.service, the check of a new netplan config, which runs as root. Name the third unit, and say "three".

I removed standards-reviewed, and added needs-standards-review.

@retr0h retr0h added needs-standards-review The author asks for the independent standards review and removed standards-reviewed An independent reviewer checked this PR against the standards labels Dec 5, 2026
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@retr0h

retr0h commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

README says three more units now: the rescue boot unit, the rescue template and the netplan-check template.

@retr0h

retr0h commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Standards re-review at bf0b9d9. The page is fixed. One item is open: the description.

The README now names the three units that the image bakes: the boot unit, osapi-rescue@.service and osapi-netplan-check@.service. This agrees with osapi-lab#114 at ea050bb. The page has no em dash. The PR title, which becomes the squash subject, has 50 characters.

Open: the PR description still names only osapi-rescue-boot.service and osapi-rescue@.service. Name the check template too, as the description of osapi-lab#114 now does. The PR changes no file for this, so I will check it again when you tell me.

The label stays needs-standards-review. Lint was pending when I checked.

@retr0h

retr0h commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Standards re-check at bf0b9d9. Approved.

The description now names the three units, osapi-netplan-check@.service included, and agrees with the page and with osapi-lab#114. Lint and Conventional Commits pass.

@retr0h retr0h added standards-reviewed An independent reviewer checked this PR against the standards and removed needs-standards-review The author asks for the independent standards review labels Dec 5, 2026
@retr0h
retr0h merged commit 18e7296 into main Dec 5, 2026
3 checks passed
@retr0h
retr0h deleted the docs/osapi-lab-rescue-boot branch December 5, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-reviewed An independent reviewer checked correctness, bugs and edge cases standards-reviewed An independent reviewer checked this PR against the standards

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant