-
Notifications
You must be signed in to change notification settings - Fork 111
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
Fix the bug for upgrade flag #7896
Conversation
π· Deploy Preview for chef-automate processing.
|
de20765
to
55c4a5e
Compare
Signed-off-by: SahithiMy <sahithi.mylangam@progress.com>
Signed-off-by: SahithiMy <sahithi.mylangam@progress.com>
Signed-off-by: SahithiMy <sahithi.mylangam@progress.com>
55c4a5e
to
a84b55d
Compare
SonarQube Quality Gate |
* Fixed the bug for upgrade Signed-off-by: SahithiMy <sahithi.mylangam@progress.com> * Fix for upgrade Signed-off-by: SahithiMy <sahithi.mylangam@progress.com> * updated error msg Signed-off-by: SahithiMy <sahithi.mylangam@progress.com> --------- Signed-off-by: SahithiMy <sahithi.mylangam@progress.com> Co-authored-by: SahithiMy <sahithi.mylangam@progress.com>
if err != nil { | ||
return status.Annotate(err, status.DeployError) | ||
if frontend { | ||
err := moveAirgapFrontendBundlesOnlyToTransferDir(airgapMetadata, upgradeRunCmdFlags.airgap) |
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.
upgradeRunCmdFlags.airgap -> airgapBundlePath
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.
while testing i found that the value of upgradeRunCmdFlags.airgap is nil, which create the problem while fresh deployment for HA
π© Description: What code changed, and why?
Fixed the bug for upgrade-frontends flag which is upgrading backend nodes as-well.
βοΈ Related Resources
https://chefio.atlassian.net/browse/CHEF-1890
π Definition of Done
Fixed the bug for --upgrade-frontends for upgrade command.
π How to Build and Test the Change
rebuild components/automate-cli
chef-automate upgrade run --airgap-bundle latest.aib --upgrade-frontends
β 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:
Please add a note next to any checkbox above if you are NOT ticking it.
π· Screenshots, if applicable
Before upgrade
![Screenshot 2023-05-22 at 2 00 46 PM](https://private-user-images.githubusercontent.com/98326242/239902326-f97b3b23-f1d0-4640-ab83-c60f4e2de248.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI3ODExNDAsIm5iZiI6MTcyMjc4MDg0MCwicGF0aCI6Ii85ODMyNjI0Mi8yMzk5MDIzMjYtZjk3YjNiMjMtZjFkMC00NjQwLWFiODMtYzYwZjRlMmRlMjQ4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA0VDE0MTQwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFkODA3OWRhNDIzMGI1YjRiYTM0YzE5OTYxOTY2ZDZiZjg2M2NmYmUzMmUwODk0ZjQ4MWViMjM1OWFiZTBiZjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.FgshBKm77taMBiwGOzwGyjfgHkYg5mfs3u8n6QWgSp0)
After upgrade
![Screenshot 2023-05-16 at 6 46 13 PM](https://private-user-images.githubusercontent.com/98326242/239902563-97b09494-2919-4df0-a4bb-f8df67016999.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI3ODExNDAsIm5iZiI6MTcyMjc4MDg0MCwicGF0aCI6Ii85ODMyNjI0Mi8yMzk5MDI1NjMtOTdiMDk0OTQtMjkxOS00ZGYwLWE0YmItZjhkZjY3MDE2OTk5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA0VDE0MTQwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFhZWI4MjcwZjExMDIwMzY5MzZhZDk0NmI0NTg2MjI5MzAyYWRlZWVlZGJkNzVjMjcwNjA3YWE5NzRhYzZiNmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ILi09MRsAiPHT_4AY4jyGq-qjal0EYRdSlWIG0S-eCw)