-
Notifications
You must be signed in to change notification settings - Fork 185
Multipath tools #882
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
Open
Untersander
wants to merge
10
commits into
siderolabs:main
Choose a base branch
from
INSRapperswil:multipath-tools
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Multipath tools #882
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d1213cb
Add multipath-tools and Trident CSI iSCSI support
Untersander 782a166
Remove not needed bind mounts
Untersander da93852
fixing renovate
SimLi1333 095914f
fixing renovate
SimLi1333 078433c
Bump multipath-tools version
Untersander 7f8c4b3
removing not needed bindings file and adding sys again because of err…
SimLi1333 1f7a725
adding mkdir of folder for bindings file again
SimLi1333 95b230c
remove debug log level of multipath
SimLi1333 55c3999
added libgcc and removed patch
SimLi1333 1747d86
adding README files to the extensions
SimLi1333 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # Multipath bindings, Version : 1.0 | ||
frezbo marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| # NOTE: this file is automatically maintained by the multipath program. | ||
| # You should not need to edit this file in normal circumstances. | ||
| # | ||
| # Format: | ||
| # alias wwid | ||
| # | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| version: v1alpha1 | ||
| metadata: | ||
| name: multipath-tools | ||
| version: "{{ .VERSION }}" | ||
| author: Institute for Networks and Security (INS) at OST | ||
| description: | | ||
| [{{ .TIER }}] This system extension provides multipath-tools. | ||
| compatibility: | ||
| talos: | ||
| version: ">= v1.9.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| name: multipathd | ||
| container: | ||
| security: | ||
| maskedPaths: [] | ||
| readonlyPaths: [] | ||
| writeableRootfs: true | ||
| entrypoint: /usr/local/sbin/multipathd | ||
| args: | ||
| - -d | ||
| - -v3 | ||
| mounts: | ||
| # ld-musl-x86_64.so.1 | ||
frezbo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - source: /lib | ||
| destination: /lib | ||
| type: bind | ||
| options: | ||
| - bind | ||
| - ro | ||
| # /etc/multipath.conf /etc/multipath/bindings | ||
| - source: /usr/local/lib/containers/multipathd/etc | ||
Untersander marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| destination: /etc | ||
| type: bind | ||
| options: | ||
| - bind | ||
| - rw | ||
| # libs | ||
| - source: /usr/local/lib/ | ||
| destination: /usr/local/lib/ | ||
| type: bind | ||
| options: | ||
| - bind | ||
| - ro | ||
| # /user/bin | ||
| - source: /usr/local/bin | ||
frezbo marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| destination: /usr/local/bin | ||
| type: bind | ||
| options: | ||
| - bind | ||
| - ro | ||
| - source: /usr/local/sbin | ||
| destination: /usr/local/sbin | ||
| type: bind | ||
| options: | ||
| - bind | ||
| - ro | ||
| # /dev/mapper and multipath disk | ||
| - source: /dev | ||
| destination: /dev | ||
| type: bind | ||
| options: | ||
| - bind | ||
| - rw | ||
| - source: /sys | ||
frezbo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| destination: /sys | ||
| type: bind | ||
| options: | ||
| - bind | ||
| - rw | ||
| depends: | ||
| - network: | ||
| - addresses | ||
| - connectivity | ||
| - hostname | ||
| - etcfiles | ||
| - service: udevd | ||
| - path: /dev/mapper/control | ||
| - service: cri | ||
| # - configuration: true | ||
| restart: always | ||
14 changes: 14 additions & 0 deletions
14
storage/multipath-tools/patches/disable-exception-handling.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| diff --git a/Makefile.inc b/Makefile.inc | ||
| index 729618bd..91118ec9 100644 | ||
| --- a/Makefile.inc | ||
| +++ b/Makefile.inc | ||
| @@ -115,8 +115,7 @@ CPPFLAGS := $(FORTIFY_OPT) $(CPPFLAGS) $(D_URCU_VERSION) \ | ||
| -DRUNTIME_DIR=\"$(runtimedir)\" -DCONFIG_DIR=\"$(TGTDIR)$(configdir)\" \ | ||
| -DDEFAULT_CONFIGFILE=\"$(TGTDIR)$(configfile)\" -DSTATE_DIR=\"$(TGTDIR)$(statedir)\" \ | ||
| -DEXTRAVERSION=\"$(EXTRAVERSION)\" -MMD -MP | ||
| -CFLAGS := -std=gnu99 $(CFLAGS) $(OPTFLAGS) $(WARNFLAGS) -pipe \ | ||
| - -fexceptions | ||
| +CFLAGS := -std=gnu99 $(CFLAGS) $(OPTFLAGS) $(WARNFLAGS) -pipe | ||
frezbo marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| BIN_CFLAGS := -fPIE -DPIE | ||
| LIB_CFLAGS := -fPIC | ||
| SHARED_FLAGS := -shared | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| name: multipath-tools | ||
| variant: scratch | ||
| shell: /bin/bash | ||
| dependencies: | ||
| - stage: base | ||
| - image: "{{ .BUILD_ARG_PKGS_PREFIX }}/systemd-udevd:{{ .BUILD_ARG_PKGS }}" | ||
| - image: "{{ .BUILD_ARG_PKGS_PREFIX }}/libjson-c:{{ .BUILD_ARG_PKGS }}" | ||
| - image: "{{ .BUILD_ARG_PKGS_PREFIX }}/lvm2:{{ .BUILD_ARG_PKGS }}" | ||
| - image: "{{ .BUILD_ARG_PKGS_PREFIX }}/liburcu:{{ .BUILD_ARG_PKGS }}" | ||
| - image: "{{ .BUILD_ARG_PKGS_PREFIX }}/libaio:{{ .BUILD_ARG_PKGS }}" | ||
| steps: | ||
| - sources: | ||
| - url: https://github.com/opensvc/multipath-tools/archive/refs/tags/{{ .MULTIPATH_TOOLS_VERSION }}.tar.gz | ||
| destination: multipath-tools.tar.gz | ||
| sha256: {{ .MULTIPATH_TOOLS_SHA256 }} | ||
| sha512: {{ .MULTIPATH_TOOLS_SHA512 }} | ||
| env: | ||
| PKG_CONFIG_PATH: /usr/lib/pkgconfig | ||
| prepare: | ||
| - | | ||
| sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml | ||
| - | | ||
| tar -xzf multipath-tools.tar.gz --strip-components=1 | ||
| # This removes a dependency on libgcc | ||
| - | | ||
| patch -p1 < /pkg/patches/disable-exception-handling.patch | ||
| build: | ||
| - | | ||
| make -j $(nproc) prefix="/usr/local" \ | ||
| sysconfdir="/etc" \ | ||
| configdir="/etc/multipath/conf.d" \ | ||
| mandir="/usr/share/man" \ | ||
| infodir="/usr/share/info" \ | ||
| statedir="/etc/multipath" \ | ||
| etc_prefix="" \ | ||
| LIB=lib \ | ||
| SYSTEMD="" | ||
| install: | ||
| - | | ||
| mkdir -p /rootfs/usr/local/lib/containers/multipathd/etc/multipath | ||
| cp /pkg/bindings /rootfs/usr/local/lib/containers/multipathd/etc/multipath/bindings | ||
| make prefix="/usr/local" DESTDIR=/rootfs LIB=lib install | ||
| - | | ||
| mkdir -p /rootfs/usr/local/etc/containers | ||
| cp /pkg/multipathd.yaml /rootfs/usr/local/etc/containers/ | ||
| # Remove kernel module loading config | ||
| - | | ||
| rm /rootfs/usr/lib/modules-load.d/multipath.conf | ||
| rmdir /rootfs/usr/lib/modules-load.d | ||
| # Remove unnecessary docs and includes | ||
| - | | ||
| rm -rf /rootfs/usr/local/share | ||
| rm -rf /rootfs/usr/local/include | ||
| # This file tries to create a tmpfs mount at `/var/run/multipath`. | ||
| - | | ||
| rm /rootfs/usr/lib/tmpfiles.d/multipath.conf | ||
| rmdir /rootfs/usr/lib/tmpfiles.d | ||
| # Removed but might be needed by other users of multipath-tools | ||
| - | | ||
| rm /rootfs/usr/lib/udev/kpartx_id | ||
frezbo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| test: | ||
| - | | ||
| mkdir -p /extensions-validator-rootfs | ||
| cp -r /rootfs/ /extensions-validator-rootfs/rootfs | ||
| cp /pkg/manifest.yaml /extensions-validator-rootfs/manifest.yaml | ||
| /extensions-validator validate --rootfs=/extensions-validator-rootfs --pkg-name="${PKG_NAME}" | ||
| finalize: | ||
| - from: /rootfs | ||
| to: /rootfs | ||
| - from: /pkg/manifest.yaml | ||
| to: / | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| VERSION: v0.0.1 | ||
|
|
||
| # renovate: datasource=git-tags extractVersion=^multipath-tools-(?<version>.*)$ depName=git://https://github.com/opensvc/multipath-tools.git | ||
| MULTIPATH_TOOLS_VERSION: 0.10.0 | ||
| MULTIPATH_TOOLS_SHA256: f2e67a1d2167f3945afab6f0697207a03678f5b2bd80f1f45958c6fa1dfb8eef | ||
| MULTIPATH_TOOLS_SHA512: 8f545609fa20df7547428f2929571dc0df87c17d9f61f11aad3559446c2e94755e18b1c4b3780b3de92ec2cbc450939ca15a9d6c95551eee4084064d83874b2d | ||
|
|
||
| TIER: "contrib" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| version: v1alpha1 | ||
| metadata: | ||
| name: trident-iscsi-tools | ||
| version: "{{ .VERSION }}" | ||
| author: Institute for Networks and Security (INS) at OST | ||
| description: | | ||
| [{{ .TIER }}] This system extension provides the tools and binaries used by the NetApp Trident CSI for iSCSI. It contains lsscsi, ls, free, pgrep, cat and dd. | ||
| compatibility: | ||
| talos: | ||
| version: ">= v1.9.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| name: trident-iscsi-tools | ||
| variant: scratch | ||
| shell: /bin/bash | ||
| dependencies: | ||
| - stage: base | ||
| steps: | ||
| - sources: | ||
| - url: "https://sg.danny.cz/scsi/lsscsi-{{ .LSSCSI_VERSION }}.tar.gz" | ||
| destination: lsscsi.tar.gz | ||
| sha256: {{ .LSSCSI_SHA256 }} | ||
| sha512: {{ .LSSCSI_SHA512 }} | ||
| prepare: | ||
| - | | ||
| sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml | ||
| - | | ||
| tar -xzf lsscsi.tar.gz --strip-components=1 | ||
| build: | ||
| - | | ||
| ./configure --prefix=/usr/local --exec-prefix=/usr/local | ||
| # make -j $(nproc) DESTDIR=/rootfs | ||
| install: | ||
| - | | ||
| make DESTDIR=/rootfs install | ||
| # Remove man pages and info pages to save space | ||
| - | | ||
| rm -rf /rootfs/usr/local/share | ||
| - | | ||
| mkdir -p /rootfs/usr/local/bin | ||
| mkdir -p /rootfs/usr/local/sbin | ||
| cp /usr/bin/ls /rootfs/usr/local/bin | ||
frezbo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| cp /usr/bin/free /rootfs/usr/local/bin | ||
| cp /usr/bin/pgrep /rootfs/usr/local/bin | ||
| cp /usr/bin/cat /rootfs/usr/local/bin | ||
| cp /usr/bin/dd /rootfs/usr/local/bin | ||
| cp /usr/sbin/blockdev /rootfs/usr/local/sbin | ||
| test: | ||
| - | | ||
| mkdir -p /extensions-validator-rootfs | ||
| cp -r /rootfs/ /extensions-validator-rootfs/rootfs | ||
| cp /pkg/manifest.yaml /extensions-validator-rootfs/manifest.yaml | ||
| /extensions-validator validate --rootfs=/extensions-validator-rootfs --pkg-name="${PKG_NAME}" | ||
| finalize: | ||
| - from: /rootfs | ||
| to: /rootfs | ||
| - from: /pkg/manifest.yaml | ||
| to: / | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| VERSION: v0.0.1 | ||
|
|
||
| LSSCSI_VERSION: 0.32 | ||
frezbo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| LSSCSI_SHA256: 0a800e9e94dca2ab702d65d72777ae8cae078e3d74d0bcbed64ba0849e8029a1 | ||
| LSSCSI_SHA512: 96cb87be53eae9fa3a7defa0065f4dee8ccc23805a9ed1dc93d101c5e0610b78765b61449bf6ce58c13de8aae8400e4ac6a60ad64f840d092b9d7293106c5145 | ||
|
|
||
| TIER: "contrib" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.