IBM / k8s-storage-tests

Playbooks for validating a Kubernetes persistent storage for IBM Cloud Paks
Apache License 2.0
16 stars 12 forks source link

Installation of Ansible package "openshift" might fail on a dependent package "PyYAML" #16

Closed bxu1999 closed 1 year ago

bxu1999 commented 1 year ago

Installation of Ansible package "openshift" might fail on a dependent package "PyYAML" due to the existing "PyYAML" version is too old, and can't be safely removed for the update.

bxu1999 commented 1 year ago

The openshift package installation requires PyYAML >= 5.4.1, and if the existing PyYAML is an older version, then PyYAML's installation will fail. To overcome this issue, manually delete the exisiting PyYAML package as below (adjust the paths in the commands according to the your host environment):

   rm -rf /usr/lib64/python3.6/site-packages/yaml
   rm -f  /usr/lib64/python3.6/site-packages/PyYAML-*

The above is now documented in the README file.