forked from opensearch-project/OpenSearch-Dashboards
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Terminal freezes on deb upgrade #316
Merged
Merged
Conversation
This file contains 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
Test Deb 🟢The upgrade to 4.9.1 from 4.8.2 didn't freeze the terminal. root@ubuntu-jammy:/etc/wazuh-dashboard# dpkg -i /vagrant/packages/wazuh-dashboard_4.9.1-1_amd64_1f08cd29c4.deb
(Reading database ... 178533 files and directories currently installed.)
Preparing to unpack .../wazuh-dashboard_4.9.1-1_amd64_1f08cd29c4.deb ...
Unpacking wazuh-dashboard (4.9.1-1) over (4.8.2-1) ...
Setting up wazuh-dashboard (4.9.1-1) ...
Installing new version of config file /etc/systemd/system/wazuh-dashboard ...
Installing new version of config file /etc/wazuh-dashboard/node.options ...
Configuration file '/etc/wazuh-dashboard/opensearch_dashboards.yml'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** opensearch_dashboards.yml (Y/I/N/O/D/Z) [default=N] ?
Check keystore root@ubuntu-jammy:/home/vagrant# ls -la /etc/wazuh-dashboard/
certs/ opensearch_dashboards.keystore opensearch_dashboards.yml.dpkg-dist
node.options opensearch_dashboards.yml Test RPM 🟢The upgrade to 4.9.1 from 4.8.2 didn't freeze the terminal. [root@localhost vagrant]# yum localinstall /vagrant/packages/wazuh-dashboard_4.9.1-1_x86_64_398a9479ed.rpm
Failed to set locale, defaulting to C.UTF-8
CentOS Linux 8 - AppStream 21 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 58 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
Dependencies resolved.
======================================================================================================================================
Package Architecture Version Repository Size
======================================================================================================================================
Upgrading:
wazuh-dashboard x86_64 4.9.1-1 @commandline 253 M
Transaction Summary
======================================================================================================================================
Upgrade 1 Package
Total size: 253 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: wazuh-dashboard-4.9.1-1.x86_64 1/1
Running scriptlet: wazuh-dashboard-4.9.1-1.x86_64 1/2
Upgrading : wazuh-dashboard-4.9.1-1.x86_64 1/2
warning: /etc/wazuh-dashboard/opensearch_dashboards.yml created as /etc/wazuh-dashboard/opensearch_dashboards.yml.rpmnew
Running scriptlet: wazuh-dashboard-4.9.1-1.x86_64 1/2
Running scriptlet: wazuh-dashboard-4.8.2-1.x86_64 2/2
Cleanup : wazuh-dashboard-4.8.2-1.x86_64 2/2
Running scriptlet: wazuh-dashboard-4.8.2-1.x86_64 2/2
Running scriptlet: wazuh-dashboard-4.9.1-1.x86_64 2/2
Running scriptlet: wazuh-dashboard-4.8.2-1.x86_64 2/2
Verifying : wazuh-dashboard-4.9.1-1.x86_64 1/2
Verifying : wazuh-dashboard-4.8.2-1.x86_64 2/2
Upgraded:
wazuh-dashboard-4.9.1-1.x86_64
Complete!
Check keystore [root@localhost vagrant]# ls -la /etc/wazuh-dashboard/
certs/ opensearch_dashboards.keystore opensearch_dashboards.yml.rpmnew
node.options opensearch_dashboards.yml |
asteriscos
previously approved these changes
Sep 19, 2024
asteriscos
approved these changes
Sep 19, 2024
TestRPM🟢[root@fedora37 vagrant]# yum install /vagrant/wazuh-dashboard_4.9.1-1_x86_64_398a9479ed.rpm
Last metadata expiration check: 0:02:55 ago on Thu 19 Sep 2024 10:52:50 AM UTC.
Dependencies resolved.
======================================================================================================
Package Architecture Version Repository Size
======================================================================================================
Upgrading:
wazuh-dashboard x86_64 4.9.1-1 @commandline 253 M
Transaction Summary
======================================================================================================
Upgrade 1 Package
Total size: 253 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: wazuh-dashboard-4.9.1-1.x86_64 1/2
Upgrading : wazuh-dashboard-4.9.1-1.x86_64 1/2
Running scriptlet: wazuh-dashboard-4.9.1-1.x86_64 1/2
Running scriptlet: wazuh-dashboard-4.9.0-2.x86_64 2/2
Cleanup : wazuh-dashboard-4.9.0-2.x86_64 2/2
Running scriptlet: wazuh-dashboard-4.9.0-2.x86_64 2/2
Running scriptlet: wazuh-dashboard-4.9.1-1.x86_64 2/2
Running scriptlet: wazuh-dashboard-4.9.0-2.x86_64 2/2
Verifying : wazuh-dashboard-4.9.1-1.x86_64 1/2
Verifying : wazuh-dashboard-4.9.0-2.x86_64 2/2
Upgraded:
wazuh-dashboard-4.9.1-1.x86_64
Complete! DEB 🟢
|
JuanGarriuz
approved these changes
Sep 19, 2024
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!!
Desvelao
pushed a commit
that referenced
this pull request
Sep 23, 2024
yenienserrano
pushed a commit
to yenienserrano/wazuh-dashboard
that referenced
this pull request
Oct 2, 2024
…rch-project#6427) (opensearch-project#6628) * [Workspace] Jump to non-workspace url when clicking home icon (wazuh#316) * temp: save * feat: complete the feature * feat: remove useless code * fix: bootstrap error * fix: bootstrap error * fix: page not found error * fix: anchor href * feat: update toNavLink to comply with workspace * feat: change to workspaceless * feat: change to workspaceless * feat: change to workspaceless * feat: register list and create page as workspaceless * feat: optimize code * feat: update to WorkspaceVisibility * feat: add unit test * feat: optimize the jump logic * fix: unit test * feat: make app inaccessible if workspaceAccessibility is No --------- * refactor: using WorkspaceAvailability * feat: change test name * feat: update wording * feat: update test * feat: add unit test * feat: remove CHANGELOG change * Changeset file for PR opensearch-project#6427 created/updated * Apply suggestions from code review * Update src/plugins/workspace/public/utils.test.ts * Lint src/plugins/workspace/public/utils.test.ts * Lint src/plugins/workspace/public/utils.test.ts * Lint src/plugins/workspace/public/utils.test.ts * fix: lint error * fix: unit test --------- (cherry picked from commit 104ee42) Signed-off-by: SuZhou-Joe <[email protected]> Signed-off-by: Miki <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> Co-authored-by: Yulong Ruan <[email protected]> Co-authored-by: Miki <[email protected]>
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.
Description
This PR fixes a problem that caused upgrades in
deb
environments to freeze the terminal until the user presses enter. The problem was also inrpm
packages, but it didn't cause any terminal issues.Issues Resolved
#301
Test
RPM
DEB
Check List
yarn test:jest
yarn test:jest_integration