-
Notifications
You must be signed in to change notification settings - Fork 113
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
Skipping internal setup of ES and PG in case of External config #6606
Conversation
Signed-off-by: shanmugapriya-tr <shanmugapriya.tiruchengoderamanathan@progress.com>
Signed-off-by: shanmugapriya-tr <shanmugapriya.tiruchengoderamanathan@progress.com>
1. Added the code to skip the automate-elasticsearch service if External is enabled 2. Decoupled the es-sidecar service from automate-elasticsearch 3. Moved the code to skip the status check for removed services in ensureStatus Signed-off-by: sandhi <sagarwal@progress.com>
Signed-off-by: shanmugapriya-tr <shanmugapriya.tiruchengoderamanathan@progress.com>
✔️ Deploy Preview for chef-automate ready! 🔨 Explore the source changes: fc11bc0 🔍 Inspect the deploy log: https://app.netlify.com/sites/chef-automate/deploys/62317a693a8507000890617d 😎 Browse the preview: https://deploy-preview-6606--chef-automate.netlify.app |
Signed-off-by: shanmugapriya-tr <shanmugapriya.tiruchengoderamanathan@progress.com>
Signed-off-by: shanmugapriya-tr <shanmugapriya.tiruchengoderamanathan@progress.com>
Signed-off-by: shanmugapriya-tr <shanmugapriya.tiruchengoderamanathan@progress.com>
1. Added the code to skip the automate-elasticsearch service if External is enabled 2. Decoupled the es-sidecar service from automate-elasticsearch 3. Moved the code to skip the status check for removed services in ensureStatus Signed-off-by: sandhi <sagarwal@progress.com>
Signed-off-by: shanmugapriya-tr <shanmugapriya.tiruchengoderamanathan@progress.com>
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. just use const instead of stings.
Signed-off-by: shanmugapriya-tr <shanmugapriya.tiruchengoderamanathan@progress.com>
Signed-off-by: shanmugapriya-tr <shanmugapriya.tiruchengoderamanathan@progress.com>
@kalroy @karunesh-tech - I have rebased the branch with main. The build failures are not related to the changes done as a part of this PR. Please approve the PR if it is good to be merged |
* Fixing License Scout Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * Fixing License Scout for msgp Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com>
* added Todo(milestone) for the servers Signed-off-by: Kallol Roy <karoy@progress.com> * added more Todo(milestone) for the servers Signed-off-by: Kallol Roy <karoy@progress.com> * adding to-dos Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * upgrading to minor/patch version (#6621) * upgrade to minor\patch Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * supporting sem version Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * considering version flag in upgrade Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * compute min current version for airgap bundle create- second pr (#6665) * adding min current version to manifest in bundle creation Signed-off-by: Rick Marry <rick.marry@gmail.com> * adding min current version to manifest in bundle creation Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> Co-authored-by: dmaddu <durgasaratchandra.maddu@progress.com> * major upgrade with checklist (#6660) Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * fixing buildkite (#6674) Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * airgap bundle upgrade (#6682) * airgap upgrade Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * upgrade status for airgap Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * upgrade status for airgap instance Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * addressing review comments Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * Show Major Version Release Banner on UI (#6663) * banner-manual-upgrade changes Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * add banner logo Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * updating error messages to be shown to end user (#6714) Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * ignoring semgrep rule Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * fixing pipeline issue (#6717) Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * supporting external versions file (#6748) * supporting external versions file Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * fixing pipeline Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * showing pre post Checklist for milestone release (#6706) * postchecklist Signed-off-by: shaik80 <smudassi@progress.com> * json file Signed-off-by: shaik80 <smudassi@progress.com> * readPostCheckList Signed-off-by: shaik80 <smudassi@progress.com> * read json file for postchecklist Signed-off-by: shaik80 <smudassi@progress.com> * upgrade to major and and print postchecklist steps Signed-off-by: shaik80 <smudassi@progress.com> * test cases and basic changes Signed-off-by: shaik80 <smudassi@progress.com> * dynamic version Signed-off-by: shaik80 <smudassi@progress.com> * old manifests url Signed-off-by: shaik80 <smudassi@progress.com> * error handling in upgrade status if we don't hav compatible version Signed-off-by: shaik80 <smudassi@progress.com> * update json file func changes Signed-off-by: shaik80 <smudassi@progress.com> * add version in json file Signed-off-by: shaik80 <smudassi@progress.com> * Pre and post checklist for embedded and external PG (#6705) * changes for pre post checklist Signed-off-by: Vivek Shankar <vshankar@progress.com> * minor changes Signed-off-by: Vivek Shankar <vshankar@progress.com> * changed formatting Signed-off-by: Vivek Shankar <vshankar@progress.com> * id changes Signed-off-by: Vivek Shankar <vshankar@progress.com> * Pg external Signed-off-by: shaik80 <smudassi@progress.com> * minor fmt changes Signed-off-by: Vivek Shankar <vshankar@progress.com> * spell check Signed-off-by: shaik80 <smudassi@progress.com> * variable change Signed-off-by: shaik80 <smudassi@progress.com> * remove log Signed-off-by: shaik80 <smudassi@progress.com> * postchecklist new structure Signed-off-by: shaik80 <smudassi@progress.com> * added new interface function for post checklist Signed-off-by: Vivek Yadav <vivek.yadav@progress.com> * get post checklist implementation added Signed-off-by: Vivek Yadav <vivek.yadav@progress.com> * feed back changes Signed-off-by: shaik80 <smudassi@progress.com> * code modification Signed-off-by: shaik80 <smudassi@progress.com> * if file not found return nil Signed-off-by: shaik80 <smudassi@progress.com> * if file not found don't throw an error Signed-off-by: shaik80 <smudassi@progress.com> * remove log and lint fix Signed-off-by: shaik80 <smudassi@progress.com> * NewChecklistManager remove major version param Signed-off-by: shaik80 <smudassi@progress.com> * Fixing pipeline issues Signed-off-by: shaik80 <smudassi@progress.com> * title for post checklist in upgrade status Signed-off-by: shaik80 <smudassi@progress.com> * making global constant Signed-off-by: shaik80 <smudassi@progress.com> Co-authored-by: vivekshankar1 <59958706+vivekshankar1@users.noreply.github.com> Co-authored-by: Vivek Shankar <vshankar@progress.com> Co-authored-by: Vivek Yadav <vivek.yadav@progress.com> Co-authored-by: dmaddu <durgasaratchandra.maddu@progress.com> * partial changes to fix pipeline Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * hiding versions-file flag to end users Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * removing the commented code Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * hiding the banner Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com> * Fix automate UI pipeline issue (#6790) * pipline fix Signed-off-by: shaik80 <sh.mudassir98@gmail.com> * automate pipline fix Signed-off-by: shaik80 <sh.mudassir98@gmail.com> Co-authored-by: shaik80 <sh.mudassir98@gmail.com> Co-authored-by: Kallol Roy <karoy@progress.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Shaik Mudassir <47217471+shaik80@users.noreply.github.com> Co-authored-by: vivekshankar1 <59958706+vivekshankar1@users.noreply.github.com> Co-authored-by: Vivek Shankar <vshankar@progress.com> Co-authored-by: Vivek Yadav <vivek.yadav@progress.com> Co-authored-by: shivangisingh <87964433+shivangi-singh1@users.noreply.github.com> Co-authored-by: shaik80 <sh.mudassir98@gmail.com>
Obvious fix; these changes are the result of automation not creative thinking.
Signed-off-by: Durga Sarat Chandra Maddu <durgasaratchandra.maddu@progress.com>
* upgrade es version to 6.8.23 in automate-ha * side car package bump to avaoid the confusion Signed-off-by: punitmundra <punitmundra2008@gmail.com>
* set git config global Signed-off-by: Vivek Yadav <vivek.yadav@progress.com> * updated commit id of epgsql Signed-off-by: Vivek Yadav <vivek.yadav@progress.com> * log git config updated in license scout Signed-off-by: Vivek Yadav <vivek.yadav@progress.com> * changed url in git config override Signed-off-by: Vivek Yadav <vivek.yadav@progress.com> * fix git:// in build and unit test of notification Signed-off-by: Vivek Yadav <vivek.yadav@progress.com>
@kalroy Please review and approve the PR. |
Signed-off-by: shanmugapriya-tr <shanmugapriya.tiruchengoderamanathan@progress.com>
Signed-off-by: shanmugapriya-tr <shanmugapriya.tiruchengoderamanathan@progress.com>
1. Added the code to skip the automate-elasticsearch service if External is enabled 2. Decoupled the es-sidecar service from automate-elasticsearch 3. Moved the code to skip the status check for removed services in ensureStatus Signed-off-by: sandhi <sagarwal@progress.com>
Signed-off-by: shanmugapriya-tr <shanmugapriya.tiruchengoderamanathan@progress.com>
Signed-off-by: shanmugapriya-tr <shanmugapriya.tiruchengoderamanathan@progress.com>
Signed-off-by: shanmugapriya-tr <shanmugapriya.tiruchengoderamanathan@progress.com>
Signed-off-by: sandhi <sagarwal@progress.com>
Co-authored-by: Kallol Roy <karoy@progress.com>
Signed-off-by: shanmugapriya-tr <shanmugapriya.tiruchengoderamanathan@progress.com>
Signed-off-by: shanmugapriya-tr <shanmugapriya.tiruchengoderamanathan@progress.com>
Kudos, SonarCloud Quality Gate passed! |
@kalroy - Can you please help merging the PR ? |
🔩 Description: What code changed, and why?
This PR contains changes for skipping the setup of internal Elasticsearch and Postgres in case External ES or PG configuration is enabled. The following changes were made to achieve this :
⛓️ Related Resources
👍 Definition of Done
Known issue
[RESOLVED] Certain services not restarting with changes in the ES config
Resolution : Adding ESGateway and PGGateway to the configWriteRequiresReload function, to resolve the issue with the service restarts while switching from internal to external and vice-versa.
Although, the services were restarting for PG, it has been added here as a false-safe so that in the future if the services that have stored the PG information in the _a2_platform.json file and have a direct dependency on PG will restart even if we remove the dependency in the future.
Adding the GW's to the list in the configWriteRequiresReload will ensure that the mitigation is executed for the GW as well, therefore restarting all the dependent services.
👟 How to Build and Test the Change
✅ Checklist
All PRs must tick these:
With occasional exceptions, all PRs from Progress employees must tick these:
make spell
in any component directory)All PRs from Progress employees should tick these if appropriate:
📷 Screenshots, if applicable