Skip to content

(maint) Request larger boot disks for PE acceptance VMs - #258

Open
span786 wants to merge 1 commit into
mainfrom
maint/main/pe-acceptance-disk-size
Open

span786 wants to merge 1 commit into
mainfrom
maint/main/pe-acceptance-disk-size

Conversation

@span786

@span786 span786 commented Nov 26, 2026

Copy link
Copy Markdown

Summary

Four PE acceptance jobs fail on every PR because the test VM runs out of disk, not because of the PR's code: AlmaLinux-8 (latest and LTS), Ubuntu-2204 and Ubuntu-2404. It happened on #254 (run 42893468006) and #256 (run 43406074655). This PR asks provision_service for a 40 GB boot disk, and makes the disk-full test tolerate a disk that is already nearly full.

Related: MODULES-12083 / #256. Those failures block its CI.

Root cause

provision_service creates each GCP VM with the source image's default boot disk. After PE 2026.0.1 or 2023.8.13 is installed, these images have less than 20% free on /:

  • S0007/S0008 are false from the start. The default-parameters idempotency tests (pe_status_check_spec.rb:10, :20, :40) then fail on "S0007/S0008 is at fault" notices.
  • On some images less than 1 GiB is left. The fallocate -l $((available_bytes - 1 GiB)) in the "filesystem usage exceeds 80%" context then gets a negative length and fails with fallocate: invalid length value specified (:88, :93).

RHEL-9, Rocky-8/9 and Alma-9 pass.

Changes

  • pe_latest_testing.yml, pe_lts_testing.yml and pe_nightly_testing.yml each get a top-level env: PROVISION_DISK_SIZE_GB: "40".
    • The provision::provision_service task (provision ≥ 3.2.0; .fixtures.yml pulls provision from main) sends this to the service as disk_size_gb. Support for it was added in provision_service 3610676 for the same PE 2026.0 disk issue in peadm.
    • puppetlabs-pe_databases uses the same value.
    • The nightly workflow provisions through peadm_spec::provision_test_cluster provider=provision_service, which runs the same task locally.
  • In spec/acceptance/pe_status_check_spec.rb, the fallocate now runs only when the computed length is positive. If 1 GiB or less is free, the disk is already past the 80% threshold the test needs, so S0007/S0008 are still checked. An undersized disk is not hidden: the default-parameters tests still fail.

Testing

  • All three workflows parse as YAML, and each has env.PROVISION_DISK_SIZE_GB == "40".
  • ruby -c passes on the spec, and rubocop on the spec reports no offenses.
  • rake syntax lint metadata_lint is clean.
  • I checked the shell guard on its own: 5 GiB available allocates 4 GiB, and 500 MiB available skips.
  • Not run: PE acceptance. This PR's own CI run is the real test.

🤖 Generated with Claude Code

The AlmaLinux-8 (PE latest and LTS), Ubuntu-2204 and Ubuntu-2404 PE
acceptance jobs fail on every PR (#254, #256). provision_service creates
GCP VMs with the source image's default boot disk, and after installing
PE 2026.0.1 or 2023.8.13 those disks have less than 20% free. S0007 and
S0008 therefore report false straight away, so the default-parameters
idempotency checks fail. On some images less than 1 GiB is left, so the
fallocate in the "filesystem usage exceeds 80%" context gets a negative
length and fails with "invalid length value specified".

Set PROVISION_DISK_SIZE_GB=40 for the latest, LTS and nightly PE
acceptance workflows. The provision_service task (provision >= 3.2.0,
pulled from main via .fixtures.yml) sends it to the service as
disk_size_gb. puppetlabs-pe_databases uses the same setting.

Also guard the fallocate so it is skipped when 1 GiB or less is free.
The disk is then already past the 80% threshold the test needs, so
S0007/S0008 are still checked. An undersized disk still shows up as a
failure in the default-parameters tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MartyEwings

MartyEwings commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

just so you are aware these workflows are centrally synced from here:

https://perforce.atlassian.net/wiki/spaces/Support/pages/372381569/How-To+Release+and+Publish+a+Support+Authored+Module#Modules-Using-the-Workflows

if anyone follows the existing workflow process, your repo side changes will be overwritten

https://github.com/puppetlabs/support_workflows/blob/main/.github/workflows/sync_workflows.yml

@span786

span786 commented Nov 27, 2026

Copy link
Copy Markdown
Author

Thanks @MartyEwings, good catch. I've opened https://github.com/puppetlabs/support_workflows/pull/71 to make the same PROVISION_DISK_SIZE_GB: "40" change in support_workflows/workflows/pe_{latest,lts,nightly}_testing.yml, so the sync won't revert it. The content is byte-identical, so once that merges, the workflow part of this PR becomes a no-op on the next sync.

On this PR, the previously failing PE jobs now pass: AlmaLinux-8 and Ubuntu-2204/2404 on both latest and LTS. The fallocate guard in spec/acceptance/pe_status_check_spec.rb is module-side and isn't synced, so it stays here.

@span786
span786 marked this pull request as ready for review November 27, 2026 08:36
@span786
span786 requested review from a team as code owners November 27, 2026 08:36
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.

2 participants