Bug 2374205

Summary: Fix swap allocation by SwapInitializer
Product: [Fedora] Fedora EPEL Reporter: Ayushmaan Banerjee <ayushmn>
Component: ec2-hibinit-agentAssignee: David Duncan <davdunc>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: epel9CC: cloud-sig, davdunc, dominik
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ayushmaan Banerjee 2025-06-22 17:02:17 UTC
Description of problem:
SwapInitializer was not using the greater of the two configuration options: percentage-of-ram and target-size-mb, but instead just target-size-mb in EPEL-8/9 (not tested in EPEL-10). 

Version-Release number of selected component (if applicable):
Latest

Ref: https://github.com/aws/amazon-ec2-hibinit-agent/pull/48

Fix: https://github.com/aws/amazon-ec2-hibinit-agent/commit/3700a58fb73778dd02d37617b952766d4828e332

Comment 1 Ayushmaan Banerjee 2025-06-22 17:02:41 UTC
*** Bug 2374204 has been marked as a duplicate of this bug. ***

Comment 2 David Duncan 2025-06-23 13:09:59 UTC
Reviewed with Banerjee. I am working on this today.