fix: lower ama free disk space check for '/etc' directory#2150
Open
joostdebruijn wants to merge 1 commit intoAzure:masterfrom
Open
fix: lower ama free disk space check for '/etc' directory#2150joostdebruijn wants to merge 1 commit intoAzure:masterfrom
joostdebruijn wants to merge 1 commit intoAzure:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request makes a small change to the disk space check logic in the
check_disk_space_availabilityfunction during the installation of the Azure Monitoring Agent. The minimum required free space for the/etcdirectory has been reduced from 500 MB to 5 MB.In security-hardened environments (e.g., those following CIS Benchmarks), it is standard practice to implement Filesystem Segmentation, where directories like
/etc,/var, and/optare mounted on separate logical volumes or partitions. The current 500 MB requirement is prohibitive for these environments. A dedicated/etcpartition is often sized conservatively (e.g., 1-2 GB total), and requiring 500 MB of free space forces administrators to unnecessarily resize system partitions. Since the Azure Monitoring Agent primarily uses /etc for small configuration files (storing binaries in/optand logs in/var), the actual footprint in/etcis negligible (typically kilobytes).Checking for 5MB maintains a safe buffer for config generation while resolving installation blockers on partitioned systems.