ansibleplaybookbundle / rds-postgres-apb

An APB which deploys an RDS instance of Postgresql to AWS
3 stars 2 forks source link

APB Failing due to module error #2

Open fabianvf opened 6 years ago

fabianvf commented 6 years ago

Cloned from https://github.com/ansible/ansible-kubernetes-modules/issues/36 @goindwalia said:

I am running Ansible Playbook Bundle on Minikube 1.9.4 using Ansible Service broker. The APB rds-postgres-apb is failing due to

"module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible__Ri7Yp/ansible_module_k8s_v1_service.py\", line 360, in <module>\n main()\n File \"/tmp/ansible__Ri7Yp/ansible_module_k8s_v1_service.py\", line 354, in main\n module.execute_module()\n File \"/tmp/ansible__Ri7Yp/ansible_modlib.zip/ansible/module_utils/k8s_common.py\", line 199, in execute_module\n File \"/tmp/ansible__Ri7Yp/ansible_modlib.zip/ansible/module_utils/k8s_common.py\", line 253, in _create\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\ufffd' in position 171: ordinal not in range(128)\n"

any help will be appreciated

goindwalia commented 6 years ago

Thank you @fabianvf for creating the issue here. I have found the issue. Kubernetes Services can not have port numbers as strings, which is causing module failure.

fabianvf commented 6 years ago

Excellent, thanks. We've moved to using the core ansible k8s_raw and openshift_raw modules added in 2.5, so hopefully we'll be able to get all the existing APBs moved over soon and most of these issues should just go away