Ask Your Question
0

create snapshot from instance displays succeeds but doesnt create

asked 2014-09-01 07:18:05 -0500

vickchak gravatar image

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 ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-09-01 12:01:00 -0500

SGPJ gravatar image

If it is issue only with Cirros not other OS like CentOS. Then remove files in ~file/image cirros dir and then freshly create.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-09-01 07:18:05 -0500

Seen: 79 times

Last updated: Sep 01 '14