Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeploymentConfig in version v1 cannot be handled #52

Open
wenchma opened this issue Jul 11, 2018 · 1 comment
Open

DeploymentConfig in version v1 cannot be handled #52

wenchma opened this issue Jul 11, 2018 · 1 comment

Comments

@wenchma
Copy link

wenchma commented Jul 11, 2018

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
Copy link
Author

wenchma commented Jul 11, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant