Skip to content

Document first_boot for MetalBox deployments - #1155

Merged
berendt merged 1 commit into
mainfrom
docs/first-boot-namespace
Nov 27, 2026
Merged

berendt merged 1 commit into
mainfrom
docs/first-boot-namespace

Conversation

@ideaship

@ideaship ideaship commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Documents the first_boot mapping for MetalBox deployments, which osism/python-osism#2928 added: values a node's first-boot play applies to the first boot only, without them becoming host variables of later plays.

  • New page "First boot of a node" (configuration guide, MetalBox): what the first-boot play does; where its variables come from and their precedence (top-level local_context_data, first_boot from the device or a config context, and the values osism baremetal deploy adds itself); that the operator key is needed in environments/configuration.yml and in NetBox, because the MetalBox does not read the configuration repository; the recommendation to keep the key in NetBox in one place, under first_boot in one config context per site, with an example.
  • Node deployment guide: the operator key in NetBox as a prerequisite before the deploy command, with a link to the new page.
  • Operator key rotation guide: the NetBox section with one tab per path. From OSISM 11.1.0 on, the key is in two places, and in NetBox under first_boot. Before 11.1.0, the key is at the top level of local_context_data; because environments/configuration.yml is passed as extra vars and wins over that host variable, replacing the NetBox key only affects newly provisioned systems, unless the configuration repository does not set operator_authorized_keys. The tabs make the page an MDX page; the one link to it is updated.

The guides name OSISM 11.1.0 as the release from which first_boot is supported.

Related:

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

✅⚠️MegaLinter analysis: Success with warnings

Descriptor Linter Files Fixed Errors Max errors Warnings Elapsed time
✅ ACTION actionlint 5 0 0 0.07s
✅ JSON jsonlint 4 0 0 0.12s
✅ JSON prettier 4 0 0 0.43s
✅ JSON v8r 4 0 0 8.64s
✅ MARKDOWN markdownlint 185 0 0 3.12s
✅ MARKDOWN markdown-table-formatter 185 0 0 0.44s
✅ REPOSITORY betterleaks yes no no 0.71s
✅ REPOSITORY checkov yes no no 20.45s
✅ REPOSITORY git_diff yes no no 0.05s
✅ REPOSITORY secretlint yes no no 1.43s
✅ REPOSITORY trufflehog yes no no 4.0s
✅ SPELL codespell 195 0 0 0.8s
⚠️ SPELL lychee 191 2 0 57.75s
✅ YAML prettier 6 0 0 0.53s
✅ YAML v8r 6 0 0 8.4s
✅ YAML yamllint 6 0 0 0.59s

Detailed Issues

⚠️ SPELL / lychee - 2 errors
📝 Summary
---------------------
🔍 Total.........1314
🔗 Unique.........961
✅ Successful....1178
⏳ Timeouts........18
🔀 Redirected.......1
👻 Excluded.......116
❓ Unknown..........0
🚫 Errors...........2
⛔ Unsupported......2

Errors in docs/appendix/security/ossa-2026-001.md
[TIMEOUT] https://bugs.launchpad.net/keystonemiddleware/+bug/2129018 (at 142:3) | Request timed out

Errors in docs/appendix/security/ossa-2026-002.md
[TIMEOUT] https://bugs.launchpad.net/nova/+bug/2137507 (at 134:3) | Request timed out

Errors in docs/appendix/security/ossa-2026-015.md
[TIMEOUT] https://bugs.launchpad.net/keystone/+bug/2148477 (at 195:3) | Request timed out
[TIMEOUT] https://bugs.launchpad.net/keystone/+bug/2149775 (at 196:3) | Request timed out
[TIMEOUT] https://bugs.launchpad.net/keystone/+bug/2150379 (at 199:3) | Request timed out

Errors in docs/appendix/security/ossa-2026-022.md
[TIMEOUT] https://bugs.launchpad.net/nova/+bug/2151252 (at 159:3) | Request timed out

Errors in docs/appendix/security/ossa-2026-034.md
[TIMEOUT] https://bugs.launchpad.net/designate/+bug/2008693 (at 182:5) | Request timed out
[TIMEOUT] https://bugs.launchpad.net/designate/+bug/2160533 (at 186:5) | Request timed out
[TIMEOUT] https://bugs.launchpad.net/designate/+bug/2160533 (at 253:3) | Request timed out

Errors in docs/appendix/security/ossa-2026-038.md
[TIMEOUT] https://bugs.launchpad.net/glance/+bug/2158998 (at 124:3) | Request timed out
[TIMEOUT] https://bugs.launchpad.net/glance/+bug/2158999 (at 125:3) | Request timed out
[TIMEOUT] https://bugs.launchpad.net/glance/+bug/2160020 (at 127:3) | Request timed out

Errors in docs/appendix/security/ossa-2026-039.md
[TIMEOUT] https://bugs.launchpad.net/octavia/+bug/2162101 (at 245:5) | Request timed out
[TIMEOUT] https://bugs.launchpad.net/octavia/+bug/2162103 (at 248:5) | Request timed out
[TIMEOUT] https://bugs.launchpad.net/octavia/+bug/2167565 (at 389:3) | Request timed out

Errors in docs/appendix/security/ossa-2026-045.md
[TIMEOUT] https://bugs.launchpad.net/cinder/+bug/2160671 (at 273:3) | Request timed out

Errors in docs/appendix/security/ossa-2026-050.md
[TIMEOUT] https://bugs.launchpad.net/keystonemiddleware/+bug/2162748 (at 177:5) | Request timed out

Errors in docs/guides/configuration-guide/openstack/manila.md
[ERROR] https://docs.openstack.org/manila/latest/configuration/shared-file-systems/samples/manila.conf.html (at 9:3) | Connection closed before response completed

Errors in docs/guides/developer-guide/style-guide.md
[ERROR] https://wiki.openstack.org/wiki/GitCommitMessages (at 79:1) | Network unreachable. Check internet connection or VPN settings

Errors in docs/guides/troubleshooting-guide/openstack.mdx
[TIMEOUT] https://bugs.launchpad.net/neutron/+bug/2111498 (at 268:13) | Request timed out

Hint: Followed 1 redirect. You might want to consider replacing redirecting URLs with the resolved URLs. Use verbose mode (`-v`/`-vv`) to see redirection details.

See detailed reports in MegaLinter artifacts

Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)

  • Documentation: Custom Flavors
  • Command: npx mega-linter-runner@10.2.0 --custom-flavor-setup --custom-flavor-linters ACTION_ACTIONLINT,JSON_JSONLINT,JSON_V8R,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_CHECKOV,REPOSITORY_GIT_DIFF,REPOSITORY_BETTERLEAKS,REPOSITORY_SECRETLINT,REPOSITORY_TRUFFLEHOG,SPELL_LYCHEE,SPELL_CODESPELL,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R

MegaLinter is provided by OX Security
Show us your support by starring ⭐ the repository

@ideaship
ideaship force-pushed the docs/first-boot-namespace branch from 367c6a2 to 2b8141e Compare November 24, 2026 05:37
Base automatically changed from docs/key-rotation-netbox-scope to main November 24, 2026 06:50
Add a configuration guide page on the first boot of a node provisioned
by the MetalBox, slim the deploy step of the node deployment guide down
to what matters when running it, and rework the NetBox section of the
operator key rotation guide by release.

The first-boot play that osism baremetal deploy puts on a node's config
drive takes the top-level keys of the device's local_context_data. The
inventory reconciler exports the same keys as host variables, so they
also reach later plays. python-osism now also reads a first_boot
mapping, from the device's local_context_data or from a config context,
whose values apply to the first boot only and win over top-level keys.

The new page "First boot of a node" (configuration guide, MetalBox)
documents:

- where the variables of the play come from and their precedence:
  top-level keys, first_boot (a device's own over a config context's),
  and the values osism baremetal deploy adds to the play itself (the
  hostname from the Ironic node, the two MetalBox entries
  hosts_additional_entries and docker_insecure_registries, and the
  netplan and FRR parameters), which win over both;
- that the operator key is needed in two places: in
  environments/configuration.yml, from which the manager installs it,
  and in NetBox, from which the MetalBox puts it on the config drive,
  since the MetalBox does not read the configuration repository;
- the recommendation to keep the key in NetBox in one place, under
  first_boot in one config context per site, with an example, and the
  top-level form for releases before 11.1.0.

The node deployment guide states the key as a prerequisite before the
deploy command and links to the page for the details.

The rotation guide's NetBox section gets a tab per path. From OSISM
11.1.0 on: the key in two places, one first_boot entry in NetBox, what
to do with keys a device still carries itself. Before 11.1.0: the key
at the top level; environments/configuration.yml is passed as extra
vars and wins over the host variable, so replacing the NetBox key then
only affects newly provisioned systems, and only a repository that
does not set operator_authorized_keys there has to change it as part
of the rotation. The tabs make the guide an MDX page; the one link to
it is updated.

The guides name OSISM 11.1.0 as the release from which first_boot is
supported: on an older release the first_boot form does not reach the
node, which would then come up without the key.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Roger Luethi <luethi@osism.tech>
@ideaship
ideaship force-pushed the docs/first-boot-namespace branch from 2b8141e to 35bfeb1 Compare November 26, 2026 14:16
@ideaship
ideaship marked this pull request as ready for review November 26, 2026 14:17
@ideaship ideaship self-assigned this Nov 26, 2026
@ideaship
ideaship added this pull request to stack #1163 November 26, 2026 14:17
@ideaship
ideaship requested a review from berendt November 26, 2026 14:17
@berendt
berendt merged commit 6700ddc into main Nov 27, 2026
5 checks passed
@berendt
berendt deleted the docs/first-boot-namespace branch November 27, 2026 06:54
@github-project-automation github-project-automation Bot moved this from New to Done in Human Board Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants