openeuler22.03系统salt-minion启动报“Invalid version: ‘cpython‘“错的问题处理

某日,检查发现一台openeuler22.03 SP1系统的服务器上之前正常运行的saltstack客户端minion未运行,查看服务状态,报"Invalid version: 'cpython'"错,无法正常运行,本文记录问题处理过程。

一、检查salt-minion服务状态:

 详细报错文本如下

[root@localhost ~]# systemctl status salt-minion
× salt-minion.service - The Salt Minion
     Loaded: loaded (/usr/lib/systemd/system/salt-minion.service; disabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Sun 2023-06-25 15:26:07 CST; 1h 44min ago
       Docs: man:salt-minion(1)
             file:///usr/share/doc/salt/html/contents.html
             https://docs.saltproject.io/en/latest/contents.html
    Process: 9808 ExecStart=/usr/bin/salt-minion (code=exited, status=1/FAILURE)
   Main PID: 9808 (code=exited, status=1/FAILURE)

Jun 25 15:26:07 localhost.localdomain salt-minion[9808]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/specifiers.py", lin>
Jun 25 15:26:07 localhost.localdomain salt-minion[9808]:     normalized_item = _coerce_version(item)
Jun 25 15:26:07 localhost.localdomain salt-minion[9808]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/specifiers.py", lin>
Jun 25 15:26:07 localhost.localdomain salt-minion[9808]:     version = Version(version)
Jun 25 15:26:07 localhost.localdomain salt-minion[9808]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/version.py", line 1>
Jun 25 15:26:07 localhost.localdomain salt-minion[9808]:     raise InvalidVersion(f"Invalid version: '{version}'")
Jun 25 15:26:07 localhost.localdomain salt-minion[9808]: pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: 'cpython'
Jun 25 15:26:07 localhost.localdomain systemd[1]: salt-minion.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:26:07 localhost.localdomain systemd[1]: salt-minion.service: Failed with result 'exit-code'.
Jun 25 15:26:07 localhost.localdomain systemd[1]: Failed to start The Salt Minion.

查看状态,报"Invalid version: 'cpython'"错,服务无法正常运行。

[root@localhost ~]# journalctl -xeu salt-minion.service
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1475, in evaluate>
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:     return marker.evaluate()
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/markers.py", line >
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:     return _evaluate_markers(self._markers, current_environment)
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/markers.py", line >
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:     groups[-1].append(_eval_op(lhs_value, op, rhs_value))
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/markers.py", line >
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:     return spec.contains(lhs, prereleases=True)
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/specifiers.py", li>
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:     normalized_item = _coerce_version(item)
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/specifiers.py", li>
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:     version = Version(version)
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:   File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/version.py", line >
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]:     raise InvalidVersion(f"Invalid version: '{version}'")
Jun 26 14:40:27 localhost.localdomain salt-minion[82603]: pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: 'cpython'
Jun 26 14:40:27 localhost.localdomain systemd[1]: salt-minion.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit salt-minion.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
Jun 26 14:40:27 localhost.localdomain systemd[1]: salt-minion.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit salt-minion.service has entered the 'failed' state with result 'exit-code'.
Jun 26 14:40:27 localhost.localdomain systemd[1]: Failed to start The Salt Minion.
░░ Subject: A start job for unit salt-minion.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit salt-minion.service has finished with a failure.
░░ 
░░ The job identifier is 6157 and the job result is failed.

二、排查过程

出错信息为cpython版本无效,判断因为cpython包版本发生变化所致。

1、对比异常主机和正常主机的python版本,均显示为Python3.9.9,没有问题:

# python3 --version
Python 3.9.9

2、用“pip list”指令对比两台主机上的python包,可以看到异常主机更新了setuptools和Jinja2等部分软件包。

异常系统正常系统对比
adagio0.2.4
antlr4-python3-runtime4.11.1
appdirs1.4.4
Babel2.9.1Babel2.9.1
bcrypt4.0.1
cffi1.15.1
chardet5.0.0chardet5.0.0
charset-normalizer2.0.12charset-normalizer2.0.12
configobj5.0.6configobj5.0.6
contourpy1.1.0
cryptography41.0.1
cycler0.11.0
datacompy0.10.1
dbus-python1.2.18dbus-python1.2.18
DBUtils1.3
decorator5.0.9decorator5.0.9
distro1.6.0distro1.6.0
fonttools4.40.0
fs2.4.16
fugue0.8.4
fugue-sql-antlr0.1.6
gpg1.16.0gpg1.16.0
greenlet2.0.2
idna3.2idna3.2
importlib-resources5.12.0
Jinja23.1.2Jinja23.0.3版本不一致
joblib1.2.0
kiwisolver1.4.4
libcomps0.1.18libcomps0.1.18
MarkupSafe2.1.3MarkupSafe2.0.1版本不一致
msgpack1.0.2msgpack1.0.2
nftables0.1nftables0.1
numpy1.24.0
ordered-set4.1.0
packaging23.1
pandas1.1.5
paramiko3.2.0
perf0.1perf0.1
Pillow9.5.0
pip21.3.1pip21.3.1
psutil5.9.0psutil5.9.0
psycopg2-binary2.9.6
pyarrow12.0.1
pycairo1.21.0pycairo1.21.0
pycparser2.21
pycryptodomex3.15.0pycryptodomex3.15.0
pycurl7.44.1pycurl7.44.1
PyGObject3.42.0PyGObject3.42.0
PyMySQL1.0.3
PyNaCl1.5.0
pyparsing3.1.0pyparsing3.0.6版本不一致
PySocks1.7.1PySocks1.7.1
python-dateutil2.8.2python-dateutil2.8.2
python-linux-procfs0.7.0python-linux-procfs0.7.0
pytz2023.3pytz2021.3版本不一致
pyudev0.24.0pyudev0.24.0
PyYAML6PyYAML6
pyzmq20.0.0pyzmq20.0.0
qpd0.4.3
requests2.26.0requests2.26.0
rpm4.17.0rpm4.17.0
salt3003.3salt3003.3
schedutils0.6schedutils0.6
scikit-learn1.2.2
scipy1.10.1
setuptools67.8.0setuptools59.4.0版本不一致
six1.16.0six1.16.0
SQLAlchemy1.4.39
sqlglot16.3.1
SSSDConfig2.6.1SSSDConfig2.6.1
threadpoolctl3.1.0
triad0.9.0
typing_extensions4.6.3
tzdata2023.3
urllib31.26.12urllib31.26.12
wheel0.40.0
xlwt1.3.0
zipp3.15.0

3、本主机现在的salt-minion为rpm包安装,尝试卸载并重装salt-minion

[root@localhost ~]# yum remove salt-minion
Dependencies resolved.
============================================================================================================================================================
 Package                                          Architecture                 Version                                    Repository                   Size
============================================================================================================================================================
Removing:
 salt-minion                                      noarch                       3003.3-1                                   @salt                        73 k
Removing unused dependencies:
 libsodium                                        x86_64                       1.0.18-1.oe2203sp1                         @OS                         360 k
 libtomcrypt                                      x86_64                       1.18.2-
...
Removed:
  libsodium-1.0.18-1.oe2203sp1.x86_64              libtomcrypt-1.18.2-5.oe2203sp1.x86_64                      libtommath-1.2.0-2.oe2203sp1.x86_64           
  libunwind-2:1.6.2-2.oe2203sp1.x86_64             openpgm-5.2.122-16.oe2203sp1.x86_64                        python3-babel-2.9.1-2.oe2203sp1.noarch        
  python3-chardet-5.0.0-1.oe2203sp1.noarch         python3-charset-normalizer-2.0.12-1.oe2203sp1.noarch       python3-idna-3.2-2.oe2203sp1.noarch           
  python3-jinja2-3.0.3-2.oe2203sp1.noarch          python3-markupsafe-2.0.1-3.oe2203sp1.x86_64                python3-msgpack-1.0.2-2.oe2203.x86_64         
  python3-psutil-5.9.0-1.oe2203sp1.x86_64          python3-pycryptodomex-3.15.0-1.oe2203sp1.x86_64            python3-pycurl-7.44.1-3.oe2203sp1.x86_64      
  python3-pysocks-1.7.1-2.oe2203sp1.noarch         python3-pytz-2021.3-2.oe2203sp1.noarch                     python3-pyyaml-6.0-2.oe2203sp1.x86_64         
  python3-requests-2.26.0-7.oe2203sp1.noarch       python3-urllib3-1.26.12-1.oe2203sp1.noarch                 python3-zmq-20.0.0-1.x86_64                   
  salt-3003.3-1.noarch                             salt-minion-3003.3-1.noarch                                zeromq-4.3.4-3.oe2203sp1.x86_64               

Complete!
(py399) [root@localhost py399]# yum install salt-minion
Last metadata expiration check: 4:40:25 ago on Mon 26 Jun 2023 11:45:58 AM CST.
Dependencies resolved.
============================================================================================================================================================
 Package                                          Architecture                 Version                                     Repository                  Size
============================================================================================================================================================
Installing:
 salt-minion                                      noarch                       3003.3-1                                    salt                        33 k
Installing dependencies:
 libsodium                                        x86_64                       1.0.18-1.oe2203sp1                          OS                         155 k
...
Installed:
  libsodium-1.0.18-1.oe2203sp1.x86_64              libtomcrypt-1.18.2-5.oe2203sp1.x86_64                      libtommath-1.2.0-2.oe2203sp1.x86_64           
  libunwind-2:1.6.2-2.oe2203sp1.x86_64             openpgm-5.2.122-16.oe2203sp1.x86_64                        python3-babel-2.9.1-2.oe2203sp1.noarch        
  python3-chardet-5.0.0-1.oe2203sp1.noarch         python3-charset-normalizer-2.0.12-1.oe2203sp1.noarch       python3-idna-3.2-2.oe2203sp1.noarch           
  python3-jinja2-3.0.3-2.oe2203sp1.noarch          python3-markupsafe-2.0.1-3.oe2203sp1.x86_64                python3-msgpack-1.0.2-2.oe2203.x86_64         
  python3-psutil-5.9.0-1.oe2203sp1.x86_64          python3-pycryptodomex-3.15.0-1.oe2203sp1.x86_64            python3-pycurl-7.44.1-3.oe2203sp1.x86_64      
  python3-pysocks-1.7.1-2.oe2203sp1.noarch         python3-pytz-2021.3-2.oe2203sp1.noarch                     python3-pyyaml-6.0-2.oe2203sp1.x86_64         
  python3-requests-2.26.0-7.oe2203sp1.noarch       python3-urllib3-1.26.12-1.oe2203sp1.noarch                 python3-zmq-20.0.0-1.x86_64                   
  salt-3003.3-1.noarch                             salt-minion-3003.3-1.noarch                                zeromq-4.3.4-3.oe2203sp1.x86_64               

Complete!

可以看到,相关rpm包已被重置,重启服务,问题依旧。仔细核对,卸载和重装清单中的rpm包版本一致,为salt-minion运行正常时的初始版本。可以确定是应用方使用pip安装了高版本的python程序包导致程序运行环境有问题,salt-minion不能正常运行了。

三、解决办法

既然rpm包重装不能解决pip安装引起的python环境问题,考虑转为通过pip方法安装salt-minion。

1、卸载salt-minion的rpm运行环境

[root@localhost ~]# yum remove salt-minion
Dependencies resolved.
============================================================================================================================================================
 Package                                          Architecture                 Version                                    Repository                   Size
============================================================================================================================================================
Removing:
 salt-minion                                      noarch                       3003.3-1                                   @salt                        73 k
Removing unused dependencies:
 libsodium                                        x86_64                       1.0.18-1.oe2203sp1                         @OS                         360 k
 libtomcrypt                                      x86_64                       1.18.2-
...
Removed:
  libsodium-1.0.18-1.oe2203sp1.x86_64              libtomcrypt-1.18.2-5.oe2203sp1.x86_64                      libtommath-1.2.0-2.oe2203sp1.x86_64           
  libunwind-2:1.6.2-2.oe2203sp1.x86_64             openpgm-5.2.122-16.oe2203sp1.x86_64                        python3-babel-2.9.1-2.oe2203sp1.noarch        
  python3-chardet-5.0.0-1.oe2203sp1.noarch         python3-charset-normalizer-2.0.12-1.oe2203sp1.noarch       python3-idna-3.2-2.oe2203sp1.noarch           
  python3-jinja2-3.0.3-2.oe2203sp1.noarch          python3-markupsafe-2.0.1-3.oe2203sp1.x86_64                python3-msgpack-1.0.2-2.oe2203.x86_64         
  python3-psutil-5.9.0-1.oe2203sp1.x86_64          python3-pycryptodomex-3.15.0-1.oe2203sp1.x86_64            python3-pycurl-7.44.1-3.oe2203sp1.x86_64      
  python3-pysocks-1.7.1-2.oe2203sp1.noarch         python3-pytz-2021.3-2.oe2203sp1.noarch                     python3-pyyaml-6.0-2.oe2203sp1.x86_64         
  python3-requests-2.26.0-7.oe2203sp1.noarch       python3-urllib3-1.26.12-1.oe2203sp1.noarch                 python3-zmq-20.0.0-1.x86_64                   
  salt-3003.3-1.noarch                             salt-minion-3003.3-1.noarch                                zeromq-4.3.4-3.oe2203sp1.x86_64               

Complete!

2、通过pip安装salt-minion

请参见本人所写文章国产操作系统openEuler22.03LTS离线安装saltstack3003.1实践

[root@localhost]# sh salt-install.sh
--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/certifi-2022.12.7-py3-none-any.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 155255 (152K) [application/octet-stream]
Saving to: ‘certifi-2022.12.7-py3-none-any.whl’

certifi-2022.12.7-py3-none-any.whl     100%[============================================================================>] 151.62K  --.-KB/s    in 0.004s  

2023-06-26 16:38:21 (34.5 MB/s) - ‘certifi-2022.12.7-py3-none-any.whl’ saved [155255/155255]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/charset_normalizer-2.1.1-py3-none-any.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 39748 (39K) [application/octet-stream]
Saving to: ‘charset_normalizer-2.1.1-py3-none-any.whl’

charset_normalizer-2.1.1-py3-none-any. 100%[============================================================================>]  38.82K  --.-KB/s    in 0.001s  

2023-06-26 16:38:21 (25.6 MB/s) - ‘charset_normalizer-2.1.1-py3-none-any.whl’ saved [39748/39748]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/idna-3.4-py3-none-any.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 61538 (60K) [application/octet-stream]
Saving to: ‘idna-3.4-py3-none-any.whl’

idna-3.4-py3-none-any.whl              100%[============================================================================>]  60.10K  --.-KB/s    in 0.004s  

2023-06-26 16:38:21 (14.2 MB/s) - ‘idna-3.4-py3-none-any.whl’ saved [61538/61538]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/immutables-0.19-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 120382 (118K) [application/octet-stream]
Saving to: ‘immutables-0.19-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl’

immutables-0.19-cp39-cp39-manylinux_2_ 100%[============================================================================>] 117.56K  --.-KB/s    in 0.008s  

2023-06-26 16:38:21 (14.1 MB/s) - ‘immutables-0.19-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl’ saved [120382/120382]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/Jinja2-3.0.0-py3-none-any.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 133357 (130K) [application/octet-stream]
Saving to: ‘Jinja2-3.0.0-py3-none-any.whl’

Jinja2-3.0.0-py3-none-any.whl          100%[============================================================================>] 130.23K  --.-KB/s    in 0.008s  

2023-06-26 16:38:21 (16.3 MB/s) - ‘Jinja2-3.0.0-py3-none-any.whl’ saved [133357/133357]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/jmespath-1.0.1-py3-none-any.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20256 (20K) [application/octet-stream]
Saving to: ‘jmespath-1.0.1-py3-none-any.whl’

jmespath-1.0.1-py3-none-any.whl        100%[============================================================================>]  19.78K  --.-KB/s    in 0.003s  

2023-06-26 16:38:21 (6.62 MB/s) - ‘jmespath-1.0.1-py3-none-any.whl’ saved [20256/20256]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/MarkupSafe-2.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 25466 (25K) [application/octet-stream]
Saving to: ‘MarkupSafe-2.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl’

MarkupSafe-2.1.1-cp39-cp39-manylinux_2 100%[============================================================================>]  24.87K  --.-KB/s    in 0.003s  

2023-06-26 16:38:21 (7.77 MB/s) - ‘MarkupSafe-2.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl’ saved [25466/25466]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/msgpack-1.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 322372 (315K) [application/octet-stream]
Saving to: ‘msgpack-1.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl’

msgpack-1.0.4-cp39-cp39-manylinux_2_17 100%[============================================================================>] 314.82K  1.32MB/s    in 0.2s    

2023-06-26 16:38:21 (1.32 MB/s) - ‘msgpack-1.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl’ saved [322372/322372]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/psutil-5.9.4-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 280218 (274K) [application/octet-stream]
Saving to: ‘psutil-5.9.4-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl’

psutil-5.9.4-cp36-abi3-manylinux_2_12_ 100%[============================================================================>] 273.65K  --.-KB/s    in 0.002s  

2023-06-26 16:38:21 (146 MB/s) - ‘psutil-5.9.4-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl’ saved [280218/280218]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/pycryptodomex-3.16.0-cp35-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2308483 (2.2M) [application/octet-stream]
Saving to: ‘pycryptodomex-3.16.0-cp35-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl’

pycryptodomex-3.16.0-cp35-abi3-manylin 100%[============================================================================>]   2.20M  --.-KB/s    in 0.01s   

2023-06-26 16:38:21 (163 MB/s) - ‘pycryptodomex-3.16.0-cp35-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl’ saved [2308483/2308483]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 661819 (646K) [application/octet-stream]
Saving to: ‘PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl’

PyYAML-6.0-cp39-cp39-manylinux_2_5_x86 100%[============================================================================>] 646.31K  --.-KB/s    in 0.003s  

2023-06-26 16:38:21 (245 MB/s) - ‘PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl’ saved [661819/661819]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/pyzmq-20.0.0-cp39-cp39-manylinux1_x86_64.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1082600 (1.0M) [application/octet-stream]
Saving to: ‘pyzmq-20.0.0-cp39-cp39-manylinux1_x86_64.whl’

pyzmq-20.0.0-cp39-cp39-manylinux1_x86_ 100%[============================================================================>]   1.03M  --.-KB/s    in 0.003s  

2023-06-26 16:38:21 (387 MB/s) - ‘pyzmq-20.0.0-cp39-cp39-manylinux1_x86_64.whl’ saved [1082600/1082600]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/requests-2.28.1-py3-none-any.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 62843 (61K) [application/octet-stream]
Saving to: ‘requests-2.28.1-py3-none-any.whl’

requests-2.28.1-py3-none-any.whl       100%[============================================================================>]  61.37K  --.-KB/s    in 0s      

2023-06-26 16:38:21 (143 MB/s) - ‘requests-2.28.1-py3-none-any.whl’ saved [62843/62843]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/requirements-salt.txt
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 261 [text/plain]
Saving to: ‘requirements-salt.txt’

requirements-salt.txt                  100%[============================================================================>]     261  --.-KB/s    in 0s      

2023-06-26 16:38:21 (50.3 MB/s) - ‘requirements-salt.txt’ saved [261/261]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/urllib3-1.26.13-py2.py3-none-any.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 140572 (137K) [application/octet-stream]
Saving to: ‘urllib3-1.26.13-py2.py3-none-any.whl’

urllib3-1.26.13-py2.py3-none-any.whl   100%[============================================================================>] 137.28K  --.-KB/s    in 0.001s  

2023-06-26 16:38:21 (177 MB/s) - ‘urllib3-1.26.13-py2.py3-none-any.whl’ saved [140572/140572]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/salt-3003.1-py3-none-any.whl
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9654100 (9.2M) [application/octet-stream]
Saving to: ‘salt-3003.1-py3-none-any.whl’

salt-3003.1-py3-none-any.whl           100%[============================================================================>]   9.21M  --.-KB/s    in 0.02s   

2023-06-26 16:38:21 (378 MB/s) - ‘salt-3003.1-py3-none-any.whl’ saved [9654100/9654100]

--2023-06-26 16:38:21--  http://192.168.188.226/salt/openeuler22.03/contextvars-2.4.tar.gz
Connecting to 192.168.188.226:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9570 (9.3K) [application/octet-stream]
Saving to: ‘contextvars-2.4.tar.gz’

contextvars-2.4.tar.gz                 100%[============================================================================>]   9.35K  --.-KB/s    in 0s      

2023-06-26 16:38:21 (338 MB/s) - ‘contextvars-2.4.tar.gz’ saved [9570/9570]

WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Looking in links: .
Processing ./certifi-2022.12.7-py3-none-any.whl
Processing ./charset_normalizer-2.1.1-py3-none-any.whl
Processing ./contextvars-2.4.tar.gz
  Preparing metadata (setup.py) ... done
Processing ./idna-3.4-py3-none-any.whl
Processing ./immutables-0.19-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Processing ./Jinja2-3.0.0-py3-none-any.whl
Processing ./jmespath-1.0.1-py3-none-any.whl
Processing ./MarkupSafe-2.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Processing ./msgpack-1.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Processing ./psutil-5.9.4-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Processing ./pycryptodomex-3.16.0-cp35-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Processing ./PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Processing ./pyzmq-20.0.0-cp39-cp39-manylinux1_x86_64.whl
Processing ./requests-2.28.1-py3-none-any.whl
Processing ./urllib3-1.26.13-py2.py3-none-any.whl
Processing ./salt-3003.1-py3-none-any.whl
Requirement already satisfied: distro>=1.0.1 in /usr/lib/python3.9/site-packages (from salt==3003.1->-r requirements-salt.txt (line 16)) (1.6.0)
Building wheels for collected packages: contextvars
  Building wheel for contextvars (setup.py) ... done
  Created wheel for contextvars: filename=contextvars-2.4-py3-none-any.whl size=7666 sha256=dbb18cc07b1392bc24a124fc121ed4e28dfc0171def30e1e2ba0632b2e2ba734
  Stored in directory: /root/.cache/pip/wheels/bb/5f/16/d6721278108c7e5658c0e01b054a1f4459ea09d55478a81eec
Successfully built contextvars
Installing collected packages: urllib3, MarkupSafe, immutables, idna, charset-normalizer, certifi, requests, pyzmq, PyYAML, pycryptodomex, msgpack, Jinja2, contextvars, salt, psutil, jmespath
  Attempting uninstall: MarkupSafe
    Found existing installation: MarkupSafe 2.1.3
    Uninstalling MarkupSafe-2.1.3:
      Successfully uninstalled MarkupSafe-2.1.3
  Attempting uninstall: Jinja2
    Found existing installation: Jinja2 3.1.2
    Uninstalling Jinja2-3.1.2:
      Successfully uninstalled Jinja2-3.1.2
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
fugue 0.8.4 requires pandas>=1.2.0, but you have pandas 1.1.5 which is incompatible.
Successfully installed Jinja2-3.0.0 MarkupSafe-2.1.1 PyYAML-6.0 certifi-2022.12.7 charset-normalizer-2.1.1 contextvars-2.4 idna-3.4 immutables-0.19 jmespath-1.0.1 msgpack-1.0.4 psutil-5.9.4 pycryptodomex-3.16.0 pyzmq-20.0.0 requests-2.28.1 salt-3003.1 urllib3-1.26.13
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
/usr/local/bin/salt-minion
salt 3003.1
● salt-minion.service - The Salt Minion
     Loaded: loaded (/usr/lib/systemd/system/salt-minion.service; disabled; vendor preset: disabled)
     Active: active (running) since Mon 2023-06-26 16:38:33 CST; 10ms ago
       Docs: man:salt-minion(1)
             file:///usr/share/doc/salt/html/contents.html
             https://docs.saltstack.com/en/latest/contents.html
   Main PID: 89894 (salt-minion)
      Tasks: 1 (limit: 1644176)
     Memory: 21.0M
     CGroup: /system.slice/salt-minion.service
             └─ 89894 /usr/bin/python3 /usr/local/bin/salt-minion

Jun 26 16:38:33 localhost.localdomain systemd[1]: Starting The Salt Minion...
Jun 26 16:38:33 localhost.localdomain systemd[1]: Started The Salt Minion.

安装成功完成,salt-minion运行正常。在安装过程中还可以看,MarkupSafe包从2.1.3降至2.1.1,Jinja2包从3.1.2降至3.0.0,问题得以解决(期间有个报错信息,提示pandas包要求>=1.2.0, 现有系统pandas 1.1.5不兼容,但实际无影响,就未做进一步处理)。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/32232.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

uniapp中小程序的生命周期

一、uni-app应用生命周期 函数名说明onLuaunch当uni-app 初始化完成时触发(全局只触发一次)onShow当 uni-app 启动,或从后台进入前台显示onHide当 uni-app 从前台进入后台onError当 uni-app 报错时触发onUniNViewMessage对 nvue 页面发送的数…

android jetpack Room的基本使用(java)

数据库的基本使用 添加依赖 //roomdef room_version "2.5.0"implementation "androidx.room:room-runtime:$room_version"annotationProcessor "androidx.room:room-compiler:$room_version"创建表 Entity表示根据实体类创建数据表&#xff0c…

发送图文并茂的html格式的邮件

本文介绍如何生成和发送包含图表和表格的邮件,涉及echarts图表转换为图片、图片内嵌到html邮件内容中、html邮件内容生成、邮件发送方法等 一、图表处理 因为html格式的邮件不支持echarts,也不支持js执行,所以图表需要转换为图片内嵌在邮件内容中 因为平…

【Java】Java核心 73:XML (中)

文章目录 5 XML的组成:字符区(了解)**6** **DTD约束(能够看懂即可)****1** **什么是DTD****2** **DTD约束的实现和语法规则(看懂dtd约束,书写符合规范的xml文件)** 5 XML的组成:字符区(了解) 当大量的转义字符出现在x…

ansible实训-Day1(Liunx基础问题总结及ansible安装环境前置部署)

一、前言 该篇是对本学期Ansible实训第一天内容的原理性总结,主要包括Liunx相关问题等基础性的问题总结以及ansible安装环境的前置部署。 二、Liunx是什么 Linux是一种自由和开放源代码的Unix操作系统,最初由芬兰人Linus Torvalds于1991年创建。与其他许…

浅谈Spring Cloud Gateway

网关:用户和微服务的桥梁 网关的核心是一组过滤器,按照先后顺序执行过滤操作。 Spring Cloud Gateway是基于webFlux框架实现,而webFlux框架底层则使用了高性能的Reactor模式通信框架的Netty Spring Cloud Gateway是Spring Cloud生态系统中的一个API网…

图解transformer中的自注意力机制

本文将将介绍注意力的概念从何而来,它是如何工作的以及它的简单的实现。 注意力机制 在整个注意力过程中,模型会学习了三个权重:查询、键和值。查询、键和值的思想来源于信息检索系统。所以我们先理解数据库查询的思想。 假设有一个数据库&#xff0c…

使用Servlet完成单表的增删改查功能以及使用模板方法设计模式解决类爆炸问题(重写service模板方法)

使用Servlet做一个单表的CRUD操作 开发前的准备 导入sql脚本创建一张部门表 drop table if exists dept; create table dept(deptno int primary key,dname varchar(255),loc varchar(255) ); insert into dept(deptno, dname, loc) values(10, XiaoShouBu, BeiJing); inser…

Python小游戏集合(开源、开源、免费下载)

Python小游戏集合 0. 前言1. 为什么用Python做游戏2. 小游戏集合及源代码(整理不易,一键三连)2.1 外星人小游戏2.2 塔防小游戏2.3 三国小游戏2.4 打飞机游戏2.5 飞机大战小游戏2.6 玛丽快跑小游戏2.7 涂鸦跳跃小游戏2.8 猜数字小游戏2.9 坦克…

吃透JAVA的Stream流操作,多年实践总结

在JAVA中,涉及到对数组、Collection等集合类中的元素进行操作的时候,通常会通过循环的方式进行逐个处理,或者使用Stream的方式进行处理。 例如,现在有这么一个需求: 从给定句子中返回单词长度大于5的单词列表&#xf…

求解矩阵行列式因子、不变因子、初等因子、Jordan标准形

首先,我们先来简要了解一下行列式因子、不变因子和初等因子的概念。 下面举例说明。 例1 首先,我们要求 λ I − A λI-A λI−A 然后,我们先求行列式因子。 D 2 ( λ ) D_2(λ) D2​(λ)的求法如下: 然后,我们再求…

Linux文件系统论述

目录 前言 一.磁盘 1.1定义 1.2结构 1.3磁盘的寻找方式 1.4磁盘的逻辑/线性结构 1.5磁盘访问的基本单位 1.6磁盘的管理 二.Linux文件系统 2.1系统结构 2.2属性解析: 2.3inode相关块的解析: 2.4数据块的解析: 前言 学了一段时间的Linux操…

基于Python垃圾短信识别程序(KNN、逻辑回归、随机森林、决策树和多项式分布朴素贝叶斯、伯努利分布朴素贝叶斯等算法进行融合)—含python工程全源码

目录 前言总体设计系统整体结构图请求流程图系统流程图 运行环境Python 环境jieba分词库Scikit-learn 库nginxphp 模块实现1. 前端模块2. 后端模块 系统测试1. 测试结果2. 结果对比3. 可视化部分 工程源代码下载其它资料下载 前言 本项目以Python为基础,旨在开发一…

Docker 安全及日志管理

目录 前言一、Docker 容器与虚拟机的区别1. 隔离与共享2. 性能与损耗 二、Docker 存在的安全问题1.Docker 自身漏洞2.Docker 源码问题 三、Docker 架构缺陷与安全机制四、Docker 安全基线标准五、容器相关的常用安全配置方法六、限制流量流向七、镜像安全八、避免Docker 容器中…

rust 集合、错误处理、泛型、Trait、生命周期、包

集合组织特性相同的数据;泛型可以定义任何抽象数据类型;生命周期限制所有权的作用域范围;错误处理使程序更健壮。 集合 一组特性相同的数据集合,除了基本数据类型的元组、数组。rust 标准库提供了一些非常有用的数据结构。 Vec…

短视频seo源码开发部署技术解析

短视频seo开发需要哪些技术 应用程序优化技术:包括应用程序的各种元素(如标题、描述、关键字、图标等)的优化和设置,以及应用程序内部链接和导航的合理布局和设置。 视频内容优化技术:包括视频标题、描述、标签、封面…

互斥锁、自旋锁、读写锁、悲观锁、乐观锁的应用场景

多线程访问共享资源的时候,避免不了资源竞争而导致数据错乱的问题,所以我们通常为了解决这一问题,都会在访问共享资源之前加锁。 最常用的就是互斥锁,当然还有很多种不同的锁,比如自旋锁、读写锁、乐观锁等&#xff0…

django中发送get post请求并获得数据

django中发送get post请求并获得数据 项目结构如下注册路由 urls.py在处理函数中处理请求 views.py进行 get的请求01浏览器 get请求传参数02服务器django get参数解析获取01浏览器 post的发送浏览器get 请求 获取页面返回的 form 发送post请求 带参数 02服务器django的post请求…

【嵌入式Qt开发入门】在Ubuntu下编写C++

在 Ubuntu 上面编写 C,本文内容主要介绍在 Ubuntu 在终端窗口下使用 vi/vim 编辑一 个 C源文件。通过编写最简单的示例“Hello,World!”。带领大家学习如何在 Ubuntu 终端下编辑和编译 C。这里要求大家会在 Ubuntu 上使用 vi/vim,也就是要求大…

Git分支使用方法

目录 前言 一、查看可用分支 二、创建新分支 三、切换到新分支 四、在新分支上进行工作 五、提交更改 六、切换回主分支 七、删除分支 八、合并分支 前言 分支是指在同一个代码仓库中的不同版本线。它们可以被用来同时开展不同的开发任务、修复bug或实现新功能&#…