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

Updates Docker and windows distribution build files to reflect to changes in admin user setup #4274

Merged

Conversation

DarshitChanpura
Copy link
Member

@DarshitChanpura DarshitChanpura commented Dec 8, 2023

Description

As a follow-up of #4250, this PR updates docker and windows distribution install script to adapt to changes in demo configuration setup.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link

codecov bot commented Dec 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4b0b53d) 91.35% compared to head (4a34e4e) 91.35%.
Report is 12 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4274   +/-   ##
=======================================
  Coverage   91.35%   91.35%           
=======================================
  Files         190      190           
  Lines        6175     6175           
=======================================
  Hits         5641     5641           
  Misses        534      534           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DarshitChanpura
Copy link
Member Author

@prudhvigodithi @rishabh6788 Mind reviewing this?

@@ -35,6 +36,7 @@ services:
- cluster.initial_cluster_manager_nodes=opensearch-node1,opensearch-node2
- bootstrap.memory_lock=true
- OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_INITIAL_ADMIN_PASSWORD}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these changes the default docker-compose files for 2.x line to now include an additional env variable (to be passed by user) to set the admin password.

This will be accompanied by the change in download instructions on the project-website (file to change) to reflect the new requirement as an additional step.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to add a comment for this line, so that people knows it is only for 2.12.0 and up.
Also, the documentation and the download page needs to be tweaked with the same changes as well.

https://opensearch.org/docs/2.11/install-and-configure/install-opensearch/docker/
https://opensearch.org/downloads.html

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @DarshitChanpura please take a look at this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added it above, and following the convention, I didn't add it second time as no other settings that have comments on the first one have comments here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the comment to mention that it is required for 2.12 and higher

@DarshitChanpura
Copy link
Member Author

@peterzhuamazon @prudhvigodithi @rishabh6788 Can I please get more reviews?

@DarshitChanpura
Copy link
Member Author

DarshitChanpura commented Jan 8, 2024

@peterzhuamazon @prudhvigodithi @rishabh6788 Could I please get reviews on this? We suspect this is currently causing integ tests to fail, and merging this will unblock them.

@peterzhuamazon
Copy link
Member

@peterzhuamazon
Copy link
Member

Also need @prudhvigodithi to confirm on @DarshitChanpura comment above regarding keeping the exit 1 for docker and tar, but remove for deb and rpm.

@DarshitChanpura
Copy link
Member Author

Also need @prudhvigodithi to confirm on @DarshitChanpura comment above regarding keeping the exit 1 for docker and tar, but remove for deb and rpm.

@peterzhuamazon RPM and DEB setup already has set -e and hence no need for || exit 1. There are no changes to RPM/DEB setup in this PR.

@DarshitChanpura
Copy link
Member Author

@peterzhuamazon Could I get re-review on this PR?

@prudhvigodithi
Copy link
Member

The same #4250 (comment) goes here as well.

@prudhvigodithi
Copy link
Member

prudhvigodithi commented Jan 11, 2024

@DarshitChanpura can you please use as echo -e "This is a line with a new line.\nThis is the second line." to print statements in a new line. We dont need 3 echo lines.

This is a line with a new line.
This is the second line

@DarshitChanpura
Copy link
Member Author

Similar to #4250 (comment), I've updated docker related scripts with printf. There is no echo -e or printf for windows from what I understand

@DarshitChanpura
Copy link
Member Author

@peterzhuamazon @prudhvigodithi @rishabh6788 Could I get some more reviews?

Signed-off-by: Darshit Chanpura <[email protected]>
@DarshitChanpura
Copy link
Member Author

@peterzhuamazon Is there anything blocking this PR still?

@DarshitChanpura
Copy link
Member Author

CI task seemed to have failed due to connectivity issues, and re-run should solve it.

Warning: Failed to download action 'https://api.github.com/repos/codecov/codecov-action/tarball/f32b3a3741e1053eb607407145bc9619351dc93b'. Error: Operation timed out (api.github.com:443)
Warning: Back off 21.499 seconds before retry.
Warning: Failed to download action 'https://api.github.com/repos/codecov/codecov-action/tarball/f32b3a3741e1053eb607407145bc9619[35](https://github.com/opensearch-project/opensearch-build/actions/runs/7546189581/job/20543417266?pr=4274#step:1:39)1dc93b'. Error: Operation timed out (api.github.com:443)
Warning: Back off 24.923 seconds before retry.
Error: nodename nor servname provided, or not known (api.github.com:443)

@DarshitChanpura
Copy link
Member Author

DarshitChanpura commented Jan 18, 2024

@peterzhuamazon @rishabh6788 Could I get some more reviews?

@DarshitChanpura
Copy link
Member Author

@peterzhuamazon Could I get your reviews on this? Also could you or a maintainer trigger re-run for Lint Checker as it timed out during the latest run.

@peterzhuamazon peterzhuamazon merged commit 5f47981 into opensearch-project:main Jan 19, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants