Openstack-ansible setup-openstack.yml在任务[os_keystone:为Keystone创建Fernet密钥]上出错

问题描述 投票:0回答:1

有人可以帮我吗?,适用于Openstack的git标签20.0.0(f2ff7902)运行openstack-ansible setup-openstack.yml时遇到麻烦

Keystone Version 20.0.0
Failure On TASK [os_keystone : Create fernet keys for Keystone] *********************************************************************************************** 
fatal: [infra1_keystone_container-54825051]: FAILED! => {"changed": false, "cmd": "/openstack/venvs/keystone-20.0.0/bin/keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone", "msg": "[Errno 2] No such file or directory", "rc": 2}

为什么它缺少梯形失真管理文件?

然后,我尝试在梯形失真校正容器上运行pip install要求,但收到以下错误,这是我在目标主机上运行的命令及其错误

sudo lxc-attach --name infra1_keystone_container-54825051
cd /openstack/venvs/keystone-20.0.0
source /bin/activate
pip install -r requirements.txt

错误:

(keystone-20.0.0) [root@infra1-keystone-container-54825051 keystone-20.0.0]# pip install -r requirements.txt
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting keystone
  Using cached https://files.pythonhosted.org/packages/4e/e6/22f5a2ee899c4cca1b20e07458ac72cb267ca5ad162f77affea942161fe9/keystone-16.0.0-py2.py3-none-any.whl
Collecting ldappool
  Using cached https://files.pythonhosted.org/packages/a4/f2/e62f2f12a871b7bba62d446a20eec8362cae6fa4c55c3d73c587204dc551/ldappool-2.4.1-py2.py3-none-any.whl
Collecting osprofiler
  Using cached https://files.pythonhosted.org/packages/22/83/031090f9e6ecb58c520f5bda37a8260ffc953abe2751c435c429fd5d1a96/osprofiler-2.9.0-py2.py3-none-any.whl
Collecting PyMySQL
  Using cached https://files.pythonhosted.org/packages/ed/39/15045ae46f2a123019aa968dfcba0396c161c20f855f11dea6796bcaae95/PyMySQL-0.9.3-py2.py3-none-any.whl
Collecting pyngus
  Using cached https://files.pythonhosted.org/packages/58/b1/336b8f64e7e4efa9b95027af71e02cd4cfacca8f919345badb852381878a/pyngus-2.3.0.zip
Collecting python-memcached
  Using cached https://files.pythonhosted.org/packages/f5/90/19d3908048f70c120ec66a39e61b92c253e834e6e895cd104ce5e46cbe53/python_memcached-1.59-py2.py3-none-any.whl
Collecting python-openstackclient
  Using cached https://files.pythonhosted.org/packages/9b/09/c45ba3f9436f5b26691a4b1a309c959903bda6d8a5be04eec14f32db451a/python-openstackclient-5.2.0.tar.gz
Collecting systemd-python
  Using cached https://files.pythonhosted.org/packages/e8/a8/00ba0f605837a8f69523e6c3a4fb14675a6430c163f836540129c50b3aef/systemd-python-234.tar.gz
    ERROR: Command errored out with exit status 1:
     command: /openstack/venvs/keystone-20.0.0/bin/python2 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-QecSqm/systemd-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-QecSqm/systemd-python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-QecSqm/systemd-python/pip-egg-info
         cwd: /tmp/pip-install-QecSqm/systemd-python/
    Complete output (12 lines):
    Cannot find libsystemd or libsystemd-journal:

    Package libsystemd was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libsystemd.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libsystemd' found

    Package libsystemd-journal was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libsystemd-journal.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libsystemd-journal' found

    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 19.3; however, version 20.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

目标主机是CentOS 7

pip ansible openstack lxc
1个回答
0
投票

我试图克服错误

© www.soinside.com 2019 - 2024. All rights reserved.