Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

create snapshot from instance displays succeeds but doesnt create

Hi,

I'm trying to create an image/snapshot from one of my openstack instances through horizon. It displays the success message and goes to the image/snapshot page, but the image is not created. This is the behavior if the image of the instance is cirros-0.3.1-x86_64-uec-ramdisk.

But if I try to create a snapshot out of an instance with image as CentOSImage, then it works fine.

On checking the logs I see the below whenever I click on the create snapshot button for the former scenario.

If any one have any clue why this issue occurs, it would be great.

[Mon Sep 01 11:56:51 2014] [error] [Mon Sep 01 11:56:51 2014] [error] REQ: curl -i 'http://10.236.220.222:8774/v2/2a3cad55e18a4229b555fbdcfce9fd0d/servers/efaafbea-d2aa-4d84-8515-fadd4c213efb/action' -X POST -H "X-Auth-Project-Id: 2a3cad55e18a4229b555fbdcfce9fd0d" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: e100d568517695ac35e0d205d3dad953" -d '{"createImage": {"name": "myimagevick", "metadata": {}}}' [Mon Sep 01 11:56:51 2014] [error] [Mon Sep 01 11:56:51 2014] [error] New session created for: (http://10.236.220.222:8774) [Mon Sep 01 11:56:52 2014] [error] RESP: [202] CaseInsensitiveDict({'date': 'Mon, 01 Sep 2014 11:56:52 GMT', 'content-length': '0', 'content-type': 'text/html; charset=UTF-8', 'location': 'http://10.236.220.222:8774/v2/2a3cad55e18a4229b555fbdcfce9fd0d/images/45afe55e-5668-4e48-84bc-2181d73af7a8', 'x-compute-request-id': 'req-a7ef2cfe-a947-490d-8cba-771b6f6e609f'}) [Mon Sep 01 11:56:52 2014] [error] RESP BODY: [Mon Sep 01 11:56:52 2014] [error] [Mon Sep 01 11:56:52 2014] [error] [Mon Sep 01 11:56:52 2014] [error] REQ: curl -i 'http://10.236.220.222:8774/v2/2a3cad55e18a4229b555fbdcfce9fd0d/servers/efaafbea-d2aa-4d84-8515-fadd4c213efb' -X GET -H "X-Auth-Project-Id: 2a3cad55e18a4229b555fbdcfce9fd0d" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: e100d568517695ac35e0d205d3dad953" [Mon Sep 01 11:56:52 2014] [error] [Mon Sep 01 11:56:52 2014] [error] New session created for: (http://10.236.220.222:8774) [Mon Sep 01 11:56:52 2014] [error] RESP: [200] CaseInsensitiveDict({'date': 'Mon, 01 Sep 2014 11:56:52 GMT', 'content-length': '1705', 'content-type': 'application/json', 'x-compute-request-id': 'req-622b265d-a955-41fa-b97e-9bd6651aa09c'}) [Mon Sep 01 11:56:52 2014] [error] RESP BODY: {"server": {"status": "SHUTOFF", "updated": "2014-09-01T11:56:52Z", "hostId": "261cdbb1fa6c1a42a49953d7574b65a9ab2591e390a6a4b9d50dda54", "OS-EXT-SRV-ATTR:host": "222-Openstack", "addresses": {"private": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:4a:f2:bd", "version": 4, "addr": "10.13.14.12", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://10.236.220.222:8774/v2/2a3cad55e18a4229b555fbdcfce9fd0d/servers/efaafbea-d2aa-4d84-8515-fadd4c213efb", "rel": "self"}, {"href": "http://10.236.220.222:8774/2a3cad55e18a4229b555fbdcfce9fd0d/servers/efaafbea-d2aa-4d84-8515-fadd4c213efb", "rel": "bookmark"}], "key_name": null, "image": {"id": "3103af46-8a3c-493b-828f-a4ba09d64f97", "links": [{"href": "http://10.236.220.222:8774/2a3cad55e18a4229b555fbdcfce9fd0d/images/3103af46-8a3c-493b-828f-a4ba09d64f97", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": "image_snapshot", "OS-EXT-STS:vm_state": "stopped", "OS-EXT-SRV-ATTR:instance_name": "instance-00000146", "OS-SRV-USG:launched_at": "2014-08-27T13:12:22.000000", "OS-EXT-SRV-ATTR:hypervisor_hostname": "222-Openstack", "flavor": {"id": "84", "links": [{"href": "http://10.236.220.222:8774/2a3cad55e18a4229b555fbdcfce9fd0d/flavors/84", "rel": "bookmark"}]}, "id": "efaafbea-d2aa-4d84-8515-fadd4c213efb", "security_groups": [{"name": "default"}], "OS-SRV-USG:terminated_at": null, "OS-EXT-AZ:availability_zone": "nova", "user_id": "8cd399f2127e41f293793c12d9b7323c", "name": "Deve-Apache-2613", "created": "2014-08-27T13:12:16Z", "tenant_id": "2a3cad55e18a4229b555fbdcfce9fd0d", "OS-DCF:diskConfig": "MANUAL", "os-extended-volumes:volumes_attached": [], "accessIPv4": "", "accessIPv6": "", "OS-EXT-STS:power_state": 4, "config_drive": "", "metadata": {}}} [Mon Sep 01 11:56:52 2014] [error] [Mon Sep 01 11:56:52 2014] [error] [Mon Sep 01 11:56:52 2014] [error] REQ: curl -i http://10.236.220.222:8776/v1/2a3cad55e18a4229b555fbdcfce9fd0d/snapshots/detail -X GET -H "X-Auth-Project-Id: 2a3cad55e18a4229b555fbdcfce9fd0d" -H "User-Agent: python-cinderclient" -H "Accept: application/json" -H "X-Auth-Token: e100d568517695ac35e0d205d3dad953" [Mon Sep 01 11:56:52 2014] [error] [Mon Sep 01 11:56:52 2014] [error] RESP: [200] CaseInsensitiveDict({'date': 'Mon, 01 Sep 2014 11:56:52 GMT', 'x-compute-request-id': 'req-d3684c62-070b-4b99-be72-ae6b9d488013', 'content-type': 'application/json', 'content-length': '400'}) [Mon Sep 01 11:56:52 2014] [error] RESP BODY: {"snapshots": [{"status": "available", "display_name": "testvolss", "created_at": "2014-09-01T11:32:40.000000", "display_description": "", "os-extended-snapshot-attributes:progress": "100%", "volume_id": "6c7a0ebf-6249-4e96-ad14-42c5fa0e9307", "os-extended-snapshot-attributes:project_id": "2a3cad55e18a4229b555fbdcfce9fd0d", "metadata": {}, "id": "d81dd7e7-3958-415e-86ff-fed4bc59ba69", "size": 1}]} [Mon Sep 01 11:56:52 2014] [error] [Mon Sep 01 11:56:52 2014] [error] [Mon Sep 01 11:56:52 2014] [error] REQ: curl -i http://10.236.220.222:8776/v1/2a3cad55e18a4229b555fbdcfce9fd0d/volumes/detail -X GET -H "X-Auth-Project-Id: 2a3cad55e18a4229b555fbdcfce9fd0d" -H "User-Agent: python-cinderclient" -H "Accept: application/json" -H "X-Auth-Token: e100d568517695ac35e0d205d3dad953" [Mon Sep 01 11:56:52 2014] [error] [Mon Sep 01 11:56:53 2014] [error] RESP: [200] CaseInsensitiveDict({'date': 'Mon, 01 Sep 2014 11:56:53 GMT', 'x-compute-request-id': 'req-5bea2604-1542-426d-a84d-a1b5659780c2', 'content-type': 'application/json', 'content-length': '536'}) [Mon Sep 01 11:56:53 2014] [error] RESP BODY: {"volumes": [{"status": "available", "display_name": "testvol", "attachments": [], "availability_zone": "nova", "bootable": "false", "created_at": "2014-09-01T11:31:55.000000", "os-vol-tenant-attr:tenant_id": "2a3cad55e18a4229b555fbdcfce9fd0d", "display_description": "", "os-vol-host-attr:host": "222-Openstack", "volume_type": "Backup", "snapshot_id": null, "source_volid": null, "os-vol-mig-status-attr:name_id": null, "metadata": {}, "id": "6c7a0ebf-6249-4e96-ad14-42c5fa0e9307", "os-vol-mig-status-attr:migstat": null, "size": 1}]} [Mon Sep 01 11:56:53 2014] [error]

Thanks,