Skip to content
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

misc backports to v0.6.x #165

Merged
merged 17 commits into from
Dec 25, 2024

Conversation

Vicente-Cheng
Copy link
Collaborator

Problem:
We need to update the v0.6.x for v1.3.3

Solution:
Manually backport the needed commits

Related Issue:
None

Test plan:
None

Vicente-Cheng and others added 15 commits December 3, 2024 10:20
Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
(cherry picked from commit 2cf0cc1)
    - bump gnostic-models because of
      google/gnostic#397
    - bump controller-tools v0.15.0
      (for controller-gen command)
    - bump longhorn v1.5.5
    - regenerate manifest/generated code

Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
(cherry picked from commit ec4d7da)
Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
(cherry picked from commit 4e6e62f)
    - Also make build and integration test in the same job.
      That will ensure the image can be used in time.

Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
(cherry picked from commit 94e0591)
    - should use `steps.<step id>.conclusion == 'success'`

Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
(cherry picked from commit 5a30aa3)
Signed-off-by: PoAn Yang <poan.yang@suse.com>
(cherry picked from commit 61fafb2)
    - We might need LH v1.7.0 for v2 engine, so move to
      wrangler v3 first.

Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
(cherry picked from commit 507e3d2)
Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
(cherry picked from commit b3d80cc)
Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit 9e0fb40)
Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
(cherry picked from commit b6e7af2)
    - we could drop rancher in this case

Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
(cherry picked from commit cf3d0b4)
    - We should also consider the wwn of the added blockdevice in
      the same round.

Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
(cherry picked from commit a1bc2b5)
Prior to this, if `mkfs.ext4` failed, all we saw was "failed to
format /dev/sda. err: exit status 1".  With this change, we'll
see the command output, which is a bit more useful, for exmaple:
"failed to format /dev/sda. exit status 1: mke2fs 1.46.4
(18-Aug-2021) /dev/sda is apparently in use by the system;
will not make a filesystem here!"

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit 81e8774)
If multipathd is running and has taken over a device,
ResolvePersistentDevPath() will end up returning a "/dev/dm-*"
device path, which we don't want.  We want the real underyling
device (e.g. "/dev/sda").  If we take a "/dev/dm-*" path and
later update the blockdevice CR with it, we lose all the
interesting DeviceStatus information, like the WWN.

Happily, in this case, we can figure out the right path to
use by checking "/dev/disk/by-path/" + the device's bus path.
This has the added advantage of also working for block devices
that have no WWN.

Related issue: harvester/harvester#6531

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit cefcc3d)

Conflicts:
	pkg/controller/blockdevice/controller.go
	  - move the corresponding logic back to blockdevice/controller
	pkg/provisioner/common.go
	  - remove provisioner because we did not introduce it on v0.6.x
Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
(cherry picked from commit 78e0d91)

Conflicts:
	.github/workflows/basic-ci.yaml
	  - update with minor conflict
    - Also, we make two jobs can run parallel

Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
(cherry picked from commit e35cbb3)
    - new version introduce some new fields and components that will
      cause the CI failure

Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
@Vicente-Cheng Vicente-Cheng marked this pull request as ready for review December 3, 2024 03:55
Copy link
Member

@WebberHuang1118 WebberHuang1118 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

@WebberHuang1118 WebberHuang1118 merged commit 7da947e into harvester:v0.6.x Dec 25, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants