Hi all, I need to move an instance from one openstack environment to another so I tried:
1. Create an image from an instance 2. Save the image to a file 3. Copy create a new instance on another openstack using the new image file My problem is that the new image has 0 as image size. openstack server image create --wait --name rstudio-image 41efac18-a33b-4aed-858b-764639f5e183 +------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Field | Value | +------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | checksum | d41d8cd98f00b204e9800998ecf8427e | | container_format | bare | | created_at | 2017-09-22T02:09:41Z | | disk_format | qcow2 | | file | /v2/images/b9e3326f-3904-43d9-b0ab-fcc4a1ea04a6/file | | id | b9e3326f-3904-43d9-b0ab-fcc4a1ea04a6 | | min_disk | 700 | | min_ram | 0 | | name | rstudio-image | | owner | d58cf22d960e4de49b71658aee642e94 | | properties | base_image_ref='', bdm_v2='True', block_device_mapping='[{"guest_format": null, "boot_index": 0, "delete_on_termination": true, "no_device": null, "snapshot_id": "cd04e4a9-d2db-4aaa-ba63-b85c31df6f1c", "device_name": "/dev/vda", | | | "disk_bus": "virtio", "image_id": null, "source_type": "snapshot", "tag": null, "device_type": "disk", "volume_id": null, "destination_type": "volume", "volume_size": 700}]', root_device_name='/dev/vda' | | protected | False | | schema | /v2/schemas/image | | size | 0 | | status | active | | tags | | | updated_at | 2017-09-22T02:09:42Z | | virtual_size | None | | visibility | private | +------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ [root@openstack ~(keystone_admin)]# openstack image list +--------------------------------------+---------------+--------+ | ID | Name | Status | +--------------------------------------+---------------+--------+ | b9e3326f-3904-43d9-b0ab-fcc4a1ea04a6 | rstudio-image | active | | 212e5126-3d93-417c-9c41-8e198d1b90fb | ubuntu16.04 | active | | d40cef94-f3cd-495b-91f9-22a11a6f35c7 | cirros | active | | 7047b9a6-f0a2-415a-8ea7-af834146260f | centos7 | active | +--------------------------------------+---------------+--------+ [root@openstack ~(keystone_admin)]# openstack image show b9e3326f-3904-43d9-b0ab-fcc4a1ea04a6 +------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Field | Value | +------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | checksum | d41d8cd98f00b204e9800998ecf8427e | | container_format | bare | | created_at | 2017-09-22T02:09:41Z | | disk_format | qcow2 | | file | /v2/images/b9e3326f-3904-43d9-b0ab-fcc4a1ea04a6/file | | id | b9e3326f-3904-43d9-b0ab-fcc4a1ea04a6 | | min_disk | 700 | | min_ram | 0 | | name | rstudio-image | | owner | d58cf22d960e4de49b71658aee642e94 | | properties | base_image_ref='', bdm_v2='True', block_device_mapping='[{"guest_format": null, "boot_index": 0, "delete_on_termination": true, "no_device": null, "snapshot_id": "cd04e4a9-d2db-4aaa-ba63-b85c31df6f1c", "device_name": "/dev/vda", | | | "disk_bus": "virtio", "image_id": null, "source_type": "snapshot", "tag": null, "device_type": "disk", "volume_id": null, "destination_type": "volume", "volume_size": 700}]', root_device_name='/dev/vda' | | protected | False | | schema | /v2/schemas/image | | size | 0 | | status | active | | tags | | | updated_at | 2017-09-22T02:09:42Z | | virtual_size | None | | visibility | private | +------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ [root@openstack ~(keystone_admin)]# openstack image save --file ~/image.test.qcow2 b9e3326f-3904-43d9-b0ab-fcc4a1ea04a6 [root@openstack ~(keystone_admin)]# ll ~/image.test.qcow2 -rw-r--r--. 1 root root 0 Sep 22 12:11 /root/image.test.qcow2 Question 1. Why is the image size 0? Question 2. Am I doing to the right thing to migrate instances or is there another process for doing this type of things? Thank you very much Manuel Sopena Ballesteros | Big data Engineer Garvan Institute of Medical Research The Kinghorn Cancer Centre, 370 Victoria Street, Darlinghurst, NSW 2010 T: + 61 (0)2 9355 5760 | F: +61 (0)2 9295 8507 | E: manuel...@garvan.org.au<mailto:manuel...@garvan.org.au> NOTICE Please consider the environment before printing this email. This message and any attachments are intended for the addressee named and may contain legally privileged/confidential/copyright information. If you are not the intended recipient, you should not read, use, disclose, copy or distribute this communication. If you have received this message in error please notify us at once by return email and then delete both messages. We accept no liability for the distribution of viruses or similar in electronic communications. This notice should not be removed.
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack