[ 
https://issues.apache.org/jira/browse/JCLOUDS-655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14090773#comment-14090773
 ] 

Everett Toews commented on JCLOUDS-655:
---------------------------------------

This is odd. How did the metadata field get an array of block_device_mapping 
info into it?

According to [Image 
Metadata|http://developer.openstack.org/api-ref-compute-v2.html#compute_image_metadata]
 it should only be simple String key/value pairs.

> 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.2#6252)

Reply via email to