Where does glance store Images from Openstack

Zuz*_*zEL 3 python linux cloud openstack openstack-horizon

When I SSH to glance server there are no images in var/lib/glance/images

root@Glance:/var/lib/glance# ls
glance.sqlite  image-cache  images
Run Code Online (Sandbox Code Playgroud)

All folders are empty, glance.sqlite is 27kb

So where are all Images? My goal is to find them and copy to another Openstack.

Aki*_*esh 6

为什么不试试?

glance image-list
glance image-download your_image_id_here > your_image_name.your_image_format
Run Code Online (Sandbox Code Playgroud)

glance image-download 5dde2692-e20c-4c16-a5ff-e9478e14114c > cirros_32bit.qcow2
Run Code Online (Sandbox Code Playgroud)

然后你可以把它们放在任何你想要的地方

确保您已获取凭据,或者您必须手动将它们作为选项发送到glance命令.

export OS_USERNAME=your_username
export OS_PASSWORD=your_password
export OS_TENANT_NAME=your_tenant_name
export OS_AUTH_URL=http://your_keystone_ip:35357/v2.0
Run Code Online (Sandbox Code Playgroud)

同时图像在/ var/lib/glance/images /下