[Openstack-operators] Nova snapshot using image-create not working
Saverio Proto
zioproto at gmail.com
Fri Nov 4 10:35:50 UTC 2016
Hello,
if the instance is booted from Volume, when you "nova snapshot" in the
glance repo you find a image of 0 bytes, that just contains metadata.
you need to make cinder volume snapshots.
This is a recurring FAQ for the users of our cloud, I wrote something
about it here:
https://help.switch.ch/engines/documentation/backup-with-snapshots/
Saverio
2016-11-04 9:58 GMT+01:00 William Josefsson <william.josefson at gmail.com>:
> Hi list, I have problems creating snapshots with nova image-create on
> Liberty/CentOS72. I have small ubuntu instances provisioned booted
> from a cinder volume, I stop the instance, then try to create a
> snapshot by issuing:
>
> As documented here:
> http://docs.openstack.org/user-guide/cli-use-snapshots-to-migrate-instances.html
>
> 'nova image-create --poll instance mySnapshot'
> This command is successful, and if I do glance image-list I can see
> the snapshot there.
>
> My storage backend is CEPH, and I can in neither of my pools, 'vms',
> 'volumes', or 'images' see this snapshot imaged stored. I also
> couldn't find the file in /var/lib/glance.
>
> ==> registry.log <==
> 2016-11-04 15:56:38.413 3525 INFO glance.registry.api.v1.images
> [req-b759199e-5180-4fcc-8ef4-a24faae81f3b
> 4919cce6c5d8455994447aa2bc9e6510 7308a926916848f98f2a6
> 28b36a091ad - - -] Successfully created image
> 6fd092d9-eab2-4176-94bc-d98bfb7a180f
>
> 2016-11-04 15:56:38.414 3525 INFO eventlet.wsgi.server
> [req-b759199e-5180-4fcc-8ef4-a24faae81f3b
> 4919cce6c5d8455994447aa2bc9e6510 7308a926916848f98f2a628b36a091
> ad - - -] 127.0.0.1 - - [04/Nov/2016
> 15:56:38] "POST /images HTTP/1.1" 200 1184 0.117521
>
> If I try to dump the image using 'glance image-download --file
> snapshot.raw UUID', I get:
> NoneType object is not an interator
>
> Can anybody advice how to get snapshots working? thx will
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
More information about the OpenStack-operators
mailing list