Environment:
printf "$(uname -srm)\n$(cat /etc/os-release)\n"):```Linux 3.10.0-327.36.3.el7.x86_64 x86_64
NAME="Red Hat Enterprise Linux Server"
VERSION="7.2 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="7.2"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.2 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.2:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.2
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.2"
- **Version of Ansible** (`ansible --version`): ansible 2.2.1.0
**Kargo version (commit) (`git rev-parse --short HEAD`):** 410438a
**Network plugin used**: flannel
**Copy of your inventory file:**
[kube-master]
node1
node2
[all]
node1 ansible_ssh_host=csx00309
node2 ansible_ssh_host=csx00620
node3 ansible_ssh_host=csx00430
[k8s-cluster:children]
kube-node
kube-master
[kube-node]
node1
node2
node3
[etcd]
node1
node2
node3
**Command used to invoke ansible**:
kargo deploy
**Output of ansible run**: https://gist.github.com/ionsquare/267659338564e714109fddfcb4ea57c2
Relevant portion:
TASK [kubernetes/preinstall : Install packages requirements] *****
FAILED - RETRYING: TASK: kubernetes/preinstall : Install packages requirements (4 retries left).
FAILED - RETRYING: TASK: kubernetes/preinstall : Install packages requirements (4 retries left).
FAILED - RETRYING: TASK: kubernetes/preinstall : Install packages requirements (4 retries left).
FAILED - RETRYING: TASK: kubernetes/preinstall : Install packages requirements (3 retries left).
FAILED - RETRYING: TASK: kubernetes/preinstall : Install packages requirements (3 retries left).
FAILED - RETRYING: TASK: kubernetes/preinstall : Install packages requirements (3 retries left).
FAILED - RETRYING: TASK: kubernetes/preinstall : Install packages requirements (2 retries left).
FAILED - RETRYING: TASK: kubernetes/preinstall : Install packages requirements (2 retries left).
FAILED - RETRYING: TASK: kubernetes/preinstall : Install packages requirements (1 retries left).
FAILED - RETRYING: TASK: kubernetes/preinstall : Install packages requirements (2 retries left).
FAILED - RETRYING: TASK: kubernetes/preinstall : Install packages requirements (1 retries left).
failed: [node2] (item=[u'libselinux-python', u'device-mapper-libs', u'python-httplib2', u'openssl', u'curl', u'rsync', u'bash-completion', u'socat', u'unzip']) => {"attempts": 4, "changed": false, "failed": true, "item": ["libselinux-python", "device-mapper-libs", "python-httplib2", "openssl", "curl", "rsync", "bash-completion", "socat", "unzip"], "msg": "No package matching 'python-httplib2' found available, installed or updated", "rc": 126, "results": ["All packages providing libselinux-python are up to date", "All packages providing device-mapper-libs are up to date", "No package matching 'python-httplib2' found available, installed or updated"]}
FAILED - RETRYING: TASK: kubernetes/preinstall : Install packages requirements (1 retries left).
failed: [node3] (item=[u'libselinux-python', u'device-mapper-libs', u'python-httplib2', u'openssl', u'curl', u'rsync', u'bash-completion', u'socat', u'unzip']) => {"attempts": 4, "changed": false, "failed": true, "item": ["libselinux-python", "device-mapper-libs", "python-httplib2", "openssl", "curl", "rsync", "bash-completion", "socat", "unzip"], "msg": "No package matching 'python-httplib2' found available, installed or updated", "rc": 126, "results": ["All packages providing libselinux-python are up to date", "All packages providing device-mapper-libs are up to date", "No package matching 'python-httplib2' found available, installed or updated"]}
failed: [node1] (item=[u'libselinux-python', u'device-mapper-libs', u'python-httplib2', u'openssl', u'curl', u'rsync', u'bash-completion', u'socat', u'unzip']) => {"attempts": 4, "changed": false, "failed": true, "item": ["libselinux-python", "device-mapper-libs", "python-httplib2", "openssl", "curl", "rsync", "bash-completion", "socat", "unzip"], "msg": "No package matching 'python-httplib2' found available, installed or updated", "rc": 126, "results": ["All packages providing libselinux-python are up to date", "All packages providing device-mapper-libs are up to date", "No package matching 'python-httplib2' found available, installed or updated"]}
```
Anything else do we need to know:
I noticed this problem was reported in #50 and #122 by @ant31 but the issues were closed and no information given about how the problem was resolved.
I was able to work around this issue by making two changes:
- python-httplib2
- name: RedHat/CentOS - Install pip
command: bash -c "curl https://bootstrap.pypa.io/get-pip.py | python -"
sudo: yes
- name: Install httplib2
pip: name=httplib2
@ionsquare can you provide a PR with the changes you made?
Sorry I don't recall how I fixed it, I think it was related to non-tty setup, I should have commented resolution in the tickets you listed.
Helped me as well on AWS RedHat instances.
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
Most helpful comment
I was able to work around this issue by making two changes: