'infra single-project' fails when run after `deploy` for agent_runtime
- Langage dominant
- Python
- Étoiles
- 5.9k
- Forks
- 660
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
### Problem
When using **Agent Runtime** (Reasoning Engine), running `agents-cli infra single-project` after an initial `agents-cli deploy` does not work as intended.
`infra single-project` uses terraform, but `deploy` does not and uses an API instead. This means that when `single-project` tries to use terraform to update, it doesn't have visibility into the existing reasoning engine resource already created. So, the `terraform apply` invoked by `single-project` silently provisions a **second** Reasoning Engine instance with the same name.
This leads to:
- Observability environment variables being wired to the new (empty) instance.
- The original (serving) instance remaining without observability configuration.
### Workarounds
See https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-observability/SKILL.md#order-of-operations-for-agent_runtime-deployments
The short version though: either run `single-project` before `deploy` so tracking is properly established, or fix it manually using the above instructions.
Ref: b/504375097
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par les flux `agents-cli deploy` et `agents-cli infra single-project`, puis lisez les instructions concernant l’ordre des opérations dans `skills/google-agents-cli-observability/SKILL.md`. Reproduisez les commandes dans cet ordre et vérifiez que `single-project` met à jour le Reasoning Engine existant au lieu de créer une seconde instance, avec les variables d’observabilité attachées à l’instance de service.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python, terraform
- Domaine
- cli, cloud, infrastructure
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 48/100