terraform-aws-openshift
terraform-aws-openshift copied to clipboard
CHECK [memory_availability] fail when run ansible playbook on OKD 3.11
CHECK [memory_availability : ip-10-0-1-238.ap-southeast-1.compute.internal] ****
fatal: [ip-10-0-1-238.ap-southeast-1.compute.internal]: FAILED! => {"changed": true, "checks": {"disk_availability": {}, "docker_image_availability": {"changed": true, "failed": true, "failures": [["OpenShiftCheckException", "One or more required container images are not available:\n quay.io/coreos/etcd:v3.2.22\nChecked with: skopeo inspect [--tls-verify=false] [--creds=
1. Hosts: ip-10-0-1-182.ap-southeast-1.compute.internal
Play: OpenShift Health Checks
Task: Run health checks (install) - EL
Message: One or more checks failed
Details: check "docker_image_availability":
One or more required container images are not available:
quay.io/coreos/etcd:v3.2.22
Checked with: skopeo inspect [--tls-verify=false] [--creds=<user>:<pass>] docker://<registry>/<image>```
Will take a look into this shortly. Any special changes you made to the setup that made it non-standard?
no, just make infrastructure and make openshift.
Have you tried rerunning make openshift? It can be a little flakey on the ansible side, but is idempotent so safe to run and rerun
On Fri, 5 Apr 2019 at 12:21 PM, Pichate Ins [email protected] wrote:
no, just make infrastructure and make openshift.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dwmkerr/terraform-aws-openshift/issues/85#issuecomment-480143501, or mute the thread https://github.com/notifications/unsubscribe-auth/AB1nSATxXHb6rbEk7XbbboA8-GUl-fY0ks5vds9EgaJpZM4cc_F9 .
i try to run many time. but still got same error
I have completely cleaned and retried locally, everything works:
I think you are encountering the below:
https://github.com/openshift/openshift-ansible/issues/11369
I have some other things I'm looking into (see below) but for now I think it is the issue above. Will update this comment as tI debug more. There's not been any activity on that issue for a while - have you tried again recently? It might have been that the image was just unavailable for a period of time...
Potential things to try
- try deleting your local
.terraform
folder (after runningterraform destroy
) and then re-runterraform init && terraform get
so that you get the absolute latest version of the AWS providers. - Let me know which region you are running in, if not the default
Similar Issues
Searching for similar issues, I've found these:
- https://github.com/openshift/openshift-ansible/issues/6002
- https://github.com/openshift/openshift-ansible/issues/7808
- https://github.com/openshift/openshift-ansible/issues/6300
- https://bugzilla.redhat.com/show_bug.cgi?id=1480195
Summarising:
- The first suggests the issue is due to transient failures or outages in the redhat container registries it is trying to pull images from. Highly unlikely to be your issue as it is failing consistently.
- The second was the wrong registry
- The third was proxy settings for a registry
In all cases it is a failure to download a specific image. In your case, the specific image which is failing to download is:
As indicated by:
["OpenShiftCheckException", "One or more required container images are not available:
quay.io/coreos/etcd:v3.2.22
Checked with: skopeo inspect [--tls-verify=false] [--creds=:] docker:///\n"]]
So right now it looks like an issue with quay.io/coreos/etcd:v3.2.22
I was testing on ap-southeast-1 got the same issue but the ap-southeast-2 was working smoothly
That is bizarre.... Let me see if I can repro in the same way
I am also getting the same issue, it worked yesterday, I destroyed everything and then when I tried it again, getting the issue even after several retries, deleted the tf state files and tried everything from beginning still getting the same issue.
I was getting this as well. The issue may be related to this issue:
https://github.com/openshift/openshift-ansible/issues/10741
The workaround to disable the availability check worked for me and I was able to install this cluster successfully.
@dwmkerr hello any workaround for this issue ? I have the same problem
I too see the same with openshift-ansible-3.11.37-1.git.0.3b8b341.el7.noarch on Centos 7.
First is:
CHECK [memory_availability : ....
followed by:
Message: One or more checks failed Details: check "docker_image_availability": One or more required container images are not available: docker.io/cockpit/kubernetes:latest, docker.io/openshift/origin-deployer:v3.11, docker.io/openshift/origin-docker-registry:v3.11, docker.io/openshift/origin-haproxy-router:v3.11, docker.io/openshift/origin-pod:v3.11 Checked with: skopeo inspect [--tls-verify=false] [--creds=<user>:<pass>] docker://<registry>/<image>
check "docker_storage": Could not find imported module support code for docker_info. Looked for either AnsibleDockerClient.py or docker_common.py Traceback (most recent call last): File "/usr/share/ansible/openshift-ansible/roles/openshift_health_checker/action_plugins/openshift_health_check.py", line 225, in run_check result = check.run() File "/usr/share/ansible/openshift-ansible/roles/openshift_health_checker/openshift_checks/docker_storage.py", line 53, in run docker_info = self.execute_module("docker_info", {}) File "/usr/share/ansible/openshift-ansible/roles/openshift_health_checker/openshift_checks/__init__.py", line 211, in execute_module result = self._execute_module(module_name, module_args, self.tmp, self.task_vars) File "/usr/lib/python2.7/site-packages/ansible/plugins/action/__init__.py", line 815, in _execute_module (module_style, shebang, module_data, module_path) = self._configure_module(module_name=module_name, module_args=module_args, task_vars=task_vars) File "/usr/lib/python2.7/site-packages/ansible/plugins/action/__init__.py", line 209, in _configure_module **become_kwargs) File "/usr/lib/python2.7/site-packages/ansible/executor/module_common.py", line 1258, in modify_module environment=environment) File "/usr/lib/python2.7/site-packages/ansible/executor/module_common.py", line 1095, in _find_module_utils py_module_cache, zf) File "/usr/lib/python2.7/site-packages/ansible/executor/module_common.py", line 764, in recursive_finder raise AnsibleError(' '.join(msg)) AnsibleError: Could not find imported module support code for docker_info. Looked for either AnsibleDockerClient.py or docker_common.py
I'm on bare-metal and behind a proxy but I put proxy vars in all the places I know of. Commands: docker, skopeo succeed when ran manually.
regards, L.