You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by "andrewmusselman (via GitHub)" <gi...@apache.org> on 2026/09/03 01:23:02 UTC

[I] p6: Puppet manifest for the llmao gateway host (tooling-llmao)

andrewmusselman opened a new issue, #18:
URL: https://github.com/apache/tooling-llmao/issues/18

   **Three processes to bring under management:**
    
   | process | today | target |
   |---|---|---|
   | Postgres | apt packages, hand-installed | `base_packages` |
   | asfquart portal | `:8443` from `~gstein`, run by hand | **pipservice** |
   | LiteLLM proxy | run by hand as `gstein` | systemd, own service user |
    
   Also in scope:
    
   - `vcsrepo` checkout, venv build guarded on the checkout SHA (not merely on
     the venv existing — Puppet evaluates `unless` on refresh too, so an
     existence check lets the venv silently age against a moving checkout)
   - `/etc/llmao/config.yaml` rendered from EPP with eyaml secrets
   - no `fleet.yaml` — fleet state is in LiteLLM ("Move fleet state into LiteLLM")
   - `/etc/llmao/env` for secrets consumed via `os.environ/` in the LiteLLM
     config, so no key lands in a tracked file
   - `simple_vhost` fronting the portal, with `/v1/*` proxied to the LiteLLM port
     on loopback — this also resolves "LiteLLM proxy is publicly reachable over plaintex…"
   **GPU boxes are not in scope.** They are rented and self-configure by fetching
   `GET /vllm/config`.
    
   **Depends on "Move fleet state into LiteLLM".** Until membership is out of `config.yaml`, Puppet either owns
   it — making every GPU host addition a PR — or cannot manage the file at all.
    
   Draft manifest and templates exist; the pipservice conversion needs an existing
   usage to copy the parameter shape from.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org


Re: [I] p6: Puppet manifest for the llmao gateway host (tooling-llmao)

Posted by "andrewmusselman (via GitHub)" <gi...@apache.org>.
andrewmusselman commented on issue #18:
URL: https://github.com/apache/tooling-llmao/issues/18#issuecomment-5593533896

   # p6 — proposed
   
   ## Layout
   
   Everything under `/opt/tooling-llmao`. Nothing in `/etc`.
   
   ```
   /opt/tooling-llmao/                     pipservice: vcsrepo + venv
   /opt/tooling-llmao/.venv/bin/litellm    the proxy binary, from that same venv
   /opt/tooling-llmao/tooling-llmao.yaml   pipservice writes, from eyaml
   /opt/tooling-llmao/litellm.yaml         Puppet writes
   /opt/tooling-llmao/litellm.env          Puppet writes
   /opt/tooling-llmao/model_list.yaml      from the repo -- catalog, no secrets
   ```
   
   Puppet writing into the checkout is safe: `litellm.yaml` and `litellm.env`
   are gitignored, so vcsrepo will not fight over them. That is the arrangement
   the repo already uses for `config.yaml` and `model_list.yaml`.
   
   ## One process, one venv
   
   `litellm[proxy,extra-proxy]` is a dependency in `pyproject.toml`, and
   `make proxy` runs `uv run litellm --config litellm.yaml`. So pipservice's venv
   already contains the binary.
   
   **There is no second venv and no pip install in the manifest.** The LiteLLM
   service just points at `/opt/tooling-llmao/.venv/bin/litellm`, and a
   pipservice redeploy updates both processes at once.
   
   The trade is that the two are coupled: a bad sync takes down the proxy as well
   as the portal. Given they are the same application, that seems right.
   
   ## Two things the repo needs first
   
   ### 1. `pipservice-tooling-llmao.service` must be committed
   
   pipservice symlinks the unit from the checkout:
   
   ```puppet
   systemd::unit_file { "pipservice-${name}.service":
     target => "${installpath}/pipservice-${name}.service",
   ```
   
   So the **repo** owns the portal's unit file, not Puppet. It needs
   `pipservice-tooling-llmao.service` at the repo root, with `ExecStart` invoking
   `uv run` (not poetry -- `update_pipenv.sh` greps the `.service` file for
   "poetry" to decide, and finding none it correctly does nothing, leaving `uv`
   to the service itself).
   
   ### 2. `main.py` must read `tooling-llmao.yaml`
   
   pipservice writes `${installpath}/${name}.yaml`. With the name
   `tooling-llmao`, that is `/opt/tooling-llmao/tooling-llmao.yaml`.
   
   `main.py:126` currently requires `config.yaml` in the same directory and fails
   fast if it is absent. Renaming to match the pipservice convention is the
   agreed fix; it changes the local-dev flow documented in the README
   (`cp config.yaml.example config.yaml`), which was accepted.
   
   Line 164 also adds `config.yaml` to the reload watcher and needs the same
   change, or the app will not restart when Puppet updates the config.
   
   ## Postgres
   
   Packages go in `base_packages`, Ubuntu 24.04:
   
   ```
   postgresql
   python3-postgresql
   ```
   
   The database and role are created in this manifest, guarded on existence so
   re-runs are safe.
   
   ## Secret duplication
   
   `pipservice::tooling-llmao::secret1..5` are scoped to the pipservice define
   and cannot be read from `tooling::llmao`. Three values therefore appear twice
   in eyaml: the master key, the db password, and the selfhost key.
   
   Unavoidable, but worth a comment in both blocks so a rotation updates both.
   
   ## Not in scope
   
   - **GPU boxes.** Rented; they self-configure by fetching `GET /vllm/config`.
   - **Backups.** Tracked separately; `$dest` depends on confirming what
     BackupPC actually captures.
   - **fleet.yaml.** There is none — fleet state lives in LiteLLM's database.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org


Re: [I] p6: Puppet manifest for the llmao gateway host (tooling-llmao)

Posted by "andrewmusselman (via GitHub)" <gi...@apache.org>.
andrewmusselman closed issue #18: p6: Puppet manifest for the llmao gateway host
URL: https://github.com/apache/tooling-llmao/issues/18


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org


Re: [I] p6: Puppet manifest for the llmao gateway host (tooling-llmao)

Posted by "andrewmusselman (via GitHub)" <gi...@apache.org>.
andrewmusselman commented on issue #18:
URL: https://github.com/apache/tooling-llmao/issues/18#issuecomment-5630049303

   Done in 44fc576a1b3c8edc9bbaa9c0c43376af7b65df03; will open a PR to `production` after we settle anything else out


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org


Re: [I] p6: Puppet manifest for the llmao gateway host (tooling-llmao)

Posted by "andrewmusselman (via GitHub)" <gi...@apache.org>.
andrewmusselman commented on issue #18:
URL: https://github.com/apache/tooling-llmao/issues/18#issuecomment-5613768020

   Working, small re-scope: The example notes "Puppet may also set STORE_MODEL_IN_DB in the process env; the YAML flag below is what local make proxy uses." Your litellm.yaml.epp should gain store_model_in_db: true under general_settings to match the repo, and then the env var in litellm.env.epp is redundant — I'd drop it and keep the YAML, since that's what the app documents.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org


Re: [I] p6: Puppet manifest for the llmao gateway host (tooling-llmao)

Posted by "gstein (via GitHub)" <gi...@apache.org>.
gstein commented on issue #18:
URL: https://github.com/apache/tooling-llmao/issues/18#issuecomment-5518896738

   standard pattern is to keep everything in /opt/tooling-llmao rather than litter other directories such as /etc
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org