Bug 5477 - [Anolis23 GA]][x86_64/aarch64][软件兼容性] opengauss包解压后通过simpleInstall/install.sh脚本安装数据库失败,导致软件兼容性测试用例opengauss.py执行失败
Summary: [Anolis23 GA]][x86_64/aarch64][软件兼容性] opengauss包解压后通过simpleInstall/install.sh...
Status: NEW
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 23.0
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: happy_orange
QA Contact: bolong_tbl
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-09 14:10 UTC by yunhe123
Modified: 2023-06-19 15:56 UTC (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yunhe123 alibaba_cloud_group 2023-06-09 14:10:43 UTC
Description of problem:
opengauss包解压后通过simpleInstall/install.sh脚本安装数据库失败,日志如下:
sh install.sh  -w "openGauss1234" 
[step 1]: check parameter
[step 2]: check install env and os setting
[step 3]: change_gausshome_owner
[step 4]: set environment variables

[step 6]: init datanode
gs_initdb: invalid locale name "en_US.UTF-8"
[step 7]: start datanode
[2023-06-09 11:13:55.543][955938][][gs_ctl]: gs_ctl started,datadir is /home/ali/data/single_node
[2023-06-09 11:13:55.543][955938][][gs_ctl]: can't create lock file "/home/ali/data/single_node/pg_ctl.lock" : No such file or directoryimport sql file
Would you like to create a demo database (yes/no)? yes
Load demoDB failed, you can check load.log for more details.




Version-Release number of selected component (if applicable):
wget -c  https://opengauss.obs.cn-south-1.myhuaweicloud.com/2.0.1/x86/openGauss-2.0.1-CentOS-64bit.tar.bz2

How reproducible:
必现

Steps to Reproduce:
1.安装依赖包:
yum install -y ncurses-devel libaio-devel flex bison ncurses-devel
yum install -y glibc-devel patch readline-devel libnsl wget tar
2.创建超链接
ln -s /usr/lib64/libncurses.so.6 /usr/lib64/libncurses.so.5
ln -s /usr/lib64/libncurses.so.6 /usr/lib64/libtinfo.so.5
ln -s /usr/lib64/libreadline.so.8.2 /usr/lib64/libtinfo.so.5
3.创建普通用户
useradd ali
usermod -G wheel ali
su - ali
4.以下操作都在普通用户下执行:
wget -c  https://opengauss.obs.cn-south-1.myhuaweicloud.com/2.0.1/x86/openGauss-2.0.1-CentOS-64bit.tar.bz2
tar xvf openGauss-2.0.1-CentOS-64bit.tar.bz2
cd simpleInstall/


Actual results:
通过simpleInstall/install.sh脚本安装数据库失败:
sh install.sh  -w "openGauss1234" 
[step 1]: check parameter
[step 2]: check install env and os setting
[step 3]: change_gausshome_owner
[step 4]: set environment variables

[step 6]: init datanode
gs_initdb: invalid locale name "en_US.UTF-8"
[step 7]: start datanode
[2023-06-09 11:13:55.543][955938][][gs_ctl]: gs_ctl started,datadir is /home/ali/data/single_node
[2023-06-09 11:13:55.543][955938][][gs_ctl]: can't create lock file "/home/ali/data/single_node/pg_ctl.lock" : No such file or directoryimport sql file
Would you like to create a demo database (yes/no)? yes
Load demoDB failed, you can check load.log for more details.


Expected results:
通过simpleInstall/install.sh脚本安装数据库成功


Additional info:
测试环境信息:
# uname -r
5.10.134-14.an23.x86_64

[root@iZbp11e7xkvmf0t109pxmtZ lest]# free -h
               total        used        free      shared  buff/cache   available
Mem:            30Gi       615Mi        20Gi       2.0Mi       9.3Gi        29Gi
Swap:             0B          0B          0B

[root@iZbp11e7xkvmf0t109pxmtZ lest]# lscpu
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         46 bits physical, 57 bits virtual
  Byte Order:            Little Endian
CPU(s):                  8
  On-line CPU(s) list:   0-7
Vendor ID:               GenuineIntel
  BIOS Vendor ID:        Alibaba Cloud
  Model name:            Intel(R) Xeon(R) Platinum 8369B CPU @ 2.70GHz
    BIOS Model name:     pc-i440fx-2.1  CPU @ 0.0GHz
    BIOS CPU family:     1
    CPU family:          6
    Model:               106
    Thread(s) per core:  2
    Core(s) per socket:  4
    Socket(s):           1
    Stepping:            6
    BogoMIPS:            5399.99
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant
                         _tsc rep_good nopl nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt ae
                         s xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single ibrs_enhanced fsgsbase tsc_adjust bmi1 avx2 smep bmi2
                          erms invpcid avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves wb
                         noinvd arat avx512vbmi pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid fsrm arch_capabilities
Virtualization features:
  Hypervisor vendor:     KVM
  Virtualization type:   full
Caches (sum of all):
  L1d:                   192 KiB (4 instances)
  L1i:                   128 KiB (4 instances)
  L2:                    5 MiB (4 instances)
  L3:                    48 MiB (1 instance)
NUMA:
  NUMA node(s):          1
  NUMA node0 CPU(s):     0-7
Vulnerabilities:
  Itlb multihit:         Not affected
  L1tf:                  Not affected
  Mds:                   Not affected
  Meltdown:              Not affected
  Mmio stale data:       Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
  Retbleed:              Not affected
  Spec store bypass:     Vulnerable
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:            Mitigation; Enhanced IBRS, RSB filling, PBRSB-eIBRS SW sequence
  Srbds:                 Not affected
  Tsx async abort:       Not affected

[root@iZbp11e7xkvmf0t109pxmtZ lest]# cat /etc/os-release
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"