-
Notifications
You must be signed in to change notification settings - Fork 97
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
Add necessary functions to allow upgrade using installation assistant #1771
base: 4.4
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor changes, THX.
Include a test battery definitions into the issue and include a proof of tests.
0fbb5a7
to
405d0de
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Add a filebeat module version checker to upgrade the module if needed.
- Additionally, this situation is not acceptable:
[root@ip-172-31-21-23 unattended_installer]# bash wazuh-install.sh -up
10/11/2022 15:08:40 INFO: Starting Wazuh installation assistant. Wazuh version: 4.4.0
10/11/2022 15:08:40 INFO: Verbose logging redirected to /var/log/wazuh-install.log
10/11/2022 15:08:42 INFO: --- Upgrading existing Wazuh installation ---
10/11/2022 15:08:49 WARNING: Wazuh manager can be upgraded but version does not match with the installation assistant version
10/11/2022 15:08:49 WARNING: Filebeat is already installed and is up to date.
10/11/2022 15:08:49 WARNING: Wazuh Indexer can be upgraded but version does not match with the installation assistant version
10/11/2022 15:08:49 INFO: Upgrading Wazuh Dashboard to 4.4.0
When more than one component is installed, you can't upgrade one and leave the other without the same version (excluding filebeat).
- Message
10/11/2022 15:08:49 WARNING: Wazuh manager can be upgraded but version does not match with the installation assistant version
needs to be10/11/2022 15:08:49 WARNING: Wazuh manager can be upgraded but the version does not match the installation assistant version
493b19c
to
75c0471
Compare
elif [ "${sys_type}" == "apt-get" ]; then | ||
indexer_installed=$(apt list --installed 2>/dev/null | grep wazuh-indexer) | ||
indexer_installed=$(apt list --installed 2>/dev/null | grep wazuh-indexer | cut -d' ' -f2 | sed -e "s/-.*//") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two lines before you call command sed "s/-.*//g"
, without using argument -e
. What is the reason for the inconsistency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed c32120b
elif [ "${sys_type}" == "apt-get" ]; then | ||
filebeat_installed=$(apt list --installed 2>/dev/null | grep filebeat) | ||
filebeat_installed=$(apt list --installed 2>/dev/null | grep filebeat | cut -d' ' -f2 | sed -e "s/-.*//") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
elif [ "${sys_type}" == "apt-get" ]; then | ||
dashboard_installed=$(apt list --installed 2>/dev/null | grep wazuh-dashboard) | ||
dashboard_installed=$(apt list --installed 2>/dev/null | grep wazuh-dashboard | cut -d' ' -f2 | sed -e "s/-.*//") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed c32120b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pull request doesn't take into account the rolling upgrade for an Indexer cluster.
Added lsof as a dependency of the unattended installer
Add double-quoting to `config.yml` IPs to avoid errors with the parser
…iable Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Change the relative path used in checkFilebeat for a defined path variable
…-wazuh-indexer-log-files-tomaster Removed errors logs from OVA to master
…-tomaster Remove parameter -b to depothelper
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
…er removal of the service on agent Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
…ting docker containers Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
* Initial version of the Offline installation action * Improval of Offline installation action * Finished workflow * Fix workflow and filebeat installation * Starting services manually in RPM test * Action finished * Added -I to checkFilebeatURL curls * Added check_shards function to the Action * Added -I to offline curls * Improval of the offline test workflow * General improvements of the Offline installation action * Improval of the Offline installation workflow * Added common_curl to offline-download
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
…pull request is merged Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
Fix the new GitHub Actions tests
Avoid installing `init.d` services when `init.d` is completely deprecated
…2-upgrade-installation-assistant
Description
This PR adds new functions to the installation assistant to upgrade existing installations.
-up|--upgrade
functionLogs example
Tests