<div style="font:14px/1.5 'Lucida Grande', '微软雅黑';color:#333;"><p style="font:14px/1.5 'Lucida Grande';margin:0;"><span style="white-space: pre-wrap;">Hi, all</span></p><p style="font:14px/1.5 'Lucida Grande';margin:0;">I booted a new instance from a volume and then attached an other volume to it,</p><p style="font:14px/1.5 'Lucida Grande';margin:0;"> and created image for the instance whos block_device_mapping like this:</p><p style="font:14px/1.5 'Lucida Grande';margin:0;"><br></p><p style="line-height: 1.5; font-family: 'Lucida Grande'; margin: 0px;">| block_device_mapping | [{"guest_format": null, "boot_index": 0, "delete_on_termination": false,                 </p><p style="line-height: 1.5; font-family: 'Lucida Grande'; margin: 0px;">|                                     | "no_device": null, "snapshot_id": "61c18329-420d-4765-ab5a-c626d9b1ebcd", </p><p style="line-height: 1.5; font-family: 'Lucida Grande'; margin: 0px;">|                                     | "device_name": "/dev/vda", "disk_bus": "virtio", "image_id": null,                           </p><p style="line-height: 1.5; font-family: 'Lucida Grande'; margin: 0px;">|                                     | "source_type": "snapshot", "device_type": "disk", "volume_id": null,                        </p><p style="line-height: 1.5; font-family: 'Lucida Grande'; margin: 0px;">|                                     | "destination_type": "volume", "volume_size": 20}, {"guest_format": null,                 </p><p style="line-height: 1.5; font-family: 'Lucida Grande'; margin: 0px;">|                                     | "boot_index": null, "delete_on_termination": false, "no_device": null,                      </p><p style="line-height: 1.5; font-family: 'Lucida Grande'; margin: 0px;">|                                     | "snapshot_id": "438cd325-3fcd-4769-a3e9-c0a9aeaa2437", "device_name":        </p><p style="line-height: 1.5; font-family: 'Lucida Grande'; margin: 0px;">|                                     | "/dev/vdb", "disk_bus": null, "image_id": null, "source_type": "snapshot",                </p><p style="line-height: 1.5; font-family: 'Lucida Grande'; margin: 0px;">|                                     | "device_type": null, "volume_id": null, "destination_type": "volume",                        </p><p style="line-height: 1.5; font-family: 'Lucida Grande'; margin: 0px;">|                                     | "volume_size": 10}]</p><p style="line-height: 1.5; font-family: 'Lucida Grande'; margin: 0px;">                                                                                                         </p><p style="line-height: 1.5; font-family: 'Lucida Grande'; margin: 0px;">There’s no problem when use the snapshot image to boot a new instance, that mergs </p><p style="line-height: 1.5; font-family: 'Lucida Grande'; margin: 0px;">block_device_mapping in image and one provied manually.</p><p style="line-height: 1.5; font-family: 'Lucida Grande'; margin: 0px;">But rebuilding instance from the image ignores the block_device_mapping attribute. Should we</p><p style="line-height: 1.5; font-family: 'Lucida Grande'; margin: 0px;">replace  all origin volumes by new volumes provided byimage block_device_mapping attribute </p><p style="line-height: 1.5; font-family: 'Lucida Grande'; margin: 0px;">according to device name? </p></div>