[
https://issues.apache.org/jira/browse/JCLOUDS-655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14234378#comment-14234378
]
Everett Toews commented on JCLOUDS-655:
---------------------------------------
[~monitorjbl] I had a little bit of time to look at this this morning. I got as
far as creating a test for it that fails. I won't have any more time today to
get into it but you're welcome to take the test and try out your solution. Feel
free to create a pull request for it, see [How to
Contribute|https://cwiki.apache.org/confluence/display/JCLOUDS/How+to+Contribute]
Drop
[ImageApiMockTest.java|https://gist.github.com/everett-toews/24ee560b2c55b3fc51a1#file-imageapimocktest-java]
into
jclouds/jclouds/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/features/
Drop
[image_list_with_block_device_mapping.json|https://gist.github.com/everett-toews/24ee560b2c55b3fc51a1#file-image_list_with_block_device_mapping-json]
into jclouds/jclouds/apis/openstack-nova/src/test/resources
Run ImageApiMockTest to confirm it fails.
HTH
> com.google.gson.JsonSyntaxException on trying to start a new instance with
> openstack
> ------------------------------------------------------------------------------------
>
> Key: JCLOUDS-655
> URL: https://issues.apache.org/jira/browse/JCLOUDS-655
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-compute
> Affects Versions: 1.8.0
> Environment: Openstack Havana, linux
> Reporter: Andrew Ruef
>
> this seems very similar to [JCLOUDS-558]:
> {code}
> "{"images": [{"status": "ACTIVE", "updated": "2014-08-08T04:43:36Z", "links":
> [{"href":
> "http://192.168.24.16:8774/v2/d312a9d1acee46499e04fc2c0cd7e540/images/cd9d57a9-0978-45f3-9cbc-edb99347be6b",
> "rel": "self"}, {"href":
> "http://192.168.24.16:8774/d312a9d1acee46499e04fc2c0cd7e540/images/cd9d57a9-0978-45f3-9cbc-edb99347be6b",
> "rel": "bookmark"}, {"href":
> "http://192.168.24.16:9292/d312a9d1acee46499e04fc2c0cd7e540/images/cd9d57a9-0978-45f3-9cbc-edb99347be6b",
> "type": "application/vnd.openstack.image", "rel": "alternate"}], "id":
> "cd9d57a9-0978-45f3-9cbc-edb99347be6b", "OS-EXT-IMG-SIZE:size": 0, "name":
> "t11", "created": "2014-08-08T04:43:36Z", "minDisk": 0, "progress": 100,
> "minRam": 0, "metadata": {"block_device_mapping": [{"guest_format": null,
> "boot_index": 0, "no_device": null, "volume_id": null, "volume_size": null,
> "disk_bus": null, "image_id": null, "source_type": "snapshot", "device_type":
> null, "snapshot_id": "a900a56c-61b7-4438-9150-76312fa1aa10",
> "destination_type": "volume", "delete_on_termination": null}], "checksum":
> "32c08d302f9206668030d47789b77858", "min_ram": "1", "disk_format": "qcow2",
> "image_name": "Ubuntu LTS 14.04", "bdm_v2": "True", "image_id":
> "cfefefc1-eba2-4b1e-9b07-a8c74a872d65", "root_device_name": "/dev/vda",
> "container_format": "bare", "min_disk": "8", "size": "254149120"}},
> {"status": "ACTIVE", "updated": "2014-06-25T13:46:44Z", "links": [{"href":
> "http://192.168.24.16:8774/v2/d312a9d1acee46499e04fc2c0cd7e540/images/224f4c31-052f-4e87-9f36-52c148358f60",
> "rel": "self"}, {"href":
> "http://192.168.24.16:8774/d312a9d1acee46499e04fc2c0cd7e540/images/224f4c31-052f-4e87-9f36-52c148358f60",
> "rel": "bookmark"}, {"href":
> "http://192.168.24.16:9292/d312a9d1acee46499e04fc2c0cd7e540/images/224f4c31-052f-4e87-9f36-52c148358f60",
> "type": "application/vnd.openstack.image", "rel": "alternate"}], "id":
> "224f4c31-052f-4e87-9f36-52c148358f60", "OS-EXT-IMG-SIZE:size": 344457216,
> "name": "CentOS 6.5", "created": "2014-06-25T13:45:19Z", "minDisk": 8,
> "progress": 100, "minRam": 1, "metadata": {}}, {"status": "ACTIVE",
> "updated": "2014-06-25T13:41:29Z", "links": [{"href":
> "http://192.168.24.16:8774/v2/d312a9d1acee46499e04fc2c0cd7e540/images/7c35e28f-fee6-4f0a-a479-67ce8aa1e986",
> "rel": "self"}, {"href":
> "http://192.168.24.16:8774/d312a9d1acee46499e04fc2c0cd7e540/images/7c35e28f-fee6-4f0a-a479-67ce8aa1e986",
> "rel": "bookmark"}, {"href":
> "http://192.168.24.16:9292/d312a9d1acee46499e04fc2c0cd7e540/images/7c35e28f-fee6-4f0a-a479-67ce8aa1e986",
> "type": "application/vnd.openstack.image", "rel": "alternate"}], "id":
> "7c35e28f-fee6-4f0a-a479-67ce8aa1e986", "OS-EXT-IMG-SIZE:size": 13167616,
> "name": "Cirros 0.3.2", "created": "2014-06-25T13:41:25Z", "minDisk": 1,
> "progress": 100, "minRam": 1, "metadata": {}}, {"status": "ACTIVE",
> "updated": "2014-06-25T13:38:57Z", "links": [{"href":
> "http://192.168.24.16:8774/v2/d312a9d1acee46499e04fc2c0cd7e540/images/cfefefc1-eba2-4b1e-9b07-a8c74a872d65",
> "rel": "self"}, {"href":
> "http://192.168.24.16:8774/d312a9d1acee46499e04fc2c0cd7e540/images/cfefefc1-eba2-4b1e-9b07-a8c74a872d65",
> "rel": "bookmark"}, {"href":
> "http://192.168.24.16:9292/d312a9d1acee46499e04fc2c0cd7e540/images/cfefefc1-eba2-4b1e-9b07-a8c74a872d65",
> "type": "application/vnd.openstack.image", "rel": "alternate"}], "id":
> "cfefefc1-eba2-4b1e-9b07-a8c74a872d65", "OS-EXT-IMG-SIZE:size": 254149120,
> "name": "Ubuntu LTS 14.04", "created": "2014-06-25T13:38:28Z", "minDisk": 8,
> "progress": 100, "minRam": 1, "metadata": {}}]}"
> - Error parsing input
> com.google.gson.JsonSyntaxException: java.lang.IllegalStateException:
> Expected a string but was BEGIN_ARRAY at line 1 column 733
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)