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

Check available space before the installation with the installation assistant #56

Conversation

Enaraque
Copy link
Member

Description

Previously, when Wazuh was installed using the installation assistant and there wasn't enough space to complete the installation, an attempt was made to remove the components, but this failed, leaving them unremovable #5 (comment).

To address this, it was decided that before any installation, the available space in each directory used by the Wazuh installation should be checked. This is necessary because if only the disk space is checked, we may not be verifying all the required space, as the user may have different partitions configured #5 (comment).

After investigating which directories Wazuh uses and how much space it occupies after installation #5 (comment), a function has been implemented that checks the available space for each partition and compares it to the required space to ensure a successful installation.

Tests

Several tests have been conducted to verify the proper functioning of this solution. These include verifying that the installation proceeds correctly when sufficient space is available, as well as ensuring that, with a partition created for a specific directory, the components are not installed due to insufficient space.

Them can be found here:

Related issue

@Enaraque Enaraque requested a review from a team September 12, 2024 15:52
@Enaraque Enaraque self-assigned this Sep 12, 2024
c-bordon
c-bordon previously approved these changes Oct 9, 2024
@c-bordon c-bordon merged commit b2f4e7a into main Oct 17, 2024
0 of 2 checks passed
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.

Installation assistant fails to remove wazuh component upon lack of space error
2 participants