登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
轻量养虾,开箱即用!低 Token + 稳定算力,Gitee & 模力方舟联合出品的 PocketClaw 正式开售!点击了解详情~
代码拉取完成,页面将自动刷新
仓库状态说明
开源项目
>
其他开源
>
RISC-V 开发
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
57
Star
190
Fork
149
openEuler
/
RISC-V
关闭
代码
Issues
182
Pull Requests
0
Wiki
统计
流水线
服务
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
24.03 LTS RISC-V k3s-install.sh 执行失败
已完成
#IADNC6
缺陷
KevinMX
创建于
2024-07-17 16:22
**【标题描述】 **一、缺陷信息** **内核信息:** ``` [openeuler@openeuler-riscv64 ~]$ uname -a Linux openeuler-riscv64 6.6.0-27.0.0.31.oe2403.riscv64 #1 SMP Fri May 24 21:52:58 CST 2024 riscv64 riscv64 riscv64 GNU/Linux ``` **缺陷归属组件:** k3s **缺陷归属的版本:** k3s-1.24.2+rc1+k3s2-4.oe2403 **缺陷简述:** openEuler RISC-V 24.03 LTS 下,k3s-install.sh 执行失败 **【环境信息】** 硬件信息:Sipeed Lichee Pi 4A (16GB) 软件信息 - OS版本及分支信息:openEuler 24.03 LTS, lpi4a - 内核信息:6.6.0-27.0.0.31.oe2403.riscv64 - 发现问题的组件版本信息:k3s-1.24.2+rc1+k3s2-4.oe2403 **【问题复现步骤】** ```shell sudo dnf install -y k3s INSTALL_K3S_SKIP_DOWNLOAD="true" bash -x k3s-install.sh ``` **【实际结果】** k3s 安装脚本执行失败。 k3s server 直接启动是没有问题的,安装脚本坏掉的情况下会影响相关 systemd sevice 的创建。 **【其他相关附件信息】** ```log [openeuler@openeuler-riscv64 ~]$ INSTALL_K3S_SKIP_DOWNLOAD="true" bash -x k3s-install.sh + set -e + set -o noglob + GITHUB_URL=https://github.com/k3s-io/k3s/releases + STORAGE_URL=https://storage.googleapis.com/k3s-ci-builds + DOWNLOADER= ++ escape '' ++ printf %s '' ++ sed -e 's/\([][!#$%&()*;<=>?\_`{|}]\)/\\\1/g;' ++ quote + eval set -- ++ set -- + verify_system + '[' -x /sbin/openrc-run ']' + '[' -x /bin/systemctl ']' + HAS_SYSTEMD=true + return + setup_env + case "$1" in + '[' -z '' ']' + CMD_K3S=server + verify_k3s_url + case "${K3S_URL}" in ++ quote_indent ++ printf ' \\\n' + CMD_K3S_EXEC='server \' + '[' -n '' ']' + '[' server = server ']' + SYSTEM_NAME=k3s ++ printf %s k3s ++ sed -e 's/[][!#$%&()*;<=>?\_`{|}/[:space:]]/^/g;' + valid_chars=k3s + '[' k3s '!=' k3s ']' + SUDO=sudo ++ id -u + '[' 1000 -eq 0 ']' + '[' -n '' ']' + '[' server = server ']' + SYSTEMD_TYPE=notify + '[' -n '' ']' + BIN_DIR=/usr/local/bin + sudo sh -c 'touch /usr/local/bin/k3s-ro-test && rm -rf /usr/local/bin/k3s-ro-test' [sudo] password for openeuler: + '[' -n '' ']' + SYSTEMD_DIR=/etc/systemd/system + SERVICE_K3S=k3s.service + UNINSTALL_K3S_SH=/usr/local/bin/k3s-uninstall.sh + KILLALL_K3S_SH=/usr/local/bin/k3s-killall.sh + '[' true = true ']' + FILE_K3S_SERVICE=/etc/systemd/system/k3s.service + FILE_K3S_ENV=/etc/systemd/system/k3s.service.env ++ get_installed_hashes ++ sudo sha256sum /usr/local/bin/k3s /etc/systemd/system/k3s.service /etc/systemd/system/k3s.service.env ++ true + PRE_INSTALL_HASHES='3365b9fd3c8c9aed010645b7a87b5d4113e5b77f807d5d3c8afc4130a2338c82 /usr/local/bin/k3s sha256sum: /etc/systemd/system/k3s.service: No such file or directory sha256sum: /etc/systemd/system/k3s.service.env: No such file or directory' + '[' '' = true ']' + INSTALL_K3S_CHANNEL_URL=https://update.k3s.io/v1-release/channels + INSTALL_K3S_CHANNEL=stable + download_and_verify + can_skip_download + '[' true '!=' true ']' + info 'Skipping k3s download and verify' + echo '[INFO] ' 'Skipping k3s download and verify' [INFO] Skipping k3s download and verify + verify_k3s_is_executable + '[' '!' -x /usr/local/bin/k3s ']' + return + setup_selinux + case ${INSTALL_K3S_CHANNEL} in + rpm_channel=stable + rpm_site=rpm.rancher.io + '[' stable = testing ']' + '[' -r /etc/os-release ']' + . /etc/os-release ++ NAME=openEuler ++ VERSION='24.03 (LTS)' ++ ID=openEuler ++ VERSION_ID=24.03 ++ PRETTY_NAME='openEuler 24.03 (LTS)' ++ ANSI_COLOR='0;31' + '[' '' = suse ']' + '[' 24 = 7 ']' + rpm_target=el8 + rpm_site_infix=centos/8 + package_installer=yum + '[' yum = yum ']' + '[' -x /usr/bin/dnf ']' + package_installer=dnf + policy_hint='please install: dnf install -y container-selinux dnf install -y https://rpm.rancher.io/k3s/stable/common/centos/8/noarch/k3s-selinux-0.4-1.el8.noarch.rpm ' + '[' '' = true ']' + can_skip_download + '[' true '!=' true ']' + info 'Skipping installation of SELinux RPM' + echo '[INFO] ' 'Skipping installation of SELinux RPM' [INFO] Skipping installation of SELinux RPM + policy_error=fatal + '[' '' = true ']' + '[' '' = coreos ']' + '[' '' = coreos ']' + sudo chcon -u system_u -r object_r -t container_runtime_exec_t /usr/local/bin/k3s + sudo grep '^\s*SELINUX=enforcing' /etc/selinux/config + fatal 'Failed to apply container_runtime_exec_t to /usr/local/bin/k3s, please install: dnf install -y container-selinux dnf install -y https://rpm.rancher.io/k3s/stable/common/centos/8/noarch/k3s-selinux-0.4-1.el8.noarch.rpm ' + echo '[ERROR] ' 'Failed to apply container_runtime_exec_t to /usr/local/bin/k3s, please install: dnf install -y container-selinux dnf install -y https://rpm.rancher.io/k3s/stable/common/centos/8/noarch/k3s-selinux-0.4-1.el8.noarch.rpm ' [ERROR] Failed to apply container_runtime_exec_t to /usr/local/bin/k3s, please install: dnf install -y container-selinux dnf install -y https://rpm.rancher.io/k3s/stable/common/centos/8/noarch/k3s-selinux-0.4-1.el8.noarch.rpm + exit 1 [openeuler@openeuler-riscv64 ~]$ ``` Note: 检查了下 SELinux 状态,目前已禁用 ```log [openeuler@openeuler-riscv64 ~]$ getenforce Disabled ``` 主要报错提示的是 `Failed to apply container_runtime_exec_t to /usr/local/bin/k3s` `k3s` 二进制是存在且可以正常运行 `k3s server` 的
**【标题描述】 **一、缺陷信息** **内核信息:** ``` [openeuler@openeuler-riscv64 ~]$ uname -a Linux openeuler-riscv64 6.6.0-27.0.0.31.oe2403.riscv64 #1 SMP Fri May 24 21:52:58 CST 2024 riscv64 riscv64 riscv64 GNU/Linux ``` **缺陷归属组件:** k3s **缺陷归属的版本:** k3s-1.24.2+rc1+k3s2-4.oe2403 **缺陷简述:** openEuler RISC-V 24.03 LTS 下,k3s-install.sh 执行失败 **【环境信息】** 硬件信息:Sipeed Lichee Pi 4A (16GB) 软件信息 - OS版本及分支信息:openEuler 24.03 LTS, lpi4a - 内核信息:6.6.0-27.0.0.31.oe2403.riscv64 - 发现问题的组件版本信息:k3s-1.24.2+rc1+k3s2-4.oe2403 **【问题复现步骤】** ```shell sudo dnf install -y k3s INSTALL_K3S_SKIP_DOWNLOAD="true" bash -x k3s-install.sh ``` **【实际结果】** k3s 安装脚本执行失败。 k3s server 直接启动是没有问题的,安装脚本坏掉的情况下会影响相关 systemd sevice 的创建。 **【其他相关附件信息】** ```log [openeuler@openeuler-riscv64 ~]$ INSTALL_K3S_SKIP_DOWNLOAD="true" bash -x k3s-install.sh + set -e + set -o noglob + GITHUB_URL=https://github.com/k3s-io/k3s/releases + STORAGE_URL=https://storage.googleapis.com/k3s-ci-builds + DOWNLOADER= ++ escape '' ++ printf %s '' ++ sed -e 's/\([][!#$%&()*;<=>?\_`{|}]\)/\\\1/g;' ++ quote + eval set -- ++ set -- + verify_system + '[' -x /sbin/openrc-run ']' + '[' -x /bin/systemctl ']' + HAS_SYSTEMD=true + return + setup_env + case "$1" in + '[' -z '' ']' + CMD_K3S=server + verify_k3s_url + case "${K3S_URL}" in ++ quote_indent ++ printf ' \\\n' + CMD_K3S_EXEC='server \' + '[' -n '' ']' + '[' server = server ']' + SYSTEM_NAME=k3s ++ printf %s k3s ++ sed -e 's/[][!#$%&()*;<=>?\_`{|}/[:space:]]/^/g;' + valid_chars=k3s + '[' k3s '!=' k3s ']' + SUDO=sudo ++ id -u + '[' 1000 -eq 0 ']' + '[' -n '' ']' + '[' server = server ']' + SYSTEMD_TYPE=notify + '[' -n '' ']' + BIN_DIR=/usr/local/bin + sudo sh -c 'touch /usr/local/bin/k3s-ro-test && rm -rf /usr/local/bin/k3s-ro-test' [sudo] password for openeuler: + '[' -n '' ']' + SYSTEMD_DIR=/etc/systemd/system + SERVICE_K3S=k3s.service + UNINSTALL_K3S_SH=/usr/local/bin/k3s-uninstall.sh + KILLALL_K3S_SH=/usr/local/bin/k3s-killall.sh + '[' true = true ']' + FILE_K3S_SERVICE=/etc/systemd/system/k3s.service + FILE_K3S_ENV=/etc/systemd/system/k3s.service.env ++ get_installed_hashes ++ sudo sha256sum /usr/local/bin/k3s /etc/systemd/system/k3s.service /etc/systemd/system/k3s.service.env ++ true + PRE_INSTALL_HASHES='3365b9fd3c8c9aed010645b7a87b5d4113e5b77f807d5d3c8afc4130a2338c82 /usr/local/bin/k3s sha256sum: /etc/systemd/system/k3s.service: No such file or directory sha256sum: /etc/systemd/system/k3s.service.env: No such file or directory' + '[' '' = true ']' + INSTALL_K3S_CHANNEL_URL=https://update.k3s.io/v1-release/channels + INSTALL_K3S_CHANNEL=stable + download_and_verify + can_skip_download + '[' true '!=' true ']' + info 'Skipping k3s download and verify' + echo '[INFO] ' 'Skipping k3s download and verify' [INFO] Skipping k3s download and verify + verify_k3s_is_executable + '[' '!' -x /usr/local/bin/k3s ']' + return + setup_selinux + case ${INSTALL_K3S_CHANNEL} in + rpm_channel=stable + rpm_site=rpm.rancher.io + '[' stable = testing ']' + '[' -r /etc/os-release ']' + . /etc/os-release ++ NAME=openEuler ++ VERSION='24.03 (LTS)' ++ ID=openEuler ++ VERSION_ID=24.03 ++ PRETTY_NAME='openEuler 24.03 (LTS)' ++ ANSI_COLOR='0;31' + '[' '' = suse ']' + '[' 24 = 7 ']' + rpm_target=el8 + rpm_site_infix=centos/8 + package_installer=yum + '[' yum = yum ']' + '[' -x /usr/bin/dnf ']' + package_installer=dnf + policy_hint='please install: dnf install -y container-selinux dnf install -y https://rpm.rancher.io/k3s/stable/common/centos/8/noarch/k3s-selinux-0.4-1.el8.noarch.rpm ' + '[' '' = true ']' + can_skip_download + '[' true '!=' true ']' + info 'Skipping installation of SELinux RPM' + echo '[INFO] ' 'Skipping installation of SELinux RPM' [INFO] Skipping installation of SELinux RPM + policy_error=fatal + '[' '' = true ']' + '[' '' = coreos ']' + '[' '' = coreos ']' + sudo chcon -u system_u -r object_r -t container_runtime_exec_t /usr/local/bin/k3s + sudo grep '^\s*SELINUX=enforcing' /etc/selinux/config + fatal 'Failed to apply container_runtime_exec_t to /usr/local/bin/k3s, please install: dnf install -y container-selinux dnf install -y https://rpm.rancher.io/k3s/stable/common/centos/8/noarch/k3s-selinux-0.4-1.el8.noarch.rpm ' + echo '[ERROR] ' 'Failed to apply container_runtime_exec_t to /usr/local/bin/k3s, please install: dnf install -y container-selinux dnf install -y https://rpm.rancher.io/k3s/stable/common/centos/8/noarch/k3s-selinux-0.4-1.el8.noarch.rpm ' [ERROR] Failed to apply container_runtime_exec_t to /usr/local/bin/k3s, please install: dnf install -y container-selinux dnf install -y https://rpm.rancher.io/k3s/stable/common/centos/8/noarch/k3s-selinux-0.4-1.el8.noarch.rpm + exit 1 [openeuler@openeuler-riscv64 ~]$ ``` Note: 检查了下 SELinux 状态,目前已禁用 ```log [openeuler@openeuler-riscv64 ~]$ getenforce Disabled ``` 主要报错提示的是 `Failed to apply container_runtime_exec_t to /usr/local/bin/k3s` `k3s` 二进制是存在且可以正常运行 `k3s server` 的
评论 (
3
)
登录
后才可以发表评论
状态
已完成
待办的
已挂起
修复中
已确认
已完成
已验收
已取消
负责人
未设置
标签
sig/sig-RISC-V
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(3)
Shell
1
https://gitee.com/openeuler/RISC-V.git
git@gitee.com:openeuler/RISC-V.git
openeuler
RISC-V
RISC-V
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册