-
Notifications
You must be signed in to change notification settings - Fork 22
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
Warnings about modified files during wazuh-indexer upgrade to 4.9.1 RC3 E2E UX test #450
Comments
NoteThe Debian package does not ask to overwrite the configuration files wazuh/wazuh#26187 (comment), based on #410 (comment), the package should have asked to overwrite it or not In the release test, those files are modified before the upgrade adding a comment to each file
|
The The test passes if the test line is added before the upgrade, as for the rest of files. root@ubuntu2204:/home/vagrant# for file in \
/etc/wazuh-indexer/opensearch-security/roles.yml; do
if [ -f "$file" ]; then
echo -e "\n# This file should not be modified during the upgrade." | sudo tee -a "$file"
else
echo "File $file does not exist, skipping."
fi
done
# This file should not be modified during the upgrade.
root@ubuntu2204:/home/vagrant# tail /etc/wazuh-indexer/opensearch-security/roles.yml
masked_fields: []
allowed_actions:
- "read"
- "delete"
- "manage"
- "index"
tenant_permissions: []
static: false
# This file should not be modified during the upgrade.
root@ubuntu2204:/home/vagrant# apt-get install wazuh-indexer
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be upgraded:
wazuh-indexer
1 upgraded, 0 newly installed, 0 to remove and 165 not upgraded.
Need to get 850 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://packages-dev.wazuh.com/pre-release/apt unstable/main amd64 wazuh-indexer amd64 4.9.1-1 [850 MB]
Fetched 748 MB in 29s (25.6 MB/s)
(Reading database ... 203441 files and directories currently installed.)
Preparing to unpack .../wazuh-indexer_4.9.1-1_amd64.deb ...
Running Wazuh Indexer Pre-Removal Script
Running Wazuh Indexer Pre-Installation Script
Unpacking wazuh-indexer (4.9.1-1) over (4.9.0-1) ...
Setting up wazuh-indexer (4.9.1-1) ...
Running Wazuh Indexer Post-Installation Script
### NOT starting on installation, please execute the following statements to configure wazuh-indexer service to start automatically using systemd
sudo systemctl daemon-reload
sudo systemctl enable wazuh-indexer.service
### You can start wazuh-indexer service by executing
sudo systemctl start wazuh-indexer.service
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@ubuntu2204:/home/vagrant# for file in \
/etc/wazuh-indexer/opensearch-security/config.yml \
/etc/wazuh-indexer/jvm.options \
/etc/wazuh-indexer/opensearch.yml \
/etc/wazuh-indexer/opensearch-security/internal_users.yml \
/etc/wazuh-indexer/opensearch-security/roles_mapping.yml \
/etc/wazuh-indexer/opensearch-security/roles.yml \
/etc/wazuh-dashboard/opensearch_dashboards.yml \
/etc/default/wazuh-dashboard \
/etc/wazuh-dashboard/opensearch_dashboards.keystore; do
grep -q "# This file should not be modified during the upgrade." "$file" && echo "PASSED: The phrase keeps appearing in: $file. The file has not been modified" || echo "FAILED: Missing phrase in $file. The file could have been modified"
done
PASSED: The phrase keeps appearing in: /etc/wazuh-indexer/opensearch-security/config.yml. The file has not been modified
PASSED: The phrase keeps appearing in: /etc/wazuh-indexer/jvm.options. The file has not been modified
PASSED: The phrase keeps appearing in: /etc/wazuh-indexer/opensearch.yml. The file has not been modified
PASSED: The phrase keeps appearing in: /etc/wazuh-indexer/opensearch-security/internal_users.yml. The file has not been modified
PASSED: The phrase keeps appearing in: /etc/wazuh-indexer/opensearch-security/roles_mapping.yml. The file has not been modified
PASSED: The phrase keeps appearing in: /etc/wazuh-indexer/opensearch-security/roles.yml. The file has not been modified
PASSED: The phrase keeps appearing in: /etc/wazuh-dashboard/opensearch_dashboards.yml. The file has not been modified
PASSED: The phrase keeps appearing in: /etc/default/wazuh-dashboard. The file has not been modified
PASSED: The phrase keeps appearing in: /etc/wazuh-dashboard/opensearch_dashboards.keystore. The file has not been modified |
Hello Team,
Durring the testing of wazuh/wazuh#26187 at the point of verifying configuration files weren't modified on the Wazuh indexer node, I got the warning output below:
The text was updated successfully, but these errors were encountered: