-
Notifications
You must be signed in to change notification settings - Fork 27
MDBF-1121 - libvirt - RPM automatic upgrades #841
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -138,13 +138,25 @@ if [[ $package_version == "$old_version" ]]; then | |
| exit | ||
| fi | ||
|
|
||
| # //TEMP upgrade does not work without this but why? Can't we fix it? | ||
| if [[ "$test_type" =~ ^(major|distro)$ ]]; then | ||
| bb_log_info "remove old packages for major upgrade" | ||
| packages_to_remove=$(rpm -qa | grep -E '^(MariaDB|mariadb)-' | awk -F'-' '{print $1"-"$2}') | ||
| echo "$packages_to_remove" | xargs sudo "$pkg_cmd" "$pkg_cmd_options" remove | ||
| rpm -qa | grep -iE 'maria|mysql' || true | ||
| # ------------------------------------------------------------------------------ | ||
| # -- MDBF-1121 / MDEV-33459 -- | ||
| # ------------------------------------------------------------------------------ | ||
|
|
||
| # Major upgrades within the same family (>10) and vendor (!=distro) | ||
| # should work without removing old packages first. | ||
|
|
||
| old_family=$(echo "$prev_major_version" | sed -n -e 's,^\([1-9][0-9]*\)\..*$,\1,p') | ||
| new_family=$(echo "$major_version" | sed -n -e 's,^\([1-9][0-9]*\)\..*$,\1,p') | ||
|
|
||
| if [[ "$test_type" == "distro" || | ||
| ( "$old_family" -lt 11 && "$test_type" != "minor" ) || | ||
| "$old_family" -ne "$new_family" ]]; then | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is MDEV-9584 so it might be that the server upgrade needs to allow 11 -> 12 without removal first.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tested 11 -> 12. It does not work.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In any case, the scope of this MDBF is to align the two buildbots.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes - the prein.sh is the bit of dated stuff that probably should be removed. as separate task. |
||
| bb_log_info "remove old packages for major upgrade" | ||
| packages_to_remove=$(rpm -qa | grep -E '^(MariaDB|mariadb)-' | awk -F'-' '{print $1"-"$2}') | ||
| echo "$packages_to_remove" | xargs sudo "$pkg_cmd" "$pkg_cmd_options" remove | ||
| rpm -qa | grep -iE 'maria|mysql' || true | ||
| fi | ||
| # ------------------------------------------------------------------------------ | ||
|
|
||
| rpm_setup_bb_galera_artifacts_mirror | ||
| rpm_setup_bb_artifacts_mirror | ||
|
|
||
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.
so this is extracting before the
.?so
${prev_major_version%%.*}is the same right?Uh oh!
There was an error while loading. Please reload this page.
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.
Yes, I used the same rule as in MDEV-33459 commit.
That happens to match the number before
..