-
Notifications
You must be signed in to change notification settings - Fork 74
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(upgrade): make upgrades from master to master possible #447
Conversation
Auto builds triggered by push events to branches like "master" or "v1.1" etc. will have harvester-upgrade:<branch>-<commit>-head image added into the bundle, therefore makes the upgrade from master-head to master-head or v1.1-head to v1.1-head possible. Signed-off-by: Zespre Chang <zespre.chang@suse.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, thanks.
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.
Tested with the upgrade path. LGTM thanks!
@Mergifyio backport v1.1 |
✅ Backports have been created
|
@starbops I'm still getting ErrImagePull looks like there is one character difference.
|
@Vicente-Cheng share that this might be because commish prefix conflict. We might need to use |
@bk201 @Vicente-Cheng If you build the ISO image within the For drone CI-built images, it should be fine since the CI builds the ISO image within the
|
I got rancher/harvester-upgrade:master-152642c-head by downloading the drone-build ISO. |
I guess the ISO is the one built in the |
Problem:
Sometimes we need to verify the bug fixes or feature deliveries in the upgrade area, it's essential to upgrade from the master-head to master-head with the exact same ISO image downloaded from
https://releases.rancher.com/harvester/master/harvester-master-amd64.iso
. But theserver-version
does not match with the image tag forrancher/harvester-upgrade
image for such cases. The upgrade will then fail at the image-preloading phase as it cannot find the right image on the node nor on the Internet (if not air-gapped).This is due to a different
VERSION
argument passed into theharvester-upgrade
docker build
command in.drone.yaml
:This step will be triggered every time when there's a new push to the
master
orv*
branch. The image tag${DRONE_BRANCH}-${DRONE_COMMIT_SHA:0:8}-head
only exists in an intermediate state and is never published. The one that gets published is the${DRONE_BRANCH}-head-amd64
. However, the tag${DRONE_BRANCH}-${DRONE_COMMIT_SHA:0:8}-head
tag is stored in theserver-version
CR and is then referenced as thepreviousVersion
in the following upgrades.Solution:
Auto builds triggered by push events to branches like "master" or "v1.1" etc. will have
rancher/harvester-upgrade:<branch>-<commit>-head
image added into the bundle, therefore making the upgrade from master-head to master-head or v1.1-head to v1.1-head possible.Related Issue:
harvester/harvester#3610
Test plan:
For reviewers:
make
isoinfo
command, it should contain the additionalharvester-upgrade
image with themaster-<commit>-head
tagFor QAs:
https://releases.rancher.com/harvester/master/harvester-master-amd64.iso
, please be sure that the image already has the fix included