Skip to content

docs(quick-start): replace nicocli site create with site verification#3111

Open
shayan1995 wants to merge 1 commit into
NVIDIA:mainfrom
shayan1995:docs/fix-site-bootstrap-quickstart
Open

docs(quick-start): replace nicocli site create with site verification#3111
shayan1995 wants to merge 1 commit into
NVIDIA:mainfrom
shayan1995:docs/fix-site-bootstrap-quickstart

Conversation

@shayan1995

Copy link
Copy Markdown
Contributor

Fix incorrect instruction in the quick-start guide that tells operators to run nicocli site create after setup.sh. The site is already bootstrapped and registered by setup.sh Phase 7g — running nicocli site create creates a second site the already-deployed site-agent cannot use, causing the site to be stuck in Pending.

Related issues

Closes #2245 - #2245

Type of Change

  • Add - New feature or capability
  • Change - Changes in existing functionality
  • Fix - Bug fixes
  • Remove - Removed features or deprecated functionality
  • Internal - Internal changes (refactoring, tests, docs, etc.)

Breaking Changes

  • This PR contains breaking changes
    No breaking changes. This is a documentation correction — no code, chart, or config is modified.

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • No testing required (docs, internal refactor, etc.)

Validated end-to-end on dev6: setup.sh Phase 7g bootstraps the site automatically, nicocli site list confirms exactly one site registered matching NICO_SITE_UUID, and the site-agent logs show successful bootstrap — no nicocli site create call required.

Additional Notes

setup.sh Phase 7g bootstraps and registers the site automatically via
the nico-rest-site-agent bootstrap Job — operators must not run
nicocli site create after setup as it would create a second site that
the already-deployed site-agent cannot use.

- Replace "Create your First Site" step with a verification step
  explaining why site create must not be run and how to confirm the
  site was registered by setup.sh
- Update section header from "Create your First Site" to "Verify your Site"
- Fix step 3f: update DB reference from "dev postgres instance" to
  nico-pg-cluster (Zalando-managed), matching the current setup
- Fix component list: postgres StatefulSet hosts temporal + keycloak
  databases only; NICo REST DB runs on nico-pg-cluster
@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Summary by CodeRabbit

  • Documentation
    • Clarified Quick Start setup verification for NICo REST, including database connection guidance and supported override scenarios.
    • Updated the setup phase overview to reflect the databases now shown in the PostgreSQL service.
    • Reworked the site verification section to focus on confirming bootstrap completion, with clearer checks using site listing and service logs.

Walkthrough

This PR updates the Quick Start documentation to clarify database configuration defaults for the site-agent, revise the postgres StatefulSet description in setup phases, and replace "create your first site" instructions with site verification guidance using nicocli site list and site-agent logs.

Changes

Quick Start Documentation Update

Layer / File(s) Summary
Database config clarifications
docs/getting-started/quick-start.md
Clarifies that default site-agent config targets nico-pg-cluster with only DB_USER/DB_PASSWORD injected via db-creds Secret, and updates guidance for non-standard database overrides; updates the postgres StatefulSet description in the Step 4 setup phases diagram to reflect only temporal + keycloak databases.
Site verification steps
docs/getting-started/quick-start.md
Renames "Create your First Site" to "Verify your Site", broadens the 404 failure description to general site operations, prohibits manual nicocli site create usage, and adds verification steps using nicocli site list and nico-rest-site-agent log checks.

Estimated code review effort: 1 (Trivial) | ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately reflects the main documentation change: replacing site creation with site verification.
Description check ✅ Passed The description is directly related to the quick-start documentation fix and matches the documented behavior change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

🔍 Container Scan Summary

No Grype artifacts were found to aggregate.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/getting-started/quick-start.md`:
- Around line 189-193: This section is out of sync with the site-agent defaults
and currently points to the wrong database configuration. Update the quick-start
text to match the actual `helm-prereqs/values/nico-site-agent.yaml` settings
used by the site agent, and make sure the references to `DB_ADDR` and
`DB_DATABASE` align with the `nico-site-agent` defaults instead of the stale
`nico-pg-cluster`/`nico_rest` values.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: f2043458-314f-4f66-845d-6c7e6f41bed7

📥 Commits

Reviewing files that changed from the base of the PR and between 12ef832 and 4c50801.

📒 Files selected for processing (1)
  • docs/getting-started/quick-start.md

Comment on lines +189 to +193
The defaults in `helm-prereqs/values/nico-site-agent.yaml` point at the Zalando-managed `nico-pg-cluster` (`DB_ADDR: nico-pg-cluster.postgres.svc.cluster.local`, `DB_DATABASE: nico_rest`), which is the same cluster used by `nico-rest-api`. No changes are needed for a standard deployment.

`DB_USER` and `DB_PASSWORD` are injected at runtime from the `db-creds` Kubernetes Secret (created by the `nico-rest-common` sub-chart during Phase 7g). The Secret is referenced via `secrets.dbCreds` in the site-agent values.

For production or a different database, override the Secret name and connection config:
For a non-standard database, override the connection config:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== quick-start excerpt ==\n'
sed -n '180,200p' docs/getting-started/quick-start.md

printf '\n== site-agent values excerpt ==\n'
sed -n '1,120p' helm-prereqs/values/nico-site-agent.yaml

Repository: NVIDIA/infra-controller

Length of output: 4565


🏁 Script executed:

#!/bin/bash
set -euo pipefail

rg -n -C 3 'db-creds|Phase 7g|secrets\.dbCreds|DB_ADDR|DB_DATABASE' docs/getting-started/quick-start.md helm-prereqs/values/nico-site-agent.yaml

Repository: NVIDIA/infra-controller

Length of output: 4278


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
from pathlib import Path

paths = [
    Path('docs/getting-started/quick-start.md'),
    Path('helm-prereqs/values/nico-site-agent.yaml'),
]
for path in paths:
    print(f"\n== {path} ==")
    text = path.read_text()
    for needle in ['DB_ADDR', 'DB_DATABASE', 'db-creds', 'Phase 7g', 'secrets.dbCreds', 'postgres.postgres.svc.cluster.local', 'nico-pg-cluster.postgres.svc.cluster.local', 'elektratest', 'nico_rest']:
        if needle in text:
            print(f"contains: {needle}")
PY

Repository: NVIDIA/infra-controller

Length of output: 582


Sync this section with the site-agent defaults. helm-prereqs/values/nico-site-agent.yaml still uses the dev PostgreSQL endpoint (postgres.postgres.svc.cluster.local / elektratest), so the nico-pg-cluster / nico_rest values here are stale and will point operators at the wrong database.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/getting-started/quick-start.md` around lines 189 - 193, This section is
out of sync with the site-agent defaults and currently points to the wrong
database configuration. Update the quick-start text to match the actual
`helm-prereqs/values/nico-site-agent.yaml` settings used by the site agent, and
make sure the references to `DB_ADDR` and `DB_DATABASE` align with the
`nico-site-agent` defaults instead of the stale `nico-pg-cluster`/`nico_rest`
values.

@parmani-nv parmani-nv self-requested a review July 2, 2026 23:04
@polarweasel

Copy link
Copy Markdown
Contributor

@shayan1995 For whatever reason, the Fern preview build doesn't seem to have happened. Have you tested this locally to make sure it builds, and to make sure you didn't break any links when you renamed headings?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: [quickstart-automation] New site registration requires extensive manual patching

2 participants