Contributing¶
Contributions from people who operate OpenStack are welcome. The most useful ones come from production experience.
The quickest way in is an issue: unsafe or wrong advice or improvement or correction. No code needed.
Advice that could cause harm before it is fixed, or a secret found in the repository, goes privately through the security policy. Everyone taking part follows the OzarLand code of conduct.
Good contributions¶
- A failing scenario. A realistic request where a skill gave unsafe,
wrong or unhelpful advice. Add it to
evals/scenarios/<skill>.jsonwith the expected reasoning and the critical errors to avoid, even before a fix. - A missing decision point in a workflow (two situations that look alike but need different handling).
- An aged technical note. Release behaviour changes; corrections with a link to upstream or vendor documentation are valuable.
- Backend or tool coverage (OVN vs ML2/OVS, Ceph, specific deployment tools), kept in reference files and clearly scoped.
- Validation evidence. You ran a procedure from a skill on a lab or in production, it worked, failed or worked only partly: report it with the Validation evidence or failure form. This is how items move from unverified to validated.
Where new knowledge belongs¶
Operational knowledge (a symptom, its checks and fix, a recovery, a command's
behaviour, and any correction to them) goes first to the OzarLand page it
comes from, in
openstack-vm-runbooks or
kolla-ansible-deployment-patterns,
where it is reviewed and lab-checked. The skill reference follows: it carries
the distilled checks and decisions, links the source page in
validation/inventory.yaml, and keeps that page's validation status. Open the
upstream pull request or issue first and link it from yours. Only knowledge
with no OzarLand page to live in (reasoning steps, decision points, the book's
method) goes straight into the skills.
| You have | Upstream first | Then in the skill |
|---|---|---|
| A symptom of one instance, volume or port, with checks and a fix | openstack-vm-runbooks | skills/ |
| A control-plane failure (RabbitMQ, Galera, HAProxy, Keystone) and its recovery | openstack-vm-runbooks or kolla-ansible-deployment-patterns | skills/ |
| A Kolla-Ansible command, configuration file, failed run or host operation | kolla-ansible-deployment-patterns | skills/ |
| Host maintenance mechanics | openstack-vm-runbooks | skills/ |
| A full runbook | openstack-vm-runbooks or kolla-ansible-deployment-patterns | the distilled checks and decisions, with the source linked in the inventory |
| A decision point or reasoning step | none | the relevant SKILL.md |
Version-specific behaviour is written with its scope ("since 2024.1", "with Kolla-Ansible", "ML2/OVS only"), never as a universal fact. Use the procedure block template.
Validation of operational knowledge¶
Read docs/knowledge-validation-policy.md. In short:
- Every procedure or technical claim an operator could act on gets a status
tag in the skill text, such as
[LAB-VALIDATED: VM-NET-04], and one entry invalidation/inventory.yaml(template). - A validated status needs a recorded execution: environment, release, deployment method, backends, date, steps run, observed result, steps not run. Reading documentation or a runbook is not validation.
- If you could not test it, submit it anyway as
DOCUMENTED-UNVERIFIEDorPROPOSED-UNVERIFIED, saying inmissing_evidencewhat test would validate it. - A change to a validated procedure's steps, or to its release scope, sets it
to
NEEDS-REVALIDATIONuntil it is run again. - Never put credentials, real hostnames, addresses or customer details in evidence.
To report outdated or wrong instructions, use the unsafe or wrong advice form; to ask for a revalidation, the validation form above.
Ground rules¶
- Separate sources. Tag statements from the book
[Book: Ch. N]. Tag anything else[Addition]. Do not attribute new ideas to the book. - No universal rules for contextual decisions. Give options with the conditions under which each applies.
- Validation status is required. Status tags and inventory entries for every operational claim; see above.
- Safety rules are not optional. Read-only first; state-changing steps
carry prerequisites, blast radius, verification, stop conditions, recovery
and an approver; no claimed outcomes; no invented facts. See
shared/evidence-and-safety.md. - Keep
SKILL.mdlean (well under 500 lines). Put detail inreferences/, linked directly fromSKILL.md(one level deep). Reference files over 100 lines start with a## Contentssection. - Edit shared text in
shared/only, then runpython3 tools/sync_shared.py. - Portable frontmatter only:
name,description,license,metadata. Descriptions are third person, under 1024 characters, no angle brackets, and say both what the skill does and when to use it. - No vendor promotion, no customer or employer details in scenarios.
Before opening a pull request¶
python3 tools/sync_shared.py
python3 tools/validate_skills.py # must report 0 errors
python3 tools/test_weighted_score.py
python3 tools/validate_knowledge.py # inventory, tags and coverage consistent
python3 tools/test_validate_knowledge.py
ruff check . # configuration in ruff.toml
If you change a procedure taken from an OzarLand page, or before a release, check the cited pages against local checkouts of the source repositories (missing pages, undisclosed draft status; see the policy):
python3 tools/check_sources.py --repo openstack-vm-runbooks=../openstack-vm-runbooks \
--repo kolla-ansible-deployment-patterns=../kolla-ansible-deployment-patterns --ref origin/main
If you change a skill's behaviour, run its scenarios when you can:
python3 tools/run_behavioral.py --skill <name> --modes skill baseline
This needs an authenticated claude CLI and costs API usage. Include the
summary (scores, triggered or not, critical errors) in the PR description, and
say which model you used. Do not claim results you did not run.
Neither these checks nor behavioural evaluations validate an OpenStack procedure; only a recorded execution does.
Proposing a new skill¶
Open an issue first describing the operational problem, the evidence that it
is distinct from existing skills, and three scenarios. The design rationale in
docs/design.md explains why the current set is what it is.
Licence¶
By contributing you agree that your contribution is licensed under the Apache License 2.0 of this repository.