Add Host
The following may help if you are experiencing problems while trying to Add Linux Host.
Error - Kubernetes Has Been Not Installed
Kubernetes requires a minimum of 2 GB Memory
Solution
Revise resource allocated to the Kubernetes Master (Master node)
Missing Library - Netaddr
fatal: [k8s-master-xxxxx]: FAILED! => {"msg": "An unhandled exception occurred while templating '{{ kube_service_addresses|ipaddr('net')|ipaddr(2)|ipaddr('address') }}'. Error was a <class 'ansible.errors.AnsibleFilterError'>, original message: The ipaddr filter requires python-netaddr be installed on the ansible controller"}
Solution
sudo yum install python-netaddr
Missing Package - pip
***************************************
KAZUHM INSTALLER: Ubuntu 16.04.5 LTS
***************************************
KAZUHM installing prerequisites...
***************************************
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package epel-release
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-pip
sudo: pip: command not found
sudo: pip: command not found
net.ipv4.ip_forward = 1
Solution
sudo apt get update
sudo apt install python3-pip
Missing Module - ansible.errors
***************************************
KAZUHM setting up networking & installing container platform...
***************************************
Traceback (most recent call last):
File "/usr/local/bin/ansible-playbook", line 40, in <module>
from ansible.errors import AnsibleError, AnsibleOptionsError, AnsibleParserError
ImportError: No module named ansible.errors
Traceback (most recent call last):
File "/usr/local/bin/ansible-playbook", line 40, in <module>
from ansible.errors import AnsibleError, AnsibleOptionsError, AnsibleParserError
ImportError: No module named ansible.errors
Solution
sudo chown -R <USERNAME> /usr/local/lib/python2.7/dist-packages
Hashivault Permissions Error
WARNING]: Error accessing plugin paths: [Errno 13] Permission denied:
'/usr/lib/python2.7/site-packages/ansible/modules/hashivault'
ERROR! no action detected in task. This often indicates a misspelled module name , or incorrect module path.
The error appears to have been in '/tmp/selfgz1065920338/kubespray/roles/vault/handlers/main.yml': line 44, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: unseal vault
^ here
Solution
sudo chmod -R a+rx /usr/lib/python2.7/site-packages/ansible/modules
Nodes Unable to Connect
During the installation process, some Worker nodes may fail to connect for various reasons.
Solution
Verify that all hosts met the requirements in Add Linux Host then
run sh kazinstall.run on the Master host again.
Comments
0 comments
Article is closed for comments.