Bug 5657 - [Anolis23 GA][aarch64]精简容器镜像anolisos:23-micro和anolisos:23-minimal存在基础命令报错
Summary: [Anolis23 GA][aarch64]精简容器镜像anolisos:23-micro和anolisos:23-minimal存在基础命令报错
Status: RESOLVED FIXED
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: BaseOS Modules (show other bugs) BaseOS Modules
Version: 23.0
Hardware: aarch64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: happy_orange
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-28 13:38 UTC by liuyaqing
Modified: 2023-07-19 17:23 UTC (History)
1 user (show)

See Also:


Attachments
容器基础命令报错 (9.44 MB, image/bmp)
2023-06-28 13:38 UTC, liuyaqing
Details
suse容器镜像mini,micro (8.05 MB, image/bmp)
2023-07-14 11:20 UTC, liuyaqing
Details
suse的busybox运行 (8.05 MB, image/bmp)
2023-07-14 11:26 UTC, liuyaqing
Details

Note You need to log in before you can comment on or make changes to this bug.
Description liuyaqing alibaba_cloud_group 2023-06-28 13:38:00 UTC
Created attachment 810 [details]
容器基础命令报错

Description of problem:
anolisos:23-micro和anolisos:23-minimal容器镜像在使用的时候存在报错:

bash-5.2# bzcmp                                                                                                                                                                                          
/usr/bin/bzcmp: line 16: sed: command not found
Usage:  [diff_options] file [file]
bash-5.2# bzdiff
/usr/bin/bzdiff: line 16: sed: command not found
Usage:  [diff_options] file [file]
bash-5.2# bzegrep
/usr/bin/bzegrep: line 11: sed: command not found
grep through bzip2 files
usage:  [grep_options] pattern [files]
bash-5.2# bzfgrep
/usr/bin/bzfgrep: line 11: sed: command not found
grep through bzip2 files
usage:  [grep_options] pattern [files]
bash-5.2# bzgrep
/usr/bin/bzgrep: line 11: sed: command not found
grep through bzip2 files
usage:  [grep_options] pattern [files]
bash-5.2# bzless
/usr/bin/bzless: line 8: sed: command not found
usage: files...
bash-5.2# bzmore
/usr/bin/bzmore: line 8: sed: command not found
usage: files...
bash-5.2# htdbm
htdbm: error while loading shared libraries: libcrypt.so.2: cannot open shared object file: No such file or directory
bash-5.2# htdigest
htdigest: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory
bash-5.2# htpasswd
htpasswd: error while loading shared libraries: libcrypt.so.2: cannot open shared object file: No such file or directory
bash-5.2# httxt2dbm
httxt2dbm: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory
bash-5.2# logresolve
logresolve: error while loading shared libraries: libuuid.so.1: cannot open shared object file: No such file or directory


Steps to Reproduce:
1.docker pull cloud-native-sig-registry.cn-hangzhou.cr.aliyuncs.com/openanolis/anolisos:23-micro && docker pull cloud-native-sig-registry.cn-hangzhou.cr.aliyuncs.com/openanolis/anolisos:23-minimal
2.docker run -itd cloud-native-sig-registry.cn-hangzhou.cr.aliyuncs.com/openanolis/anolisos:23-micro bash && docker run -itd cloud-native-sig-registry.cn-hangzhou.cr.aliyuncs.com/openanolis/anolisos:23-minimal bash
3. docker exec -it NAMES bash

Actual results:
执行基础命令存在command not fonud或error报错

Expected results:
执行基础命令没有报错

Additional info:
Comment 1 huangxing alibaba_cloud_group 2023-06-28 14:03:28 UTC
需要确认这些基础命令是否无须支持
Comment 2 liuyaqing alibaba_cloud_group 2023-06-28 16:00:02 UTC
x86anolisos:23-micro和anolisos:23-minimal容器镜像存在相同情况

另x86 anolisos:23-siliconfast和anolisos:23-busybox容器镜像存在部分基础命令报错,帮忙确认是否属于问题:

anolisos:23-siliconfast:
/ # dumpleases
dumpleases: can't open '/var/lib/misc/udhcpd.leases': No such file or directory
/ # eject
eject: can't open '/dev/cdrom': No such file or directory
/ # last 
last: can't open '/var/log/wtmp': No such file or directory
/ # arch 
x86_64

anolisos:23-busybox:
/ # conspy
conspy: can't open '/dev/vcsa': No such file or directory
/ # dumpleases
dumpleases: can't open '/var/lib/misc/udhcpd.leases': No such file or directory
/ # dumpleases
dumpleases: can't open '/var/lib/misc/udhcpd.leases': No such file or directory
/ # eject
eject: can't open '/dev/cdrom': No such file or directory
/ # last 
last: can't open '/var/log/wtmp': No such file or directory
/ # arch 
x86_64
Comment 3 liuyaqing alibaba_cloud_group 2023-06-29 15:36:30 UTC
x86的SiliconFast容器的dumpleases,eject,last存在相同的情况
Comment 4 happy_orange alibaba_cloud_group 2023-06-29 21:15:36 UTC
容器镜像的支持 scope 不清晰,我们需要在 rnotes 或者其他文档中提供 bydesign 的点。
Comment 5 liuyaqing alibaba_cloud_group 2023-07-14 11:20:27 UTC
Created attachment 854 [details]
suse容器镜像mini,micro
Comment 6 liuyaqing alibaba_cloud_group 2023-07-14 11:24:20 UTC
使用suse的容器镜像registry.suse.com/bci/bci-minimal:latest,registry.suse.com/bci/bci-micro:latest,registry.suse.com/bci/bci-busybox:latest
suse的mini,micro精简镜像里没有bz*和ht*以及logresolve相关的命令
suse的busybox精简镜像里没有dumpleases,conspy,eject命令,在suse的busybox里直接执行last和在anolis23的busybox里直接执行last结果情况相同,详情见附件
Comment 7 liuyaqing alibaba_cloud_group 2023-07-14 11:26:19 UTC
Created attachment 855 [details]
suse的busybox运行
Comment 8 liuyaqing alibaba_cloud_group 2023-07-17 13:03:08 UTC
suse这种不可用的命令是不在/usr/bin里的,anolis是否也需要去掉这些不可用的命令
Comment 9 happy_orange alibaba_cloud_group 2023-07-17 14:07:45 UTC
(In reply to liuyaqing from comment #6)
> 使用suse的容器镜像registry.suse.com/bci/bci-minimal:latest,registry.suse.com/bci/
> bci-micro:latest,registry.suse.com/bci/bci-busybox:latest
> suse的mini,micro精简镜像里没有bz*和ht*以及logresolve相关的命令
> suse的busybox精简镜像里没有dumpleases,conspy,eject命令,
> 在suse的busybox里直接执行last和在anolis23的busybox里直接执行last结果情况相同,详情见附件

我们和 suse 是两套环境,按照我们自己的需求点来测试就可以了~
mini 和 micro 主要区分在提供 microdnf 和 dnf 的差异上,既然需要进行解析远端 yum 源,就需要对应的 resolve 文件。

busybox 中现在所有的二进制均由 busybox 软件提供。
Comment 10 liuyaqing alibaba_cloud_group 2023-07-19 16:27:49 UTC
执行dumpleases,conspy,eject,last等存在No such file or directory的情况,影响命令功能的使用,建议把这个问题再看一下
Comment 11 liuyaqing alibaba_cloud_group 2023-07-19 17:23:42 UTC
使用 registry.openanolis.cn/openanolis/anolisos:23-busybox,registry.openanolis.cn/openanolis/anolisos:23-micro,registry.openanolis.cn/openanolis/anolisos:23-minimal精简镜像,没有再看到bug里报错误的命令,结果符合预期,bug状态从BYDESIGN置为FIXED