raspbernetes / k8s-cluster-installation

Bootstrap a k8s cluster with Ansible
https://raspbernetes.github.io/
Apache License 2.0
114 stars 33 forks source link

archlinux yay python-openshift errors #118

Open brunnels opened 3 years ago

brunnels commented 3 years ago

If you've used prior versions of this project then need to pip uninstall many things before the aur python-openshift package will build.

pip uninstall \
kubernetes \
python-string-utils \
ruamel.yaml \
ruamel.yaml.clib \
certifi \
python-dateutil \
pyasn1 \
pyasn1-modules \
rsa \
cachetools \
google-auth \
websocket-client \
requests-oauthlib \
openshift
brunnels commented 3 years ago

Also needed to comment out the pip openshift install in common/tasks/archlinux.yml which is what is adding everything to pip to start with.

anthr76 commented 3 years ago

@brunnels Thanks for this report.

The pip install and aur install should not both take place. I have not personally tested https://aur.archlinux.org/packages/python-openshift/ though it seems to be a fine replacement over the pip installation which we previously used for both debain flavored distros and Arch before a proper package existed for the debain flavored distros.

It's unfortunate that dropping the pip installation requires you to do manual intervention. We'll get a fix submitted but would like to hear from others on their suggestions first.

brunnels commented 3 years ago

I can send a PR. There are quite a few issues with arch that I have added fixes for. I also added support for common_is_rpi: false var to support a mixed cluster.

I'm not sure what arch you tested with but I've been using standard arch arm with cloud-init package and also https://gitlab.archlinux.org/archlinux/arch-boxes for amd64. I'm using the cloud-init image on baremetal and also in a vm.

I have been having a lot of problems with the cni and arch's iptables. Flannel won't work at all on arch and weave only works with kube_proxy_mode: ipvs.