-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Prevent upgrade failures if there are existing annotations permissions #5846
Prevent upgrade failures if there are existing annotations permissions #5846
Conversation
@blueorangutan package |
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2163 |
@blueorangutan test |
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
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.
cltgm
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.
CLGTM
Trillian test result (tid-2843)
|
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
LGTM - would it make more sense to do via java (to check if these exist?) |
@rohityadavcloud sorry I do not see the benefit of moving it to the java code in this case, do you mean moving the SQL check to the java upgrade code or updating the |
@nvazquez there is a benefit in what @rohityadavcloud says; we are in a mess with guest OS mappings because of using IDs in schema upgrade scripts. This could happen for roles as well in the long run. So it might be good to device an upgrade mech that is more robust. This will work for sure, but it is not a mechanism that we should promote. |
@blueorangutan package |
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
@DaanHoogland @rohityadavcloud I see your point, thanks for clarifying. I have updated the PR accordingly, can you please re-review? |
Co-authored-by: sureshanaparti <12028987+sureshanaparti@users.noreply.github.com>
@blueorangutan package |
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 2194 |
engine/schema/src/main/java/com/cloud/upgrade/dao/Upgrade41520to41600.java
Outdated
Show resolved
Hide resolved
engine/schema/src/main/java/com/cloud/upgrade/dao/Upgrade41520to41600.java
Outdated
Show resolved
Hide resolved
Co-authored-by: sureshanaparti <12028987+sureshanaparti@users.noreply.github.com>
@blueorangutan package |
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
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.
code LGTM
Packaging result: ✖️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2198 |
@blueorangutan package |
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2200 |
@blueorangutan test |
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
Trillian test result (tid-2871)
|
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.
clgtm,
@nvazquez I know you did some upgrade testing, can you describe that, please?
It seems to me we can use a similar mech for the guest os (mapping) upgrades in the future. Do you agree @nvazquez @sureshanaparti ? see #3609, #5685
agree @DaanHoogland |
@DaanHoogland I have added it to the PR description: tested the vanilla environment creation and also upgrade from a 4.15.2 environment in which I didn't add any additional role permission |
@nvazquez @sureshanaparti I'd say one more test and we are good to merge: |
@DaanHoogland I'll perform upgrade test with some rules, and update here. |
thanks @sureshanaparti |
Verified upgrade from CS 4.15.2 with existing annotations permissions. LGTM.
|
Description
This PR prevents upgrade failures in the specific case in which the annotations are allowed as part of the role permissions for some roles.
Fixes: #5617
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?