【 使用版本 v 4.3.2 】
【问题描述】使用pbd部署集群及OCP完成后,初始化过程中的问题,Install ocp agent 步骤出的问题。
错误提示:
错误码CMP10102
错误信息执行 SSH 命令失败,错误信息:dpkg: warning: 'ldconfig' not found in PATH or not executable dpkg: warning: 'start-stop-daemon' not found in PATH or not executable dpkg: error: 2 expected programs not found in PATH or not executable Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin Unable to install at /usr/share/perl5/Alien/Package/Deb.pm line 97.
错误原因在主机 10.46.128.11 上执行命令 /tmp/d997e146ce2e4c02/install_package.sh 失败,退出码:2,错误信息:dpkg: warning: 'ldconfig' not found in PATH or not executable dpkg: warning: 'start-stop-daemon' not found in PATH or not executable dpkg: error: 2 expected programs not found in PATH or not executable Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin Unable to install at /usr/share/perl5/Alien/Package/Deb.pm line 97.
$ ssh dba@'10.192.128.11' 'sudo bash /tmp/a73a415925994a44/install_package.sh'
dpkg --no-force-overwrite -i ocp-agent-ce_4.3.2-20241012145836.el7_amd64.deb
Selecting previously unselected package ocp-agent-ce.
(Reading database ... 93658 files and directories currently installed.)
Preparing to unpack ocp-agent-ce_4.3.2-20241012145836.el7_amd64.deb ...
Unpacking ocp-agent-ce (4.3.2-20241012145836.el7) ...
Setting up ocp-agent-ce (4.3.2-20241012145836.el7) ...
Processing triggers for libc-bin (2.31-13+deb11u10) ...
dba@mongodb10-online-cmpri:/home/admin$ ssh dba@'10.192.128.11' 'sudo dpkg --help'
Usage: dpkg [<option>...] <command>
Commands:
...
...
...
Comparison operators for --compare-versions are:
lt le eq ne ge gt (treat empty version as earlier than any version);
lt-nl le-nl ge-nl gt-nl (treat empty version as later than any version);
< << <= = >= >> > (only for compatibility with control file syntax).
Use 'apt' or 'aptitude' for user-friendly package management.
$ ssh dba@'10.192.128.11' 'bash /tmp/83e4d0b93a2046d7/install_package.sh'
dpkg --no-force-overwrite -i ocp-agent-ce_4.3.2-20241012145836.el7_amd64.deb
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
find ocp-agent-ce-4.3.2 -type d -exec chmod 755 {} ;
Unable to install at /usr/share/perl5/Alien/Package/Deb.pm line 97.
rm -rf ocp-agent-ce-4.3.2