Conversation
Replace the aramase/substrate fork pin with upstream v1.0.0-rc.3 (4ee8f66a) and the out-of-tree Azure Blob object-store plugin (agent-substrate-plugins/objectstore-azure-blob at b21387e8, the head of its unmerged installation stack). Pins: substrate.source gains an optional release tag that must name the pinned commit, and substrate.pluginSource pins the plugin. Both are fetched by exact commit; an explicit source no longer inherits the default tag. Images: substrate.imageSource selects the image track. "release", the default, verifies that every image upstream published for the tag was built from the pinned commit and imports it into the owned ACR by digest, with no Docker or Podman. "source" keeps building with ate-setup publish release-images, now with release-style tags, label-aware Podman publishing and the new Envoy base-image line. The root.go startup patch is gone, since publish no longer contacts a cluster. Both tracks ko-build the counter demo, which releases do not publish, and the plugin. Plugin: the plugin's own kustomize components configure both objectstore-plugin sidecars. The installer fills their documented placeholders with exact-count checks and renders them onto the pinned atelet and ate-api-server manifests, so single-component redeploys keep them. The installer's own sidecar patch is removed; deploy's storage component becomes actor-images. MicroVM assets: hack/microvm-assets/assemble.sh is gone upstream. A helper added to the disposable checkout calls ate-setup's own Go assembly with its pinned versions and checksums. The assets are uploaded as content-addressed blobs, and the moved SandboxConfig template's default version is rendered for amd64. ate-setup runs deploy ate-system with --sandbox-classes gvisor, because its microVM staging targets GCS. ate-setup requires a GCS snapshot transfer account on every non-kind cluster. The installer passes placeholders; their only effect is a ConfigMap key read by the in-tree control sidecar argument the plugin component replaces. Contract tests keep that blast radius reviewed. agent-substrate/substrate#3651 proposes --storage-backend=external and --component to replace this. Contract tests now also check that the vendored plugin testdata matches the pin, that the pinned ate-setup accepts every flag passed, the GCP placeholder reads, the published release inventory, and a real asset assembly. Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>
rc.3's atenet-router admits no ingress client unless its SPIFFE ID is allowed, so the counter demo could not be reached over HTTP. Pass ate-setup's --ingress-allowed-spiffe-ids for the atenet-client ServiceAccount that kubectl ate proxy requests its certificate for, as upstream's counter guide does, and document the proxy flow in place of the router port-forward. Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>
Snapshot suspends write each actor's memory to /var/lib/ate on the worker's OS disk, so the disk bounds how fast a node can suspend and resume actors. Add three microVM pool settings, threaded through infra/main.bicep and infra/resources.bicep as workerOsDiskType, workerOsDiskSizeGB and workerMaxPods so direct deployments get them too: - aks.workerPool.osDiskType: Managed (default) or Ephemeral, which puts the OS disk, and /var/lib/ate, on local storage (NVMe on v6/v7 "d" sizes). - aks.workerPool.osDiskSizeGB: 30-2048, default 128. Managed disk performance scales with size; an Ephemeral disk sets how much of the NVMe /var/lib/ate gets. - aks.workerPool.maxPods: 10-250, or omitted for the AKS default. AKS reserves about 20 MiB of node memory per pod, about 5 GiB at 250. Cloud preflight checks that the size supports ephemeral OS disks and that the disk fits its largest local placement. AKS fixes all three when it creates the pool, so plan and provision refuse to change them on an existing installation instead of failing partway through a deployment. Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>
The installation summary now lists what will be installed before billing approval: the Substrate release and commit, whether images are imported release images, built from source, or already saved, and the Azure Blob plugin commit. status prints the same version line. Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>
Release images are copied into the owned registry with az acr import, which needs Microsoft.ContainerRegistry/registries/importImage/action. AcrPush does not include it, so imports relied on the operator also holding a broad role such as Contributor on the registry. Grant the upload identity Container Registry Data Importer and Data Reader next to AcrPush. It can import and pull, but cannot push or change the registry. It works on registries in the LegacyRegistryPermissions mode the installer creates: on such a registry, an identity holding only this role imported a ghcr image with its digest intact and was refused when it tried to enable the admin user, while an identity without it could not import. Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>
Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>
- Cap ephemeral worker OS disks at Azure's 2,040 GiB limit in validation and preflight, so a large size fails before provisioning starts billing. - Refuse removing a previously set aks.workerPool.maxPods: Bicep then omits the limit, which only matches a pool on the AKS default of 250. - Stop passing SETUP_CSI and STORAGE_CLASS from the caller's shell to the pinned ate-setup, which reads both. - Docs: a managed OS disk does not survive a reimage either, so the drain warning applies to both disk types; release images are checked by their revision label, not proven to be built from the commit; and the plugin pin stays fetchable only while its pull request head does. Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>
Anish Ramasekar (aramase)
left a comment
There was a problem hiding this comment.
Thanks for this. One change I think is needed before merge: the maxPods validation should account for the AKS pool minimum (inline on config.go). The other comments are optional.
Agent Substrate 1.0 is due out today. Let's wait for it and bump this PR from the rc.3 pin to the 1.0 tag before merging, so we don't land an rc pin and repin right after.
Move the default source from v1.0.0-rc.3 to the v1.0.0 release (b34fbee7). The release differs from rc.3 only in documentation and copyright headers, and ghcr.io/agent-substrate/substrate publishes every release image for v1.0.0 labelled with that commit. Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>
… in status, importer wording Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>
|
Bumped to v1.0.0 GA (b34fbee7). rc.3 → GA only changes docs and copyright headers, and the contract tests pass against the GA release images. |
Anish Ramasekar (aramase)
left a comment
There was a problem hiding this comment.
nit: docs/operations.md:47 still says Preparation checks the image builder on every setup. Could the Preparation row say the builder check only runs for source-image builds? New installations import release images and skip it.
Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>
|
Fixed in 1d80df2: the Preparation row now says the builder check only runs for source-image builds, and the Images row says release images are imported. |
What this changes
The installer now installs unmodified upstream Agent Substrate v1.0.0 with the out-of-tree Azure Blob object-store plugin, replacing the
aramase/substratefork it pinned before.Pins
substrate.sourceis the v1.0.0 tag and commit (b34fbee7). Every fetch checks that the tag still names the commit. The branch was developed against v1.0.0-rc.3; GA differs from rc.3 only in docs and copyright headers.substrate.pluginSourceis the plugin's unmerged installation stack head (Add the snapshot provider, asset server, plugin binary and install docs agent-substrate-plugins/objectstore-azure-blob#6,b21387e8). It's fetchable only while that pull request head exists. We're merging with this pin and will repin to a merged commit or tag in a follow-up once the Azure Blob PRs land (Supported Substrate release catalog: choose version and image source, pin release image digests #17).Images:
release(default) orsourcerelease:ghcr.io/agent-substrate/substratefor the tag is labelled as built from the pinned commit (org.opencontainers.image.revision). Pinning the release's image digests themselves is tracked in Supported Substrate release catalog: choose version and image source, pin release image digests #17.az acr import.It needs no Docker or Podman.
source: builds the release images with the pinnedate-setup publish release-images, as before, adapted to 1.0. It's set ininstallation.json.Both: build the counter demo (releases don't publish it) and the plugin with ko.
Upstream patches: the old
root.gopatch is gone. Only the source track's Podman adapter remains: a single call swap and a Dockerfile base-image rewrite.Plugin deployment
config/,config/assets/) configure bothobjectstore-pluginsidecars. The installer fills their documented placeholders, checking that each appears exactly as often as the pinned plugin uses it, and renders them onto the pinnedatelet.yamlandate-api-server.yaml.deploy/components/storageis nowactor-images, which only sets up ACR pulls for actor images.hack/microvm-assets/assemble.shwas deleted upstream, so assets are assembled by the pinnedate-setup's own Go code through a small helper. They're uploaded as content-addressed blobs, and the moved SandboxConfig template is rendered for amd64.ate-setupon a non-GKE cluster1.0's
ate-setupassumes GCS on every non-kind cluster:ate-setupstarts reading them anywhere new.deploy ate-systemruns with--sandbox-classes gvisorand the installer applies the microVM SandboxConfig itself.agent-substrate/substrate#3651 proposes
--storage-backend=externaland--componentto replace both workarounds.Also in this PR
Router ingress: 1.0's
atenet-routeradmits no clients unless allowlisted. The installer allows theate-system/atenet-clientidentity thatkubectl ate proxyuses (ate-setup's--ingress-allowed-spiffe-ids), so the counter demo is reachable again. Anyone who can request that certificate, such as a cluster admin, can reach every actor.Worker pool options:
aks.workerPool.osDiskType(ManagedorEphemeral):Ephemeralputs the OS disk, and/var/lib/atewith it, on local NVMe on v6/v7 "d" sizes.osDiskSizeGB: 30–2048, and at most 2,040 forEphemeral(Azure's limit).maxPods: 10–250, otherwise the AKS default. AKS also needs room for at least 30 pods in the pool, somaxPods × countmust be at least 30.They're Bicep parameters, so direct deployments get them too. Preflight checks that an ephemeral disk fits the VM's local storage.
planandprovisionrefuse to change these on an existing pool, including removing a previously setmaxPods, since AKS can't change them. A dedicated local NVMe mount for/var/lib/ate/snapshotsis tracked in Dedicated local NVMe snapshot disk for microVM workers #18.Setup summary: shows the Substrate version, the image source and the plugin commit before billing approval. Choosing them in setup is tracked in Supported Substrate release catalog: choose version and image source, pin release image digests #17.
Install record and status: the install record now also stores the tag and plugin repository and commit, and
statusreports the installed Substrate and plugin revisions from it rather than from the local configuration.Upgrade guard first:
install,demoandclientcheck the install record before fetching source or checking images, so an installation from the previous pin gets the "upgrades are not implemented" message instead of an unrelated source error.Environment:
SETUP_CSIandSTORAGE_CLASSfrom the caller's shell no longer reach the pinnedate-setup, which reads both.Validation
make build verify test-unit test-contract biceppasses. The contracts now also:ate-setupwith every flag the installer passes;Standard_D8s_v7in westus3:init→provision→images→install→client→status→demoall succeeded.FetchSnapshot7.5 s) and continued.destroyleft no owned resource groups.Standard_D8ds_v7withEphemeral, 400 GB,maxPods30:diffDiskSettings {Local, NvmeDisk}, and/var/lib/atewas on the NVMe-backed root.destroyleft no owned resource groups.Standard_D8ds_v7in westus3:b34fbee7and were imported into ACR.provision→check→install→demo→clientsucceeded, andstatusreportedv1.0.0 (b34fbee74290)with pluginb21387e82ceefrom the install record.destroyleft no owned resource groups. Setup hit two transient Azure-side stops on the way (Operator access wait fails on the first probe while AKS RBAC is still propagating #19).Notes for reviewers
installafterprovisioncan hit Blob data-plane role propagation. Retrying works; that behavior isn't new.provisiongrants the upload identityContainer Registry Data Importer and Data Readeron the registry, whichaz acr importneeds. It writes images only through import, which the existing AcrPush grant already allows, and can't change registry settings; Contributor isn't required. It's granted in both image modes, so switchingimageSourcedoesn't need a re-provision.