google / google/agents-cli

'infra single-project' fails when run after `deploy` for agent_runtime

Đang mở
#2 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
known issue
Ngôn ngữ chính
Python
Star
6k
Fork
669
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu với các flow `agents-cli deploy` và `agents-cli infra single-project`, sau đó đọc hướng dẫn về thứ tự thực hiện trong `skills/google-agents-cli-observability/SKILL.md`. Thực hiện lại các lệnh theo thứ tự đó và xác minh rằng `single-project` cập nhật Reasoning Engine hiện có thay vì tạo một instance thứ hai, với các biến observability được gắn vào instance serving.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python, terraform
Lĩnh vực
cli, cloud, infrastructure
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
48/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.