ansibleplaybookbundle / postgresql-apb

An APB which deploys an RHSCL PostgreSQL instance
8 stars 12 forks source link

DeploymentConfig in version v1 cannot be handled #52

Open wenchma opened 6 years ago

wenchma commented 6 years ago

I provisioned a postgresql-apb service, it reported this error:

Traceback (most recent call last):
  File "/tmp/ansible_nop3uq/ansible_module_openshift_raw.py", line 165, in <module>
    main()
  File "/tmp/ansible_nop3uq/ansible_module_openshift_raw.py", line 161, in main
    KubernetesRawModule().execute_module()
  File "/tmp/ansible_nop3uq/ansible_modlib.zip/ansible/module_utils/k8s/raw.py", line 80, in execute_module
  File "/tmp/ansible_nop3uq/ansible_modlib.zip/ansible/module_utils/k8s/raw.py", line 138, in perform_action
  File "/usr/lib/python2.7/site-packages/openshift/dynamic/client.py", line 33, in inner
    raise api_exception(e)
openshift.dynamic.exceptions.BadRequestError: 400
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 11 Jul 2018 02:34:14 GMT', 'Content-Length': '241', 'Content-Type': 'application/json', 'Cache-Control': 'no-store'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"DeploymentConfig in version \"v1\" cannot be handled as a DeploymentConfig: [pos 597]: json: expect char '\"' but got char '8'","reason":"BadRequest","code":400}
wenchma commented 6 years ago

how to set the DeploymentConfig api version to apps.openshift.io/v1 ?