![AWX执行环境pip错误ResolutionTooDeep:2000000](https://linux22.com/image/780919/AWX%E6%89%A7%E8%A1%8C%E7%8E%AF%E5%A2%83pip%E9%94%99%E8%AF%AFResolutionTooDeep%3A2000000.png)
我已经为我的 awx 构建执行环境一段时间了,从来没有遇到过任何问题,但现在我试图重新创建一个月前创建的同一个 EE,但它不再起作用了。以前构建容器只需要 15 分钟,但现在需要 10 个小时才能失败并出现错误:
ERROR: Exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 167, in exc_logging_wrapper
status = run_func(*args)
File "/usr/local/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
return func(self, options, args)
File "/usr/local/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 339, in run
requirement_set = resolver.resolve(
File "/usr/local/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 94, in resolve
result = self._result = resolver.resolve(
File "/usr/local/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "/usr/local/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 392, in resolve
raise ResolutionTooDeep(max_rounds)
pip._vendor.resolvelib.resolvers.ResolutionTooDeep: 2000000
WARNING: You are using pip version 22.0.3; however, version 22.2.2 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
[3/3] STEP 1/13: FROM quay.io/ansible/ansible-runner:stable-2.11-devel
Error: error building at STEP "RUN assemble": error while running runtime: exit status 2
pip._vendor.resolvelib.resolvers.ResolutionTooDeep: 2000000
这是我的 requirements.yml
---
collections:
- name: amazon.aws
version: 3.3.0
- name: ansible.netcommon
version: 2.5.0
- name: ansible.posix
version: 1.3.0
- name: ansible.windows
version: 1.9.0
- name: awx.awx
version: 21.4.0
- name: check_point.mgmt
version: 2.3.0
- name: community.docker
version: 2.7.1
- name: community.hashi_vault
version: 3.2.0
- name: community.aws
version: 3.3.0
- name: community.general
version: 5.5.0
- name: community.vmware
version: 1.18.0
- name: community.windows
version: 1.10.0
- name: community.zabbix
version: 1.8.0
- name: google.cloud
version: 1.0.2
- name: kubernetes.core
version: 2.3.2
- name: netbox.netbox
version: 3.8.0
- name: openstack.cloud
version: 1.6.0
- name: ovirt.ovirt
version: 1.6.6
- name: redhatinsights.insights
version: 1.0.5
- name: theforeman.foreman
version: 3.1.0
- name: paloaltonetworks.panos
version: 2.9.0
- name: cyberark.pas
version: 1.0.13
- name: f5networks.f5_bigip
version: 1.8.1
- name: fortinet.fortios
version: 2.1.7
- name: community.mysql
version: 3.5.1
- name: community.postgresql
version: 2.2.0
这是我的要求.txt
urllib3
netaddr
rocketchat_API
cryptography==36.0.2
git+https://github.com/ansible/[email protected]
psycopg2-binary
PyMySQL
我一直认为使用版本可以让我随时重建容器,但事实并非如此。
知道是什么导致这种情况吗?
答案1
我在使用 ansible-builder 时遇到了同样的问题,并发现该问题是由加密引起的。
从 requirements.txt 中删除加密后就能构建容器。
从 requirements.txt 中删除 ansible-builder 的 git 声明也可能是值得的