Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-24.1] roachtestutil: dynamically determine block device to stall #123782

Merged

Conversation

itsbilal
Copy link
Member

@itsbilal itsbilal commented May 7, 2024

24.1 Backport of #123506.

Fixes #123622.


Previously, we hardcoded the block device on which to run the disk-stalled* roachtests and the disk-stall operation. This was a flaky approach as sometimes we'd use a local ssd as a block device which had very different numbers than a Google persistent disk.

This change updates the cgroup disk staller to programmatically determine the major/minor device numbers for the block device to stall (the one mounted at /mnt/data1). It also updates the dmsetup disk staller to dynamically determine the block device name mounted at /mnt/data1.

Fixes #123080, #123054.

Epic: none

Release note: None

Release Justification: roachtest-only change.

Previously, we hardcoded the block device on which to run
the disk-stalled* roachtests and the disk-stall operation.
This was a flaky approach as sometimes we'd use a local
ssd as a block device which had very different numbers
than a Google persistent disk.

This change updates the cgroup disk staller to programmatically
determine the major/minor device numbers for the block device
to stall (the one mounted at /mnt/data1). It also updates the
dmsetup disk staller to dynamically determine the block device
name mounted at /mnt/data1.

Fixes cockroachdb#123080, cockroachdb#123054.

Epic: none

Release note: None
@itsbilal itsbilal requested review from arulajmani, a team and jbowens May 7, 2024 20:53
@itsbilal itsbilal requested a review from a team as a code owner May 7, 2024 20:53
@itsbilal itsbilal requested review from herkolategan and renatolabs and removed request for a team May 7, 2024 20:53
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@itsbilal itsbilal merged commit f101034 into cockroachdb:release-24.1 May 8, 2024
19 of 20 checks passed
@itsbilal
Copy link
Member Author

itsbilal commented Jul 8, 2024

blathers backport 23.2

Copy link

blathers-crl bot commented Jul 8, 2024

Encountered an error creating backports. Some common things that can go wrong:

  1. The backport branch might have already existed.
  2. There was a merge conflict.
  3. The backport branch contained merge commits.

You might need to create your backport manually using the backport tool.


error creating merge commit from a8eec94 to blathers/backport-release-23.2-123782: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict []

you may need to manually resolve merge conflicts with the backport tool.

Backport to branch 23.2 failed. See errors above.


🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

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.

3 participants