Skip to content

ci: change deploy.sh to programmatically enumerate disks#10383

Open
hawkw wants to merge 1 commit intomainfrom
eliza/resock
Open

ci: change deploy.sh to programmatically enumerate disks#10383
hawkw wants to merge 1 commit intomainfrom
eliza/resock

Conversation

@hawkw
Copy link
Copy Markdown
Member

@hawkw hawkw commented May 6, 2026

At present, the deploy.sh buildomat job hard-codes the disk names c1t1d0 and c2t1d0 when creating a scratch zpool. This means that, should the job run on a computer which does not have disks by those names, it will, of course, not work. This is sad because, after sock was pulled from the Build-O-Mat worker pool due to a failed disk, the replacement NVMe device shows up with a WWN in its name and therefore breaks the hard-coded assumption. We really should never have been doing that.

Thus, this commit changes it to just list NVMe block device names by invoking nvmeadm list -p -o disk, and using the returned block devices to create the scratch zpool. This should work no matter what NVMe devices @InternalIncident puts in the two new imminently arriving buildomat workers, too! Yay!

Fixes #10354

At present, the `deploy.sh` buildomat job hard-codes the disk names
`c1t1d0` and `c2t1d0` when creating a scratch zpool. This means that,
should the job run on a computer which does not have disks by those
names, it will, of course, not work. This is sad because, after `sock`
was pulled from the Build-O-Mat worker pool due to a failed disk, the
replacement NVMe device shows up with a WWN in its name and therefore
breaks the hard-coded assumption. We really should never have been doing
that.

Thus, this commit changes it to just list NVMe block device names by
invoking `nvmeadm list -p -o disk`, and using the returned block devices
to create the scratch zpool. This should work no matter what NVMe
devices  @InternalIncident puts in the two new imminently arriving
buildomat workers, too! Yay!

Fixes #10354
@hawkw hawkw requested review from iliana and jclulow May 6, 2026 03:53
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.

deploy job should not hard code disk device names

1 participant