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

[nova-ext]: Enable Scheduled Images call not returning helpful response when content type is missed #4

Open
nandhinik opened this issue Feb 19, 2013 · 0 comments
Labels

Comments

@nandhinik
Copy link

Request:

curl -X POST -i http://50.57.234.50:8774/v2/c0019f0c879d44029c1ff6281c3a572e/servers/86a08702-a027-4879-83ba-e9da7578c32d/os-si-image-schedule -d '{"image_schedule": {"retention": "2"}}' -H "X-Auth-Project-Id: demo" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: MIIKkgYJKoZIhvcNAQcCoIIKgzCCCn8CAQExCTAHBgUrDgMCGjCCCWsGCSqGSIb3DQEHAaCCCVwEgglYeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wMi0xNFQyMDoxOTozMy4yOTY1NjIiLCAiZXhwaXJlcyI6ICIyMDEzLTAyLTE1VDIwOjE5OjMzWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImVuYWJsZWQiOiB0cnVlLCAiZGVzY3JpcHRpb24iOiBudWxsLCAibmFtZSI6ICJkZW1vIiwgImlkIjogImMwMDE5ZjBjODc5ZDQ0MDI5YzFmZjYyODFjM2E1NzJlIn19LCAic2VydmljZUNhdGFsb2ciOiBbeyJlbmRwb2ludHMiOiBbeyJhZG1pblVSTCI6ICJodHRwOi8vNTAuNTcuMjM0LjUwOjg3NzQvdjIvYzAwMTlmMGM4NzlkNDQwMjljMWZmNjI4MWMzYTU3MmUiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vNTAuNTcuMjM0LjUwOjg3NzQvdjIvYzAwMTlmMGM4NzlkNDQwMjljMWZmNjI4MWMzYTU3MmUiLCAiaWQiOiAiNGRl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tdLCAidHlwZSI6ICJpZGVudGl0eSIsICJuYW1lIjogImtleXN0b25lIn1dLCAidXNlciI6IHsidXNlcm5hbWUiOiAiZGVtbyIsICJyb2xlc19saW5rcyI6IFtdLCAiaWQiOiAiNGUxODA5ZDRhM2QwNDI4Yzk4YWRkYzFkOWI3MGM0ZWYiLCAicm9sZXMiOiBbeyJuYW1lIjogIk1lbWJlciJ9LCB7Im5hbWUiOiAiYW5vdGhlcnJvbGUifV0sICJuYW1lIjogImRlbW8ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiNDA2ZTJkNjZkYzU3NDQwZThlM2YyMjMwMGJkMzQ4ZDAiLCAiZTliYTdlODE0NzRkNDlmZmI0OGE4ZWRlNmYwNjcyZTAiXX19fTGB-zCB-AIBATBcMFcxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIEwVVbnNldDEOMAwGA1UEBxMFVW5zZXQxDjAMBgNVBAoTBVVuc2V0MRgwFgYDVQQDEw93d3cuZXhhbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEgYBNOlv60EDAffPPjTwHz5Ih2CSpyrsRFviSp1J8JOC-Jxf4xfyJg4kGK6zgr2qY4dFT5U3hm9oKd7I+bJazKs-Td9Bzavf0QycWYMntlwhSWlvs2xwmkYPoRQzX2hWH3N5hYKs0FztJA7sLhKnefBrRCvJC+LO6BryBBapYpcHcSg=="

Response Obtained:

HTTP/1.1 400 Bad Request
Content-Length: 141
Content-Type: application/json; charset=UTF-8
X-Compute-Request-Id: req-227ee380-b7b3-4a60-85ec-3abe3fc04596
Date: Tue, 19 Feb 2013 21:14:11 GMT

{"badRequest": {"message": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400}}

Response Expected:

Helpful response to add missing content-type. Also, content-type is not a mandatory attribute to mention in show/get scheduled images ext call

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

No branches or pull requests

1 participant