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

Add PA fix to missing config files errors #3090

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/components/OpenSearch-Dashboards/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ while getopts ":h:v:s:o:p:a:d:f:" arg; do
DISTRIBUTION=$OPTARG
;;
f)
ARTIFACTS=$ARTIFACTS
ARTIFACTS=$OPTARG
;;
:)
echo "Error: -${OPTARG} requires an argument"
Expand Down
2 changes: 1 addition & 1 deletion scripts/components/OpenSearch/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ while getopts ":h:v:s:o:p:a:d:f:" arg; do
DISTRIBUTION=$OPTARG
;;
f)
ARTIFACTS=$ARTIFACTS
ARTIFACTS=$OPTARG
;;
:)
echo "Error: -${OPTARG} requires an argument"
Expand Down
16 changes: 6 additions & 10 deletions scripts/components/performance-analyzer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ while getopts ":h:v:s:o:p:a:f:" arg; do
ARCHITECTURE=$OPTARG
;;
f)
ARTIFACTS=$ARTIFACTS
ARTIFACTS=$OPTARG
;;
:)
echo "Error: -${OPTARG} requires an argument"
Expand All @@ -71,13 +71,9 @@ fi
## Setup Performance Analyzer Agent
mv $OUTPUT/plugins/opensearch-performance-analyzer/performance-analyzer-rca $OUTPUT/

## Create data directory by default
## Do nothing if the directory already exists
mkdir -p $OUTPUT/data

## Performance Analyzer Configs
echo 'true' > $OUTPUT/data/rca_enabled.conf
echo 'true' > $OUTPUT/config/performance_analyzer_enabled.conf
echo 'true' > $OUTPUT/config/rca_enabled.conf


if echo $ARTIFACTS | grep -Eo '/deb/|/rpm/'; then
echo "DEB/RPM configs"
echo 'true' > $OUTPUT/../var/lib/opensearch/rca_enabled.conf
echo 'true' > $OUTPUT/../var/lib/opensearch/performance_analyzer_enabled.conf
fi
2 changes: 1 addition & 1 deletion scripts/default/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ while getopts ":h:v:q:s:o:p:a:f:" arg; do
ARCHITECTURE=$OPTARG
;;
f)
ARTIFACTS=$ARTIFACTS
ARTIFACTS=$OPTARG
;;
:)
echo "Error: -${OPTARG} requires an argument"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@ exit 0
%config(noreplace) %{config_dir}/%{name}.yml
%config(noreplace) %{config_dir}/jvm.options
%config(noreplace) %{config_dir}/log4j2.properties
%config(noreplace) %{config_dir}/performance_analyzer_enabled.conf
%config(noreplace) %{data_dir}/rca_enabled.conf
%config(noreplace) %{config_dir}/rca_enabled.conf

# Service files
%attr(0644, root, root) %{_prefix}/lib/systemd/system/%{name}.service
Expand Down